/* =========================================================
   CSS RESET & NORMALIZE
   ========================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F7F9;
  color: #23384E;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
}
main {
  word-break: break-word;
}
ol, ul {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
input, button, textarea, select {
  font: inherit;
}

/* =========================================================
   BRAND COLORS, VARIABLES, FONTS (Fallbacks included)
   ========================================================= */
:root {
  --color-primary: #23384E;
  --color-secondary: #E3E7EE;
  --color-accent: #B08B4F;
  --color-background: #F6F7F9;
  --color-white: #fff;
  --color-black: #13161A;
  --color-grey: #9095A0;
  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-elevate: 0 2px 16px 0 rgba(35, 56, 78, .08), 0 1.5px 6px 0 rgba(176, 139, 79, 0.04);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-background);
  color: var(--color-primary);
  letter-spacing: .02em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
h1 {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.section h1,
.section h2 {
  color: var(--color-primary);
  border-left: 6px solid var(--color-accent);
  padding-left: 15px;
  margin-bottom: 24px;
  background: transparent;
}

.subheadline {
  font-size: 1.18rem;
  color: var(--color-grey);
  margin-bottom: 18px;
  letter-spacing: .03em;
}

p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

strong {
  color: var(--color-primary);
  font-weight: 700;
}
em {
  color: var(--color-accent);
  font-style: italic;
}


/* =========================================================
   CONTAINER & LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  margin-top: 14px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 470px;
  padding: 26px 22px;
  transition: box-shadow .3s, transform .2s;
  z-index: 0;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(35,56,78,0.13);
  transform: translateY(-6px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: var(--color-secondary);
  color: var(--color-black);
  box-shadow: 0 1px 10px 0 rgba(35,56,78,0.06);
  border-left: 6px solid var(--color-accent);
  font-size: 1.08rem;
  transition: box-shadow .23s, border-color .22s;
}
.testimonial-card p {
  color: var(--color-black);
  margin-bottom: 5px;
}
.testimonial-card span {
  font-size: .99rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(176,139,79,0.17);
  border-left: 6px solid #FFD77B;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0;
}


/* =========================================================
   NAVIGATION & HEADER
   ========================================================= */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(35,56,78,0.05);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 900;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 18px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: .015em;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: background .22s, color .18s, box-shadow .11s;
  padding: 7px 13px;
}
header nav a.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(176,139,79, .08);
  margin-left: 16px;
  transition: background .2s, color .2s, transform .16s;
}
header nav a.cta-btn:hover,
header nav a.cta-btn:focus {
  background: #C5A054;
  color: var(--color-black);
  transform: translateY(-2px) scale(1.04);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
header nav a img {
  height: 40px;
  width: auto;
  margin-bottom: 0 !important;
  margin-right: 10px;
  vertical-align: middle;
}

/* Burger menu visible only on mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background .22s;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 1001;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #eac97f;
  color: var(--color-primary);
  outline: none;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,56,78,0.96);
  z-index: 1100;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transition: transform .38s cubic-bezier(.52,1.2,.42,1), opacity .3s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  border: none;
  margin: 22px 26px 10px 0;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background .22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #eac97f;
  color: var(--color-primary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 34px;
  padding-right: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.34rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
  background: none;
  padding: 13px 0 13px 28px;
  border-radius: 0 20px 20px 0;
  transition: background .2s, color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-black);
}


/* =========================================================
   MAIN & SECTIONS
   ========================================================= */
main {
  margin-top: 22px;
  margin-bottom: 40px;
  min-height: 60vh;
  z-index: 1;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-elevate);
  border-radius: var(--radius-lg);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 340px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(35,56,78,0.06);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: box-shadow .24s, border-color .16s;
  border-left: 5px solid var(--color-accent);
}
.feature-grid li img {
  height: 40px;
  width: 40px;
  margin-bottom: 7px;
}
.feature-grid li h3 {
  margin-bottom: 4px;
}
.feature-grid li:hover {
  box-shadow: 0 6px 22px 0 rgba(176,139,79,0.15);
  border-left: 5px solid #FFD77B;
}

ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ol > li {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-weight: 500;
}
ul > li {
  margin-bottom: 10px;
}


/* Card, grid, testimonial – spacing enforcement */
.card:not(:last-child), .feature-grid li:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* Spacing for benefits, testimonials, FAQ lists */
.content-wrapper > ul,
.content-wrapper > ol {
  margin-bottom: 10px;
}
.content-wrapper > .text-section {
  margin-top: 10px;
}

