/* 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;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFF;
  color: #293346;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #293346;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus, a:hover {
  color: #FFBC4A;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: #293346;
}

h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
p, li, span, label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #293346;
}
strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 4px 16px 0 rgba(41,51,70,0.05);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.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: #FFF9F4;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(41,51,70,0.09);
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
  border: 1px solid #FFE6B7;
  max-width: 500px;
}
.testimonial-card p {
  color: #293346;
  font-size: 1.08rem;
  text-align: center;
}
.testimonial-card span, .testimonial-card strong {
  font-size: 1rem;
  color: #293346;
}
.testimonial-card img {
  height: 24px;
  width: 24px;
  display: inline-block;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  padding-left: 0;
  margin-bottom: 0;
}
li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
li img {
  height: 22px;
  width: 22px;
}

/* HEADER & NAVIGATION */
header {
  background: #FFF;
  border-bottom: 1px solid #E6E8EB;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 12px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  padding: 7px 18px;
  transition: background 0.23s, color 0.20s;
  background: none;
  color: #293346;
  position: relative;
}
nav a.cta {
  background: #FFBC4A;
  color: #293346;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px 0 rgba(255,188,74,0.13);
  padding: 10px 24px;
  margin-left: 6px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #FFAF20;
  color: #293346;
  box-shadow: 0 4px 16px 0 rgba(255,188,74,0.22);
}
nav a:hover, nav a:focus {
  color: #FFBC4A;
  background: #FFF5E0;
}
nav a.active {
  color: #FFBC4A;
}

header img {
  height: 46px;
  width: auto;
  border-radius: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: #FFBC4A;
  color: #293346;
  border: none;
  border-radius: 50%;
  padding: 11px 13px 12px 13px;
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(255,188,74,0.12);
  transition: background 0.15s, box-shadow 0.18s;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFAF20;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 249, 244, 0.96);
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.6,0,.4,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 32px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #293346;
  color: #FFBC4A;
  border: none;
  border-radius: 50%;
  font-size: 1.55rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 13px -3px rgba(41,51,70,0.17);
  z-index: 1301;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFBC4A;
  color: #293346;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 80px;
  width: 100%;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #293346;
  background: none;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.17s, color 0.16s;
  min-width: 220px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FFEDD0;
  color: #FFBC4A;
}

/* HERO, GENERIC SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: #FFF;
  box-shadow: 0 2px 16px 0 rgba(41,51,70,0.06);
}
section:last-child {
  margin-bottom: 0!important;
}

/* TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section h3 {
  font-size: 1.14rem;
  color: #B97A25;
  margin-bottom: 7px;
}
.text-section p {
  color: #364157;
  font-size: 1.01rem;
}
.text-section a {
  color: #FFBC4A;
  font-weight: 600;
  transition: color 0.13s;
}
.text-section a:hover, .text-section a:focus {
  color: #293346;
}

/* CALL TO ACTION BUTTONS */
.cta, a.cta, button.cta {
  display: inline-block;
  background: #FFBC4A !important;
  color: #293346 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(255,188,74,0.12);
  margin-top: 10px;
  transition: background 0.2s, color 0.17s, box-shadow 0.18s, transform 0.13s;
  text-align: center;
  outline: none;
}
.cta:hover, .cta:focus {
  background: #FFAF20 !important;
  color: #293346 !important;
  box-shadow: 0 4px 18px 0 rgba(255,188,74,0.21);
  transform: translateY(-2px) scale(1.04);
}

/* FOOTER */
footer {
  background: #FFF9F4;
  border-top: 1px solid #FFE6B7;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 18px;
  border-radius: 0 0 16px 16px;
}
footer img {
  height: 42px;
  margin-bottom: 8px;
  border-radius: 10px;
}
footer p {
  color: #293346;
  font-size: 0.97rem;
  margin-bottom: 0.4em;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: #293346;
  font-size: 0.99rem;
  border-radius: 5px;
  padding: 2px 7px;
  transition: background 0.14s, color 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #FFBC4A;
  background: #FFF1DB;
}
footer .social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-links a img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: box-shadow 0.22s, background 0.13s;
  background: #FFF;
  box-shadow: 0 2px 14px rgba(41,51,70,0.05);
}
.social-links a:hover img, .social-links a:focus img {
  box-shadow: 0 4px 19px 0 rgba(255,188,74,0.17);
  background: #FFEDD0;
}

