/* ==========================================================================
   BURNS LANDSCAPING — Shared Styles
========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:      #090F09;
  --deep:      #1B2A1A;
  --forest:    #2C4A2C;
  --sage:      #4A7459;
  --stone:     #8C7B5E;
  --bronze:    #A08C6E;
  --gold:      #B8966E;
  --cream:     #F5F2ED;
  --parch:     #EAE6DF;
  --text:      #1A1A18;
  --muted:     #5A5A54;
  --off-white: #FAFAF8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--stone); }

/* ==========================================================================
   REVEAL ANIMATIONS
========================================================================== */
.lw { display: block; overflow: hidden; }
.li { display: block; transform: translateY(106%); transition: transform 1.3s var(--ease-expo); will-change: transform; }
[data-lines].in .li { transform: translateY(0); }
.rf  { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-expo); }
.rf.in  { opacity: 1; transform: translateY(0); }
.rs  { opacity: 0; transform: translateX(-24px); transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-expo); }
.rs.in  { opacity: 1; transform: translateX(0); }
.rsc { opacity: 0; transform: scale(0.95) translateY(14px); transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-expo); }
.rsc.in { opacity: 1; transform: scale(1) translateY(0); }
.d1 { transition-delay: 0.10s !important; }
.d2 { transition-delay: 0.22s !important; }
.d3 { transition-delay: 0.34s !important; }
.d4 { transition-delay: 0.48s !important; }
@media (prefers-reduced-motion: reduce) {
  .li, .rf, .rs, .rsc { transition: opacity 0.3s ease !important; transform: none !important; }
}

/* ==========================================================================
   NAVIGATION
========================================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.75rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.5s var(--ease-smooth), background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
nav.solid {
  background: rgba(9,15,9,0.93);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-color: rgba(184,150,110,0.1);
  padding: 1rem 3rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(250,250,248,0.58); text-decoration: none; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--off-white); }
.nav-cta { color: var(--gold) !important; border: 1px solid rgba(184,150,110,0.4); padding: 0.45rem 1.1rem; border-radius: 2px; transition: background 0.3s, color 0.3s !important; }
.nav-cta:hover { background: var(--gold); color: var(--void) !important; }

/* ==========================================================================
   LAYOUT UTILITIES
========================================================================== */
.container { max-width: 1340px; margin: 0 auto; padding: 0 3rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.5rem; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: var(--gold); }
.sec-h { font-family: var(--serif); font-size: clamp(2.4rem,3.8vw,4rem); font-weight: 300; color: var(--text); letter-spacing: -0.02em; line-height: 1.06; margin-bottom: 1rem; }
.sec-h em { font-style: italic; color: var(--sage); }
.sec-h--light { color: var(--off-white); }
.sec-h--light em { color: var(--gold); }
.sec-sub { font-size: 0.95rem; font-weight: 300; color: var(--muted); line-height: 1.75; max-width: 520px; }
.sec-sub--light { color: rgba(250,250,248,0.55); }

/* ==========================================================================
   PAGE HERO
========================================================================== */
.pg-hero {
  min-height: 44dvh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 7rem;
}
.pg-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #0B170B 0%, #1B2A1A 52%, #243C24 100%);
}
.pg-hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.pg-hero-rule { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,150,110,0.2), transparent); }
.pg-hero-content { position: relative; z-index: 2; padding: 0 3rem 5rem; }
.pg-eyebrow { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-family: var(--sans); }
.pg-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.pg-h1 { font-family: var(--serif); font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 300; line-height: 0.97; color: var(--off-white); letter-spacing: -0.025em; }
.pg-h1 em { font-style: italic; color: var(--gold); }
.pg-lead { font-size: 1rem; font-weight: 300; color: rgba(250,250,248,0.5); max-width: 480px; line-height: 1.75; margin-top: 1.5rem; }

