/* ===== 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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  background: #FAF3ED;
  color: #215273;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

a {
  color: #215273;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #60A29B;
  outline: none;
}

ul, ol {
  margin-left: 24px;
}

strong {
  font-weight: 600;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #215273;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.15;
}
h2 {
  font-size: 2rem;    /* 32px */
  line-height: 1.2;
  margin-top: 32px;
}
h3 {
  font-size: 1.5rem;  /* 24px */
}
h4 {
  font-size: 1.25rem; /* 20px */
}
h5, h6 {
  font-size: 1rem;
}
p, li, dd {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #215273;
}

/* ===== CONTAINERS and LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 18px 0 rgba(33,82,115,0.08), 0 1.5px 3px 0 rgba(96,162,155,0.04);
}

/* ===== HERO ===== */
.hero {
  background: #FAF3ED;
  padding: 48px 0 36px 0;
  margin-bottom: 40px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 16px 0 rgba(33,82,115,0.07);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 20px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(96,162,155,0.07);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  transition: color 0.18s, border-bottom 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #60A29B;
  border-bottom: 2px solid #60A29B;
}

.cta-primary {
  background-color: #215273;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  font-size: 1.15rem;
  margin-left: 24px;
  transition: background 0.17s, box-shadow 0.22s, color 0.17s;
  box-shadow: 0 2px 8px 0 rgba(33,82,115,0.07);
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-primary:active {
  top: 1px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #60A29B;
  color: #215273 !important;
  box-shadow: 0 4px 18px 0 rgba(96,162,155,0.11);
  outline: none;
}

header img {
  height: 48px;
  transition: filter 0.2s;
}
header img:hover {
  filter: brightness(0.94);
}

button, .cta-primary {
  font-family: inherit;
  outline: none;
}
button {
  background: none;
  border: none;
  color: #215273;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.18s;
}
button:focus {
  color: #60A29B;
  outline: 2px solid #60A29B;
  outline-offset: 2px;
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: #60A29B;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  box-shadow: 0 1.5px 6px 0 rgba(33,82,115,0.10);
  border: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 110;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #215273;
  color: #fff;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav, .cta-primary {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.7,.12,.15,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 0 0;
  font-size: 2rem;
  color: #215273;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #60A29B;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0 0 0;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #215273;
  padding: 14px 8px;
  border-radius: 12px;
  transition: background 0.14s, color 0.18s;
  box-sizing: border-box;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #FAF3ED;
  color: #60A29B;
}
@media (max-width: 450px) {
  .mobile-nav {
    padding: 0 12px;
  }
}

/* ===== MAIN & SECTIONS ===== */
main > section {
  margin-bottom: 60px;
}
section {
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #215273;
  font-size: 1rem;
}
.text-section img {
  height: 22px;
  margin-right: 8px;
}

.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: 20px;
  }
}

/* ===== CARD & TESTIMONIALS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(33,82,115,0.07), 0 1px 3px 0 rgba(96,162,155,0.05);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  max-width: 330px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffbe7;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2.5px 8px 0 rgba(215,155,55,0.11), 0 1px 2px 0 rgba(33,82,115,0.03);
}
.testimonial-card strong {
  color: #215273;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.testimonial-card img {
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

/* High contrast for testimonial text on light background */
.testimonial-card div:nth-child(2) {
  color: #215273;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.testimonial-card > div:last-child {
  color: #FDC266;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-container, .testimonial-container {
  margin-bottom: 24px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 14px;
  margin-bottom: 20px;
  min-width: 200px;
  box-shadow: 0 1.5px 8px rgba(33,82,115,0.05);
}

/* ===== FOOTER ===== */
footer {
  background: #F8E6D6;
  padding: 42px 0 18px 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -1.5px 8px rgba(33,82,115,0.05);
  color: #215273;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #215273;
  opacity: 0.92;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff0e4;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #215273;
}
.footer-contact img {
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-brand img {
  height: 42px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 26px 0 12px 0;
    border-radius: 18px 18px 0 0;
  }
  footer .container {
    padding: 0 10px;
  }
}