/* SPACING & BREATH */
main {
  margin-bottom: 40px;
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 2000;
  background: #FFF9F4;
  border-top: 2px solid #FFBC4A;
  box-shadow: 0 -2px 18px 0 rgba(255,188,74,0.10);
  padding: 24px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: cookiebannerin .5s cubic-bezier(.5,0,.5,1);
}
.cookie-banner p {
  margin: 0 14px 0 0;
  color: #293346;
}
.cookie-banner button, .cookie-banner .cta {
  margin: 0 7px 0 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFBC4A;
  color: #293346;
  transition: background 0.16s, box-shadow 0.14s, color 0.12s;
  box-shadow: 0 1px 8px rgba(255,188,74,0.11);
  cursor: pointer;
  font-size: 1rem;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFAF20;
  color: #293346;
}

.cookie-banner .settings-btn {
  background: #293346;
  color: #FFBC4A;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #2E415F;
  color: #FFBC4A;
}
@keyframes cookiebannerin {
  from {transform: translateY(100px);opacity:0}
  to {transform: translateY(0);opacity:1}
}
/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41,51,70,0.16);
}
.cookie-modal-overlay.open {
  display: flex;
  animation: cookie-fadein .35s cubic-bezier(.6,0,.4,1);
}
@keyframes cookie-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FFF9F4;
  box-shadow: 0 4px 32px 0 rgba(41,51,70,0.13);
  border-radius: 22px;
  padding: 32px 26px 30px 26px;
  max-width: 400px;
  width: 96vw;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal h2 {
  font-size: 1.26rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #293346;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  background: #E6E8EB;
  border-radius: 12px;
  position: relative;
  transition: background 0.16s;
  cursor: pointer;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: #FFBC4A;
  border-radius: 50%;
  transition: transform 0.13s, background 0.11s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  transform: translateX(18px);
  background: #293346;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal button {
  padding: 10px 20px;
  border-radius: 999px;
  background: #FFBC4A;
  color: #293346;
  font-weight: 700;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-modal button.close {
  background: #293346;
  color: #FFBC4A;
}
.cookie-modal button.close:hover {
  background: #2E415F;
  color: #FFBC4A;
}
.cookie-modal button.accept:hover {
  background: #FFAF20;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .footer .content-wrapper,
  .content-grid,
  .card-container {
    gap: 12px;
  }
  .testimonial-card {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1rem; }
  section {
    margin-bottom: 38px;
    padding: 26px 8px;
    border-radius: 18px;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid, .card-container {
    gap: 8px;
  }
  .card {
    padding: 16px 9px;
    border-radius: 14px;
    margin-bottom: 13px;
  }
  .testimonial-card {
    padding: 13px 7px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    height: 62px;
    padding-left: 7px; padding-right: 7px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 9px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 7px 13px 7px;
    font-size: 0.99rem;
  }
  .cookie-modal {
    padding: 16px 8px 15px 8px;
    max-width: 96vw;
  }
}

/* ACCESSIBILITY & FOCUS STATES */
.cta:focus, .cookie-banner button:focus, .cookie-modal button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #FFBC4A;
  outline-offset: 2px;
}

/* SCROLLBAR (for browsers that support) */
::-webkit-scrollbar {
  width: 12px;
  background: #FFF9F4;
}
::-webkit-scrollbar-thumb {
  background: #FFE6B7;
  border-radius: 18px;
}

/* TRANSITION & MICRO-INTERACTIONS */
section, .card, .testimonial-card, .cta, .cookie-modal, .cookie-banner,
nav a, .footer-menu a, .social-links img, .cookie-switch-slider {
  transition: box-shadow 0.18s, background 0.18s, color 0.17s, border 0.13s, transform 0.13s;
}
section:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,188,74,0.12), 0 2px 20px 0 rgba(41,51,70,0.07);
  transform: translateY(-2px) scale(1.015);
}

/* MISC */
hr {
  border: 0;
  height: 1px;
  background: #E6E8EB;
  margin: 32px 0;
}

/* ENFORCE FLEXBOX */
/* Container elements (per requirements) */
.card-container,
.content-grid,
.section, /* Even if section is single, assure flex */
.content-wrapper,
.text-image-section,
.testimonial-card,
.feature-item,
footer .content-wrapper, .footer-menu, .social-links, .mobile-nav {
  display: flex !important;
  flex-wrap: wrap;
}
.text-image-section, .card-content {
  align-items: center;
}
.card-content {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* CRITICAL: Prevent Overlapping */
.card, .testimonial-card, section, .card-content {
  margin-bottom: 20px;
}
/* Ensure adequate spacing below each section on small screens */
@media (max-width: 768px) {
  .card, .testimonial-card, section {
    margin-bottom: 13px;
  }
}

/* Hide Mobile Menu when not open (override display: flex in base) */
.mobile-menu:not(.open) {
  display: none !important;
  pointer-events: none;
}

/* Always visible classes for utility/flexbox enforcement */
.flex {
  display: flex !important;
  flex-wrap: wrap;
}

/* END OF CSS */
