/* RESET & BASE STYLES ------------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', serif;
  background-color: #F5F2ED;
  color: #1D2736;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #133E68;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4A025;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  line-height: 1.16;
  color: #133E68;
  margin-bottom: 0.45em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.lead {
  color: #3E4C5E;
  font-size: 1.25rem;
  margin-bottom: 1.2em;
  font-family: 'Roboto', serif;
}
strong {
  font-weight: 600;
}
p {
  margin-bottom: 1em;
}

/* Layout Containers ------------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.text-section {
  max-width: 740px;
}

/* Spacing rules (CRITICAL) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(29, 39, 54, 0.04);
}
.card-container,
.feature-grid,
.card-grid,
.card-list,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.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: flex-start;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #F8FAFC;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(29, 39, 54, 0.06);
  color: #1D2736;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 320px;
  border-left: 5px solid #F4A025;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*  HEADER ------------------------------------------------- */
header {
  background: #FAF7F1;
  border-bottom: 1px solid #E6E2DC;
  min-height: 68px;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  min-height: 70px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 42px;
  width: auto;
  margin-right: 3px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', serif;
  color: #133E68;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.3s;
}
nav a:hover, nav a:focus {
  color: #F4A025;
  border-bottom: 2px solid #F4A025;
}
.cta-btn {
  font-family: 'Montserrat', serif;
  background: #F4A025;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 160, 37, 0.09);
  margin-left: 24px;
  transition: background 0.22s, box-shadow 0.22s, color 0.22s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #133E68;
  color: #F4A025;
  box-shadow: 0 4px 18px 0 rgba(19, 62, 104, 0.09);
}

/* Mobile Nav Button */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #133E68;
  display: none;
  cursor: pointer;
  margin-left: 18px;
  padding: 6px 10px;
  border-radius: 18px;
  transition: background 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #E6E2DC;
}

/*  MOBILE NAVIGATION ------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 28px 16px 22px;
  box-shadow: 0 2px 16px rgba(29,39,54,0.12);
  transition: transform 0.35s cubic-bezier(.86,.01,.31,.96);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #133E68;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 5px 5px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:active {
  background: #E6E2DC;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.12rem;
  color: #133E68;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 0 8px 6px;
  border-bottom: 1px solid #EBE7E1;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FAE9CE;
  color: #F4A025;
}
/* Responsive nav display rules */
@media (max-width: 996px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 997px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/*  HERO SECTIONS ---------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section .container {
  padding: 0 20px;
}
section:nth-child(even) {
  background: #FAF7F1;
}

/*  FEATURES / CARDS / UTILS ---------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(19,62,104,0.04);
  padding: 20px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
  transition: box-shadow 0.18s, border-color 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px 0 rgba(19,62,104,0.09);
  border-left: 5px solid #F4A025;
}
.feature-grid img {
  height: 44px;
  margin-bottom: 7px;
}

/*  TESTIMONIALS ----------------------------------- */
.testimonial-list {
  gap: 24px;
  flex-wrap: wrap;
  display: flex;
  margin-top: 28px;
}
.testimonial-card {
  background: #F1F6FA;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(19,62,104,0.11);
  border-left: 5px solid #F4A025;
  color: #133E68;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  padding: 20px 28px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
  transition: box-shadow 0.18s, border-color 0.21s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(19,62,104,0.14);
  border-left: 5px solid #133E68;
}
.testimonial-card strong {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: #F4A025;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/*  LISTS with ICON -------------------------------------------- */
ul li, ol li {
  margin-bottom: 0.8em;
  font-size: 1.05rem;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img, ol li img {
  margin-top: 2px;
  min-width: 19px;
  height: 19px;
}

/*  SOCIAL LINKS ----------------------------------- */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  padding: 4px;
  background: transparent;
  transition: background 0.17s;
}
.social-links a:hover {
  background: #F4A02522;
}
.social-links img {
  width: 28px;
  height: 28px;
  display: block;
}

/* FOOTER ----------------------------------- */
footer {
  background: #F8FAFC;
  border-top: 1px solid #E6E2DC;
  padding-top: 36px;
  padding-bottom: 34px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 4px;
}
.footer-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: #1D2736;
  transition: color 0.17s;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4A025;
  border-bottom: 1px solid #F4A025;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
  color: #1D2736;
  font-size: 1rem;
  align-items: center;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  display: block;
}
.brand-foot {
  margin-top: 10px;
}
.brand-foot img {
  height: 34px;
  width: auto;
}

/* UTIL: BUTTONS, EFFECTS, SHADOWS ------------------- */
button, .cta-btn, .btn, input[type='submit'] {
  outline: none;
  box-shadow: none;
  transition: background .18s, color .18s, box-shadow .19s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #133E68;
}

/* Animations */
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .23s, background .18s, border-color .18s, color .21s, transform .21s;
}
.cta-btn:active {
  transform: scale(0.97);
}