/* ==========================================================================
   BUTTONS
========================================================================== */
.btn { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-radius: 2px; cursor: pointer; border: none; transition: all 0.4s var(--ease-spring); }
.btn-gold { background: var(--gold); color: var(--void); padding: 0.95rem 2.1rem; }
.btn-gold:hover { background: var(--bronze); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(184,150,110,0.25); }
.btn-gold svg { transition: transform 0.35s var(--ease-spring); }
.btn-gold:hover svg { transform: translateX(5px); }

/* ==========================================================================
   PLACEHOLDERS
========================================================================== */
.ph-box { border: 1px dashed rgba(184,150,110,0.22); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem 2rem; background: rgba(184,150,110,0.025); min-height: 120px; }
.ph-box--light { border-color: rgba(140,123,94,0.2); background: rgba(26,26,24,0.03); }
.ph-box--dark  { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.025); }
.ph-label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(184,150,110,0.4); font-family: var(--sans); }
.ph-label--dark { color: rgba(26,26,24,0.25); }

/* ==========================================================================
   SECTION CTA
========================================================================== */
.sec-cta { background: var(--deep); padding: 7rem 0; text-align: center; position: relative; overflow: hidden; }
.sec-cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(74,116,89,0.12) 0%, transparent 65%); pointer-events: none; }
.sec-cta-inner { position: relative; z-index: 1; }
.sec-cta-h { font-family: var(--serif); font-size: clamp(2.2rem,3.5vw,3.8rem); font-weight: 300; color: var(--off-white); letter-spacing: -0.02em; margin-bottom: 2.5rem; line-height: 1.06; }
.sec-cta-h em { font-style: italic; color: var(--gold); }

/* ==========================================================================
   FOOTER
========================================================================== */
footer { background: var(--void); padding: 4.5rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); }
.taskgrid-credit {
  text-align: center; padding-top: 1.5rem; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.7rem; font-weight: 300; color: rgba(250,250,248,0.18);
  font-family: var(--sans); letter-spacing: 0.04em;
}
.taskgrid-credit a { color: rgba(250,250,248,0.28); text-decoration: none; transition: color 0.3s; }
.taskgrid-credit a:hover { color: var(--gold); }
.fg-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.f-brand { display: block; margin-bottom: 0.875rem; }
.f-brand img { height: 52px; width: auto; display: block; }
.f-tagline { font-size: 0.875rem; font-weight: 300; color: rgba(250,250,248,0.34); line-height: 1.72; max-width: 270px; margin-bottom: 2rem; }
.f-socials { display: flex; gap: 0.6rem; }
.f-soc { width: 34px; height: 34px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: rgba(250,250,248,0.4); text-decoration: none; transition: all 0.3s; }
.f-soc:hover { background: rgba(184,150,110,0.12); border-color: rgba(184,150,110,0.25); color: var(--gold); }
.f-col h4 { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.f-links a { font-size: 0.875rem; font-weight: 300; color: rgba(250,250,248,0.4); text-decoration: none; transition: color 0.3s; }
.f-links a:hover { color: var(--off-white); }
.f-bar { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-size: 0.78rem; font-weight: 300; color: rgba(250,250,248,0.25); }
.f-cards { display: flex; gap: 0.45rem; }
.f-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 2px; padding: 0.22rem 0.6rem; font-size: 0.66rem; color: rgba(250,250,248,0.38); letter-spacing: 0.06em; }

/* ==========================================================================
   SITE ANIMATIONS (js/site.js companion)
========================================================================== */

/* Page transition overlay removed */

/* Scroll progress bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9998;
  background: linear-gradient(90deg, var(--sage) 0%, var(--gold) 100%);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* Nav link underline slide */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease-expo);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
/* Don't double-style the CTA button */
.nav-links .nav-cta::after { display: none; }

/* Footer link hover slide */
.f-links a { position: relative; padding-left: 0; transition: color 0.3s, padding-left 0.3s var(--ease-expo); }
.f-links a:hover { padding-left: 0.5rem; color: var(--off-white); }

/* Stagger grid system */
.stagger-child {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-expo);
}
.stagger-child.in { opacity: 1; transform: translateY(0); }

