/* RESET & BASELINE -------------------------------------------------------- */
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 {
  font-size: 16px;
  box-sizing: border-box;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #D9DDD6 0%, #fff 100%);
  color: #1A1B20;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #235A5C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFCA77;
}

/* FONT IMPORTS (using Google Fonts) ---------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #235A5C;
  margin-bottom: 12px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

/* Typography */
p, li, ul, strong {
  font-size: 1rem;
  color: #31353C;
}
strong { font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
  p, li { font-size: 0.98rem; }
}

/* CORE LAYOUT WRAPPERS ---------------------------------------------------------*/
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(35,90,92,0.05);
}

/* FLEXBOX CONTAINERS -----------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(35,90,92,0.07);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,90,92,0.15);
}
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(35,90,92,0.09);
  min-width: 260px;
  max-width: 440px;
  color: #1A1B20;
}
.testimonial-card p {
  color: #1A1B20;
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-card > div {
  font-size: 1rem;
  color: #235A5C;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* RESPONSIVE: FLEX DIRECTION -----------------------------------------*/
@media (max-width: 768px) {
  .content-grid,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .card-container {
    gap: 18px;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* HEADER & MAIN NAVIGATION --------------------------------------------*/
header {
  background: linear-gradient(98deg, #D9DDD6 55%, #FFCA77 240%);
  box-shadow: 0 2px 18px 0 rgba(35,90,92,0.07);
  position: relative;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.main-nav ul li a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #235A5C;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: #fff;
  background: #235A5C;
}
.btn-primary {
  background: linear-gradient(100deg, #FFCA77 60%, #FFDC95 100%);
  color: #235A5C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 32px;
  border-radius: 24px;
  font-size: 1.12rem;
  box-shadow: 0 4px 15px 0 rgba(255,202,119,0.13);
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.22s, color 0.15s, box-shadow 0.16s;
  display: inline-block;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(100deg, #235A5C 10%, #FFCA77 80%);
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(35,90,92,0.12);
}

/* HIDE MAIN NAV & BUTTON ON MOBILE, burger control */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1020px) {
  .main-nav ul {
    gap: 10px;
  }
  .main-nav { gap: 10px; }
}
@media (max-width: 900px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    background: #235A5C;
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 12px;
    padding: 4px 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 60;
    position: absolute;
    top: 16px;
    right: 24px;
    box-shadow: 0 2px 12px 0 rgba(35,90,92,0.08);
    transition: background 0.21s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #FFCA77;
    color: #235A5C;
  }
}

/* MOBILE MENU (SLIDE-IN) ----------------------------------------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(100deg, #235A5C 70%, #FFCA77 200%);
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  z-index: 80;
  padding: 20px 32px 32px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 8px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFCA77;
  color: #235A5C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0 12px 8px;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
  margin: 0 0 2px 0;
  outline: none;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFCA77;
  background: rgba(255,202,119,0.10);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* HERO STYLES -------------------------------------------------------*/
section:first-of-type {
  background: linear-gradient(107deg, #FFCA77 8%, #D9DDD6 100%);
  box-shadow: 0 2px 18px 0 rgba(35,90,92,0.04);
  margin-top: 0;
  margin-bottom: 60px;
  border-radius: 0 0 34px 34px;
}
section:first-of-type h1 {
  color: #235A5C;
  font-size: 2.8rem;
  margin-bottom: 8px;
  margin-top: 8px;
}
section:first-of-type p {
  color: #1A1B20;
  font-size: 1.18rem;
  margin-bottom: 16px;
  font-weight: 400;
}
section:first-of-type .btn-primary {
  margin-top: 8px;
}
@media (max-width: 768px) {
  section:first-of-type { border-radius: 0 0 18px 18px; }
  section:first-of-type h1 { font-size: 2.1rem; }
}

/* FEATURES AND SERVICES ----------------------------------------------*/
.content-wrapper ul {
  list-style: none inside;
  padding-left: 0;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-radius: 8px;
  color: #235A5C;
  background: rgba(35,90,92,0.045);
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 400;
  transition: background 0.15s;
}
.content-wrapper ul li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.content-wrapper ul li strong {
  color: #235A5C;
  font-weight: 700;
}
.content-wrapper ul li span {
  color: #FFCA77;
  font-weight: 600;
  margin-left: 10px;
}
.content-wrapper ul li a {
  margin-left: 10px;
  color: #235A5C;
  font-weight: 700;
  border-bottom: 1.5px solid #FFCA77;
  transition: color 0.14s, border 0.14s;
  font-size: 0.98rem;
}
.content-wrapper ul li a:hover {
  color: #FFCA77;
  border-color: #235A5C;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  padding: 18px 18px 16px 18px;
  background: #F4F5F2;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(35,90,92,0.05);
  margin-bottom: 0;
}
.faq-list strong { color: #235A5C; font-size: 1.08rem; display: block; margin-bottom: 5px; }
.faq-list p { color: #31353C; font-size: 0.99rem; }

/* TEXT SECTION -------------------------------------------------------*/
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 7px #d9ddd6cc;
  margin-bottom: 16px;
}
.text-section p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #235A5C;
}
.text-section img {
  width: 20px;
  height: 20px; 
}

.text-section ul {
  margin-top: 6px;
  margin-bottom: 4px;
  list-style: disc inside;
}
.text-section ul li {
  background: none;
  color: #235A5C;
  padding: 5px 0;
  gap: 0;
}

/* FOOTER -------------------------------------------------------------*/
footer {
  background: #235A5C;
  color: #fff;
  padding: 0 0 20px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 10px 0 rgba(35,90,92,0.09);
}
footer .container {
  padding-top: 38px;
  padding-bottom: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 8px 0 0 0;
}
.footer-nav a {
  color: #FFCA77;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.89;
  margin-top: 8px;
}
.footer-contact span {
  margin-right: 8px;
}
.footer-copyright {
  font-size: 0.91rem;
  color: #fff;
  opacity: 0.65;
  margin-top: 4px;
}
footer a img {
  max-width: 56px;
  margin-bottom: 10px;
  margin-top: 2px;
}
@media (max-width: 768px) {
  footer .container { padding-top: 18px; }
  .footer-nav { gap: 8px; flex-wrap: wrap; }
}

/* BUTTON & LINK EFFECTS ----------------------------------------------*/
button, .btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  border: none;
  outline: none;
}
button, .btn-primary {
  transition: background 0.18s, box-shadow 0.18s, color 0.15s;
  cursor: pointer;
}

/* CARD VISUAL HIERARCHY ----------------------------------------------*/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* SECTION SPACING & CARD GRID ----------------------------------------*/
section {
  margin-bottom: 60px;
  padding: 0;
}
/* Only apply .section spacing if defined in templates */

/* SPACING & FLEXBOX GAP ENFORCEMENT ----------------------------------*/
section, .faq-list > div, .testimonial-card, .card, .feature-item, .text-section {
  margin-bottom: 20px;
}
section:last-of-type { margin-bottom: 0; }

@media (max-width: 1020px) {
  .container { max-width: 99vw; padding: 0 8px; }
}

/* TRANSITIONS & MICROINTERACTIONS -------------------------------------*/
a, .btn-primary, button, .testimonial-card {
  transition: background 0.2s, color 0.13s, box-shadow 0.2s, border 0.13s, transform 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 8px 28px rgba(35,90,92,0.13);
}
.card:hover {
  transform: translateY(-2px) scale(1.012);
}
li:hover, .feature-item:hover {
  background: #FFCA7722;
}

/* COOKIE CONSENT BANNER ----------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(35,90,92,0.19);
  border-top: 3px solid #FFCA77;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 8px 20px 12px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.8,0,.2,1);
}
.cookie-consent-banner.hide {
  transform: translateY(150%);
  opacity: 0;
}
.cookie-consent-banner__text {
  max-width: 600px;
  color: #235A5C;
  font-size: 0.99rem;
}
.cookie-consent-banner__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 700;
  border: none;
  margin-left: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(255,202,119,0.11);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.12s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: linear-gradient(100deg, #FFCA77 60%, #FFDC95 100%);
  color: #235A5C;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #235A5C;
  color: #fff;
}
.cookie-btn.reject {
  background: #D9DDD6;
  color: #235A5C;
  font-weight: 600;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFCA77;
  color: #235A5C;
}
.cookie-btn.settings {
  background: none;
  color: #235A5C;
  text-decoration: underline;
  font-weight: 700;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: #FFCA77;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 20px 5px 18px 6px;
    font-size: 0.96rem;
  }
}

/* COOKIE MODAL ------------------------------------------------------*/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,90,92,0.22);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 rgba(35,90,92,0.24);
  max-width: 400px;
  width: 92vw;
  padding: 32px 22px 22px 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: cookieModalIn 0.32s ease;
}
@keyframes cookieModalIn {
  from { transform: translateY(50px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  color: #235A5C;
  margin-bottom: 6px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 4px 0;
}
.cookie-modal__category label {
  color: #235A5C;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 13px;
  background: #D9DDD6;
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  margin-left: 8px;
  transition: background 0.2s;
}
.cookie-toggle[aria-checked="true"] {
  background: #FFCA77;
}
.cookie-toggle__slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.19s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle__slider {
  left: 20px;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 4px;
}
.cookie-modal-close {
  background: none;
  color: #235A5C;
  border: none;
  font-size: 1.4rem;
  position: absolute;
  top: 12px; right: 12px;
  cursor: pointer;
  opacity: 0.65;
  transition: color 0.15s, opacity 0.17s;
  padding: 2px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FFCA77;
  opacity: 1;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 22px 8px 12px 8px; }
}

/* FORM & INTERACTIVE ELEMENTS ----------------------------------------*/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #F5F8F6;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #D9DDD6;
  color: #235A5C;
  margin-bottom: 16px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #FFCA77;
}

/* ACCESSIBILITY FOCUS -----------------------------------------------*/
a:focus-visible, .btn-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid #FFCA77;
  outline-offset: 2px;
}

/* VISUAL HIGHLIGHTS ------------------------------------------------*/
.section-highlight {
  background: linear-gradient(97deg, #D9DDD6 35%, #FFCA77 98%);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(255,202,119,0.09);
  padding: 24px 18px;
  margin-bottom: 22px;
}

/* PRINT CLEANUP ----------------------------------------------------*/
@media print {
  nav, .mobile-menu, .main-nav, header, footer, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body {
    background: #fff;
    color: #000;
  }
}
