/* ================================================================
   Heritage Hill Nursery — styles.css
   DM Serif Display + Plus Jakarta Sans
   Organic warmth, fern green, terracotta, cream & loam
   ================================================================ */

/* ----------------------------------------------------------------
   0. Fonts
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   1. Custom Properties
   ---------------------------------------------------------------- */
:root {
  --bg: #FAF6EF;
  --bg-alt: #EDE6D8;
  --bg-card: #F3EFE8;
  --bg-dark: #3B2F20;
  --text: #3B2F20;
  --text-muted: #5C4A3A;
  --text-faint: #9E9385;
  --primary: #4A6741;
  --primary-rgb: 74, 103, 65;
  --primary-light: #6A8760;
  --primary-light-rgb: 106, 135, 96;
  --accent: #C4704B;
  --accent-rgb: 196, 112, 75;
  --accent-light: #F5DED2;
  --sage: #8B9E7C;
  --sage-rgb: 139, 158, 124;
  --sage-light: #F0F3ED;
  --border: #D8D0C4;
  --border-light: #EDE6D8;

  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(59, 47, 32, 0.06);
  --shadow: 0 2px 8px rgba(59, 47, 32, 0.08);
  --shadow-md: 0 4px 16px rgba(59, 47, 32, 0.10);
  --shadow-lg: 0 8px 32px rgba(59, 47, 32, 0.12);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
  --container: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
}

html.dark {
  --bg: #1E1A15;
  --bg-alt: #282320;
  --bg-card: #302A25;
  --bg-dark: #120F0A;
  --text: #EDE6D8;
  --text-muted: #B8A898;
  --text-faint: #7A6D5E;
  --primary: #6A8760;
  --primary-rgb: 106, 135, 96;
  --primary-light: #8BA880;
  --primary-light-rgb: 139, 168, 128;
  --accent: #D48A65;
  --accent-rgb: 212, 138, 101;
  --accent-light: #2A1E15;
  --sage: #7A9468;
  --sage-rgb: 122, 148, 104;
  --sage-light: #1A2518;
  --border: #3A3228;
  --border-light: #282320;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* Nested list resets */
article ul,
article ol,
.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.5em;
}

article ol,
.prose ol {
  list-style: decimal;
}

article ul ul,
article ol ol,
.prose ul ul,
.prose ol ol {
  list-style: circle;
  margin-top: 0.25em;
}

article ul ul ul,
.prose ul ul ul {
  list-style: square;
}

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

p + p {
  margin-top: 1em;
}

.label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.text-faint {
  color: var(--text-faint);
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

/* ----------------------------------------------------------------
   4. Layout
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header .label {
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

/* ----------------------------------------------------------------
   5. Sticky Nav
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--text);
}

.nav__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
}

.nav__brand-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text);
  background-color: var(--bg-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun  { display: block; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition-fast);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  z-index: 99;
  background-color: var(--bg);
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-light);
  min-height: 44px;
}

.nav__mobile a:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition-fast);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}

.btn--accent {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background-color: #b0613e;
  border-color: #b0613e;
  color: #fff;
}

html.dark .btn--accent:hover {
  background-color: #e09a78;
  border-color: #e09a78;
  color: var(--bg-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--bg-alt);
}

.btn--white {
  background-color: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

.btn--white:hover {
  background-color: var(--bg);
  border-color: var(--bg);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 1rem 2.25rem;
}

/* Arrow in button */
.btn svg,
.btn .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg,
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(500px, 70vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(59, 47, 32, 0.88) 0%,
    rgba(59, 47, 32, 0.65) 40%,
    rgba(59, 47, 32, 0.25) 70%,
    transparent 100%
  );
  z-index: 1;
}

html.dark .hero__overlay {
  background: linear-gradient(
    to right,
    rgba(18, 15, 10, 0.92) 0%,
    rgba(18, 15, 10, 0.7) 40%,
    rgba(18, 15, 10, 0.35) 70%,
    rgba(18, 15, 10, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero__content h1 {
  color: #FAF6EF;
  margin-bottom: 1.25rem;
}

.hero__content p {
  color: rgba(250, 246, 239, 0.85);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Seasonal Pulse */
.seasonal-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(250, 246, 239, 0.1);
  border: 1px solid rgba(250, 246, 239, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.seasonal-pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-light);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0); }
}

.seasonal-pulse__text {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(250, 246, 239, 0.8);
}

.seasonal-pulse__text strong {
  color: #FAF6EF;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   8. Value Pillars (Cards)
   ---------------------------------------------------------------- */
.value-pillars {
  background-color: var(--bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.pillar-card__icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
  }
}

/* ----------------------------------------------------------------
   9. Seasonal "What's Growing Now" (Split)
   ---------------------------------------------------------------- */
.seasonal {
  background-color: var(--bg-alt);
}

.seasonal__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.seasonal__text .label {
  margin-bottom: 0.75rem;
  display: block;
}

.seasonal__text h2 {
  margin-bottom: 1rem;
}

.seasonal__text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.seasonal__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.seasonal__photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.seasonal__photos img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

@media (max-width: 767px) {
  .seasonal__split {
    grid-template-columns: 1fr;
  }

  .seasonal__photos {
    order: -1;
  }

  .seasonal__photos img {
    height: 180px;
  }

  .seasonal__photos img:first-child {
    height: 200px;
  }
}

/* ----------------------------------------------------------------
   10. Landscape Services (Dark Loam Background)
   ---------------------------------------------------------------- */
.services-dark {
  background-color: var(--bg-dark);
  color: #EDE6D8;
}

html.dark .services-dark {
  background-color: #120F0A;
}

.services-dark h2,
.services-dark h3,
.services-dark h4 {
  color: #FAF6EF;
}

.services-dark .label {
  color: var(--sage);
}

.services-dark p {
  color: rgba(237, 230, 216, 0.75);
}

.services-dark__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.services-dark__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.services-dark__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.services-dark__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services-dark__item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(237, 230, 216, 0.1);
}

.services-dark__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.services-dark__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.services-dark__item p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .services-dark__split {
    grid-template-columns: 1fr;
  }

  .services-dark__image img {
    min-height: 280px;
  }
}

