/* ========================================================== */
/*                    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 {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #FAF8F4;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #232426;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #6CA5A9;
  text-decoration: none;
  transition: color .25s;
}
a:hover,
a:focus {
  color: #232426;
  text-decoration: underline;
}
strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #232426;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 16px;
  line-height: 1.2;
}
h4 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
p, ul, ol {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem; /* 16px */
  margin-bottom: 16px;
}
blockquote {
  border-left: 3px solid #E4D0B7;
  background: #F8F5EF;
  margin: 16px 0;
  padding: 12px 20px;
  font-style: italic;
  color: #466170;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ========================================================== */
/*                       LAYOUT: CONTAINERS                   */
/* ========================================================== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1150px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Provided critical flex spacing patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,36,38,0.07);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border: 1px solid #E4D0B7;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,36,38,0.05);
  min-width: 250px;
  max-width: 340px;
  margin: 16px 10px 20px 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  flex: 1 1 250px;
  min-width: 260px;
  background: #FAF8F4;
  border-radius: 10px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 5px rgba(35,36,38,0.06);
  border: 1px solid #EDE6DE;
  gap: 12px;
}
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.post-teaser {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(35,36,38,0.06);
  border: 1px solid #EDE6DE;
  padding: 18px 20px 22px 20px;
  flex: 1 1 290px;
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
}
.post-teaser:hover {
  box-shadow: 0 4px 16px rgba(108,165,169,0.1);
  border-color: #CFC2A7;
}


/* ===================== GLOBAL SECTION SPACING ============== */
main section {
  margin-bottom: 60px;
  background: transparent;
}

/* ====================== HEADER ============================= */
header {
  background: #FFF;
  box-shadow: 0 2px 10px rgba(35,36,38,0.05);
  border-bottom: 1px solid #E4D0B7;
  padding: 0;
  position: relative;
  z-index: 102;
}
header .container {
  flex-direction: row;
  align-items: center;
  padding: 0 20px;
  height: 84px;
  justify-content: space-between;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232426;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
  background: none;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #6CA5A9;
  border-bottom: 2.5px solid #6CA5A9;
}
.main-cta {
  background: #232426;
  color: #FFF;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 25px;
  margin-left: 16px;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.main-cta:hover,
.main-cta:focus {
  background: #6CA5A9;
  color: #232426;
  text-decoration: none;
}

/* ================== MOBILE MENU NAVIGATION ================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #232426;
  cursor: pointer;
  margin-left: 24px;
  z-index: 104;
  transition: color .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #6CA5A9;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  box-shadow: -16px 0 36px rgba(35,36,38,0.11);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #232426;
  align-self: flex-end;
  margin: 20px 32px 10px 0;
  cursor: pointer;
  transition: color .2s;
  z-index: 2050;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #6CA5A9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0 0 32px;
}
.mobile-nav a {
  color: #232426;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.2s;
  margin-bottom: 8px;
  padding: 7px 0px;
  border-radius: 4px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #6CA5A9;
  background: #F8F2E8;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 20px;
  }
  header .container {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: auto;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .logo img {
    height: 40px;
  }
}

/* ====================== HERO, CTA BUTTONS ================== */
.cta-button,
a.cta-button {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFF;
  background: #6CA5A9;
  border: none;
  outline: none;
  border-radius: 30px;
  padding: 12px 34px;
  margin-top: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 7px rgba(108,165,169,0.1);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
  text-align: center;
  text-decoration: none;
}
.cta-button:hover,
.cta-button:focus {
  background: #232426;
  color: #E4D0B7;
  box-shadow: 0 4px 18px rgba(35,36,38,0.15);
  text-decoration: none;
}

/* =================== FEATURE CARDS, TESTIMONIALS =========== */
.testimonials-slider, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #232426;
  margin-bottom: 6px;
}
.testimonial-card .name {
  font-size: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: #6CA5A9;
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.testimonial-card .stars {
  color: #E4D0B7;
  font-size: 1.1em;
  letter-spacing: 2px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ====================== FOOTER ============================= */
footer {
  background: #232426;
  color: #FFF;
  padding: 46px 0 24px 0;
  border-top: 1px solid #E4D0B7;
  margin-top: 32px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #FFF;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #E4D0B7;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 2px;
  transition: color .2s;
}
.footer-nav a:hover {
  color: #6CA5A9;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  height: 16px;
}

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

@media (max-width: 600px) {
  footer {
    padding: 32px 0 18px 0;
  }
  .footer-brand img {
    height: 34px;
  }
}

/* ====================== COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  padding: 24px 18px 20px 18px;
  background: #F8F5EF;
  border-top: 2px solid #E4D0B7;
  box-shadow: 0 -2px 16px rgba(35,36,38,0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  flex: 2 1 220px;
  margin-bottom: 0;
  color: #232426;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cookie-accept {
  background: #6CA5A9;
  color: #FFF;
}
.cookie-accept:hover {
  background: #232426;
  color: #E4D0B7;
}
.cookie-reject {
  background: #FFF;
  border: 1.2px solid #6CA5A9;
  color: #232426;
}
.cookie-reject:hover {
  background: #E4D0B7;
}
.cookie-settings {
  background: transparent;
  color: #232426;
  border: 1.2px solid #E4D0B7;
}
.cookie-settings:hover {
  background: #F8F2E8;
  color: #6CA5A9;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  z-index: 3500;
  background: rgba(35,36,38,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 14px;
  max-width: 410px;
  width: 96vw;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 6px 48px rgba(35,36,38,0.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn .35s cubic-bezier(.41,.49,.24,1.27);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 0;
  color: #232426;
}
.cookie-modal .cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 7px 0;
  font-size: 1.05rem;
}
.cookie-modal .cookie-cat strong {
  color: #6CA5A9;
  font-family: 'Playfair Display', Georgia, serif;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #EDE6DE;
  border-radius: 12px;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 20px;
  width: 20px;
  background: #6CA5A9;
  transition: transform .22s, background .22s;
  border-radius: 50%;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  transform: translateX(20px);
  background: #232426;
}
.cookie-modal .close-cookie-modal {
  background: transparent;
  color: #232426;
  font-size: 1.4rem;
  border: none;
  position: absolute;
  right: 22px;
  top: 18px;
  cursor: pointer;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 8px 17px;
}

/* ====================== RESPONSIVE DESIGN ================== */
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .card-container, .testimonials-slider, .testimonials-list, .articles-list {
    gap: 16px;
  }
  .feature {
    padding: 22px 12px;
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.13rem; }
  .section, main section {
    margin-bottom: 44px;
    padding: 28px 4px;
  }
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  .feature-grid, .card-container, .testimonials-slider, .testimonials-list, .articles-list {
    gap: 10px;
  }
  .testimonials-slider, .testimonials-list, .articles-list {
    flex-direction: column;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature {
    min-width: 0;
    padding: 14px 8px;
  }
  .card {
    min-width: 0;
    padding: 22px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-brand img {
    height: 30px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; margin-bottom: 12px; }
  .section, main section { padding: 14px 2px; margin-bottom: 24px; }
  .container { padding: 0 4px; }
  .footer-brand img { height: 24px; }
  .cta-button, a.cta-button {
    font-size: .98rem;
    padding: 10px 14px;
  }
}

/* ====================== MISC/UI ENHANCEMENTS =============== */
::-webkit-scrollbar {
  width: 12px;
  background: #FAF8F4;
}
::-webkit-scrollbar-thumb {
  background: #E4D0B7;
  border-radius: 7px;
}
input, textarea, button {
  font-family: inherit;
}

/* Focus styles - accessibility */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus {
  outline: 2px solid #6CA5A9;
  outline-offset: 2px;
}

/* Subtle fade-in for main transitions */
main, .container, .content-wrapper, .card, .feature, .testimonial-card, .post-teaser {
  opacity: 1;
  animation: fadein 0.5s cubic-bezier(.51,.6,.61,.76);
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utility classes */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-section { max-width: 700px; margin: 0 auto; }


/* ===================== ELEGANT BUTTONS & EFFECTS =========== */
button, .main-cta, .cta-button, a.cta-button {
  transition: background .16s, color .16s, box-shadow .2s;
}

/* Micro-interactions */
button:active, .cta-button:active {
  transform: scale(0.97);
}
.main-cta:active {
  box-shadow: 0 0 0 #FFF;
}

/* =================================== END ==================== */
