/* ==========================================================================
   Malama Grounds Landscaping — Design System
   ========================================================================== */

:root {
  /* Brand */
  --brand:       #B01E1E;
  --brand-light: #D93A3A;
  --brand-dark:  #7A1212;

  /* Dark section depth (3 levels) */
  --bg-base:     #0D0D0D;
  --bg-elevated: #221F1D;
  --bg-floating: #2E2A26;

  /* Light section depth (3 levels) */
  --bg-light-base:     #F3EFE8;
  --bg-light-elevated: #E7E1D6;
  --bg-light-floating: #FBF9F5;

  /* Text */
  --text-on-dark:       #F3EFE8;
  --text-on-dark-muted: #B8B2A8;
  --text-primary:  #221F1D;
  --text-body:     #3A3733;
  --text-muted:    #6B655D;

  /* Accent */
  --accent:       var(--brand);
  --accent-hover: var(--brand-dark);
  --lawn:         #4C7A3E;

  /* Borders */
  --border:        rgba(13,13,13,0.10);
  --border-dark:   rgba(243,239,232,0.12);
  --border-strong: rgba(176,30,30,0.25);

  /* Shadows — red-tinted, layered */
  --shadow-sm: 0 2px 8px rgba(176,30,30,0.08);
  --shadow-md: 0 8px 32px rgba(176,30,30,0.14), 0 2px 8px rgba(13,13,13,0.10);
  --shadow-lg: 0 24px 64px rgba(13,13,13,0.35), 0 8px 24px rgba(176,30,30,0.12);

  /* Type */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing tokens */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-light-base);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Grain texture
   ========================================================================== */
.grain { position: relative; }
.grain::after {
  content: '';
  position: fixed; inset: 0;
  filter: url(#grain);
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background: #000;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--space-sm);
}
.eyebrow-dark { color: var(--brand); }

.section-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.image-wrap { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.55) 0%, transparent 55%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(0);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); background: var(--brand-dark); }
.btn-primary:focus-visible { outline: 2px solid var(--text-on-dark); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--border-dark);
}
.btn-ghost:hover { border-color: var(--brand-light); color: var(--brand-light); transform: translateY(-2px); }
.btn-ghost:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-phone-icon { display: inline-block; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem var(--space-md);
  transition: padding 0.35s var(--ease-out);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}
.site-nav.scrolled .nav-inner {
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo-mark { width: 40px; height: 40px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-light);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--text-on-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 4px; }

.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone {
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease-out);
}
.nav-phone:hover { color: var(--brand-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(13,13,13,0.94);
  backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-on-dark);
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border-dark);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 0.5rem; text-align: center; }
.mobile-menu a:focus-visible { outline: 2px solid var(--brand-light); outline-offset: -2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg-base);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}
.hero-bg-motif {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 45% at 25% 85%, rgba(176,30,30,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 15%, rgba(176,30,30,0.10) 0%, transparent 55%);
  pointer-events: none;
  will-change: transform;
}
/* Scroll-scrubbed video background — hidden until scroll-video.js activates
   it on capable desktop viewports; mobile/reduced-motion/no-JS keep the
   gradient motif above as the hero background. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0.82) 0%,
    rgba(13,13,13,0.6) 32%,
    rgba(13,13,13,0.68) 68%,
    rgba(13,13,13,0.88) 100%
  );
  pointer-events: none;
}
.hero.video-scrub-active .hero-canvas,
.hero.video-scrub-active .hero-scrim {
  display: block;
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.eyebrow { color: var(--brand-light); }
.hero .eyebrow { justify-content: center; }
.hero-headline {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
  margin-bottom: var(--space-md);
}
.text-accent { color: var(--brand-light); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: var(--space-xl);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.trust-strip .dot { color: var(--brand); }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-dark);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: var(--brand-light);
  border-radius: 999px;
  margin: 7px auto;
  animation: scrollcue 1.8s infinite var(--ease-out);
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg-light-base); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.service-card {
  background: var(--bg-light-floating);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  transform: translateY(0);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Crew
   ========================================================================== */
