/* ===================
   CSS RESET & BASELINES
   =================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.55;
  background: #F3EDE8;
  color: #262626;
  min-height: 100vh;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
a { 
  color: #17416E;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #159C95;
  text-decoration: underline;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  font-size: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 8px 12px;
}
ul, ol {
  padding-left: 26px;
  margin-bottom: 16px;
}
li + li {
  margin-top: 10px;
}
strong {
  font-weight: 700;
  color: #17416E;
}
/* ===================
   FONT FAMILY & TYPOGRAPHY
   =================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Montserrat:wght@400;700&display=swap');
body {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  color: #262626;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  color: #17416E;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol { font-size: 1rem; margin-bottom: 12px; }
.text-section p, .text-section ul, .text-section ol {
  font-size: 1.07rem;
  color: #48403D;
}
/* ===================
   LAYOUT & CONTAINER STRUCTURE
   =================== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,54,86,0.07), 0 1px 4px rgba(23,65,110,0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(39,54,86,0.06);
  padding: 22px 26px;
  flex: 1 1 260px;
  min-width: 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #f7f5f2;
  border-radius: 15px;
  box-shadow: 0 1px 8px rgba(23,65,110,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(23,65,110,0.11);
  transform: translateY(-2px) scale(1.013);
}
.testimonial-card p {
  color: #252930;
  font-size: 1.13rem;
  font-style: italic;
  margin-right: 12px;
}
.testimonial-card span {
  color: #17416E;
  font-size: 1.01rem;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f3ede8;
  border-radius: 8px;
  padding: 20px;
}
/* ===================
   NAVIGATION (DESKTOP & MOBILE)
   =================== */