/* ----------------------------------------------------------------
   11. Closed Loop Strip
   ---------------------------------------------------------------- */
.closed-loop {
  background-color: var(--primary);
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
}

.closed-loop__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.closed-loop__step {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.closed-loop__step span {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #fff;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}

.closed-loop__arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  flex-shrink: 0;
}

.closed-loop__arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .closed-loop__inner {
    flex-direction: column;
    gap: 0.25rem;
  }

  .closed-loop__arrow {
    transform: rotate(90deg);
  }
}

/* ----------------------------------------------------------------
   12. Testimonial
   ---------------------------------------------------------------- */
.testimonial-section {
  background-color: var(--bg);
}

.testimonial-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
}

.testimonial-card__mark {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  user-select: none;
  margin-bottom: -1rem;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.testimonial-card cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   13. About / Heritage (Sage Tint)
   ---------------------------------------------------------------- */
.about-sage {
  background-color: var(--sage-light);
}

.about-sage__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.about-sage__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-sage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.about-sage__text .label {
  margin-bottom: 0.75rem;
  display: block;
}

.about-sage__text h2 {
  margin-bottom: 1rem;
}

.about-sage__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-sage__text p:last-of-type {
  margin-bottom: 1.75rem;
}

@media (max-width: 767px) {
  .about-sage__split {
    grid-template-columns: 1fr;
  }

  .about-sage__image img {
    min-height: 260px;
  }
}

/* ----------------------------------------------------------------
   14. Service Area
   ---------------------------------------------------------------- */
.service-area {
  background-color: var(--bg);
}

.service-area__content {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.service-area__content h2 {
  margin-bottom: 1rem;
}

.service-area__content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-area__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.service-area__tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.service-area__tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----------------------------------------------------------------
   15. Dual CTA (Photo Background Overlay)
   ---------------------------------------------------------------- */
.dual-cta {
  position: relative;
  overflow: hidden;
}

.dual-cta__bg {
  position: absolute;
  inset: 0;
}

.dual-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-cta__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(59, 47, 32, 0.82);
}

html.dark .dual-cta__overlay {
  background-color: rgba(18, 15, 10, 0.88);
}

.dual-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.dual-cta__block {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background-color: rgba(250, 246, 239, 0.07);
  border: 1px solid rgba(250, 246, 239, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dual-cta__block h3 {
  color: #FAF6EF;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.dual-cta__block p {
  color: rgba(250, 246, 239, 0.75);
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .dual-cta__inner {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   16. Contact Form
   ---------------------------------------------------------------- */
.contact-section {
  background-color: var(--bg-alt);
}

.contact__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact__info h2 {
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact__detail-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__detail-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.contact__detail-text a {
  color: var(--text-muted);
}

.contact__detail-text a:hover {
  color: var(--primary);
}

/* Form */
.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-height: 44px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235C4A3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

html.dark .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B8A898' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Checkbox / Consent */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

/* Honeypot */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Turnstile */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* Form messages */
.form-success {
  display: none;
  background-color: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-error {
  display: none;
  background-color: rgba(196, 112, 75, 0.1);
  border: 1px solid rgba(196, 112, 75, 0.2);
  color: var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

.form-actions {
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__split {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   17. FAQ Accordion
   ---------------------------------------------------------------- */
.faq-section {
  background-color: var(--bg);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-trigger__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  transition: transform var(--transition), background-color var(--transition);
}

.faq-trigger__icon svg {
  width: 14px;
  height: 14px;
}

.faq-item.open .faq-trigger__icon {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: #fff;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer__inner {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   18. Footer (Loam Dark)
   ---------------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark);
  color: rgba(237, 230, 216, 0.7);
  padding-block: clamp(3rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}

html.dark .footer {
  background-color: #120F0A;
}

.footer h4,
.footer h5 {
  color: #FAF6EF;
}

.footer a {
  color: rgba(237, 230, 216, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: #FAF6EF;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.footer__brand p {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col a {
  font-size: 0.9375rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237, 230, 216, 0.1);
  font-size: 0.8125rem;
  color: rgba(237, 230, 216, 0.5);
}

.footer__bottom a {
  color: rgba(237, 230, 216, 0.5);
}

.footer__bottom a:hover {
  color: rgba(237, 230, 216, 0.8);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   19. Disclaimer Banner
   ---------------------------------------------------------------- */
.disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--bg-dark);
  color: rgba(237, 230, 216, 0.8);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.625rem 1.25rem;
  border-top: 1px solid rgba(237, 230, 216, 0.1);
}

html.dark .disclaimer {
  background-color: #120F0A;
}

.disclaimer a {
  color: rgba(237, 230, 216, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer a:hover {
  color: #FAF6EF;
}

/* ----------------------------------------------------------------
   20. Utility Classes
   ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mx-auto {
  margin-inline: auto;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }

.w-full { width: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.overflow-hidden { overflow: hidden; }

.relative { position: relative; }

.bg-dark { background-color: var(--bg-dark); }
.bg-alt { background-color: var(--bg-alt); }
.bg-sage { background-color: var(--sage-light); }

/* Touch target minimum */
button,
a,
input,
select,
textarea,
[role="button"] {
  min-height: 44px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .nav,
  .disclaimer,
  .nav__mobile,
  .dual-cta,
  .theme-toggle,
  .nav__hamburger {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
