/* ==========================================================================
   D's Landscaping — Design Tokens
   ========================================================================== */
:root{
  --bg: #0b0f0c;
  --bg-alt: #0f1410;
  --surface: #141a15;
  --surface-2: #1b231c;
  --border: rgba(212, 175, 116, 0.16);
  --text: #f3f1e9;
  --text-dim: #b9c0b6;
  --text-faint: #7c877e;
  --gold: #cda35b;
  --gold-bright: #e8c07d;
  --green: #4c7a5e;
  --green-bright: #6fae86;
  --shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.15; }
p{ margin: 0 0 1em; color: var(--text-dim); }
.italic{ font-style: italic; color: var(--gold-bright); }
section{ position: relative; padding: 7rem 6vw; }
.eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 600;
}

#loader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.loaded{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark{
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  border: 1px solid var(--border);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: 0.7; }
  50%{ transform: scale(1.08); opacity: 1; }
}

.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.4rem 6vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  padding: 0.9rem 6vw;
  background: rgba(11,15,12,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto;
}
.logo{
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo span{ color: var(--gold-bright); }
.main-nav{ display: flex; align-items: center; gap: 2.2rem; }
.main-nav a{
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
  position: relative;
}
.main-nav a:not(.nav-cta)::after{
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold-bright);
  transition: width 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover{ color: var(--text); }
.main-nav a:not(.nav-cta):hover::after{ width: 100%; }
.nav-cta{
  border: 1px solid var(--gold);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  color: var(--gold-bright) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover{ background: var(--gold); color: var(--bg) !important; }
.nav-toggle{
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--text); }

.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 6vw;
  overflow: hidden;
}
#hero-canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,12,0.35) 0%, rgba(11,15,12,0.55) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content{ position: relative; z-index: 2; max-width: 780px; }
.hero h1{
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  color: var(--text);
  margin-bottom: 0.4em;
}
.hero-sub{
  font-size: 1.15rem;
  max-width: 520px;
  color: var(--text-dim);
}
.hero-actions{ display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.scroll-cue{
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--border); border-radius: 20px;
  z-index: 2;
}
.scroll-cue span{
  position: absolute; top: 8px; left: 50%; width: 4px; height: 4px;
  background: var(--gold-bright); border-radius: 50%; transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ opacity: 1; top: 8px; }
  70%{ opacity: 0; top: 24px; }
  100%{ opacity: 0; top: 8px; }
}

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(205,163,91,0.5); }
.btn-ghost{ border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }
.btn-block{ width: 100%; }

.section-head{ max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-lede{ font-size: 1.05rem; }
.section-head.light h2, .section-head.light p{ color: #fff; }
.section-head.light p.muted{ color: rgba(255,255,255,0.65); }

.service-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  max-width: 1300px;
  margin: 0 auto;
  perspective: 1200px;
}
.service-card{
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  transition: transform 0.15s ease-out, box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover{
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.service-card h3{ font-size: 1.2rem; color: var(--text); }
.service-card p{ font-size: 0.95rem; margin-bottom: 0; }
.service-icon{
  width: 46px; height: 46px; margin-bottom: 1.4rem;
  border-radius: 10px;
  background: rgba(205,163,91,0.12);
  position: relative;
}
.service-icon::before{
  content: "";
  position: absolute; inset: 12px;
  background: var(--gold-bright);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.process{ background: linear-gradient(180deg, #0d1a13, #0a130e); overflow: hidden; }
.parallax-shape{
  position: absolute; top: 8%; right: 4%; width: 240px; height: 288px;
  opacity: 0.5; pointer-events: none; z-index: 0; will-change: transform;
}
.parallax-shape svg{ width: 100%; height: 100%; }
.process > *:not(.parallax-shape){ position: relative; z-index: 1; }
.process-track{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.4rem;
  max-width: 1300px;
  margin: 0 auto;
  counter-reset: step;
}
.process-step{
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.step-number{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-bright);
  margin-bottom: 0.6rem;
}
.process-step h3{ color: #fff; font-size: 1.15rem; }
.process-step p{ color: rgba(255,255,255,0.68); font-size: 0.92rem; }

.parallax-bg{
  position: absolute; inset: -10% -5%; z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(111,174,134,0.16), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(205,163,91,0.14), transparent 45%);
  will-change: transform;
}
.services > *:not(.parallax-bg){ position: relative; z-index: 1; }

.about{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}
.about-visual{ display: flex; justify-content: center; will-change: transform; }
.about-emblem{
  width: 200px; height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin3d 14s linear infinite;
}
@keyframes spin3d{
  from{ transform: rotateY(0deg) rotateX(0deg); }
  to{ transform: rotateY(360deg) rotateX(360deg); }
}
.emblem-face{
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  background: rgba(205,163,91,0.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-bright);
  backface-visibility: visible;
}
.emblem-face.front{ transform: translateZ(100px); }
.emblem-face.back{ transform: rotateY(180deg) translateZ(100px); }
.emblem-face.left{ transform: rotateY(-90deg) translateZ(100px); }
.emblem-face.right{ transform: rotateY(90deg) translateZ(100px); }
.emblem-face.top{ transform: rotateX(90deg) translateZ(100px); }
.emblem-face.bottom{ transform: rotateX(-90deg) translateZ(100px); }
.about-content h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-list{ list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.about-list li{ color: var(--text-dim); font-size: 0.98rem; padding-left: 1.6rem; position: relative; }
.about-list li::before{
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-bright);
}
.about-list strong{ color: var(--text); }

.testimonials{ background: linear-gradient(180deg, #0a130e, #0d1a13); }
.testimonial-track{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  max-width: 1300px;
  margin: 0 auto;
}
.testimonial{
  margin: 0;
  padding: 2.2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.testimonial p{ color: #fff; font-size: 1.02rem; font-style: italic; }
.testimonial cite{ color: var(--gold-bright); font-size: 0.85rem; font-style: normal; }

.find-us-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.find-us-card{
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.find-us-card span{ font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.find-us-card small{ color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.find-us-card:hover{
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(205,163,91,0.08);
}

.hl-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hl-card{
  padding: 2.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
}
.hl-card h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); }

.site-footer{ padding: 3rem 6vw; border-top: 1px solid var(--border); }
.footer-inner{
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem;
}
.footer-inner p{ color: var(--text-faint); font-size: 0.85rem; margin: 0; }
.footer-contact{ display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-contact a{ color: var(--text-dim); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-contact a:hover{ color: var(--gold-bright); }

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

@media (max-width: 900px){
  .about{ grid-template-columns: 1fr; text-align: center; }
  .about-list{ text-align: left; }
}

@media (max-width: 760px){
  section{ padding: 5rem 6vw; }
  .main-nav{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--bg-alt); border-left: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 400;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .nav-cta{ margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; opacity: 1; transform: none; }
  .about-emblem{ animation: none; }
  .parallax{ transform: none !important; }
}
