/* ================== RESET & BASE ================== */
/* Reset & Normalize */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #27314C;
  background: #FAF2EA;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #6E573C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #27314C;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
h1, h2, h3, h4, h5, h6 {
  color: #27314C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.375rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
img, svg {
  max-width: 100%;
  display: block;
}
p, li, dl, dd, dt {
  font-size: 1rem;
  color: #27314C;
}
strong { font-weight: 700; }
small { font-size: 0.875rem; color: #6E573C; }
hr { border: none; border-top: 1px solid #ded2c2; margin: 24px 0; }

/* ================== LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================== HEADER ================== */
header {
  background: #FAF2EA;
  position: relative;
  z-index: 1001;
  border-bottom: 2px solid #ded2c2;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
header a img {
  max-height: 48px;
  margin-right: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  padding: 8px 0;
  color: #27314C;
  position: relative;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: #6E573C;
  border-bottom: 2px solid #6E573C;
}
header nav .cta {
  background: #27314C;
  color: #FAF2EA;
  border-radius: 30px;
  padding: 8px 28px;
  font-weight: bold;
  margin-left: 20px;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 14px -4px #27314c2b;
  transition: background .2s, box-shadow .2s, color .2s;
  display: inline-block;
}
header nav .cta:hover,
header nav .cta:focus {
  background: #6E573C;
  color: #FAF2EA;
  box-shadow: 0 8px 24px -4px #6e573c30;
}

/* =========== MOBILE NAVIGATION ============ */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #27314C;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 24px;
  z-index: 1100;
  display: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e6d7be;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  box-shadow: -2px 0 32px 4px #27314c14;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.25rem;
  color: #27314C;
  cursor: pointer;
  align-self: flex-end;
  margin: 18px 28px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s;
}
.mobile-menu-close:hover {
  background: #e6d7be;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 36px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.21rem;
  color: #27314C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 30px 12px 0;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FAF2EA;
  color: #6E573C;
}

@media (max-width: 1080px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  header .container {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ================== MAIN SECTION & HERO ================== */
main section {
  background: #FAF2EA;
}
.content-wrapper > h1,
.content-wrapper > h2,
.content-wrapper > h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
}
.section.hero,
.content-wrapper.hero {
  min-height: 340px;
  align-items: flex-start;
  justify-content: center;
  background: #27314C;
  color: #FAF2EA;
  border-radius: 16px;
  box-shadow: 0 12px 32px -10px #27314c38;
  margin-bottom: 48px;
  padding: 60px 20px 60px 20px;
}
.section.hero > .container > .content-wrapper > h1 { color: #FAF2EA; }
.section.hero > .container > .content-wrapper > h2 { color: #FAF2EA; }


/* ================== FLEX COMPONENTS ================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 14px;
}
.features-grid > div {
  background: #fff;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 350px;
  border-radius: 18px;
  padding: 28px 22px 22px 22px;
  box-shadow: 0 4px 32px -9px #27314c19;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 3px solid #FAF2EA;
  transition: border 0.25s, box-shadow 0.25s;
}
.features-grid > div:hover {
  border: 3px solid #6E573C;
  box-shadow: 0 8px 40px -8px #6e573c29;
}
.features-grid img {
  width: 48px;
  height: 48px;
}
.features-grid h3 {
  color: #27314C;
  font-weight: bold;
  font-size: 1.22rem;
  margin-top: 5px;
}

.card-container,
.card-grid,
.post-list,
.testimonials-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px -8px #27314c1b;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 360px;
  transition: box-shadow 0.23s, border-color 0.23s;
  border: 2px solid #FAF2EA;
}
.card:hover {
  box-shadow: 0 8px 36px -6px #27314c38;
  border-color: #6E573C;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* On mobile: column layout */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================== TESTIMONIALS ================== */
.testimonials-slider, .testimonial-list {
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: #fff;
  color: #27314C;
  border-radius: 15px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px -8px #27314c15;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 240px;
  max-width: 350px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid #6E573C;
  font-size: 1.12rem;
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card p {
  color: #27314C;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
}
.testimonial-card span {
  display: block;
  color: #6E573C;
  font-size: 0.94rem;
  margin-top: 2px;
}
.testimonial-card strong {
  color: #27314C;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px -6px #6e573c2a;
  border-color: #27314C;
}

/* ================== BUTTONS ================== */
.cta,
button.cta,
input[type="submit"].cta {
  display: inline-block;
  padding: 13px 38px;
  border-radius: 32px;
  background: #6E573C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px -5px #6e573c36;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .22s, color .22s, box-shadow .22s, transform .09s;
}
.cta:hover,
.cta:focus {
  background: #27314C;
  color: #fff;
  box-shadow: 0 8px 36px -10px #27314c22;
  transform: translateY(-3px) scale(1.02);
}

/* ================== LISTS & FAQS ================== */
ul li, ol li {
  margin-bottom: 0.66em;
  padding-left: .2em;
}
dl { margin-bottom: 1.8em; }
dt {
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #6E573C;
  margin-top: 14px;
}
dd {
  margin-left: 1rem;
  margin-bottom: 6px;
  color: #27314C;
}

/* ================== FOOTER ================== */
footer {
  background: #27314C;
  color: #FAF2EA;
  width: 100%;
  margin-top: 52px;
  padding-top: 34px;
  padding-bottom: 28px;
  border-top: 8px solid #6E573C;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 32px;
}
.footer-info, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-info nav {
  display: flex;
  gap: 18px;
}
.footer-info nav a {
  color: #FAF2EA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  transition: color .18s;
}
.footer-info nav a:hover,
.footer-info nav a:focus {
  color: #ffebbc;
}
.footer-contact p,
.footer-contact a {
  color: #FAF2EA;
  font-size: 0.97rem;
  word-break: break-word;
}
footer img {
  max-height: 36px;
}

@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ================== BLOG & ARTICLES ================== */
.post-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.post-list article {
  background: #fff;
  color: #27314C;
  border-radius: 14px;
  box-shadow: 0 2px 16px -4px #27314c1a;
  min-width: 240px;
  max-width: 350px;
  padding: 24px 22px 18px 22px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .13s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-list article:hover {
  box-shadow: 0 6px 24px -8px #27314c32;
  transform: translateY(-2px) scale(1.012);
}
.post-list article a {
  color: #6E573C;
  font-weight: 600;
  margin-top: 7px;
  transition: color .19s;
  align-self: flex-start;
  font-family: 'Montserrat', Arial, sans-serif;
}
.post-list article a:hover {
  color: #27314C;
}

/* ================== MAP, PLACEHOLDERS ================== */
.map-placeholder {
  width: 100%;
  max-width: 480px;
  border-radius: 11px;
  box-shadow: 0 2px 12px -4px #27314c1a;
  overflow: hidden;
  margin: 16px 0 18px 0;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 1024px) {
  .features-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .features-grid > div {
    min-width: 0;
    max-width: 100%;
  }
  .post-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonials-slider, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .features-grid > div, .card, .testimonial-card, .post-list article {
    max-width: 100%;
    min-width: unset;
    padding: 18px 12px 14px 14px;
  }
  .footer-info nav {
    flex-direction: column;
    gap: 12px;
  }
  .content-wrapper h1 { font-size: 1.7rem; }
  .content-wrapper h2 { font-size: 1.32rem; }
  .content-wrapper h3 { font-size: 1.07rem; }
}

@media (max-width: 490px) {
  header .container {
    min-height: 54px;
  }
  .cta {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 11px 0px;
  }
}

/* =========== SPACING BETWEEN ALL SECTIONS/CARDS =========== */
section, .section, .features-grid > div, .card, .testimonial-card, .post-list article {
  margin-bottom: 20px;
}

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  color: #27314C;
  border: 2px solid #6E573C;
  border-radius: 16px;
  box-shadow: 0 8px 32px -6px #27314c2c;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 28px 26px;
  gap: 32px;
  font-size: 1.03rem;
  animation: cookieslidein .4s cubic-bezier(.77,0,.175,1);
}
@keyframes cookieslidein {
  from { transform: translateY(60px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner__message {
  flex: 1 1 56%;
  line-height: 1.4;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner__button {
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  cursor: pointer;
  padding: 11px 22px;
  font-size: 1rem;
  background: #6E573C;
  color: #fff;
  box-shadow: 0 2px 8px -3px #6e573c25;
  transition: background .17s, color .17s;
}
.cookie-banner__button.settings {
  background: #FAF2EA;
  color: #6E573C;
  border: 2px solid #6E573C;
}
.cookie-banner__button:hover,
.cookie-banner__button:focus {
  background: #27314C;
  color: #fff;
}
.cookie-banner__button.settings:hover,
.cookie-banner__button.settings:focus {
  background: #6E573C;
  color: #FAF2EA;
}
@media(max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 17px 12px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
}

/* =========== COOKIE MODAL POPUP =========== */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(39,49,76,0.52);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .3s cubic-bezier(.77,0,.175,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  color: #27314C;
  border-radius: 22px;
  box-shadow: 0 12px 48px -8px #27314c52;
  max-width: 420px;
  width: 94vw;
  padding: 38px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalContentIn .22s cubic-bezier(.77,0,.175,1);
}
@keyframes modalContentIn {
  from { transform: translateY(32px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.19rem;
  color: #27314C;
}
.cookie-modal__close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6E573C;
  cursor: pointer;
  transition: background .12s;
  padding: 5px 10px;
  border-radius: 8px;
}
.cookie-modal__close:hover {
  background: #e6d7be;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-modal__category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #6E573C;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border .14s, background .14s;
  margin: 0 6px 0 0;
}
.cookie-modal__category input[type="checkbox"]:checked {
  background: #6E573C;
  border: 2px solid #27314C;
}
.cookie-modal__category input[type="checkbox"]:checked:after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 6px; height: 12px;
  border: solid #FAF2EA;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal__actions .cookie-banner__button {
  margin: 0;
  padding: 10px 18px;
}
@media(max-width: 600px) {
  .cookie-modal__content {
    padding: 22px 10px 18px 12px;
    gap: 12px;
    font-size: 0.96rem;
  }
  .cookie-modal__header {
    font-size: 1.09rem;
  }
}

/* =========== MISCELLANEOUS & ACCESSIBILITY =========== */
:focus {
  outline: 2px solid #6E573C;
  outline-offset: 2px;
}

/* =========== GEOMETRIC DECORATION =========== */
.features-grid > div:before {
  content: '';
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 5px;
  background: #6E573C;
  margin-bottom: 12px;
  opacity: 0.12;
}

/* =========== TYPOGRAPHY HIERARCHY =========== */
.content-wrapper > h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: #27314C;
}
.content-wrapper > h2 {
  font-size: 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #6E573C;
  font-weight: 700;
}
.content-wrapper > h3 {
  font-size: 1.375rem;
  color: #27314C;
  font-family: 'Montserrat', Arial, sans-serif;
}

/********* CARD & SHADOWS *********/
.card, .features-grid > div, .testimonial-card, .post-list article {
  box-shadow: 0 4px 24px -8px #27314c19;
}

/***** BASIC PAGE ANIMATIONS *****/
.card, .features-grid > div, .testimonial-card, .cta, .post-list article {
  transition: box-shadow 0.22s, transform 0.15s, border 0.21s, border-color 0.13s;
}
.card:hover, .features-grid > div:hover, .post-list article:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 8px 38px -8px #27314c20,0 1.5px 4px 0 #6e573c0a;
}

/***** FORMS & INPUTS (If Added Later) *****/
input, textarea, select {
  border: 2px solid #ded2c2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 15px;
  background: #fff;
  color: #27314C;
  width: 100%;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #6E573C;
}

/***** Spacing consistency (8, 16, 24, 32px) *****/
.section, .content-wrapper, .footer-info, .footer-contact, .features-grid, .card-container, .testimonials-slider,.testimonial-list, .post-list, .card, .features-grid > div, .testimonial-card, .post-list article, .feature-item {
  gap: 20px;
}

/* Ensure buttons are sized well on mobile */
@media (max-width: 500px) {
  .cta, .cookie-banner__button {
    font-size: 0.97rem;
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 11px 0;
  }
  .cookie-banner {
    left: 2vw; right: 2vw; bottom: 6px; padding: 10px 5vw;
  }
}

/***** Prevent Absolute Positioning on Content *****/
.card, .testimonial-card, .features-grid > div, .content-wrapper, .section, .footer-info, .footer-contact {
  position: relative;
  z-index: 1;
}

/***** Z-INDEX LAYERING FOR OVERLAYS *****/
header { z-index: 1001; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

/* ================== SYSTEM FONTS FALLBACK ================== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap') format('woff2');
  font-display: swap;
}
