/* --------------------- CSS 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.7;
  background: #FBFAF8;
  color: #2C1E37;
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  /* Muted background for elegant/classic look */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #2B2347;
  text-decoration: none;
  transition: color 0.2s;
}

/* Typography scale & hierarchy */
h1 { font-family: 'Montserrat', Georgia, serif; font-weight: 700; font-size: 2.8rem; color: #2B2347; letter-spacing: 0.01em; line-height: 1.15; margin-bottom: 24px; }
h2 { font-family: 'Montserrat', Georgia, serif; font-weight: 600; font-size: 2rem; color: #2B2347; margin-bottom: 20px; line-height: 1.2; }
h3 { font-family: 'Montserrat', Georgia, serif; font-weight: 500; font-size: 1.3rem; color: #544975; margin-bottom: 14px; line-height: 1.22; }
h4, h5, h6 { font-family: 'Montserrat', serif; font-weight: 400; color: #544975; margin-bottom: 10px; }
p, ul, ol, blockquote { font-family: 'Roboto', Georgia, serif; font-size: 1.077rem; color: #2C1E37; margin-bottom: 14px; }
strong { font-weight: 600; }
ul, ol { padding-left: 24px; margin-bottom: 20px; }
li { margin-bottom: 7px; }
blockquote {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  color: #35285c;
  background: #F5F2EB;
  padding: 20px 28px;
  margin-bottom: 14px;
  border-left: 4px solid #77A69E;
  border-radius: 7px;
  font-style: italic;
}

/* ------------------- CONTAINER & LAYOUT SPACING ------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ------------------ FLEXBOX LAYOUTS (MANDATORY) ------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px 0 rgba(43,35,71,0.10);
  padding: 32px 20px;
  flex: 1 1 310px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F2EB;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 7px 0 rgba(43,35,71,0.13);
  border-left: 4px solid #77A69E;
  font-family: 'Montserrat', serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.11rem; }
}


/* ------------------- HEADER & NAVIGATION STYLES -------------------- */
header {
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(43,35,71,0.09);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  position: relative;
}
.header-logo {
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: 'Montserrat', serif;
}
.main-nav a {
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .15s;
  color: #2B2347;
  opacity: 0.92;
  font-size: 1.06em;
}
.main-nav a:hover {
  color: #77A69E;
  opacity: 1;
}
.cta-btn {
  background: #2B2347;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  padding: 11px 34px;
  border-radius: 27px;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(42,35,71,0.08);
  text-align: center;
  transition: background .18s, color .18s, box-shadow .23s;
  cursor: pointer;
  outline: none;
  margin-left: 32px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #77A69E;
  color: #2B2347;
  box-shadow: 0 1px 6px 0 rgba(119,166,158,0.20);
}
/* Responsive navigation */
.mobile-menu-toggle {
  display: none;
  background: #E2D7BE;
  color: #2B2347;
  border: none;
  outline: none;
  font-size: 2.06rem;
  padding: 3px 20px 0 10px;
  border-radius: 38px;
  cursor: pointer;
  z-index: 125;
  transition: background .16s, color .16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #77A69E;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E2D7BE;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .41s cubic-bezier(.78,.09,.24,1), opacity .32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  padding: 1rem 2rem 1rem 0;
  background: none;
  border: none;
  color: #2B2347;
  cursor: pointer;
  z-index: 1150;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #77A69E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin-top: 28px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #2B2347;
  font-size: 1.35rem;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  transition: color .13s;
  padding: 12px 0;
}
.mobile-nav a:hover {
  color: #77A69E;
}
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .container {
    gap: 12px;
  }
}
@media (max-width: 950px) {
  .cta-btn { margin-left: 12px; }
}
@media (max-width: 800px) {
  .main-nav { display: none; }
  .cta-btn { display: none; margin: 0; }
  .mobile-menu-toggle { display: block; }
}

/* ----------------- HERO BANNER / SECTIONS ------------------- */
.hero {
  background: linear-gradient(130deg, #FBFAF8 0%, #E2D7BE 100%);
  padding: 64px 0 40px 0;
  border-bottom: 2px solid #E2D7BE;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  gap: 16px;
}
.hero h1 {
  font-size: 2.8rem;
  letter-spacing: 0.02em;
}
.hero p {
  color: #35285C;
  font-size: 1.16rem;
  margin-bottom: 20px;
}

/* ---------------- TEXT/CONTENT SECTIONS ------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul, .text-section ol {
  margin-bottom: 8px;
}
.text-section h3 {
  margin-bottom: .3em;
}

/* -------------------- TABLES ------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(43,35,71,0.06);
  margin: 22px 0 28px 0;
}
thead {
  background: #2B2347;
  color: #fff;
  font-family: 'Montserrat', serif;
}
th, td {
  padding: 16px 20px;
  text-align: left;
}
th {
  font-weight: 600;
  font-size: 1.11rem;
  letter-spacing: .03em;
}
tbody tr {
  border-bottom: 1px solid #E2D7BE;
}
tbody tr:last-child {
  border-bottom: none;
}
td {
  font-family: 'Roboto', serif;
  font-size: 1.03rem;
}
@media (max-width: 600px) {
  th, td { padding: 11px 7px; font-size: 0.99em; }
  table { font-size: 15px; }
}

/* --------------------- FOOTER ----------------------- */
footer {
  background: #2B2347;
  color: #fff;
  padding-top: 36px;
  padding-bottom: 26px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
  justify-content: space-between;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main nav a {
  color: #E2D7BE;
  font-size: 1.03rem;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  transition: color .12s;
}
.footer-main nav a:hover {
  color: #77A69E;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Roboto', serif;
  font-size: 1.02rem;
  color: #E2D7BE;
}
.footer-contact img {
  width: 18px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-contact p {
  color: #F8F4ED;
}
.footer-contact a {
  color: #F8F4ED;
  text-decoration: underline;
  font-weight: 400;
  transition: color .13s;
}
.footer-contact a:hover { color: #77A69E; }
footer img { filter: brightness(95%) contrast(1.04); }
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ----------- TEXT/IMAGE, CARDS, FEATURES, GAPS ----------- */
.card {
  min-width: 220px;
  max-width: 400px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px 0 rgba(43,35,71,0.10);
  padding: 32px 20px;
  transition: box-shadow .19s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 18px 0 rgba(43,35,71,0.16);
  transform: translateY(-3px) scale(1.014);
  z-index: 5;
}
.feature-grid > div {
  flex: 1 1 230px;
  background: #fff;
  border-radius: 13px;
  padding: 20px 18px 20px 20px;
  box-shadow: 0 1px 5px 0 rgba(42,35,71,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow .15s, transform .15s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 14px 0 rgba(119,166,158,0.12);
  transform: translateY(-2px) scale(1.007);
}
.feature-grid img {
  width: 44px; height: 44px;
  margin-bottom: 8px;
}

/* --------- TESTIMONIALS (Ensure contrast/dark text) --------- */
.testimonial-card {
  background: #F5F2EB;
  color: #2B2347;
  font-size: 1.11em;
  box-shadow: 0 2px 7px 0 rgba(43,35,71,0.13);
  border-radius: 16px;
  border-left: 4px solid #77A69E;
  margin-bottom: 24px;
  font-family: 'Montserrat', serif;
  align-items: center;
  gap: 18px;
}
.testimonial-card strong {
  color: #2B2347;
  font-weight: 600;
}
.testimonial-card blockquote {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  color: #2B2347;
}

/* ---------- CONTACT SECTION & MAP LOCATION ---------- */
.contact-info {
  margin: 18px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info a {
  color: #2B2347;
  text-decoration: underline;
}
.map-location {
  background: #f6f4f1;
  border-radius: 9px;
  padding: 24px 22px;
  margin: 16px 0;
}
@media (max-width: 700px) {
  .map-location { padding: 13px 8px; }
  .feature-grid img {
    width: 36px; height: 36px;
  }
}

/* --------- BUTTONS & INTERACTIVE ELEMENTS ----------- */
button, .cta-btn, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', serif;
  border: none;
  outline: none;
}
button:focus:not(:active), .cta-btn:focus:not(:active) {
  box-shadow: 0 0 0 2px #77A69E66;
}

/* Links: underline on hover for text links outside main navs */
p a:not(.cta-btn) { text-decoration: underline; }
p a:not(.cta-btn):hover { color: #77A69E; }

/* ----------- RESPONSIVE/TABLE MOBILE TWEAKS ---------- */
@media (max-width: 560px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  table { border: 0; box-shadow: none; }
  thead { display: none; }
  tr { margin-bottom: 16px; border-bottom: 2px solid #E2D7BE; }
  td { padding: 12px 10px; border-bottom: 1px solid #E2D7BE; }
  td:last-child { border-bottom: none; }
}

/* -------------- COOKIE CONSENT BANNER ---------------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #2B2347;
  color: #fff;
  z-index: 1350;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 10px;
  box-shadow: 0 -4px 22px 0 rgba(43,35,71,0.13);
  transition: transform .28s, opacity .28s;
  transform: translateY(0);
  opacity: 1;
  gap: 26px;
  flex-wrap: wrap;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
#cookie-banner p { color: #fff; font-size: 1rem; max-width: 460px; margin-bottom: 0; }
#cookie-banner .cookie-btn {
  margin-left: 14px;
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 8px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  transition: background 0.16s, color 0.13s, box-shadow 0.19s;
}
#cookie-banner .accept {
  background: #77A69E;
  color: #fff;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: #57908a;
  color: #fff;
}
#cookie-banner .reject {
  background: #E2D7BE;
  color: #2B2347;
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: #afa27c;
  color: #fff;
}
#cookie-banner .settings {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
#cookie-banner .settings:hover, #cookie-banner .settings:focus {
  background: #fff;
  color: #2B2347;
}
@media (max-width: 650px) {
  #cookie-banner {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 23px 7px;
  }
}

/* ------ COOKIE CONSENT MODAL -------- */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43,35,71,0.60);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .36s;
}
#cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
#cookie-modal {
  background: #fff;
  max-width: 480px;
  width: 95%;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(42,35,71,0.17);
  padding: 32px 26px 26px 26px;
  font-family: 'Roboto', serif;
  color: #35285c;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn .46s cubic-bezier(.33,1.02,.52,1.11);
}
@keyframes cookieModalIn {
  from {transform: scale(.91) translateY(30px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
#cookie-modal h2 {
  font-family: 'Montserrat', serif;
  color: #2B2347;
  font-size: 1.41rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: #F5F2EB;
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.06em;
  font-family: 'Montserrat', serif;
  color: #2B2347;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-switch {
  position: relative;
  width: 45px; height: 23px;
  display: inline-block;
}
.cookie-switch input {
  display: none;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #E2D7BE;
  border-radius: 22px;
  transition: background 0.16s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #77A69E;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.07em;
  border-radius: 22px;
  border: none;
  padding: 10px 28px;
  cursor: pointer;
  margin-left: 0; margin-right: 0;
  background: #2B2347;
  color: #fff;
  transition: background 0.16s, color 0.12s;
}
.cookie-modal-actions button.save {
  background: #77A69E;
  color: #fff;
}
.cookie-modal-actions button.save:hover, .cookie-modal-actions button.save:focus {
  background: #57908a;
}
.cookie-modal-actions button.cancel {
  background: transparent;
  color: #2B2347;
  border: 2px solid #2B2347;
}
.cookie-modal-actions button.cancel:hover {
  background: #2B2347;
  color: #fff;
}
#cookie-modal .close-btn {
  position: absolute;
  top: 17px;
  right: 24px;
  background: none;
  color: #2B2347;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color .12s;
}
#cookie-modal .close-btn:hover {
  color: #77A69E;
}

/* -------------- UTILITY CLASSES & GENERAL SPACING -------------- */
.mt-20 { margin-top: 20px!important; }
.mb-20 { margin-bottom: 20px!important; }
.mt-32 { margin-top: 32px!important; }
.mb-32 { margin-bottom: 32px!important; }
.gap-20 { gap: 20px!important; }
.gap-32 { gap: 32px!important; }

/* -------------- SCROLLBAR FOR ELEGANT FEEL -------------- */
body, *::-webkit-scrollbar {
  background: #F5F2EB;
}
*::-webkit-scrollbar-thumb {
  background: #E2D7BE;
  border-radius: 20px;
}

/* -------------- ANIMATIONS & MICRO-INTERACTIONS -------------- */
a, button, .cta-btn {
  transition: color .14s, background .16s, box-shadow .16s, transform .12s;
}
div.card:hover, div.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 23px 0 rgba(119,166,158,0.16);
}

/* --------------- Z-INDEX LAYERING --------------- */
header { z-index: 1000; position: relative; }
.mobile-menu { z-index: 1100; }
#cookie-banner { z-index: 1350; }
#cookie-modal-overlay { z-index: 1500; }

/* -------------- MISC / EXTRAS -------------- */
::-moz-selection { background: #E2D7BE; color: #2B2347; }
::selection { background: #E2D7BE; color: #2B2347; }

/* Hide outline for mouse users but keep for keyboard (for a11y) */
:focus:not(:focus-visible) { outline: none!important; }
:focus-visible { outline: 2px solid #77A69E; outline-offset: 1px; }

/* ------------- PRINT OPTIMIZATION ------------- */
@media print {
  header, footer, .cta-btn, #cookie-banner, #cookie-modal-overlay, .mobile-menu { display: none !important; }
}