header {
  position: sticky;
  top: 0;
  z-index: 21;
  background: #fff;
  box-shadow: 0 2px 16px rgba(23, 65, 110,0.08); 
  padding: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
header nav a img {
  height: 36px;
  margin-right: 32px;
}
header nav a {
  font-family: 'Montserrat', 'Playfair Display', Georgia, Times, serif;
  font-weight: 500;
  font-size: 1rem;
  color: #17416E;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.16s;
}
header nav a.cta {
  background: #17416E;
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
  margin-left: 18px;
  padding: 10px 26px;
  font-size: 1.1rem;
  box-shadow: 0 1px 4px rgba(23,65,110,0.11);
  transition: background 0.17s, color 0.22s, transform .17s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #159C95;
  color: #fff;
  transform: scale(1.038);
}
header nav a:hover, header nav a:focus {
  background: #f0f6fa;
  color: #159C95;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #17416E;
  position: absolute;
  top: 17px;
  right: 16px;
  z-index: 102;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #f3ede8;
  color: #159C95;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,65,110,0.98);
  z-index: 200;
  transform: translateX(100%);
  animation: slideInMobileMenu 0.45s cubic-bezier(.67,.02,.14,1.02) forwards;
}
@keyframes slideInMobileMenu {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu.closing {
  animation: slideOutMobileMenu 0.34s cubic-bezier(.67,.02,.14,1.02) forwards;
}
@keyframes slideOutMobileMenu {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  color: #17416E;
  font-size: 2.1rem;
  margin: 22px 22px 0 0;
  border-radius: 10px;
  padding: 5px 17px 4px 17px;
  line-height: 1;
  z-index: 210;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #159C95;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Playfair Display', Georgia, Times, serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.16s, color 0.17s;
  width: 88%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #159C95;
  color: #fff;
}
@media (max-width: 1020px) {
  .container { max-width: 98vw; }
}
@media (max-width: 940px) {
  header nav {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  header nav a {
    font-size: 0.96rem;
    padding: 5px 8px;
  }
}
@media (max-width: 820px) {
  header nav a.cta { margin-left: 5px; padding: 8px 16px; font-size: 1rem; } 
  header nav a img { margin-right: 15px; }
}
@media (max-width: 780px) {
  header nav { gap: 0; }
}
/* === Navigation COLLAPSE ON MOBILE === */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: none;
    width: 100vw;
    min-height: 100vh;
  }
}
/* ===================
   CTA BUTTONS
   =================== */
a.cta, .cta {
  display: inline-block;
  background: #17416E;
  color: #fff;
  font-family: 'Montserrat', 'Playfair Display', Georgia, Times, serif;
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 18px;
  padding: 12px 30px;
  margin-top: 12px;
  margin-bottom: 5px;
  box-shadow: 0 2px 12px rgba(23,65,110,0.07);
  letter-spacing: 0.015em;
  border: none;
  text-align: center;
  transition: background 0.16s, color 0.2s, transform 0.23s, box-shadow 0.19s;
}
a.cta:hover, a.cta:focus,
.cta:hover, .cta:focus {
  background: #159C95;
  color: #fff;
  transform: scale(1.038);
  box-shadow: 0 5px 24px rgba(23,65,110,0.15);
}
/* ==========
   FOOTER
=========== */
footer {
  border-top: 1.5px solid #e9e2db;
  background: #fff;
  padding: 30px 0 10px 0;
  margin-top: 60px;
  font-size: 0.96rem;
  color: #494949;
  text-align: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1rem;
}
footer nav a {
  color: #17416E;
  font-family: 'Montserrat', 'Playfair Display', Georgia, Times, serif;
  font-weight: 500;
  border-radius: 7px;
  padding: 4px 8px;
  transition: background 0.14s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #f3ede8;
  color: #159C95;
}
footer p {
  color: #888;
  margin-top: 5px;
  font-size: 0.93rem;
  letter-spacing: .05em;
}
/* ===================
   SECTION SPACING
   =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 570px) {
  section { padding: 32px 8px; }
}
/* ===================
   OTHER COMPONENTS
   =================== */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.review-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(23,65,110,0.09);
  padding: 16px 24px;
  flex: 1 1 220px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.review-card:hover, .review-card:focus-within {
  box-shadow: 0 5px 24px rgba(23,65,110,0.16);
  transform: translateY(-2px) scale(1.013);
}
/* ===================
   COOKIE BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: #fffdfa;
  border-top: 2px solid #e5e2dd;
  box-shadow: 0 -2px 12px rgba(23, 65, 110, 0.08);
  padding: 28px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  animation: fadeInCookieBanner 0.5s cubic-bezier(.32,.63,.43,.83);
}
@keyframes fadeInCookieBanner {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn, .cookie-settings-btn {
  background: #17416E;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 9px 22px;
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Playfair Display', serif;
  font-weight: 600;
  transition: background 0.19s, color 0.19s, transform 0.19s;
  margin-right:3px;
  box-shadow: 0 1px 4px rgba(23,65,110,0.12);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #159C95;
  color: #fff;
  transform: scale(1.025);
}
.cookie-settings-btn {
  background: #fff;
  color: #17416E;
  border: 1.5px solid #17416E;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #17416E;
  color: #fff;
}
/* -- Cookie Modal -- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 11000;
  background: rgba(23,65,110,0.4);
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .38s cubic-bezier(.32,.63,.43,.83);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 6px 36px rgba(23,65,110,0.16);
  border-radius: 20px;
  padding: 34px 28px 24px 28px;
  max-width: 430px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  animation: slideInCookieModal .47s cubic-bezier(.22,.53,.44,1.1);
}
@keyframes slideInCookieModal {
  from { transform: translateY(80px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.07rem;
}
.cookie-modal .toggle {
  width: 38px;
  height: 20px;
  background: #ddd;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal .toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px #999;
  transition: left 0.18s;
}
.cookie-modal input[type='checkbox']:checked + .toggle {
  background: #17416E;
}
.cookie-modal input[type='checkbox']:checked + .toggle:before {
  left: 20px;
  background: #fff;
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: flex-end;
}
/* ==========
   RESPONSIVE FLEXBOX ADJUSTMENTS
=========== */
@media (max-width: 1020px) {
  .content-grid,
  .features, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}
@media (max-width: 850px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.53rem; }
  h2 { font-size: 1.22rem; }
  .card, .testimonial-card { padding: 14px 8px; }
  .section { padding: 23px 5px; }
  .container { padding: 0 5px; }
}
@media (max-width: 430px) {
  footer nav {gap: 7px; font-size: 0.96rem;}
  .cookie-modal { padding:18px 8px; font-size:0.98rem;}
}
/* ==========
   MICRO-INTERACTIONS & TRANSITIONS
=========== */
section, .card, .card-content, .testimonial-card, .review-card, .feature-item, .text-section {
  transition: box-shadow 0.25s, transform 0.24s;
}
/* ==========
   ICONS IN LISTS
=========== */
ul li img {
  height: 26px;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
}
/* ==========
   MISCELLANEOUS
=========== */
::-webkit-scrollbar {
  width:9px;
  background: #f3ede8;
}
::-webkit-scrollbar-thumb {
  background: #d2d0cc;
  border-radius: 7px;
}
/* Add spacing between cards/sections */
.card + .card, .testimonial-card + .testimonial-card, .section + .section {
  margin-top: 20px;
}

/* Ensure images don't overflow cards */
.card img, .feature-item img, .testimonial-card img {
  max-width: 70px;
  min-width: 32px;
  margin-right: 15px;
}

/* ==========
   ACCESSIBILITY
=========== */
a, button, .cookie-btn, .cookie-settings-btn, .mobile-menu-close {
  outline: none;
}
a:focus-visible, button:focus-visible, .cookie-btn:focus-visible, .cookie-settings-btn:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid #17416E;
  outline-offset: 2px;
}

/* ==========
   PRINT
=========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display:none !important;
  }
  section, .section { background:transparent; box-shadow:none; padding:0;}
  body { color:#000 }
}