/* COOKIE CONSENT BANNER ----------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #fff;
  border-top: 1px solid #E6E2DC;
  box-shadow: 0 -2px 12px rgba(19,62,104,0.06);
  padding: 24px 20px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpBanner 0.5s ease;
}
@keyframes slideUpBanner {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner__text {
  max-width: 600px;
  color: #1D2736;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  border-radius: 19px;
  padding: 8px 26px;
  font-size: 1rem;
  border: 1px solid #133E68;
  background: #F8FAFC;
  color: #133E68;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #133E68;
  color: #fff;
  border-color: #133E68;
  font-weight: 700;
}
.cookie-btn.accept:hover { background: #0c2842; }
.cookie-btn.reject {
  color: #F4A025;
  border-color: #F4A025;
  background: #FEF5E8;
  font-weight: 600;
}
.cookie-btn.reject:hover {
  background: #F4A025;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #133E68;
}
.cookie-btn.settings:hover {
  background: #F1F6FA;
}

/* COOKIE MODAL ------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,39,54,0.46);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.3s;
}
@keyframes fadeInCookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(19,62,104,0.19);
  max-width: 420px;
  width: 94vw;
  padding: 38px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: riseInCookieModal 0.32s;
}
@keyframes riseInCookieModal {
  from { transform: translateY(66px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 16px;
}
.cookie-modal-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EBE7E1;
  padding-bottom: 8px;
}
.cookie-modal-cat strong {
  font-family: 'Montserrat', serif;
  color: #133E68;
}
.cookie-modal-toggle {
  width: 44px;
  height: 26px;
  background: #F1F6FA;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  border: 1px solid #D9D9D9;
  transition: background 0.14s;
}
.cookie-modal-toggle[aria-checked="true"] {
  background: #F4A025;
  border-color: #F4A025;
}
.cookie-modal-toggle .switch {
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.23s;
  box-shadow: 0 1px 3px rgba(19,62,104,0.13);
}
.cookie-modal-toggle[aria-checked="true"] .switch {
  left: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 13px;
  border: none;
  background: transparent;
  font-size: 1.45rem;
  color: #B7B3AC;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .modal-close:hover {
  color: #133E68;
}

/* RESPONSIVE/MOBILE QUERIES ----------------------------- */
@media (max-width: 1180px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 760px;
  }
  .feature-grid,
  .testimonial-list,
  .card-container,
  .card-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.05rem; }
  .lead { font-size: 1.03rem; }
  section, .section {
    padding: 22px 0 28px 0;
    margin-bottom: 36px;
    border-radius: 12px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 99vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card { min-width: 98vw; max-width: 98vw; padding: 18px; }
  .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 14px 14px 13px 14px;
    border-radius: 11px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 13px;
  }
  .footer-nav, .footer-contact, .social-links {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 545px) {
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  header .container, footer .container {
    padding: 0 2px;
  }
  .card, .testimonial-card, .cookie-modal {
    min-width: 96vw;
    max-width: 98vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .cookie-banner {
    padding: 13px 2vw 12px 2vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .cookie-modal {
    padding: 23px 5vw 20px 5vw;
    min-width: 98vw;
  }
}

/* Hide visually but keep accessible */
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute;
}

/* Accessibility: Focus ring for keyboard nav */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #133E68;
  outline-offset: 2px;
}

::selection {
  background: #F4A02544;
}

/* Brand font-faces fallback (optional): Monserrat & Roboto CDN should be loaded in HTML */
