/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #18324a;
  background: #F6F5F5;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #38A3A5;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22577A;
  margin-bottom: 18px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
p {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

button, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background .25s, color .18s, box-shadow 0.18s;
  outline: none;
}
.btn-primary {
  background: #22577A;
  color: #fff;
  font-weight:bold;
  box-shadow: 0 2px 12px rgba(34, 87, 122, 0.07);
}
.btn-primary:hover, .btn-primary:focus {
  background: #38A3A5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 163, 165, 0.13);
}
.btn-secondary {
  background: #fff;
  color: #22577A;
  border: 2px solid #22577A;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #38A3A5;
  color: #fff;
  border-color: #38A3A5;
  box-shadow: 0 4px 16px rgba(56, 163, 165, 0.13);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 3px 14px rgba(34, 87, 122, 0.04);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 20px;
}
header img {
  height: 48px;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 24px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FDE3A7;
  color: #22577A;
}

/* --- BURGER MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #FDE3A7;
  border: none;
  color: #22577A;
  font-size: 2.2rem;
  position: fixed;
  top: 18px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(70,60,20,0.09);
  z-index: 1041;
  transition: background .18s, color .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #38A3A5;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: #fffbe7;
  box-shadow: 0 4px 22px rgba(34, 87, 122, 0.09), 0 0 0 100vw rgba(34, 87, 122, 0.03);
  z-index: 1050;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FDE3A7;
  border: none;
  color: #22577A;
  font-size: 2rem;
  border-radius: 50%;
  align-self: flex-end;
  padding: 8px 14px 8px 14px;
  margin-bottom: 26px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(70,60,20,0.09);
  transition: background .14s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #38A3A5;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #22577A;
  border-radius: 24px;
  padding: 12px 10px 12px 0;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFEFD3;
  color: #38A3A5;
}

/* Hide main nav for mobile, show burger */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---- SECTIONS & SPACING ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 32px;
}
.content-wrapper {
  max-width: 920px;
  margin: 0 auto;
}
.hero-section {
  background: #fffbe7;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(255, 205, 91, .10);
  padding: 36px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.features-section ul,
.services-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-left: 0;
  align-items: flex-start;
  justify-content: flex-start;
}
.features-section ul li,
.services-section ul li {
  background: #fff;
  padding: 24px 22px 20px 20px;
  border-radius: 22px;
  box-shadow: 0 1px 10px rgba(34, 87, 122, 0.06);
  flex: 1 1 260px;
  min-width: 220px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.04rem;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .18s;
}
.features-section ul li img,
.services-section ul li img {
  width: 40px; height: 40px; margin-bottom: 6px;
}
.features-section ul li:hover,
.services-section ul li:hover {
  box-shadow: 0 4px 16px rgba(56, 163, 165, 0.11);
  transform: translateY(-4px) scale(1.02);
}
.services-section ul li span {
  display: inline-block;
  color: #38A3A5;
  font-weight: bold;
  margin-top: 8px;
}

.services-section a.btn-secondary {
  margin: 20px 0 0 0;
}

