/* ==========================================================
   Heartwood Digital — Main Stylesheet
   Design: Refined Organic Minimalism
   ========================================================== */

/* ── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Figtree:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Brand — from logo */
  --forest: #3B6D11;
  --canopy: #639922;
  --leaf: #97C459;
  --spring: #C0DD97;
  --spring-text: #D4EAAE;
  --bark: #712B13;

  /* Neutrals */
  --heartwood: #141413;
  --charcoal: #2D2D2A;
  --stone: #605F58;
  --mist: #A8A89E;
  --parchment: #FAFAF7;
  --linen: #F3F2EC;
  --white: #FFFFFF;

  /* Semantic */
  --primary: var(--canopy);
  --primary-dark: var(--forest);
  --primary-light: var(--leaf);
  --primary-lighter: var(--spring);
  --accent: var(--bark);
  --text: var(--heartwood);
  --text-secondary: var(--stone);
  --bg: var(--parchment);
  --bg-alt: var(--linen);
  --surface: var(--white);

  /* Typography */
  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 500ms;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: var(--space-md); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--green {
  background: var(--forest);
  color: var(--white);
}

.section--green .text-secondary { color: var(--spring-text); }

.grid {
  display: grid;
  gap: var(--space-xl);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: var(--space-3xl) 0; }
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}
.section-header p {
  margin-top: var(--space-md);
  color: var(--text-secondary);
  font-size: 1.125rem;
}
.section--green .section-header p {
  color: var(--spring-text);
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--canopy);
  margin-bottom: var(--space-sm);
}
.section--green .section-label { color: var(--spring-text); }

/* ── Header / Nav ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header__logo svg {
  width: 36px;
  height: 36px;
}
.header__logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.header__logo-text span {
  color: var(--canopy);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--canopy);
  border-radius: 1px;
  transition: width var(--dur) var(--ease-out);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    background: var(--white);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
  .nav__link { font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease-out);
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--canopy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--forest);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 109, 17, 0.3);
}
.btn--secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
}
.btn--secondary:hover {
  border-color: var(--canopy);
  color: var(--canopy);
  transform: translateY(-1px);
}
.btn--outline-white {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--forest);
  transform: translateY(-1px);
}
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--spring), rgba(151,196,89,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--forest);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--space-sm); }
.card p { color: var(--text-secondary); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,153,34,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-2xl);
}

/* Staggered block animation for inline hero logo */
.hero__logo .tree-block {
  opacity: 0;
  transform: scale(0.5);
  animation: blockIn 0.4s var(--ease-out) forwards;
}
@keyframes blockIn {
  to { opacity: 1; transform: scale(1); }
}
.hero__logo .tree-block:nth-child(1)  { animation-delay: 0.1s; }
.hero__logo .tree-block:nth-child(2)  { animation-delay: 0.15s; }
.hero__logo .tree-block:nth-child(3)  { animation-delay: 0.2s; }
.hero__logo .tree-block:nth-child(4)  { animation-delay: 0.22s; }
.hero__logo .tree-block:nth-child(5)  { animation-delay: 0.25s; }
.hero__logo .tree-block:nth-child(6)  { animation-delay: 0.28s; }
.hero__logo .tree-block:nth-child(7)  { animation-delay: 0.3s; }
.hero__logo .tree-block:nth-child(8)  { animation-delay: 0.33s; }
.hero__logo .tree-block:nth-child(9)  { animation-delay: 0.36s; }
.hero__logo .tree-block:nth-child(10) { animation-delay: 0.38s; }
.hero__logo .tree-block:nth-child(11) { animation-delay: 0.4s; }
.hero__logo .tree-block:nth-child(12) { animation-delay: 0.42s; }
.hero__logo .tree-block:nth-child(13) { animation-delay: 0.45s; }
.hero__logo .trunk-block {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: trunkIn 0.5s var(--ease-out) 0.5s forwards;
}
@keyframes trunkIn {
  to { opacity: 1; transform: scaleY(1); }
}

.hero h1 {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.65s forwards;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.8s forwards;
}
.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.95s forwards;
}

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

/* ── Stats Strip ──────────────────────────────────────────── */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding: var(--space-2xl) 0;
}
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--canopy);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--canopy), var(--leaf));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Value Props ──────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}
.value-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 153, 34, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--canopy);
}
.value-item__icon svg { width: 26px; height: 26px; }
.value-item h3 { margin-bottom: var(--space-sm); }
.value-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Portfolio Grid ───────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.portfolio-card__preview {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.portfolio-card__browser {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.portfolio-card__browser-bar {
  height: 28px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}
.portfolio-card__browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}
.portfolio-card__browser-bar span:first-child { background: #ff5f56; }
.portfolio-card__browser-bar span:nth-child(2) { background: #ffbd2e; }
.portfolio-card__browser-bar span:nth-child(3) { background: #27c93f; }
.portfolio-card__browser-body {
  height: calc(100% - 28px);
}
.portfolio-card__info {
  padding: var(--space-lg);
}
.portfolio-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--canopy);
  background: rgba(99,153,34,0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}
.portfolio-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}
.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.portfolio-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--canopy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur) var(--ease-out);
}
.portfolio-card:hover .portfolio-card__link { gap: 10px; }