.crew {
  background: var(--bg-base);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.crew-bg-motif {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 50% at 85% 30%, rgba(176,30,30,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.crew-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}
.crew-body { color: var(--text-on-dark-muted); margin-bottom: var(--space-sm); max-width: 52ch; }
.crew-body em { color: var(--brand-light); font-style: normal; font-weight: 600; }

.crew-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.crew-stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brand-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 0.35rem;
}

.crew-image { aspect-ratio: 3/4; box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Work / Gallery
   ========================================================================== */
.work { background: var(--bg-light-base); }
.work-sub { color: var(--text-muted); margin-bottom: var(--space-lg); max-width: 60ch; }
.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
}
.work-item-lg { grid-column: 1 / -1; }
.work-item .image-wrap { aspect-ratio: 3/4; }
.work-item.work-item-lg .image-wrap { aspect-ratio: 21/9; }
.work-item.work-item-lg .image-wrap img { object-position: center 78%; }
.work-item {
  opacity: 1;
}
.work-item .image-wrap {
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.work-item:hover .image-wrap { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.work-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Service Area
   ========================================================================== */
.area { background: var(--bg-light-elevated); }
.area-inner { text-align: center; }
.area-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}
.area-list li {
  background: var(--bg-light-floating);
  border: 1px solid var(--border);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.area-note { color: var(--text-muted); max-width: 60ch; margin: var(--space-sm) auto 0; }
.area-note a { color: var(--brand); font-weight: 600; }
.area-note a:hover { text-decoration: underline; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  background: var(--bg-base);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.testimonials-bg-motif {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 45% at 15% 20%, rgba(176,30,30,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.testimonial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.testimonial-card p { color: var(--text-on-dark); font-size: 1rem; margin-bottom: var(--space-sm); }
.testimonial-card footer { color: var(--text-on-dark-muted); font-size: 0.85rem; font-weight: 600; }
.testimonial-card cite { font-style: normal; }
.testimonial-placeholder-note {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CTA / Contact
   ========================================================================== */
.cta-contact { background: var(--bg-light-base); }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.cta-sub { color: var(--text-muted); max-width: 48ch; margin-bottom: var(--space-lg); }
.cta-direct { margin-top: var(--space-lg); }
.cta-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out);
}
.cta-phone-link:hover { color: var(--brand-dark); }
.cta-email-link {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s var(--ease-out);
}
.cta-email-link:hover { color: var(--brand); }
.cta-area-recap { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.9rem; }

.estimate-form {
  background: var(--bg-light-floating);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: var(--space-sm); display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(176,30,30,0.14);
}
.estimate-form .btn-block { margin-top: var(--space-xs); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-elevated); color: var(--text-on-dark); }
.footer-inner {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.footer-logo-mark { width: 36px; height: 36px; object-fit: contain; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: var(--text-on-dark-muted); font-size: 0.92rem; transition: color 0.2s var(--ease-out); }
.footer-nav a:hover { color: var(--brand-light); }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--brand-light); font-weight: 700; font-size: 1.1rem; }
.footer-meta p { color: var(--text-on-dark-muted); font-size: 0.85rem; margin-top: 0.4rem; }
.footer-email { font-weight: 600 !important; font-size: 0.92rem !important; color: var(--text-on-dark-muted) !important; transition: color 0.2s var(--ease-out); }
.footer-email:hover { color: var(--brand-light) !important; }
.footer-license { font-size: 0.75rem !important; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Scroll-reveal base state (JS adds .is-visible)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-inner { grid-template-columns: 1fr; }
  .crew-media { order: -1; }
  .crew-image { aspect-ratio: 16/9; }
  .work-gallery { grid-template-columns: repeat(2, 1fr); }
  .work-item-lg { grid-column: 1 / -1; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .work-gallery { grid-template-columns: 1fr; }
  .area-list { flex-direction: column; align-items: stretch; }
  .section-inner { padding: var(--space-xl) var(--space-sm); }
}
