/* ========================
   CSS RESET & NORMALIZE
======================== */
html,
body,
h1, h2, h3, h4, h5, h6,
p, ol, ul, li,
div, section, nav, main,
header, footer,
a,
img,
button,
strong, em, b, i, span {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  color: #233148;
  background: #F3E5C6;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style-position: inside;
  margin-bottom: 1em;
}
a {
  color: #396341;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,
a:focus {
  color: #B28850;
  text-decoration: underline;
}
button,
input[type="button"],
input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* =================================
   BRAND COLOR PALETTE
  - primary: #233148 (deep blue-grey)
  - secondary: #F3E5C6 (light cream)
  - accent: #B28850 (warm gold)
  - organic greens and earths:
    #396341 (moss-green), #D2C0A2 (sand), #E9DDCD (soft stone)
================================= */
:root {
  --color-primary: #233148;
  --color-secondary: #F3E5C6;
  --color-accent: #B28850;
  --color-green: #396341;
  --color-earth: #D2C0A2;
  --color-stone: #E9DDCD;
  --color-dark: #1a2331;
  --color-light: #fff;
  --color-body: #233148;
  --color-muted: #828282;
  --shadow-medium: 0 4px 24px rgba(35,49,72,0.10), 0 1.5px 6px rgba(50,70,53,.06);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

/* ===============================
   TYPOGRAPHY
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  letter-spacing: -0.6px;
  font-weight: 900;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 9px;
}
h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--color-green);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 0.7em;
}
li {
  margin-bottom: 0.3em;
}
strong, b {
  font-weight: 700;
}
.cta-btn, .primary, .secondary {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
  box-shadow: var(--shadow-medium);
  padding: 13px 36px;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none;
}
.cta-btn.primary {
  background: var(--color-green);
  color: var(--color-light);
  border: none;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-accent);
  color: #fff8e6;
  box-shadow: 0 7px 22px rgba(50,99,65,0.18);
}
.cta-btn.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-green);
  color: var(--color-light);
}

/* =================================
   LAYOUT STRUCTURE
================================= */
.container {
  width: 100%;
  max-width: 1125px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  flex: 1 1 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 950px) {
  .container {
    padding: 0 8px;
  }
  section {
    padding: 32px 4px;
  }
}

/* ================== FLEX CONTAINERS ================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 28px 22px 20px 22px;
  flex: 1 1 340px;
  min-width: 260px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 30px rgba(40,70,60,0.14);
  transform: translateY(-6px) scale(1.018);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px rgba(50,70,53,0.09);
  margin-bottom: 20px;
  font-size: 1.04rem;
  color: var(--color-body);
  position: relative;
}
.testimonial-content {
  flex: 1;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 10px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== ORGANIC/NATURE VISUALS ========== */
section, .card, .testimonial-card {
  background-blend-mode: multiply;
  background-size: 240px 140px;
  background-repeat: no-repeat;
  background-position: right bottom;
}
section {
  background-image: url("../assets/textures/organic-wave.svg");
}
.card, .testimonial-card {
  background-image: url("../assets/textures/leaf-shadow.svg");
}
@media (max-width: 900px) {
  section, .card, .testimonial-card {
    background-size: 120px 80px;
  }
}

/* ========== FEATURE GRID ========== */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 32px 0 14px 0;
}
.feature-grid > div,
.service-list > div {
  background: var(--color-stone);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 28px 20px 21px 20px;
  flex: 1 1 255px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .15s, transform .13s;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid img,
.service-list img {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  filter: drop-shadow(0 1.5px 6px rgba(50,99,65,.05));
}
.feature-grid h3,
.service-list h3 {
  color: var(--color-green);
  font-weight: 900;
  font-size: 1.14rem;
  margin-bottom: 5px;
  text-align: center;
}
.feature-grid > div:hover,
.service-list > div:hover,
.feature-grid > div:focus,
.service-list > div:focus {
  box-shadow: 0 7px 28px rgba(35,49,72,0.13);
  transform: translateY(-4px) scale(1.012);
}
@media (max-width: 800px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
}


/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--color-light);
  box-shadow: 0 1px 8px rgba(35,49,72,0.07);
  padding: 0;
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
header img {
  max-height: 52px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: 6px;
  padding: 7px 12px;
  transition: background 0.17s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-earth);
  color: var(--color-green);
}

@media (max-width: 920px) {
  .main-nav {
    gap: 13px;
  }
  header .container {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}
@media (max-width: 770px) {
  .main-nav {
    display: none !important;
  }
  header .container {
    justify-content: flex-start;
  }
}

/* ========== MOBILE BURGER NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 21px;
  z-index: 102;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(50,99,65,0.13);
  transition: background 0.16s, color 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (max-width: 770px) {
  .mobile-menu-toggle {
      display: flex;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #fff 85%, #E9DDCD 100%);
  box-shadow: 0 8px 52px rgba(35,49,72,0.17);
  z-index: 200;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.87, .21, .44, .97), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  position: absolute;
  top: 19px;
  right: 28px;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 0;
  z-index: 204;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 88px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.22rem;
  color: var(--color-green);
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #e8e1d1;
  width: 90vw;
  text-align: center;
  border-radius: 12px;
  background: none;
  transition: background 0.14s, color 0.11s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-earth);
  color: var(--color-accent);
}

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

/* =================================
   FOOTER
================================= */
footer {
  background: var(--color-earth);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -4px 24px rgba(35,49,72,0.06);
  padding: 32px 12px 14px 12px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  font-size: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-primary);
  letter-spacing: 0.08em;
  border-radius: 7px;
  padding: 5px 13px;
  transition: background 0.17s, color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--color-stone);
  color: var(--color-green);
}
.footer-brand img {
  height: 46px;
}
.footer-bottom {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  font-size: 0.98rem;
  color: var(--color-primary);
  margin: 0 auto;
}
.footer-bottom span {
  padding-right: 16px;
}
.social-media {
  display: flex;
  gap: 12px;
}
.social-media a {
  display: flex;
  align-items: center;
  background: none;
  border-radius: 6px;
}
.social-media a img {
  width: 24px; height: 24px;
  transition: filter 0.15s;
}
.social-media a:hover img,
.social-media a:focus img {
  filter: brightness(0.8) saturate(1.8) drop-shadow(0 2.5px 9px rgba(50,99,65,0.11));
}
@media (max-width: 600px) {
  footer .container {
    gap: 23px;
  }
  .footer-nav {
    gap: 12px;
    font-size: .96rem;
  }
  .footer-brand img {
    height: 38px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
  }
}

