/* -------------------------
   RESET & NORMALIZE SECTION
   ------------------------- */
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,
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F9F6EE;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9F6EE;
  color: #2F2F2F;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #3972af;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #41B883;
}
ul, ol {
  margin: 0;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3972af;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ------------------------
   BASE LAYOUT/CONTAINERS
   ------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section base spacing */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(32, 74, 118, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FLEXBOX UTILITY CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 20px rgba(65, 184, 131, 0.11);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(65, 184, 131, 0.15);
  transform: translateY(-4px) scale(1.015);
}
.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;
  background: #FFEFD8;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(32,74,118,.11);
  margin-bottom: 20px;
  max-width: 500px;
  font-size: 1.125rem;
  color: #1a2e39;
  word-break: break-word;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3972af;
  font-size: 1rem;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F7FA;
  border-radius: 16px;
  padding: 24px;
  min-width: 200px;
}

/* -------------------
   HEADER + NAVIGATION
   ------------------- */
header {
  background: #3972af;
  color: #fff;
  width: 100%;
  padding: 0;
  box-shadow: 0 2px 12px rgba(32,74,118,0.08);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  max-height: 54px;
  border-radius: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 7px 16px;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: #41B883;
  color: #fff;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  background: #41B883;
  border-radius: 28px;
  padding: 13px 32px;
  font-size: 1.125rem;
  border: none;
  box-shadow: 0 2px 8px rgba(65, 184, 131, 0.11);
  cursor: pointer;
  gap: 6px;
  margin-left: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.20s;
}
.button-primary:hover, .button-primary:focus {
  background: #3972af;
  color: #fff;
  box-shadow: 0 5px 28px rgba(32,74,118,0.19);
  transform: scale(1.02);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #3972af;
  background: #fff;
  border-radius: 26px;
  padding: 12px 26px;
  font-size: 1rem;
  border: 2px solid #41B883;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 1.5px 4px rgba(65, 184, 131, 0.08);
  transition: background 0.16s, color 0.16s, border-color 0.19s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #F7FCF9;
  color: #41B883;
  border-color: #3972af;
}

/* Hamburger for mobile */
.mobile-menu-toggle {
  display: none;
  background: #41B883;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 18px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(65,184,131,.11);
  margin-left: 20px;
  transition: background 0.19s, color 0.15s;
  z-index: 103;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #3972af;
  color: #fff;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #3972af;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.5,0,0.3,1);
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 24px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2011;
  border-radius: 16px;
  margin-bottom: 16px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #41B883;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0 36px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 6px;
  border-radius: 15px;
  width: 100%;
  transition: background 0.16s, color 0.13s;
  text-align: left;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #41B883;
  color: #fff;
}

/* Hide navigation on mobile, show burger menu */
@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .button-primary {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
    gap: 12px;
  }
  section {
    padding: 22px 2vw;
    margin-bottom: 34px;
    border-radius: 16px;
  }
}
/* To prevent backdrop scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ---------------
   FOOTER SECTION
   --------------- */
footer {
  background: #3972af;
  color: #fff;
  padding-top: 36px;
  padding-bottom: 22px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 -2px 12px rgba(32,74,118,0.06);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo img {
  height: 54px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 14px;
}
footer nav a {
  color: #fff;
  opacity: 0.95;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.20s;
}
footer nav a:focus, footer nav a:hover {
  color: #41B883;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  margin-right: 8px;
  vertical-align: bottom;
  border-radius: 0;
}
.footer-copy {
  margin-top: 16px;
  font-size: 0.98rem;
  opacity: 0.76;
  letter-spacing: 0.01em;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-logo {
    margin-bottom: 8px;
  }
}

/* ---------------
   TYPOGRAPHY
   --------------- */
p, li, dd, dt {
  font-size: 1rem;
  color: #393E44;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
  color: #3972af;
}
dd {
  margin-left: 0;
  margin-bottom: 16px;
}

/* Lists */
ul, ol {
  margin-bottom: 14px;
  gap: 8px;
}

/* ---------------
   COMPONENTS: CARDS
   --------------- */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 20px rgba(65,184,131,0.10);
  padding: 32px 24px;
  transition: box-shadow 0.16s, transform 0.14s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
/* Features, cards, benefit lists */
.content-wrapper ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  padding-left: 2px;
}
.content-wrapper ol li {
  margin-bottom: 8px;
  padding-left: 2px;
}

/* images within feature/benefit lists */
.content-wrapper img[alt] {
  max-width: 44px;
  margin-bottom: 7px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
  border-radius: 10px;
}

/* Testimonial highlight on main and opinions pages */
.testimonial-card p {
  color: #1a2e39;
  font-style: italic;
}

/* ---------------
   SPACING & GAPS
   --------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .content-grid, .feature-item {
  gap: 20px;
}
/* As utility */
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }

/* -------------
   ANIMATIONS
   ------------- */
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, transform 0.12s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.18s, transform 0.13s;
}

