/* ============================================
   PRECISION LANDSCAPE MAINTENANCE INC.
   Shared Design System - Warm StoryBrand
   ============================================ */

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

:root {
  --gold: #b5965a;
  --gold-light: #d9bd83;
  --forest: #0d1f14;
  --moss: #1b3a27;
  --sage: #3d5b43;
  --cream: #f4efe4;
  --stone: #e8e3d6;
  --bone: #ece6d6;
  --white: #ffffff;
  --text: #0d1f14;
  --text-light: #3d5b43;
  --text-muted: #6b7c6e;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --section-pad: 100px 24px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; }

/* --- Typography --- */
.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.label-gold { color: var(--gold); }

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.hero-italic {
  font-style: italic;
  color: var(--gold);
}

p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 640px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13,31,20,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav.scrolled {
  background: rgba(13,31,20,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-logo small {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 24px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
/* Invisible bridge to prevent gap between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,31,20,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  min-width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.nav-dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(181,150,90,0.1);
}

/* Mobile nav */
.nav-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--forest);
  padding: 18px 40px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  padding: 18px 40px;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* --- Hero (Service Pages) --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,31,20,0.8) 0%,
    rgba(13,31,20,0.55) 40%,
    rgba(13,31,20,0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 40px 80px;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
  max-width: 560px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Hero for full homepage */
.hero-home {
  min-height: 100vh;
}
.hero-home .hero-content {
  padding-top: 140px;
  max-width: none;
  margin: 0;
  padding-left: 8%;
  padding-right: 50%;
}

/* Hero for service pages (shorter) */
.hero-service {
  min-height: 50vh;
}
.hero-service .hero-content {
  padding: 120px 40px 60px;
}
.hero-service h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

/* --- Sections --- */
.section {
  padding: var(--section-pad);
}
.section-dark {
  background: var(--forest);
  color: var(--cream);
}
.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}
.section-dark p {
  color: rgba(244,239,228,0.7);
}
.section-dark .section-tag {
  color: var(--gold-light);
}

.section-alt {
  background: var(--stone);
}
.section-card {
  background: var(--bone);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header p {
  margin: 20px auto 0;
}

/* --- Service Detail Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(13,31,20,0.08);
  padding: 48px 36px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: rgba(181,150,90,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,31,20,0.08);
}
.service-card .card-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  margin-bottom: 16px;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Feature List (checkmarks) --- */
.feature-list {
  list-style: none;
  max-width: 640px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(13,31,20,0.08);
  font-size: 1rem;
  color: var(--text-light);
}
.feature-list li::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Dark section overrides for feature lists */
.section-dark .feature-list li {
  border-bottom-color: rgba(244,239,228,0.1);
  color: rgba(244,239,228,0.7);
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stat {
  text-align: left;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 8px;
}

/* Dark section stat overrides */
.section-dark .stat-label {
  color: rgba(244,239,228,0.5);
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
/* When there's only one child (image removed), go full width */
.two-col > :only-child {
  grid-column: 1 / -1;
  max-width: 800px;
}

.two-col-text h2 { margin-bottom: 24px; }
.two-col-text p { margin-bottom: 20px; }

.two-col-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.two-col-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(181,150,90,0.2);
  pointer-events: none;
}

/* --- Without/With Comparison --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.compare-col {
  padding: 60px 48px;
}
.compare-without {
  background: rgba(13,31,20,0.03);
  border: 1px solid rgba(13,31,20,0.08);
}
.compare-with {
  background: rgba(181,150,90,0.06);
  border: 1px solid rgba(181,150,90,0.2);
}
.compare-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 32px;
}
.compare-without h3 { color: var(--text-muted); }
.compare-with h3 { color: var(--gold); }

.compare-list {
  list-style: none;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}
.compare-without .compare-list li::before {
  content: '\2717';
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}
.compare-with .compare-list li::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  background: var(--forest);
  color: var(--cream);
  border-top: 1px solid rgba(181,150,90,0.15);
  border-bottom: 1px solid rgba(181,150,90,0.15);
}
.cta-section .section-tag {
  margin-bottom: 24px;
  color: var(--gold-light);
}
.cta-section h2 {
  margin-bottom: 20px;
  color: var(--cream);
}
.cta-section p {
  margin: 0 auto 16px;
  text-align: center;
  color: rgba(244,239,228,0.7);
}
.cta-phone {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin: 24px 0 32px;
}
.cta-phone a { color: var(--gold); }
.cta-phone a:hover { text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--forest);
  border-top: 1px solid rgba(244,239,228,0.08);
  padding: 80px 40px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand .nav-logo {
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(244,239,228,0.5);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,239,228,0.4);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(244,239,228,0.6);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,239,228,0.08);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(244,239,228,0.3);
  text-align: center;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 16px; }
  .nav-logo small { display: none; }
  .nav-cta { display: none; }

  /* Hero text spans 3/4 of the screen on mobile (overrides inline 50% padding) */
  .hero-content,
  .hero-home .hero-content {
    padding-left: 24px !important;
    padding-right: 25% !important;
  }

  .nav-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,31,20,0.98);
    z-index: 999;
    padding: 100px 40px;
    flex-direction: column;
    gap: 0;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: rgba(244,239,228,0.7);
    border-bottom: 1px solid rgba(244,239,228,0.08);
    transition: color var(--transition);
  }
  .nav-mobile a:hover { color: var(--gold); }
  .nav-mobile .mobile-sub {
    padding-left: 20px;
  }
  .nav-mobile .mobile-sub a {
    font-size: 0.95rem;
    color: rgba(244,239,228,0.5);
  }
  .mobile-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
  }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-content { padding: 120px 24px 60px; padding-right: 24px; }
  .section { padding: 80px 24px; }
  .stats-row { gap: 32px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .nav { padding: 16px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .compare-col { padding: 40px 24px; }
}

/* --- Guide section: pinned scroll-build yard animation --- */
.guide-pin-wrap {
  position: relative;
  height: 420vh; /* scroll runway for the scrub */
  background: var(--forest);
}
.guide-pin-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.guide-pin-sticky .guide-section {
  width: 100%;
  padding: 60px 24px;
}
.yard-anim-frame {
  background: var(--moss);
}
.guide-runway { height: 0; }
.yard-anim-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (max-width: 968px) {
  /* Mobile: section pins to the bottom of the screen while the runway
     scrolls through, so the animation plays fully in view */
  .guide-pin-wrap { height: auto; }
  .guide-pin-sticky {
    position: sticky;
    /* top is set by JS to -(section height - viewport height) so the
       section holds in place once its bottom reaches the screen */
    min-height: 0;
    display: block;
  }
  .guide-runway { height: 130vh; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-pin-wrap { height: auto; }
  .guide-pin-sticky { position: static; min-height: 0; display: block; }
  .guide-runway { height: 0; }
}

/* --- Scroll-triggered animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
