/* Verdant Ridge Forestry — Premium static theme */
:root {
  --forest-950: #0f1f18;
  --forest-900: #152921;
  --forest-800: #1d352b;
  --forest-700: #264238;
  --sage: #8da396;
  --moss: #6b8569;
  --cream: #f6f4ef;
  --cream-dark: #e8e4da;
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.22);
  --white: #ffffff;
  --text: #253127;
  --text-muted: #5c6d63;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --shadow-soft: 0 24px 60px rgba(21, 41, 33, 0.12);
  --header-h: 76px;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.18;
  color: var(--forest-950);
}

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

h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.175rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Shell */
.shell {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39, 66, 56, 0.08);
  transition: box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(21, 41, 33, 0.08);
}

.site-header-inner {
  width: min(1180px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--forest-900);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--forest-800), var(--forest-950));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(21, 41, 33, 0.25);
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  fill: var(--cream);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-primary a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.935rem;
  font-weight: 500;
  color: var(--forest-900);
  transition: background 0.25s, color 0.25s;
}

.nav-primary a:hover {
  background: rgba(39, 66, 56, 0.08);
}

.nav-primary a.active {
  background: var(--forest-900);
  color: var(--cream);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--forest-900);
  color: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, background 0.28s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--forest-900), var(--forest-800));
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(21, 41, 33, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(21, 41, 33, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-900);
  border: 1px solid rgba(39, 66, 56, 0.2);
}

.btn-ghost:hover {
  background: rgba(39, 66, 56, 0.06);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: clamp(380px, 55vw, 620px);
  height: clamp(380px, 55vw, 620px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 165, 116, 0.18), transparent 65%);
  pointer-events: none;
  animation: floatBlob 22s linear infinite alternate;
}

@keyframes floatBlob {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.06);
  }
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 24, 0.55), transparent 42%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-card {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 2;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  padding: 1rem 1.15rem;
  border-radius: 14px;
  max-width: min(340px, 88%);
  border: 1px solid rgba(39, 66, 56, 0.1);
  animation: riseIn 1s var(--ease-out) 0.2s backwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--forest-900);
}

.hero-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  min-width: 120px;
}

.hero-stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  color: var(--forest-950);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lead-split {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

@media (max-width: 900px) {
  .lead-split {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef1ea 0%, var(--cream) 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Value grid */
.grid-3 {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid rgba(39, 66, 56, 0.08);
  box-shadow: 0 8px 30px rgba(21, 41, 33, 0.05);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(21, 41, 33, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--forest-900);
  margin-bottom: 1.1rem;
}

.feature-card p {
  font-size: 0.9625rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(39, 66, 56, 0.08);
  display: grid;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.testimonial:nth-child(1) { animation-delay: 0.05s; }
.testimonial:nth-child(2) { animation-delay: 0.12s; }
.testimonial:nth-child(3) { animation-delay: 0.18s; }
.testimonial:nth-child(4) { animation-delay: 0.24s; }
.testimonial:nth-child(5) { animation-delay: 0.32s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 165, 116, 0.5);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.9375rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--forest-950);
}

.testimonial-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial blockquote {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Sites / estates */
.estate-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.estate-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(39, 66, 56, 0.08);
  box-shadow: 0 14px 40px rgba(21, 41, 33, 0.07);
  transition: transform 0.4s var(--ease-out);
}

.estate-card:hover {
  transform: translateY(-4px);
}

.estate-card-img {
  height: 200px;
  overflow: hidden;
}

.estate-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}

.estate-card:hover .estate-card-img img {
  transform: scale(1.06);
}

.estate-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.tag-pill {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--forest-900);
}

/* Services list */
.services-wrap {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.service-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(39, 66, 56, 0.08);
}

.service-item strong {
  display: block;
  color: var(--forest-950);
}

.service-item span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-bullet {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--forest-900);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Forms */
.form-shell {
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--forest-900);
}

.full-row {
  grid-column: 1 / -1;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(39, 66, 56, 0.16);
  padding: 0.82rem 1rem;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8375rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(107, 133, 105, 0.15);
  color: var(--forest-950);
  font-weight: 500;
}

/* CTA stripe */
.cta-strip {
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--forest-950), #1a3930);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 30px 60px rgba(15, 31, 24, 0.35);
}

.cta-strip h2 {
  color: inherit;
}

.cta-strip p {
  opacity: 0.88;
  max-width: 420px;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--forest-950);
  color: rgba(246, 244, 239, 0.78);
  padding: 3rem 0 8rem;
  margin-top: 2rem;
}

.site-footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9325rem;
}

.footer-links h4 {
  color: var(--cream);
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.9425rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 244, 239, 0.12);
  margin-top: 2rem;
  padding-top: 1.35rem;
  font-size: 0.8375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
}

/* WhatsApp FAB */
.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 22px);
  bottom: clamp(88px, 12vh, 120px);
  z-index: 950;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.wa-float:hover {
  transform: scale(1.05);
}

.wa-float svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

/* Cookie banner */
.cookie-bar {
  position: fixed;
  left: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 18px);
  z-index: 1000;
  background: rgba(18, 32, 27, 0.96);
  color: rgba(246, 244, 239, 0.92);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1rem;
}

.cookie-bar[hidden],
.cookie-overlay[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  max-width: 720px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-cookie-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(246, 244, 239, 0.35);
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-cookie-primary {
  background: var(--gold);
  border: none;
  color: var(--forest-950);
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 20, 0.45);
  z-index: 999;
}

.cookie-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: min(420px, 92vw);
  background: var(--cream);
  color: var(--text);
  border-radius: 18px;
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-soft);
}

.cookie-popup h3 {
  margin-top: 0;
}

.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(39, 66, 56, 0.1);
  font-weight: 500;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(39, 66, 56, 0.2);
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 0.25s;
}

.toggle[aria-checked="true"] {
  background: var(--forest-900);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
}

.toggle[aria-checked="true"] .toggle-thumb {
  transform: translateX(20px);
}

/* Legal */
.legal-document {
  max-width: 720px;
}

.legal-document h2 {
  margin-top: 2rem;
}

.legal-document h3 {
  margin-top: 1.5rem;
}

.legal-document ul {
  padding-left: 1.35rem;
}

/* Page hero small */
.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(circle at 10% -20%, rgba(196, 165, 116, 0.18), transparent 45%);
}

/* Responsive */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-height: 420px;
  }

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

  .services-wrap {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: grid;
  }

  .nav-primary {
    display: none;
    position: absolute;
    left: clamp(14px, 3vw, 20px);
    right: clamp(14px, 3vw, 20px);
    top: calc(var(--header-h) + 8px);
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(246, 244, 239, 0.98);
    border: 1px solid rgba(39, 66, 56, 0.1);
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .nav-primary {
    display: flex;
  }
}

@media (max-width: 600px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .hero-visual img {
    animation: none !important;
  }
}