/* Image hover zoom helper */
.img-zoom { overflow: hidden; }
.img-zoom img,
.img-zoom .ph-bg { transition: transform 0.9s var(--ease-expo) !important; }
.img-zoom:hover img,
.img-zoom:hover .ph-bg { transform: scale(1.06) !important; }

/* Extra delay utilities */
.d5 { transition-delay: 0.62s !important; }
.d6 { transition-delay: 0.76s !important; }

/* Gold glow on active/focused inputs */
.fi:focus, .fta:focus, .fsel:focus {
  box-shadow: 0 0 0 3px rgba(184,150,110,0.1);
}

/* Smooth image load fade-in */
img { transition: opacity 0.4s ease; }
img[loading] { opacity: 0; }
img.loaded  { opacity: 1; }

/* ==========================================================================
   MOBILE NAVIGATION — pure CSS checkbox toggle, no JS required
========================================================================== */

/* Hidden checkbox that drives the whole menu */
.nav-cb { display: none !important; }

/* When checkbox is checked: slide panel in + show backdrop */
#nav-cb:checked ~ .mobile-nav           { transform: translateX(0); }
#nav-cb:checked ~ .mobile-nav-backdrop  { opacity: 1; pointer-events: all; }

/* Toggle button: X shape when open */
#nav-cb:checked ~ nav .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav-cb:checked ~ nav .nav-toggle span:nth-child(2) { opacity: 0; width: 0; }
#nav-cb:checked ~ nav .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 42px; height: 42px; flex-shrink: 0;
  background: none; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px; cursor: pointer; padding: 0;
  transition: border-color 0.3s;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--off-white);
  transition: transform 0.38s var(--ease-expo), opacity 0.22s, width 0.28s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Slide-in panel */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #0B1A0B;
  border-left: 1px solid rgba(184,150,110,0.1);
  z-index: 9997;
  transform: translateX(105%);
  transition: transform 0.48s var(--ease-expo);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  overscroll-behavior: contain;
}
.mobile-nav.open { transform: translateX(0); }

/* Backdrop */
.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 9996;
  background: rgba(4,8,4,0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: all; }

/* Panel header */
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-logo { height: 34px; width: auto; display: block; }
.mobile-nav-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--off-white); transition: all 0.2s;
}
.mobile-nav-close:hover { border-color: var(--gold); color: var(--gold); }
.mobile-nav-close svg { width: 16px; height: 16px; }

/* Links */
.mobile-nav-links { list-style: none; flex: 1; }
.mobile-nav-links li a {
  display: block; padding: 0.95rem 0.25rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 400;
  color: rgba(250,250,248,0.6); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, padding-left 0.28s var(--ease-expo);
  letter-spacing: 0.03em;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active { color: var(--gold); padding-left: 0.6rem; }
/* Hide the nav-cta link (replaced by bottom CTA) */
.mobile-nav-links li:last-child { display: none; }

/* Bottom CTA */
.mobile-nav-cta { padding-top: 1.75rem; }
.mobile-cta-btn {
  display: block; text-align: center;
  background: var(--gold); color: var(--void);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 1rem; border-radius: 2px;
  transition: background 0.3s;
}
.mobile-cta-btn:hover { background: var(--bronze); }

/* ==========================================================================
   RESPONSIVE
========================================================================== */
@media (max-width: 1100px) { .fg-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  nav { padding: 1rem 1.25rem; }
  nav.solid { padding: 0.875rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .pg-hero-content { padding: 0 1.25rem 3.5rem; }
  .fg-grid { grid-template-columns: 1fr; }
  .f-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-gold { padding: 0.85rem 1.6rem; font-size: 0.75rem; }
  .sec-cta { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .pg-hero { padding-top: 5rem; }
  .pg-hero-content { padding: 0 1rem 3rem; }
  .pg-h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .pg-lead { font-size: 0.9rem; }
  .sec-h { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .eyebrow { font-size: 0.6rem; }
  .f-tagline { max-width: 100%; }
  .f-socials { gap: 0.5rem; }
  footer { padding: 3.5rem 0 1.5rem; }
  .fg-grid { gap: 2rem; }
}