/* ===== LISTS & DL for Q&A ===== */
ul, ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
dt {
  font-weight: 600;
  color: #215273;
  margin-bottom: 8px;
  margin-top: 16px;
  font-size: 1.1rem;
}
dd {
  margin-left: 0;
  margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
button, .cta-primary {
  cursor: pointer;
  user-select: none;
  border: none;
  outline: none;
}

/* ===== SHADOWS & ROUNDED CORNERS: Universal ===== */
.section, .card, .feature-item, .testimonial-card {
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(33,82,115,0.06);
}

/* ===== TRANSITIONS, HOVERS ===== */
a, button, .cta-primary {
  transition: color 0.15s, background 0.15s, box-shadow 0.20s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 24px 0 rgba(33,82,115,0.11);
  transform: translateY(-2px) scale(1.016);
  transition: box-shadow 0.18s, transform 0.18s;
}
@media (hover: none) {
  .card:hover, .feature-item:hover {
    box-shadow: 0 2px 12px 0 rgba(33,82,115,0.13);
    transform: none;
  }
}

/* ===== COOKIES BANNER (FIXED BOTTOM) ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe7;
  border-top: 1.5px solid #ffd982;
  box-shadow: 0 -1.5px 16px 0 rgba(33,82,115,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 22px;
  z-index: 500;
  font-size: 1rem;
  color: #215273;
  transition: transform 0.30s cubic-bezier(.76,.22,.32,1);
  transform: translateY(120%);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  max-width: 340px;
  flex: 1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #215273;
  color: #fff;
  font-size: 1rem;
  border-radius: 26px;
  padding: 8px 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(33,82,115,0.05);
  margin: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cookie-btn.reject {
  background: #fff;
  color: #215273;
  border: 1.5px solid #215273;
}
.cookie-btn.settings {
  background: #FDF6F3;
  color: #215273;
  border: 1.5px solid #60A29B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #60A29B;
  color: #fff;
  outline: none;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FAF3ED;
  color: #215273;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FAF3ED;
  color: #215273;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(33,82,115,0.23);
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(33,82,115,0.16);
  min-width: 300px;
  max-width: 420px;
  width: 90%;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.3s cubic-bezier(.46,.55,.46,1.13);
}
@keyframes modalIn {
  from { transform: translateY(70px) scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.30rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #215273;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 11px;
  right: 16px;
  background: none;
  color: #215273;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 521;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  color: #60A29B;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FAF3ED;
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 10px;
  font-size: 1.07rem;
  color: #215273;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category label {
  font-weight: 600;
  user-select: none;
}
.cookie-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 38px; height: 22px;
  background: #ddd;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: #60A29B;
}
.cookie-toggle input[type="checkbox"]:disabled {
  background: #FFD982;
  opacity: 0.84;
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 18px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    max-width: 830px;
    padding: 0 14px;
  }
}
@media (max-width: 800px) {
  .section, main > section {
    padding: 30px 10px;
    margin-bottom: 40px;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.1rem; }
}
@media (max-width: 600px) {
  .section, main > section {
    padding: 16px 6px;
    margin-bottom: 32px;
    border-radius: 11px;
  }
  .testimonial-card {
    padding: 14px 10px;
  }
  .card, .feature-item {
    padding: 14px 6px;
    border-radius: 9px;
  }
}
@media (max-width: 670px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.20rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 1rem; }
  .hero .content-wrapper {
    max-width: 98vw;
  }
  .cta-primary {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .footer-brand img {
    height: 30px;
  }
}

/* ===== Z-INDEX for overlays ===== */
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 500; }
.cookie-modal-overlay { z-index: 520; }


/* === UTILITIES & GENERAL === */
::-webkit-input-placeholder { color: #adc1cc; }
::-moz-placeholder { color: #adc1cc; }
:-ms-input-placeholder { color: #adc1cc; }
::placeholder { color: #adc1cc; }

[tabindex="-1"]:focus { outline: none !important; }

/* Nice focus rings for accessibility */
:focus-visible {
  outline: 2px solid #60A29B;
  outline-offset: 1px;
}

/* Selection coloring */
::selection {
  background: #60A29B44;
}

/* ===== Hide elements utility ===== */
.hidden {
  display: none !important;
}