/* -------------
   RESPONSIVENESS
   ------------- */
@media (max-width: 1024px) {
  section {
    padding: 30px 4vw;
  }
  .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 26px;
  }
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column !important;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 18px 10px;
    font-size: 0.98rem;
    border-radius: 12px;
    max-width: 100%;
  }
}
@media (max-width:480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  section, .section {
    padding: 11px 3vw;
    margin-bottom: 18px;
  }
  .footer-logo img, header img {
    max-height: 36px;
    height: 36px !important;
  }
}

/* -------------
   FORMS
   ------------- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1.4px solid #B6DCD0;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  color: #3972af;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.14s;
  box-shadow: 0 1.5px 8px rgba(65,184,131,0.06);
}
input:focus, textarea:focus, select:focus {
  border-color: #41B883;
  box-shadow: 0 2px 12px rgba(65,184,131,0.13);
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #3972af;
  font-family: 'Montserrat', Arial, sans-serif;
}
button, input[type="submit"] {
  cursor: pointer;
}

/* Hide default outline, use custom focus for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #41B883;
  outline-offset: 2px;
}

/* -------------
   COOKIE CONSENT BANNER & MODAL
   ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fffbe8;
  color: #3972af;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 24px rgba(32,74,118,0.12);
  padding: 22px 20px 20px 22px;
  gap: 18px;
  z-index: 3000;
  animation: slideUpCookie 0.4s ease;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); }
  to {   transform: translateY(0);   }
}
.cookie-banner p {
  flex: 1;
  margin-right: 12px;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .button-accept {
  background: #41B883;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 12px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(65,184,131,0.11);
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .button-accept:hover, .cookie-banner .button-accept:focus {
  background: #3972af;
  color: #fff;
}
.cookie-banner .button-reject {
  background: #fff;
  color: #3972af;
  border: 1.5px solid #F9C98A;
  border-radius: 16px;
  padding: 11px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1.5px 8px rgba(252,187,85,0.09);
  transition: border-color 0.17s, background 0.16s, color 0.14s;
}
.cookie-banner .button-reject:hover, .cookie-banner .button-reject:focus {
  border-color: #3972af;
  color: #3972af;
  background: #FFEDD5;
}
.cookie-banner .button-settings {
  background: #fff;
  color: #3972af;
  border: 1.5px solid #3972af;
  border-radius: 16px;
  padding: 11px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1.5px 8px rgba(32,74,118,0.09);
  transition: border-color 0.17s, background 0.16s, color 0.14s;
}
.cookie-banner .button-settings:hover, .cookie-banner .button-settings:focus {
  color: #fff;
  background: #41B883;
  border-color: #41B883;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 8px 13px 10px;
    gap: 10px;
    font-size: 0.97rem;
    border-radius: 14px;
  }
  .cookie-banner p {
    margin-bottom: 6px;
  }
  .cookie-banner .cookie-buttons {
    width: 100%;
    gap: 7px;
    flex-wrap: wrap;
  }
}
/* Cookie Modal (popup for settings) */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(32,74,118,0.22);
  justify-content: center;
  align-items: center;
  animation: cookieModalIn 0.32s ease;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fffbe8;
  color: #3972af;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(252,187,85,0.12);
  max-width: 436px;
  width: 94vw;
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieContentIn 0.28s cubic-bezier(0.41,0,0.25,1);
  position: relative;
}
@keyframes cookieContentIn {
  from { transform: translateY(30px) scale(0.92); }
  to   { transform: translateY(0) scale(1); }
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cookie-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #3972af;
  font-size: 1.85rem;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 10px;
  margin-left: 14px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFEDD5;
  color: #41B883;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 1rem;
  border: 1.2px solid #F3DBC1;
  box-shadow: 0 1px 4px rgba(252,187,85,0.04);
}
.cookie-category label {
  flex-shrink: 0;
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"]:disabled + span {
  opacity: 0.55;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions button {
  border-radius: 16px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #41B883;
  color: #fff;
  border: none;
  margin-left: 2px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-actions button:last-child {
  background: #fff;
  color: #3972af;
  border: 1.2px solid #3972af;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #3972af;
  color: #fff;
  border-color: #41B883;
}
@media (max-width:500px) {
  .cookie-modal .cookie-modal-content {
    padding: 20px 3vw 16px 3vw;
    border-radius: 12px;
  }
  .cookie-category label {
    font-size: 0.97rem;
  }
}

/* -------------
   MISC & OVERRIDES
   ------------- */
::-webkit-input-placeholder { color:#8594ad; opacity:1; }
::-moz-placeholder { color:#8594ad; opacity:1; }
:-ms-input-placeholder { color:#8594ad; opacity:1; }
::placeholder { color:#8594ad; opacity:1; }

/* Hidden visually but accessible */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); white-space: nowrap;
}

/* ---------------
   PRINT (optional)
   --------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .section { background: none !important; box-shadow: none !important; color: #222; }
}
