/* Peak Landscape Services - design layer.
   Tailwind (static/tailwind.css) owns spacing, layout, and breakpoints.
   This file owns character: color variables, texture, typography detail,
   component treatments, and motion. Keep spacing out of here. */

:root {
  --pine-deep: #102315;
  --pine: #16301d;
  --pine-mid: #1e4226;
  --moss: #64955a;
  --moss-deep: #3f6b3e;
  --moss-soft: #a9c49b;
  --cream: #faf7ef;
  --cream-dim: #f2ecdc;
  --clay: #c05b2e;
  --clay-deep: #a74b23;
  --gold: #dfa42b;
  --ink: #1f261e;

  --radius-leaf: 28px 28px 28px 6px;
  --radius-leaf-sm: 18px 18px 18px 5px;
  --radius-leaf-xs: 12px 12px 12px 3px;

  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='420' viewBox='0 0 620 420'%3E%3Cg fill='none' stroke='%23faf7ef' stroke-opacity='.055' stroke-width='1.3'%3E%3Cpath d='M-20 60c90-38 180 26 280-6s220-52 380 8'/%3E%3Cpath d='M-20 110c110-44 200 34 300-2s200-60 360 12'/%3E%3Cpath d='M-20 170c80-30 190 40 290 6s230-64 370 4'/%3E%3Cpath d='M-20 240c100-42 180 30 290-4s210-46 370 10'/%3E%3Cpath d='M-20 310c90-34 200 36 300 2s220-58 360 6'/%3E%3Cpath d='M-20 380c110-40 190 28 290-6s230-44 370 12'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- Global atmosphere ---------- */

html {
  scroll-behavior: smooth;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--clay);
  color: var(--cream);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-leaf-xs);
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ---------- Typography detail ---------- */

.font-display {
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
}

.hero-line {
  text-wrap: balance;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Karla", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss-soft);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--clay);
  flex-shrink: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.section-label::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: var(--clay);
  flex-shrink: 0;
}

/* ---------- Header and nav ---------- */

.site-header {
  background: color-mix(in srgb, var(--pine-deep) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(250, 247, 239, 0.09);
}

.brand svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover svg {
  transform: translateY(-2px);
}

.site-nav a[data-nav] {
  position: relative;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a[data-nav]:hover {
  color: var(--cream);
}

.site-nav a[data-nav]:hover::after {
  transform: scaleX(1);
}

body.page-index .site-nav a[data-nav="index"],
body.page-services .site-nav a[data-nav="services"],
body.page-contact .site-nav a[data-nav="contact"] {
  color: var(--cream);
}

body.page-index .site-nav a[data-nav="index"]::after,
body.page-services .site-nav a[data-nav="services"]::after,
body.page-contact .site-nav a[data-nav="contact"]::after {
  transform: scaleX(1);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-leaf-xs);
  transition: transform 0.15s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-clay {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 6px 16px -8px rgba(192, 91, 46, 0.65);
}

.btn-clay:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 10px 22px -8px rgba(192, 91, 46, 0.7);
}

.btn-ghost-light {
  border: 1.5px solid rgba(250, 247, 239, 0.35);
  color: var(--cream);
}

.btn-ghost-light:hover {
  border-color: rgba(250, 247, 239, 0.7);
  background: rgba(250, 247, 239, 0.07);
}

.btn-outline-pine {
  border: 1.5px solid var(--pine-mid);
  color: var(--pine);
}

.btn-outline-pine:hover {
  background: var(--pine);
  color: var(--cream);
}

.text-link {
  color: var(--clay-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--clay) 45%, transparent);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-link:hover {
  color: var(--clay);
  text-decoration-color: var(--clay);
}

/* ---------- Dark bands (hero, CTA, footer) ---------- */

.hero-band,
.cta-band,
.site-footer {
  background-color: var(--pine-deep);
  background-image: radial-gradient(
      90rem 40rem at 85% -20%,
      rgba(100, 149, 90, 0.22),
      transparent 60%
    ),
    var(--topo);
}

.site-footer {
  color: var(--cream-dim);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--moss-soft);
}

.footer-link {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero panel illustration ---------- */

.hero-panel {
  background: linear-gradient(165deg, var(--pine-mid) 0%, var(--pine) 55%, var(--pine-deep) 100%);
  border: 1px solid rgba(250, 247, 239, 0.1);
}

.hero-card {
  background: var(--cream);
  border-radius: var(--radius-leaf-xs);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}

.hero-sun circle:last-child {
  transform-origin: 48px 48px;
  animation: sun-spin 70s linear infinite;
}

@keyframes sun-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Leaf corners ---------- */

.corner-leaf {
  border-radius: var(--radius-leaf);
}

.corner-leaf-sm {
  border-radius: var(--radius-leaf-sm);
}

/* ---------- Cards ---------- */

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pine);
}

.trust-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--clay);
}

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--cream-dim);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 38, 30, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--moss-soft);
  box-shadow: 0 16px 30px -14px rgba(31, 38, 30, 0.25);
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--moss-deep);
}

.card-cue {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clay-deep);
}

.card-cue::after {
  content: "\00a0\2192";
  display: inline-block;
  transition: transform 0.2s ease;
}

.service-card:hover .card-cue::after {
  transform: translateX(4px);
}

.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cream-dim);
  box-shadow: 0 1px 2px rgba(31, 38, 30, 0.04);
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: "Fraunces", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--cream-dim);
  pointer-events: none;
}

.quote-card blockquote {
  position: relative;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.stars svg {
  width: 1rem;
  height: 1rem;
}

.price-card {
  background: #fff;
  border: 1px solid var(--cream-dim);
  box-shadow: 0 1px 2px rgba(31, 38, 30, 0.04);
  scroll-margin-top: 5rem;
}

.price-card .service-icon {
  color: var(--moss);
}

.guarantee-band {
  background: var(--cream-dim);
  border: 1px solid var(--cream-dim);
  border-left: 4px solid var(--clay);
}

.step-number {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--clay);
}

.step {
  border-top: 2px solid var(--cream-dim);
  padding-top: 1.4rem;
}

.detail-card,
.contact-card {
  background: #fff;
  border: 1px solid var(--cream-dim);
  box-shadow: 0 1px 2px rgba(31, 38, 30, 0.04);
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pine-mid);
}

.detail-icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--clay);
}

.phone-hero {
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone-hero:hover {
  color: var(--clay-deep);
}

/* ---------- Motion ---------- */

.reveal {
  animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}

.reveal-1 {
  animation-delay: 0.09s;
}

.reveal-2 {
  animation-delay: 0.18s;
}

.reveal-3 {
  animation-delay: 0.27s;
}

.reveal-4 {
  animation-delay: 0.36s;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-1,
  .reveal-2,
  .reveal-3,
  .reveal-4 {
    animation: none;
  }

  .hero-sun circle:last-child {
    animation: none;
  }

  .btn,
  .service-card,
  .brand svg {
    transition: none;
  }
}
