/* CSS RESET & BASE TYPOGRAPHY -------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFFDF9;
  color: #212832;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  margin: 0 0 1.5em 0;
  padding: 0;
}
a {
  color: #90A08E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #212832;
  text-decoration: underline;
}
strong {
  font-weight: 700;
}

/* BRAND COLOR VARIABLES (with fallbacks) */
:root {
  --color-primary: #212832;
  --color-secondary: #90A08E;
  --color-accent: #E3D8C0;
  --color-bg: #FFFDF9;
  --color-section: #F8F5F0;
  --color-link-hover: #6D7A68;
  --color-danger: #B74D3A;
  --color-success: #8AA66E;
  --shadow-soft: 0 2px 12px 0 rgba(95, 72, 29, 0.08);
  --border-radius: 16px;
}

/* TYPOGRAPHY SCALE -------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #212832;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.125rem;
}
p, li, a, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #212832;
}
p {
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* LAYOUT CONTAINERS -------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  width: 100%;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* Allow sections to be white/no bg if needed */
section > .container > .content-wrapper {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* FLEX LAYOUTS -------------------------------------- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.20s, transform 0.20s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(95, 72, 29, 0.14);
  transform: translateY(-2px) scale(1.015);
}
.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;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1rem;
  color: #393424;
}
.testimonial-card strong {
  font-family: 'Playfair Display', Georgia, serif;
  color: #7B5832;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: none;
  box-shadow: none;
}

/* LIST STYLES */
ul {
  list-style: none;
}
ul li {
  padding-left: 0;
  font-size: 1rem;
  margin-bottom: 10px;
  position: relative;
}
ul li strong {
  font-weight: 600;
  color: var(--color-secondary);
}

/* HEADER & MAIN NAVIGATION -------------------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 10;
}
header a img {
  height: 44px;
  margin-right: 32px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0;
  border-radius: 5px;
  font-weight: 500;
  transition: color 0.16s, background 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: #7B5832;
  outline: none;
}
header .cta.primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 12px 28px;
  margin-left: 32px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(102,72,29,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.20s, box-shadow 0.20s, color 0.13s;
  box-sizing: border-box;
}
header .cta.primary:hover,
header .cta.primary:focus {
  background: #212832;
  color: #fff;
  box-shadow: 0 4px 20px rgba(144,160,142,0.20);
  outline: none;
}
/* HIDE mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* MOBILE NAVIGATION -------------------------------------- */
.mobile-menu-toggle {
  position: fixed;
  right: 24px;
  top: 22px;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 2rem;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFDF9;
  box-shadow: 0 6px 24px 0 rgba(95, 72, 29, 0.17);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.47,1.64,.41,.8);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 20px 0 0;
  padding: 8px 12px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-danger);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 18px;
  }
  header .cta.primary {
    margin-left: 18px;
    padding: 12px 18px;
    font-size: 0.96rem;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MAIN CONTENT SECTIONS -------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  background: var(--color-section);
  box-shadow: var(--shadow-soft);
}
/* Last section can have extra space at bottom */
section:last-child {
  margin-bottom: 80px;
}
section h1,
section h2,
section h3 {
  margin-bottom: 18px;
}
.content-wrapper {
  gap: 24px;
}
.content-wrapper ul, .content-wrapper ol {
  margin-left: 0;
}
.text-section {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* HIGHLIGHTS (icon + text) index.html */
.content-wrapper ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 18px 18px 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s, transform 0.19s;
}
.content-wrapper ul li img {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
}
.content-wrapper ul li:hover {
  box-shadow: 0 4px 24px 0 rgba(95, 72, 29, 0.12);
  transform: translateY(-2px) scale(1.03);
}

/* BUTTONS -------------------------------------- */
.cta, .btn, button, input[type=submit] {
  display: inline-block;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  margin-top: 10px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 12px 0 rgba(155,132,56,0.08);
  text-align: center;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.14s;
  outline: none;
  position: relative;
}
.cta.primary, .btn.primary {
  background: var(--color-secondary);
  color: #fff;
}
.cta:hover, .btn:hover, .cta:focus, .btn:focus {
  background: var(--color-link-hover);
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(144,160,142,0.22);
  transform: translateY(-1.5px) scale(1.035);
  outline: none;
}
.cta.primary:hover, .btn.primary:hover, .cta.primary:focus, .btn.primary:focus {
  background: #212832;
  color: #fff;
  box-shadow: 0 8px 28px 0 rgba(33,40,50,0.12);
}

