/* CSS RESET & BRAND VARIABLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, picture {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}
:root {
  --primary: #20313B;
  --secondary: #839199;
  --accent: #F2D7B6;
  --white: #fff;
  --gray-light: #F5F7F9;
  --gray-soft: #E4E7EA;
  --shadow: 0 4px 16px 0 rgba(32,49,59,.07);
  --radius: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Roboto, Arial, sans-serif;
}


body {
  font-family: var(--font-body);
  background: var(--gray-light);
  color: var(--primary);
  min-height: 100vh;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
  color: var(--secondary);
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* PRIMARY BUTTON */
.cta-btn,
button.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2.2em;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 12px 0 rgba(32,49,59,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 12px;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #395367;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(32,49,59,0.09);
}

/* HEADER/NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 6px 0 rgba(32,49,59,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  min-height: 76px;
  position: relative;
  z-index: 103;
}
header > a img {
  max-height: 48px;
  display: block;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 28px;
}
nav a {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover,
nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  margin-left: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 105;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--gray-soft);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,49,59,0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,.2,.25,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  margin: 24px 0 0 18px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.16s;
  padding: 4px 10px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  gap: 22px;
  margin-top: 40px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .5px;
  padding: 10px 0;
  border-radius: 0;
  min-width: 80vw;
  display: block;
  transition: color .16s;
}
.mobile-nav a:hover { color: var(--accent); }

/* Show hamburger ONLY on mobile */
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO AND SECTION STYLES --- */
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
  border: none;
}

.feature-grid,
.card-container,
.features,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 300px;
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px rgba(32,49,59,.14);
  background: #f0f6fa;
}
.feature-grid img {
  max-width: 42px;
  margin-bottom: 10px;
}

.card-container {
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s;
  padding: 24px 18px;
}
.card:hover {
  box-shadow: 0 8px 34px 0 rgba(32,49,59,0.15);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--gray-soft);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px 0 rgba(32,49,59,0.05);
  margin-bottom: 24px;
  max-width: 600px;
  color: var(--primary);
  font-size: 1.08rem;
  transition: box-shadow .15s, background .15s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
  letter-spacing: .2px;
}
.testimonial-card:hover {
  background: #e9eef1;
  box-shadow: 0 6px 26px rgba(32,49,59,0.10);
}

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

.faq-accordion > div {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--gray-soft);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(32,49,59,0.05);
  cursor: pointer;
  transition: box-shadow 0.16s;
}
.faq-accordion > div:hover {
  box-shadow: 0 8px 30px rgba(32,49,59,0.16);
  background: #f4f7fa;
}
.faq-accordion h3 {
  margin-bottom: 7px;
}

ul, ol {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 7px;
  position: relative;
}
ul li:before {
  content:'\2022';
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
ol li {
  list-style-type: decimal;
  margin-left: 1em;
}
ul li strong, ol li strong {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 18px 24px 18px;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 5px;
  padding: 4px 10px;
  transition: background 0.16s;
}
.footer-nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.98rem;
  color: var(--gray-light);
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.footer-branding img {
  max-height: 30px;
}
.footer-branding span {
  color: var(--secondary);
  font-size: 0.95rem;
  opacity: 0.88;
}

/* ----- COOKIE CONSENT BANNER & MODAL ----- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120px);
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 95%;
  max-width: 450px;
  z-index: 9000;
  padding: 26px 32px 22px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.4s cubic-bezier(.77,.2,.25,1);
  font-size: 1rem;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 8px 21px;
  border: none;
  cursor: pointer;
  background: var(--gray-soft);
  color: var(--primary);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
  margin: 0;
  box-shadow: none;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #395367;
}
.cookie-btn.reject {
  background: var(--gray-soft);
  color: var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #e7e7e7;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #e1c29b;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 9100;
  inset: 0;
  background: rgba(32,49,59,0.60);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px 0 rgba(32,49,59,0.18);
  min-width: 340px;
  max-width: 95vw;
  padding: 40px 34px 34px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--primary);
  font-size: 1rem;
  animation: cookieModalIn .36s cubic-bezier(.77,.2,.25,1);
}
@keyframes cookieModalIn {
  0% {transform: scale(.92) translateY(24px); opacity:0;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--gray-soft);
}
.cookie-modal h3 {
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: var(--gray-soft);
  position: relative;
  flex-shrink: 0;
}
.cookie-toggle input {
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}
.cookie-toggle .slider {
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 100%;
  border-radius: 14px;
  background: var(--gray-soft);
  transition: background 0.13s;
}
.cookie-toggle input:checked + .slider {
  background: var(--primary);
}
.cookie-toggle .knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%; background: var(--white);
  transition: left 0.13s, background 0.13s;
}
.cookie-toggle input:checked + .slider .knob {
  left: 18px;
  background: var(--accent);
}
.cookie-category.essential label {
  opacity: .7;
  font-style: italic;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.55;
  pointer-events: none;
}

/* ----- ANIMATIONS ----- */
.cta-btn, .cookie-btn {
  transition: background 0.2s, color 0.2s, transform 0.13s, box-shadow 0.13s;
}

section, .content-wrapper, .card, .testimonial-card {
  transition: box-shadow 0.16s, background 0.16s;
}


/* ------------- RESPONSIVE DESIGN ------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 45vw;
    padding: 20px 10px;
  }
  .content-wrapper {
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .section {
    padding: 22px 7px;
    margin-bottom: 38px;
    gap: 18px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  footer {
    padding: 24px 6px 12px 6px;
    font-size: 0.95rem;
    gap: 12px;
    margin-top: 38px;
  }
  nav {
    display: none;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 5px;
  }
  .cookie-banner {
    padding: 18px 10px;
    min-width: min(98vw, 340px);
  }
  .cookie-modal {
    padding: 18px 5vw 18px 5vw;
    min-width: 0; max-width: 99vw;
  }
}

/* Utility */
.text-center {text-align: center;}
.align-center {align-items: center;}
.hidden {display: none !important;}

/* --- GENERAL ACCESSIBILITY & SELECTION --- */
::selection { background: var(--accent); color: var(--primary); }

/* --- OVERRIDES FOR ACCESSIBILITY --- */
.testimonial-card, .faq-accordion > div, .card {
  color: #10161c;
  background: var(--gray-soft);
}

/* --- Z-INDEX LAYERING FOR HEADER & MENU --- */
header {z-index: 103;}
.mobile-menu {z-index: 200;}
.cookie-banner {z-index: 9000;}
.cookie-modal-overlay {z-index: 9100;}


/* ---- OVERRIDES FOR BROWSER COMPATIBILITY ---- */
:root {
  --font-display: Montserrat, Arial, Helvetica, sans-serif;
  --font-body: Open Sans, Arial, Helvetica, sans-serif;
}

/* End of CSS */