/* =====================
   CONTENT
===================== */
.content-wrapper {
  margin-bottom: 20px;
}
.text-section {
  margin: 0 auto;
  padding-bottom: 8px;
}
.text-section ul,
.text-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.text-section li {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--color-body);
}
.text-section h3 {
  margin-top: 18px;
  margin-bottom: 9px;
  font-size: 1.16rem;
  color: var(--color-green);
}

/* ========== INDEX PAGE SPECIALS ========== */
@media (max-width: 900px) {
  .text-section {
    padding: 0 7px 8px 7px;
  }
  .feature-grid > div, .service-list > div {
    min-width: 0;
    width: 100%;
  }
}

/* ===============================
   SPACING UTILITIES & PATTERNS
=============================== */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ====================
    FORMS (GENERIC)
==================== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-earth);
  padding: 12px 16px;
  margin-bottom: 18px;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: var(--color-body);
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid var(--color-green);
  background: #f7f7ed;
}
label {
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 4px;
  display: inline-block;
}

/* ===============================
   COOKIE CONSENT BANNER
=============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #f3e5c6 75%, #d2c0a2 100%);
  color: var(--color-primary);
  font-size: 1.02rem;
  padding: 20px 16px 24px 16px;
  box-shadow: 0 -5px 18px rgba(50,70,53,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2200;
  gap: 18px;
  flex-wrap: wrap;
  border-top-left-radius: 21px;
  border-top-right-radius: 21px;
  transition: transform 0.32s cubic-bezier(.83,.12,.28,1.1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__text {
  flex: 1;
  min-width: 170px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  background: var(--color-green);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background 0.15s, color 0.13s;
  box-shadow: 0 2px 8px rgba(50,70,53, .07);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: #fff8e6;
}
.cookie-btn.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-green);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-green);
  border: 1.3px solid var(--color-green);
  margin-left: 8px;
  padding: 10px 20px;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #e9ddcd;
  color: var(--color-accent);
}
@media (max-width: 650px) {
  .cookie-banner {
    font-size: 0.92rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 6px 17px 8px;
  }
  .cookie-banner__buttons {
    gap: 9px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3350;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44, 60, 44, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 7px 44px rgba(35,49,72,0.14);
  padding: 34px 26px 27px 26px;
  max-width: 420px;
  min-width: 260px;
  width: 90vw;
  color: var(--color-body);
  font-size: 1.04rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalShow 0.33s cubic-bezier(.56,.03,.37,.89) 1;
}
@keyframes cookieModalShow {
  0% { transform: scale(0.89) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: var(--color-green);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  background: var(--color-stone);
  padding: 9px 13px;
  margin-bottom: 7px;
}
.cookie-category label {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-toggle {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.9rem;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-accent);
}

/* ================== ANIMATIONS & MICROINTERACTIONS ================= */
.cta-btn, .feature-grid > div, .service-list > div, .card, .testimonial-card, .cookie-btn, .mobile-menu-toggle {
  transition: box-shadow .17s, background .17s, color .13s, transform .18s;
}
.card:hover, .card:focus, .testimonial-card:hover, .testimonial-card:focus {
  transform: scale(1.013) translateY(-2.5px);
  box-shadow: 0 8px 40px rgba(35,49,72,0.15);
}

/* ============= TABLES (CONTENT PAGES) ============= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
th, td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-earth);
}
th {
  font-size: 1.06rem;
  color: var(--color-green);
  text-align: left;
}
tr:last-child th, tr:last-child td {
  border-bottom: none;
}

/* ============= ACCESSIBILITY ============= */
:focus-visible {
  outline: 1.7px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============= DARK TEXT FOR TESTIMONIALS ============= */
.testimonial-card, .testimonial-content {
  color: #182115;
  background: #fff;
}
.testimonial-card strong {
  color: var(--color-green);
  font-size: 1.01em;
}
.testimonial-card > div:last-child {
  color: var(--color-accent);
  font-size: 1.25em;
  letter-spacing: 0.06em;
}

/* ============= RESPONSIVE MAIN ============= */
@media (max-width: 540px) {
  main, section, .container, .content-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .feature-grid > div, .service-list > div {
    padding: 18px 9px 12px 9px;
  }
}

/* ============= THANK YOU PAGE ============= */
.thankyou {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============= MISC ORGANIC SHAPE DECORATION ============= */
.organic-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  filter: blur(.5px) grayscale(0.15);
}

/* ===================== HELPERS ==================== */
.hide, .d-none { display: none !important; }

/* ================== PRINT STYLES ================== */
@media print {
  header, footer, .mobile-menu-toggle, .cookie-banner { display:none !important; }
  main, section, .container, .content-wrapper { background: none !important; box-shadow: none !important; }
}
