/* ==== CSS RESET & NORMALIZE ==== */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  background: #f6f8fc;
  color: #38526a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: #355063;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.14rem; font-weight: 600; }
p, ul, ol, li { margin: 0 0 12px 0; }
ul, ol { padding-left: 20px; }
a {
  color: #5a7d97;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #38526a; text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 10px; }
strong { font-weight: 600; color: #38526a; }

/* ===== CONTAINERS & LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffdfa;
  border-radius: 22px;
  box-shadow: 0 2px 8px 0 rgba(180, 173, 234, 0.08);
}

/* === FLEXBOX LAYOUTS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f9fbfe;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 10px 0 rgba(150, 152, 184, 0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 18px 0 rgba(163, 195, 228, 0.13);
  background: #f6f8fc;
}
.feature img {
  width: 46px; height: 46px; border-radius: 8px; background: #e3eaf4;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 14px 18px 10px 18px;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fbf8ff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(180, 173, 234, 0.09);
  padding: 26px 22px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 20px 0 rgba(190, 170, 214, 0.13);
  background: #f6f6fd;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  background: #f4f8fd;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(180, 173, 234, 0.10);
  margin-bottom: 20px;
  color: #2d3147;
  flex-direction: column;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #333958;
  line-height: 1.7;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #558; opacity: 0.83;
  font-style: italic;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
}

/* ====== HEADER, NAVIGATION & CTA ====== */
header {
  background: #e3eaf4;
  box-shadow: 0 2px 10px 0 rgba(163, 195, 228, 0.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 82px;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  padding: 7px 12px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #38526a;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ffe9a6;
  color: #191c24;
}
header .cta.primary {
  padding: 11px 25px;
  background: #ffe9a6;
  color: #37414d;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-left: 10px;
  box-shadow: 0 4px 16px 0 rgba(154, 188, 220, 0.11);
  border: none;
  transition: background 0.22s, color 0.19s, box-shadow 0.18s;
  cursor: pointer;
  outline: none;
  display: inline-block;
  letter-spacing: 0.01em;
}
header .cta.primary:hover, header .cta.primary:focus {
  background: #ffe166;
  color: #16193e;
  box-shadow: 0 8px 30px 0 rgba(154, 188, 220, 0.15);
}
header img[alt*="logo"] {
  height: 52px;
  width: auto;
  margin-right: 16px;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #526480;
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 98;
  cursor: pointer;
  padding: 5px 10px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #a5b4d6;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f9fafc;
  box-shadow: 0 0 30px 0 rgba(173, 195, 217, 0.21);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77,0.21,0.14,1.02);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 32px 28px;
  height: 100vh;
  width: 100%;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #38526a;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 5px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e3eaf4;
  outline: 2px solid #b1c5d7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #38526a;
  font-weight: 500;
  padding: 14px 0 10px 5px;
  border-radius: 5px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffe9a6;
  color: #2d3147;
}

/* Hide main nav & show burger on mobile */
@media (max-width: 900px) {
  .main-nav { display: none !important; }
  header .cta.primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .container { flex-wrap: nowrap; }
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
  header .cta.primary { display: inline-block !important; }
}


/* ====== HERO / SECTION TITLES ===== */
.subtitle {
  font-size: 1.2rem;
  color: #38526a;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ======= BUTTONS ====== */
.cta {
  display: inline-block;
  border: none;
  padding: 10px 26px;
  border-radius: 22px;
  background: #b1c5d7;
  color: #355063;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px 0 rgba(163, 195, 228, 0.12);
  transition: background 0.18s, color 0.14s, box-shadow 0.19s;
  margin-top: 16px;
  margin-bottom: 8px;
  outline: none;
}
.cta.primary {
  background: #ffe9a6;
  color: #2d3147;
}
.cta:hover, .cta:focus {
  background: #d4ebe5;
  color: #1b283a;
  box-shadow: 0 4px 18px 0 rgba(163, 195, 228, 0.23);
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffe166;
}

/* ========== FOOTER ========= */
footer {
  background: #e3eaf4;
  padding: 36px 0 20px 0;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -2px 12px 0 rgba(163, 195, 228,0.08);
  margin-top: 30px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 1.02rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #355063;
  opacity: 0.92;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #355063;
  text-decoration: underline;
}
.footer-contact {
  color: #38526a;
  opacity: 0.91;
  font-size: 0.96rem;
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .container { padding: 0 10px; }
  section {
    padding: 28px 5px;
    margin-bottom: 38px;
  }
  .feature-grid { flex-direction: column; gap: 18px; }
  .footer-nav,
  .footer-contact {
    margin-top: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card { padding: 17px 10px; }
  .card, .feature {
    padding: 18px 12px;
    min-width: unset;
    max-width: unset;
    flex: 1 1 100%;
  }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* ====== ACCESSIBLE FOCUS STATES ====== */
:focus-visible {
  outline: 2px solid #b1c5d7;
  outline-offset: 2px;
}

/* ====== TABLES, FORMS ====== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
  background: #f6f8fc;
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  border: none;
  padding: 10px 14px;
  text-align: left;
}
th {
  background-color: #e3eaf4;
  color: #38526a;
  font-family: 'Montserrat', Arial, sans-serif;
}
tr:nth-child(even) { background: #fafbfd; }

input, textarea, select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddeafe;
  font-family: inherit;
  font-size: 1rem;
  background: #f6f8fc;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #b1c5d7;
}

/* ================= COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 299;
  background: #fffefa;
  box-shadow: 0 -2px 22px 0 rgba(163, 195, 228,0.12);
  padding: 26px 18px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 1.08rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.39s, opacity 0.22s;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-message {
  flex: 1 1 60%;
  color: #355063;
  margin-right: 10px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  background: #b1c5d7;
  color: #38526a;
  font-size: 1.07rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
  margin-right: 0;
}
.cookie-btn.accept {
  background: #ffe9a6;
  color: #37414d;
}
.cookie-btn.reject {
  background: #f6b5b5;
  color: #832828;
}
.cookie-btn.settings {
  background: #b1c5d7;
  color: #314752;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #e3eaf4;
  color: #38526a;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 19px 10px 15px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner-actions {
    gap: 8px;
  }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,55,71,0.20);
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.open { pointer-events: auto; opacity: 1; }
.cookie-modal-content {
  background: #fffefa;
  color: #37414d;
  border-radius: 18px;
  box-shadow: 0 2px 38px 0 rgba(147,170,201, 0.19);
  padding: 36px 30px 26px 30px;
  min-width: 300px;
  max-width: 95vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  color: #38526a;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e3eaf4;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  background: #f6f8fc;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: #b1c5d7;
  width: 19px;
  height: 19px;
}
.cookie-category input[type="checkbox"][disabled] {
  accent-color: #a2b2c1;
  opacity: 0.72;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}

@media (max-width: 450px) {
  .cookie-modal-content {
    padding: 19px 6vw 18px 6vw;
    min-width: 0;
    width: 98vw;
  }
}

/* ========== RESPONSIVE TYPE SCALE =========== */
@media (max-width: 500px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1.11rem; }
  .subtitle,
  .content-wrapper, .feature {
    font-size: 0.96rem !important;
  }
}

/* ========== SUBTLE MICRO-INTERACTIONS/ANIMATIONS ========== */
.feature, .card, .testimonial-card,
section, .cta, .cookie-btn {
  transition: box-shadow 0.18s, background 0.19s, color 0.18s, transform 0.13s;
}
.card:active, .feature:active, .cta:active, .cookie-btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 3px rgba(188, 168, 220, 0.02);
}

/* ========== SOFT PASTEL THEME OVERRIDES (BRAND) ========== */
body, section {
  background: #fffdfa;
}
section {
  box-shadow: 0 2px 12px 0 rgba(247, 215, 223, 0.07), 0 7px 22px 0 rgba(186, 215, 227, 0.08);
}
header, footer {
  background: #f2f5fc;
}
.feature, .feature-grid .feature, .testimonial-card, .card {
  background: #f6f8fc;
  box-shadow: 0 2px 13px 0 rgba(234, 223, 247, 0.07);
}

/**************** SOFT FONTS ****************/
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
}
p, li, ul, ol, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
}

/**************** DREAMY ATMOSPHERE ****************/
section {
  background: linear-gradient(135deg, #fffdfa 65%, #e9f7fd 100%);
}
.card, .feature, .testimonial-card {
  /* Soft shadow, pastel borders */
  border: 1px solid #e8ecf6;
}

/********** WHITE SPACE AND SOFT ROUNDED CORNERS ***********/
.card, .feature, .testimonial-card, section, footer, header, .cookie-banner, .cookie-modal-content, .text-section {
  border-radius: 16px;
}

/*************** ENSURE NO OVERLAPPING ************/
section, .card, .testimonial-card, .feature {
  margin-bottom: 20px;
}

/*********** Z-INDEX SAFEGUARD FOR MOBILE MENU & COOKIE BANNER ***********/
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 299; }
.cookie-modal { z-index: 350; }
header { z-index: 30; }

/************* OVERRIDE BROWSER AUTOFILL COLOR *************/
input:-webkit-autofill {
  -webkit-box-shadow:0 0 0 30px #f6f8fc inset;
  -webkit-text-fill-color: #375276;
}

/**********************************************/