.cta-section {
  background: #FFF3E6;
  border-radius: 20px;
  text-align: center;
  padding: 34px 18px 28px;
  margin: 24px auto 0 auto;
  box-shadow: 0 2px 12px rgba(255, 208, 158, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(34, 87, 122, 0.09);
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  transition: box-shadow .17s, transform .17s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(255, 208, 158, 0.12);
  transform: scale(1.03);
}
.testimonial-card p,
.testimonial-card .client {
  color: #22577A;
  font-size: 1.09rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card .client {
  font-weight: 600;
  color: #38A3A5;
}
.testimonial-card .rating {
  color: #FFBE76;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: .08rem;
  margin-left: 10px;
}

/* --- FOOTER --- */
footer {
  background: #22577A;
  color: #fff;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
  box-shadow: 0 -2px 22px rgba(34, 87, 122, 0.12);
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 42px;
  justify-content: space-between;
  padding: 36px 0 24px 0;
}
.footer-logo img {
  height: 50px; filter: brightness(1.1);
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 285px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}
.footer-menu a {
  color: #fff;
  opacity: 0.93;
  padding-left: 0;
  border-radius: 18px;
  transition: color .15s, background .15s;
  font-weight: 600;
}
.footer-menu a:hover {
  color: #38A3A5;
  background: #fffbe7;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 10px;
}
.footer-social a img {
  width: 32px; height: 32px;
  filter: brightness(1.18) contrast(1.05);
  border-radius: 14px;
  background: #fffbe7;
  padding: 4px;
  transition: filter .13s, background .13s;
}
.footer-social a:hover img {
  filter: brightness(1.05) sepia(.23) hue-rotate(20deg);
  background: #FFBE76;
}

/* --- Additional Utility / Content Layouts --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(34, 87, 122, 0.07);
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
  transition: box-shadow .17s, transform .16s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(56, 163, 165, 0.11);
  transform: scale(1.019);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(34, 87, 122, 0.04);
  padding: 18px;
  margin-bottom: 20px;
}

.text-section {
  margin-bottom: 20px;
  font-size: 1.06rem;
}

.legal-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(34, 87, 122, 0.04);
  padding: 32px 22px 28px;
}
.confirmation-section {
  background: #fffbe7;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(255, 208, 158, 0.12);
  padding: 44px 32px 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fffbe7;
  color: #22577A;
  box-shadow: 0 -2px 16px rgba(34, 87, 122, 0.075), 0 -4px 24px rgba(255, 190, 118, 0.04);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 18px 18px 18px;
  font-size: 1.07rem;
  animation: cookieFadeIn .55s ease;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(56,163,165,.08);
  margin-bottom: 0;
}
.cookie-banner .accept {
  background: #38A3A5;
  color: #fff;
  transition: background .16s, box-shadow .13s;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #22577A;
}
.cookie-banner .settings {
  background: #fff;
  color: #22577A;
  border: 2px solid #38A3A5;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #38A3A5;
  color: #fff;
}
.cookie-banner .reject {
  background: #FDE3A7;
  color: #22577A;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffe0b2;
  color: #22577A;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fffbe7;
  border-radius: 24px;
  min-width: 310px;
  max-width: 96vw;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(34, 87, 122, 0.24);
  padding: 36px 24px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 22px;
  animation: popOpen .38s cubic-bezier(.7,-0.34,.38,1.52);
}
.cookie-modal.open {
  display: flex;
}
@keyframes popOpen {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.91); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1);
  }
}
.cookie-modal h3 {
  font-size: 1.33rem;
  color: #22577A;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 11px 0;
  font-size: 1.06rem;
}
.cookie-modal .cookie-toggle {
  accent-color: #38A3A5;
  width: 22px;
  height: 22px;
}
.cookie-modal .category-essential label, .cookie-modal .category-essential span {
  color: #aaa !important;
}
.cookie-modal button {
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-modal .close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  color: #22577A;
  font-size: 1.85rem;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  border: none;
  transition: color .12s;
}
.cookie-modal .close:hover {
  color: #38A3A5;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .container { max-width: 100vw; padding: 0 12px; }
  .footer-wrapper, .content-wrapper { padding-right: 0; padding-left: 0; }
  .hero-section, .cta-section, .confirmation-section, .legal-section {
    padding-left: 10px; padding-right: 10px;
  }
  .footer-menu, .footer-contact, .footer-social {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 0 18px 0;
  }
  .main-nav { flex-wrap: wrap; gap: 18px; }
  .hero-section, .legal-section, .cta-section, .confirmation-section {
    padding: 24px 8px 20px;
  }
  section {
    margin-bottom: 40px;
    padding: 28px 5px;
  }
  h1 { font-size: 2rem; margin-bottom: 18px; }
  h2 { font-size: 1.36rem; margin-bottom: 11px; }
  h3 { font-size: 1.12rem; margin-bottom: 10px; }

  .features-section ul,
  .services-section ul,
  .testimonials-section,
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-section ul li,
  .services-section ul li,
  .testimonial-card, .card {
    min-width: unset;
    width: 100%;
  }
  .cta-section {
    border-radius: 14px;
    gap: 12px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .footer-logo img {
    height: 36px;
  }
  .cookie-banner {
    padding: 16px 4px 12px 4px;
    font-size: 0.96rem;
  }
  .cookie-modal {
    min-width: 210px;
    padding: 20px 7px 16px 7px;
  }
}

/* --- FORM ELEMENTS --- */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border: 1px solid #CCC8BE;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  border-color: #38A3A5;
  outline: none;
  box-shadow: 0 1px 10px rgba(56,163,165,0.07);
}

/* --- Microinteractions & Subtle Animations --- */
.btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal button {
  transition: background .18s, color .18s, transform .14s, box-shadow .15s;
}
.btn-primary:active, .btn-secondary:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(.97);
}

/* --- Additional Utilities --- */
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-none { display: none !important; }

/* --- WARM & FRIENDLY SPECIAL BUTTON SPACING --- */
.btn-primary, .btn-secondary {
  margin-top: 8px;
  margin-bottom: 8px;
}
/* --- ACCENTS, SHADOWS, ROUNDED --- */
section, .cta-section, .testimonial-card, .features-section ul li, .services-section ul li, .card {
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(245, 179, 70, 0.07), 0 1px 8px rgba(56, 163, 165, 0.03);
}

/* --- Visual Focus Indicator for Keyboard Navigation --- */
:focus-visible {
  outline: 2px solid #38A3A5;
  outline-offset: 2px;
  transition: outline .11s;
}

/* --- Brand Font Fallbacks --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  unicode-range: U+000-5FF;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  unicode-range: U+000-5FF;
  src: local('Open Sans'), local('OpenSans-Regular'), url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
}