/* Portfolio preview mini-site themes */
.preview--bakery {
  background: linear-gradient(135deg, #F5E6D3, #EDDCC9);
}
.preview--bakery .portfolio-card__browser-body {
  background: #FFF9F2;
  padding: 10px;
}
.preview--bakery .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 40px;
  background: linear-gradient(90deg, #8B6914, #C4943A);
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--bakery .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 60px;
  background: repeating-linear-gradient(90deg, #F0E2D0 0, #F0E2D0 48%, transparent 48%, transparent 50%, #F0E2D0 50%, #F0E2D0 98%, transparent 98%);
  border-radius: 3px;
}

.preview--fitness {
  background: linear-gradient(135deg, #1A1A2E, #16213E);
}
.preview--fitness .portfolio-card__browser-body {
  background: #0F0F1A;
  padding: 10px;
}
.preview--fitness .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 45px;
  background: linear-gradient(135deg, #E63946, #FF6B6B);
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--fitness .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 50px;
  background: repeating-linear-gradient(90deg, #1A1A2E 0, #1A1A2E 31%, transparent 31%, transparent 33%, #1A1A2E 33%, #1A1A2E 64%, transparent 64%, transparent 66%, #1A1A2E 66%, #1A1A2E 97%);
  border-radius: 3px;
}

.preview--realty {
  background: linear-gradient(135deg, #1B2A4A, #2C3E6B);
}
.preview--realty .portfolio-card__browser-body {
  background: #F8F9FC;
  padding: 10px;
}
.preview--realty .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 36px;
  background: #1B2A4A;
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--realty .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 60px;
  background: repeating-linear-gradient(90deg, #E8EDF5 0, #E8EDF5 48%, transparent 48%, transparent 50%, #E8EDF5 50%, #E8EDF5 98%, transparent 98%);
  border-radius: 3px;
}

.preview--dental {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}
.preview--dental .portfolio-card__browser-body {
  background: #FFFFFF;
  padding: 10px;
}
.preview--dental .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 40px;
  background: linear-gradient(90deg, #4FC3F7, #29B6F6);
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--dental .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 55px;
  background: repeating-linear-gradient(90deg, #E3F2FD 0, #E3F2FD 31%, transparent 31%, transparent 33%, #E3F2FD 33%, #E3F2FD 64%, transparent 64%, transparent 66%, #E3F2FD 66%, #E3F2FD 97%);
  border-radius: 3px;
}

.preview--photography {
  background: linear-gradient(135deg, #212121, #424242);
}
.preview--photography .portfolio-card__browser-body {
  background: #1A1A1A;
  padding: 10px;
}
.preview--photography .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 70px;
  background: linear-gradient(135deg, #444, #666, #555);
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--photography .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 30px;
  background: repeating-linear-gradient(90deg, #333 0, #333 24%, transparent 24%, transparent 25%, #333 25%, #333 49%, transparent 49%, transparent 50%, #333 50%, #333 74%, transparent 74%, transparent 75%, #333 75%, #333 99%);
  border-radius: 3px;
}

.preview--law {
  background: linear-gradient(135deg, #1B3329, #2A4D3E);
}
.preview--law .portfolio-card__browser-body {
  background: #FAF9F7;
  padding: 10px;
}
.preview--law .portfolio-card__browser-body::before {
  content: '';
  display: block;
  height: 38px;
  background: #1B3329;
  border-radius: 3px;
  margin-bottom: 6px;
}
.preview--law .portfolio-card__browser-body::after {
  content: '';
  display: block;
  height: 55px;
  background: linear-gradient(180deg, #F0EDE8 0, #F0EDE8 45%, transparent 45%, transparent 50%, #E8E4DD 50%, #E8E4DD 95%);
  border-radius: 3px;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.pricing-card--featured {
  border-color: var(--canopy);
  border-width: 2px;
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--canopy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}
.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pricing-card__price .amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text);
}
.pricing-card__price .period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-card__price .starting {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.pricing-card__features {
  margin-bottom: var(--space-xl);
}
.pricing-card__features li {
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(99, 153, 34, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23639922' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-card .btn { width: 100%; }

/* Bundle callout */
.pricing-bundle {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
  background: linear-gradient(135deg, rgba(99,153,34,0.06), rgba(151,196,89,0.08));
  border: 1px solid rgba(99,153,34,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
}
.pricing-bundle h3 { margin-bottom: var(--space-sm); }
.pricing-bundle p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.faq-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}
.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B64' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  transition: transform var(--dur) var(--ease-out);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-answer__inner {
  padding: 0 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-info h2 { margin-bottom: var(--space-md); }
.contact-info > p { color: var(--text-secondary); margin-bottom: var(--space-2xl); }
.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.contact-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99,153,34,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--canopy);
}
.contact-detail__icon svg { width: 18px; height: 18px; }
.contact-detail__text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.contact-detail__text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.05);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--canopy);
  box-shadow: 0 0 0 3px rgba(99,153,34,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B64' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.form .btn { width: 100%; }
.form__success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}
.form__success.show { display: block; }
.form__success svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--canopy);
}
.form__success h3 { margin-bottom: var(--space-sm); }
.form__success p { color: var(--text-secondary); }
.form__fields.hide { display: none; }

/* ── About ────────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: calc(var(--header-height) + var(--space-4xl)) var(--space-xl) var(--space-3xl);
}
.about-hero .section-label { margin-bottom: var(--space-sm); }
.about-hero h1 { margin-bottom: var(--space-md); }
.about-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; }
}
.about-story__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--linen), var(--bg));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-story__visual svg {
  width: 60%;
  height: auto;
  opacity: 0.15;
}
/* Decorative pixel blocks inside the visual */
.about-story__visual::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--spring), var(--leaf));
  border-radius: var(--radius-sm);
  opacity: 0.3;
}
.about-story__visual::after {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--canopy);
  border-radius: var(--radius-sm);
  opacity: 0.2;
}
.about-story__content h2 { margin-bottom: var(--space-lg); }
.about-story__content p { color: var(--text-secondary); }
.about-story__content p + p { margin-top: var(--space-md); }

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 768px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .about-values { grid-template-columns: 1fr; }
}
.about-value {
  text-align: center;
  padding: var(--space-xl);
}
.about-value__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99,153,34,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--canopy);
}
.about-value__icon svg { width: 22px; height: 22px; }
.about-value h4 { margin-bottom: var(--space-xs); }
.about-value p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── CTA Section ──────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { margin-bottom: var(--space-md); color: var(--white); }
.cta p { color: var(--spring-text); margin-bottom: var(--space-2xl); max-width: 540px; margin-left: auto; margin-right: auto; }
.cta .btn + .btn { margin-left: var(--space-md); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--heartwood);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand p {
  font-size: 0.9rem;
  margin-top: var(--space-md);
  max-width: 280px;
  line-height: 1.7;
}
.footer__brand .header__logo {
  margin-bottom: var(--space-sm);
}
.footer__brand .header__logo-text {
  color: var(--white);
}
.footer__heading {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.footer ul li { margin-bottom: var(--space-sm); }
.footer ul li a {
  font-size: 0.9rem;
  transition: color var(--dur-fast);
}
.footer ul li a:hover { color: var(--spring); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
}

/* ── Page Header (non-home pages) ─────────────────────────── */
.page-header {
  text-align: center;
  padding: calc(var(--header-height) + var(--space-4xl)) var(--space-xl) var(--space-3xl);
  background: var(--bg-alt);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,153,34,0.2), transparent);
}
.page-header .section-label { margin-bottom: var(--space-sm); }
.page-header h1 { margin-bottom: var(--space-md); }
.page-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Scroll Animations ────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

/* ── Focus Indicators (WCAG 2.4.7) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--canopy);
  outline-offset: 2px;
}

/* High-contrast focus for dark backgrounds */
.section--green :focus-visible,
.footer :focus-visible,
.cta :focus-visible {
  outline-color: var(--spring);
}

/* Form inputs keep their custom focus ring */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--canopy);
  box-shadow: 0 0 0 3px rgba(99,153,34,0.12);
}

/* ── Skip Link ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--canopy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: 0;
}

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

/* ── Demo Badge (portfolio sites) ─────────────────────────── */
.demo-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--heartwood);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform var(--dur) var(--ease-out);
}
.demo-badge:hover {
  transform: translateY(-2px);
}
.demo-badge svg { width: 16px; height: 16px; }

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}
@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}
.process-step {
  text-align: center;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--spring);
  margin-bottom: var(--space-md);
}
.section--green .process-step h3 { color: var(--white); }
.section--green .process-step p { color: var(--spring-text); font-size: 0.9rem; }

/* ── Testimonial (placeholder) ────────────────────────────── */
.testimonial {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── 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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