/* =========================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================= */
.cta-btn,
button[type=submit] {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: var(--radius-sm);
  border: none;
  margin-top: 6px;
  letter-spacing: .02em;
  transition: background .16s, color .18s, box-shadow .22s, transform .11s;
  box-shadow: 0 2px 10px 0 rgba(176,139,79,.10);
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus,
button[type=submit]:hover, button[type=submit]:focus {
  background: #eac97f;
  color: var(--color-primary);
  outline: none;
  box-shadow: 0 6px 16px 0 rgba(35,56,78,0.10);
  transform: translateY(-3px) scale(1.02);
}

/* Inline nav cta-btn ensures no double border-radius */
nav .cta-btn {
  margin-left: 16px;
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 0 20px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
footer p {
  color: white;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  transition: background .14s, color .13s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-black);
}
footer .text-section {
  text-align: center;
  margin-top: 9px;
  font-size: .98rem;
  color: #e3e7ee;
}


/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--color-white);
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -3px 15px 0 rgba(35,56,78,.11);
  padding: 22px 12px 18px 18px;
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  animation: cookieBannerAppear .45s cubic-bezier(.4,1.6,.4,1.0);
  font-size: 1rem;
}
@keyframes cookieBannerAppear {
  0% {transform: translateY(60px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner__msg {
  color: var(--color-primary);
  font-size: 1.04rem;
  line-height: 1.5;
  flex: 1 1 160px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background .18s, color .16s;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(176,139,79,0.09);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #eac97f;
  color: var(--color-primary);
}
.cookie-btn.cookie-btn--reject {
  background: #E3E7EE;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  font-weight: 600;
}
.cookie-btn.cookie-btn--reject:hover,
.cookie-btn.cookie-btn--reject:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.cookie-btn--settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-btn.cookie-btn--settings:hover,
.cookie-btn.cookie-btn--settings:focus {
  background: #FFF8EC;
  color: var(--color-accent);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,56,78,0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
  animation: cookieModalAppear .3s cubic-bezier(.4,1.9,.7,1.0);
}
@keyframes cookieModalAppear {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 8px 32px 2px rgba(35,56,78,0.16);
  padding: 32px 28px 22px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
  animation: cookieModalPanel .44s cubic-bezier(.5,1.7,.52,1);
}
@keyframes cookieModalPanel {
  0% {transform: scale(0.95); opacity: 0.85;}
  100% {transform: scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .13s, color .13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.cookie-preference-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-pref-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-pref-label {
  font-weight: 600;
  color: var(--color-accent);
}
.cookie-pref-essential {
  color: var(--color-primary);
  font-weight: 500;
  margin-left: 6px;
  font-size: 0.99rem;
}
input[type=checkbox].cookie-switch {
  appearance: none;
  width: 37px;
  height: 20px;
  background: #e2e7ef;
  border-radius: 12px;
  position: relative;
  outline: none;
  border: 2px solid #e4e4e4;
  transition: background .24s, border .24s;
}
input[type=checkbox].cookie-switch:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
input[type=checkbox].cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(35,56,78,.11);
  transition: left .20s, background .13s;
}
input[type=checkbox].cookie-switch:checked:before {
  left: 18px;
  background: #fff8ec;
}

.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
}

/* =========================================================
   RESPONSIVE DESIGN – MOBILE-FIRST
   ========================================================= */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid li { max-width: 49vw; min-width: 170px; }
}
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  .section,
  section { padding: 25px 3vw; }
  .feature-grid {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .feature-grid li {
    min-width: 94vw;
    max-width: 99vw;
    padding: 21px 13px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
  .testimonial-card { gap: 10px; padding: 14px; }
  .text-image-section { flex-direction: column; gap: 19px;}
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  main {margin-top: 8px;}
}
@media (max-width: 530px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .section, section { padding: 13px 2vw; }
  .feature-grid li img {height: 32px; width: 32px;}
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; gap: 19px; align-items: flex-start;}
  .cookie-banner__actions { width: 100%; justify-content: flex-start; gap: 8px;}
  .cookie-banner__msg {font-size: .96rem;}
  .cookie-modal {padding: 18px 6vw 17px 6vw;}
}

/* =========================================================
   MICRO-INTERACTIONS / HOVERS / FOCUS STATES
   ========================================================= */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
}
.cta-btn:active {
  transform: scale(.97);
}
.feature-grid li:active, .card:active {
  transform: scale(.99);
}
.testimonial-card:active {transform: scale(.99);}

/* =========================================================
   UTILITY CLASSES / MISC
   ========================================================= */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-center { align-items: center; }
.gap-sm { gap: 10px; }
.gap-md { gap: 18px; }
.w-100 {width: 100%;}
.text-center { text-align: center; }

/* Spinner/modal overlay utility for future use */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,56,78,0.12);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .32s .13s;
}
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

/* =========================================================
   PRINT (minimal reset)
   ========================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  body {background: #fff !important; color: #000 !important;}
  section, .section {box-shadow: none !important;}
}

/* =========================================================
   END STYLES
   ========================================================= */