/* FOOTER -------------------------------------- */
footer {
  background: #fff;
  padding: 48px 0 16px 0;
  border-top: 1px solid #eceae7;
  color: #393424;
  width: 100%;
  margin-top: 40px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}
footer nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
footer .contact-info {
  text-align: center;
  margin-bottom: 12px;
}
footer .contact-info p {
  color: #676049;
  margin-bottom: 2px;
  font-size: 0.99rem;
}
footer .social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
footer .social-links a {
  display: flex;
  align-items: center;
  background: var(--color-section);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: background 0.16s;
  justify-content: center;
}
footer .social-links a:hover {
  background: var(--color-accent);
}
footer .social-links img {
  width: 22px;
  height: 22px;
}

/* RESPONSIVE DESIGN -------------------------------------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  section, .section {
    padding: 22px 6px 28px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  .testimonial-card, .feature-item, .card {
    padding: 14px 10px;
    font-size: 0.96rem;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  header {
    padding: 11px 7px;
  }
  .section, section {
    margin-bottom: 22px;
  }
}
@media (max-width: 800px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-item, .card {
    max-width: 100%;
  }
}

/* SPACING & GAPS for all cards/sections as required */
.section, section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid {
  gap: 24px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* COOKIE CONSENT BANNER -------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1600;
  background: #FFF9ED;
  box-shadow: 0 -2px 16px rgba(95, 72, 29, 0.15);
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 0.99rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookieSlideIn 0.6s cubic-bezier(.45,1.6,.4,.9);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__message {
  flex: 1 1 60%;
  color: #4f470f;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner__btn {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(102,72,29,0.09);
}
.cookie-banner__btn--primary {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner__btn:focus,
.cookie-banner__btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner__btn--settings {
  background: #FFF9ED;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-banner__btn--settings:focus,
.cookie-banner__btn--settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 16px 7px;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
}
/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(33, 40, 50, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 20px;
  min-width: 300px;
  max-width: 95vw;
  width: 420px;
  padding: 38px 34px 28px 34px;
  box-shadow: 0 8px 40px rgba(95, 72, 29, 0.14);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: cookieDialogIn 0.33s cubic-bezier(.44,1.13,.43,.9);
}
@keyframes cookieDialogIn {
  0% { transform: scale(.84) translateY(100px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cookie-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #212832;
}
.cookie-modal__close {
  border: none;
  background: var(--color-accent);
  color: #212832;
  font-size: 1.4rem;
  border-radius: 50%;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-danger);
  color: #fff;
}
.cookie-modal__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 6px 0;
}
.cookie-modal__category span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #393424;
}
.cookie-modal__toggle {
  width: 38px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 10px;
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
}
.cookie-modal__toggle input[type="checkbox"] {
  opacity: 0;
  width: 38px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
}
.cookie-modal__toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(33,40,50,0.07);
  transition: left 0.18s;
}
.cookie-modal__toggle input[type="checkbox"]:checked + .cookie-modal__toggle-slider {
  left: 20px;
  background: var(--color-success);
}
.cookie-modal__desc {
  color: #75705c;
  font-size: 0.95rem;
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal__btn {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: #212832;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal__btn.cookie-modal__btn--primary {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal__btn:hover, .cookie-modal__btn:focus {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 550px) {
  .cookie-modal__dialog {
    min-width: 85vw;
    padding: 15px 7px 10px 13px;
  }
  .cookie-modal__category span {
    font-size: 0.95rem;
  }
}

/* ANIMATIONS -------------------------------------- */
.card, .testimonial-card, .feature-item, .content-wrapper ul li {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover, .content-wrapper ul li:hover {
  box-shadow: 0 6px 26px 0 rgba(95, 72, 29, 0.15);
  transform: translateY(-2px) scale(1.016);
}

/* SELECTOR UTILITIES & VISIBILITY CLASSES -------------------------------------- */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}

/* OVERFLOW PROTECTION: Ensure no flex children overlap */
.card-container > *, .content-grid > *, .content-wrapper > *, .container > * {
  min-width: 0;
  flex-shrink: 1;
}

/* SCROLLBAR (subtle, for aesthetic) */
::-webkit-scrollbar {
  width: 9px;
  background: #EFEADE;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #D8C9A7;
  border-radius: 9px;
}

/* ACCESSIBILITY FOCUS STATES */
a:focus, button:focus, .cta:focus, .btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #C4D3B6;
}

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