/* ============================================================
   DS Landworks — style.css
   ============================================================ */

:root {
  --gold:    #F5A500;
  --dark:    #0d0d0d;
  --dark2:   #1a1a1a;
  --dark3:   #242424;
  --white:   #ffffff;
  --grey:    #aaaaaa;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(13, 13, 13, 0.35);
  backdrop-filter: blur(24px);
  border-bottom: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF6000, #FFD100,
    #FF6000, #FFD100,
    #FF6000
  );
  background-size: 300% 100%;
  animation: nav-border-flow 7s linear infinite;
}

@keyframes nav-border-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

#navbar:hover {
  background: #0d0d0d;
  backdrop-filter: none;
}

#navbar:hover::after {
  animation-play-state: paused;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

@media (hover: hover) {
  .nav-toggle:hover span { background: var(--gold); }
}

/* X state */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--gold);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--gold);
}

/* Touch devices: force spans back to white when menu is closed */
@media (hover: none) {
  .nav-toggle:not(.open) span {
    background: var(--white) !important;
  }
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 120px 24px 60px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 3.5vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hero-plus {
  color: var(--gold);
  font-size: 1.8em;
  line-height: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-states {
  display: flex;
  align-items: center;
  gap: 0;
}

.state-cs-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.state-cs-badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 25%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.hero-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.scroll-cta {
  margin-top: 56px;
}

.scroll-cta a {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.scroll-cta a:hover {
  background: #ffbb33;
  transform: translateY(-2px);
}

/* ── SECTION BASE ── */
section {
  padding: 96px 24px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--grey);
  max-width: 560px;
  margin-bottom: 56px;
  font-size: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SERVICES ── */
#services {
  background: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--dark2);
  padding: 40px 36px;
  border-top: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--gold);
  background: var(--dark3);
}

.service-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: invert(68%) sepia(72%) saturate(700%) hue-rotate(5deg) brightness(103%) contrast(101%);
}


.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--white);
}

.service-card p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.65;
}


/* ── FENCING ── */
#fencing {
  background: var(--dark);
}

/* ── SERVICE AREA ── */
#service-area {
  background: var(--dark2);
}

.area-state-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.state-coming-soon {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  padding: 28px 32px;
}

.coming-soon-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(3px);
}

.coming-soon-banner span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 10px 32px;
}

.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
}

.counties-grid--single {
  grid-template-columns: minmax(0, 220px);
}

.county-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark3);
  border-top: 3px solid transparent;
  transition: border-color 0.2s;
}

.county-card:not(.county-card--more):hover {
  border-color: var(--gold);
}

.county-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.county-card:hover img {
  transform: scale(1.05);
}


.county-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
}

.county-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  border: 2px dashed #333;
  border-top: 3px solid transparent;
}

.county-card--more::before { display: none; }

.county-card--more span {
  position: static;
  background: none;
  padding: 0;
  color: var(--grey);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .counties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── CONTACT ── */
#contact {
  background: var(--dark);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-promise {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.contact-info p {
  color: var(--grey);
  margin-bottom: 32px;
  max-width: 420px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: opacity 0.2s;
}

.contact-email-link:hover { opacity: 0.75; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--dark2);
  border: 1px solid #333;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form select option {
  background: var(--dark2);
}

.btn-submit {
  padding: 16px 32px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #ffbb33;
  transform: translateY(-2px);
}

.form-status {
  font-size: 0.9rem;
  padding: 12px 16px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(245, 165, 0, 0.12);
  border-left: 3px solid var(--gold);
  color: var(--gold);
}

.form-status.error {
  display: block;
  background: rgba(220, 50, 50, 0.1);
  border-left: 3px solid #dc3232;
  color: #dc3232;
}

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid #222;
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo img { height: 36px; width: auto; }

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  color: var(--grey);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.05em;
}

.footer-team {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.team-login-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.team-login-btn:hover {
  color: #555;
}

/* ── TAGLINE STRIP ── */
.tagline-strip {
  background: var(--gold);
  padding: 20px 0;
  overflow: hidden;
  transform: translateZ(0);
}

.tagline-strip-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.ts-item,
.ts-dot {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  flex-shrink: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.ts-item {
  padding: 0 28px;
}

.ts-dot {
  color: rgba(13,13,13,0.45);
  padding: 0 4px;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ── HERO ENTRANCE ANIMATIONS ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: heroFadeUp 0.8s ease 0.2s both; }
.hero-heading  { animation: heroFadeUp 0.8s ease 0.45s both; }
.hero-sub      { animation: heroFadeUp 0.8s ease 0.65s both; }
.hero-stats    { animation: heroFadeUp 0.8s ease 0.85s both; }
.scroll-cta    { animation: heroFadeUp 0.8s ease 1.05s both; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }
.stagger-5 { transition-delay: 0.33s; }
.stagger-6 { transition-delay: 0.40s; }

/* ── SERVICE CARD ENHANCEMENTS ── */
.service-card {
  transition: border-color 0.2s, background 0.2s, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(245, 165, 0, 0.12);
}

.service-icon {
  transition: transform 0.35s ease;
}

.service-card:hover .service-icon:not(.service-icon--site):not(.service-icon--fence):not(.service-icon--commercial),
.service-card.active .service-icon:not(.service-icon--site):not(.service-icon--fence):not(.service-icon--commercial) {
  transform: translateY(-5px) scale(1.08);
}

/* ── SITE DEVELOPMENT & FENCING — SLOW ZOOM PULSE ── */
@keyframes slow-zoom-pulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.18); }
}

.service-icon--site,
.service-icon--fence {
  transition: none;
}

.service-card:hover .service-icon--site,
.service-card.active .service-icon--site,
.service-card:hover .service-icon--fence,
.service-card.active .service-icon--fence {
  animation: slow-zoom-pulse 2.8s ease-in-out infinite;
}

/* ── PROJECT MANAGEMENT — FLOATING CHECKMARKS ── */
.icon-pm-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.service-icon--pm {
  transform-origin: 50% 80%;
}

@keyframes hat-nod {
  0%,100% { transform: rotate(0deg);  }
  28%     { transform: rotate(16deg); }
  42%     { transform: rotate(12deg); }
  60%     { transform: rotate(14deg); }
  78%     { transform: rotate(0deg);  }
}

.service-card:hover .service-icon--pm, .service-card.active .service-icon--pm {
  animation: hat-nod 2s ease-in-out infinite;
}

.check {
  position: absolute;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 0 8px rgba(245,165,0,0.55);
}

.check-1 { bottom: 16px; left: 8px;  }
.check-2 { bottom: 16px; left: 34px; }

@keyframes check-float {
  0%   { opacity: 0;   transform: translateY(0)     scale(0.5); }
  18%  { opacity: 1;   transform: translateY(-6px)  scale(1);   }
  75%  { opacity: 0.7; transform: translateY(-28px) scale(0.9); }
  100% { opacity: 0;   transform: translateY(-38px) scale(0.7); }
}

.service-card:hover .check-1, .service-card.active .check-1 { animation: check-float 1.8s ease-out 0.0s  infinite; }
.service-card:hover .check-2, .service-card.active .check-2 { animation: check-float 1.8s ease-out 0.75s infinite; }

/* ── HAULING ICON — DIRT PUFFS + ROCKS ── */
.icon-haul-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
}

.service-card:hover .service-icon--hauling, .service-card.active .service-icon--hauling {
  transform: none;
}

@keyframes ground-shake {
  0%   { transform: translate(0,      0);     }
  20%  { transform: translate(-0.4px, 0.3px); }
  40%  { transform: translate(0.5px, -0.3px); }
  60%  { transform: translate(-0.3px, 0.4px); }
  80%  { transform: translate(0.4px,  0.2px); }
  100% { transform: translate(0,      0);     }
}

.service-card:hover .icon-haul-wrap, .service-card.active .icon-haul-wrap {
  animation: ground-shake 0.5s linear infinite;
}

/* Dirt puffs — expand from the dump area (top-center of icon) */
.dpuff {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(200,140,40,0.7) 0%, rgba(160,100,20,0.4) 50%, transparent 75%);
}

.dpuff-1 { width: 18px; height: 18px; top: 8px;  left: 29px; }
.dpuff-2 { width: 15px; height: 15px; top: 6px;  left: 39px; }
.dpuff-3 { width: 21px; height: 21px; top: 10px; left: 24px; }
.dpuff-4 { width: 13px; height: 13px; top: 2px;  left: 35px; }

@keyframes puff-expand-1 { 0%{opacity:0;transform:scale(0.3) translate(0,0)}   25%{opacity:.85} 100%{opacity:0;transform:scale(2.2) translate(-5px,-10px)} }
@keyframes puff-expand-2 { 0%{opacity:0;transform:scale(0.3) translate(0,0)}   25%{opacity:.75} 100%{opacity:0;transform:scale(2.4) translate(6px,-12px)}  }
@keyframes puff-expand-3 { 0%{opacity:0;transform:scale(0.3) translate(0,0)}   25%{opacity:.65} 100%{opacity:0;transform:scale(2.0) translate(-8px,-8px)}  }
@keyframes puff-expand-4 { 0%{opacity:0;transform:scale(0.3) translate(0,0)}   25%{opacity:.8}  100%{opacity:0;transform:scale(2.6) translate(2px,-14px)}  }

.service-card:hover .dpuff-1, .service-card.active .dpuff-1 { animation: puff-expand-1 1.1s ease-out 0.0s  infinite; }
.service-card:hover .dpuff-2, .service-card.active .dpuff-2 { animation: puff-expand-2 1.3s ease-out 0.25s infinite; }
.service-card:hover .dpuff-3, .service-card.active .dpuff-3 { animation: puff-expand-3 1.4s ease-out 0.55s infinite; }
.service-card:hover .dpuff-4, .service-card.active .dpuff-4 { animation: puff-expand-4 1.0s ease-out 0.8s  infinite; }

/* Rocks — small chunks arc up then fall from the dump point */
.rock {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  background: rgba(245, 165, 0, 0.9);
  top: 24px;
  left: 37px;
}

.rock-1 { width: 4px; height: 4px; border-radius: 50%; }
.rock-2 { width: 3px; height: 5px; }
.rock-3 { width: 5px; height: 3px; border-radius: 1px; }
.rock-4 { width: 3px; height: 3px; border-radius: 50%; }
.rock-5 { width: 6px; height: 4px; border-radius: 1px; }
.rock-6 { width: 3px; height: 3px; }
.rock-7 { width: 4px; height: 5px; border-radius: 50%; }
.rock-8 { width: 5px; height: 3px; }

/* Arc keyframes: up to peak then curve down with rotation */
@keyframes arc1 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 45%{transform:translate(-10px,-18px)rotate(120deg)} 100%{opacity:0;transform:translate(-6px,4px)rotate(260deg)}  }
@keyframes arc2 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 42%{transform:translate(8px,-20px)rotate(-90deg)}  100%{opacity:0;transform:translate(14px,6px)rotate(-200deg)} }
@keyframes arc3 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 40%{transform:translate(-6px,-22px)rotate(80deg)}  100%{opacity:0;transform:translate(-16px,2px)rotate(190deg)} }
@keyframes arc4 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 44%{transform:translate(12px,-16px)rotate(-110deg)} 100%{opacity:0;transform:translate(20px,8px)rotate(-240deg)} }
@keyframes arc5 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 38%{transform:translate(-14px,-12px)rotate(150deg)} 100%{opacity:0;transform:translate(-22px,6px)rotate(310deg)} }
@keyframes arc6 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 46%{transform:translate(4px,-24px)rotate(-70deg)}  100%{opacity:0;transform:translate(8px,-2px)rotate(-180deg)} }
@keyframes arc7 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 41%{transform:translate(-4px,-20px)rotate(100deg)}  100%{opacity:0;transform:translate(-10px,10px)rotate(220deg)} }
@keyframes arc8 { 0%{opacity:0;transform:translate(0,0)rotate(0)}         10%{opacity:1} 43%{transform:translate(16px,-14px)rotate(-130deg)} 100%{opacity:0;transform:translate(24px,4px)rotate(-280deg)} }

.service-card:hover .rock-1, .service-card.active .rock-1 { animation: arc1 1.0s ease-in 0.00s infinite; }
.service-card:hover .rock-2, .service-card.active .rock-2 { animation: arc2 1.1s ease-in 0.12s infinite; }
.service-card:hover .rock-3, .service-card.active .rock-3 { animation: arc3 0.9s ease-in 0.28s infinite; }
.service-card:hover .rock-4, .service-card.active .rock-4 { animation: arc4 1.2s ease-in 0.05s infinite; }
.service-card:hover .rock-5, .service-card.active .rock-5 { animation: arc5 1.0s ease-in 0.40s infinite; }
.service-card:hover .rock-6, .service-card.active .rock-6 { animation: arc6 0.85s ease-in 0.20s infinite; }
.service-card:hover .rock-7, .service-card.active .rock-7 { animation: arc7 1.15s ease-in 0.55s infinite; }
.service-card:hover .rock-8, .service-card.active .rock-8 { animation: arc8 0.95s ease-in 0.35s infinite; }

/* ── COMMERCIAL GRADING ICON — DRIFTING CLOUDS ── */
.icon-building-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Per-icon size overrides */
.service-icon--hauling  { width: 74px; height: 74px; }
.service-icon--grading  { width: 70px; height: 70px; }

/* Suppress generic float for this icon */
.service-card:hover .service-icon--commercial, .service-card.active .service-icon--commercial {
  transform: none !important;
}

/* Cloud shape — pill body + two bumps via ::before / ::after */
.cloud {
  position: absolute;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

/* Cloud A — large, slow */
.cloud-a          { width: 25px; height: 8px;  top: 3px;  left: -30px; }
.cloud-a::before  { width: 13px; height: 13px; top: -7px; left: 3px;   }
.cloud-a::after   { width: 9px;  height: 9px;  top: -5px; left: 13px;  }

/* Cloud B — medium, mid-speed */
.cloud-b          { width: 18px; height: 7px;  top: 16px; left: -23px; }
.cloud-b::before  { width: 9px;  height: 9px;  top: -6px; left: 2px;   }
.cloud-b::after   { width: 7px;  height: 7px;  top: -3px; left: 9px;   }

/* Cloud C — small, fastest */
.cloud-c          { width: 14px; height: 6px;  top: 9px;  left: -17px; }
.cloud-c::before  { width: 7px;  height: 7px;  top: -5px; left: 2px;   }
.cloud-c::after   { width: 6px;  height: 6px;  top: -3px; left: 7px;   }

@keyframes cloud-drift {
  0%   { opacity: 0;    transform: translateX(0);     }
  8%   { opacity: 0.7;                                }
  88%  { opacity: 0.7;                                }
  100% { opacity: 0;    transform: translateX(100px); }
}

.service-card:hover .icon-building-wrap, .service-card.active .icon-building-wrap {
  animation: ground-shake 0.5s linear infinite;
}

.service-card:hover .cloud-a, .service-card.active .cloud-a { animation: cloud-drift 3.2s linear 0.0s infinite; }
.service-card:hover .cloud-b, .service-card.active .cloud-b { animation: cloud-drift 4.1s linear 0.7s infinite; }
.service-card:hover .cloud-c, .service-card.active .cloud-c { animation: cloud-drift 2.5s linear 1.4s infinite; }

/* Ground dirt puffs — burst up from base of buildings */
.gpuff {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(200,140,40,0.75) 0%, rgba(160,100,20,0.35) 55%, transparent 75%);
}

.gpuff-1 { width: 14px; height: 14px; top: 48px; left: 41px; }
.gpuff-2 { width: 11px; height: 11px; top: 50px; left: 50px; }
.gpuff-3 { width: 15px; height: 15px; top: 46px; left: 46px; }

@keyframes gpuff-1 { 0%{opacity:0;transform:scale(0.3) translate(0,0)} 20%{opacity:.8} 100%{opacity:0;transform:scale(2.0) translate(-4px,-14px)} }
@keyframes gpuff-2 { 0%{opacity:0;transform:scale(0.3) translate(0,0)} 20%{opacity:.7} 100%{opacity:0;transform:scale(2.3) translate(0px,-16px)}  }
@keyframes gpuff-3 { 0%{opacity:0;transform:scale(0.3) translate(0,0)} 20%{opacity:.8} 100%{opacity:0;transform:scale(1.9) translate(4px,-12px)}  }

.service-card:hover .gpuff-1, .service-card.active .gpuff-1 { animation: gpuff-1 1.0s ease-out 0.0s  infinite; }
.service-card:hover .gpuff-2, .service-card.active .gpuff-2 { animation: gpuff-2 1.1s ease-out 0.35s infinite; }
.service-card:hover .gpuff-3, .service-card.active .gpuff-3 { animation: gpuff-3 0.9s ease-out 0.65s infinite; }

/* Ground rocks — small chunks throwing upward */
.grock {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  background: rgba(245, 165, 0, 0.9);
  top: 50px;
  left: 46px;
}

.grock-1 { width: 4px; height: 3px; border-radius: 1px; }
.grock-2 { width: 3px; height: 4px; border-radius: 50%; }
.grock-3 { width: 5px; height: 3px; }
.grock-4 { width: 3px; height: 3px; border-radius: 50%; }
.grock-5 { width: 4px; height: 5px; border-radius: 1px; }
.grock-6 { width: 3px; height: 3px; }

@keyframes garc1 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 45%{transform:translate(-12px,-18px)rotate(100deg)} 100%{opacity:0;transform:translate(-18px,-4px)rotate(230deg)}  }
@keyframes garc2 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 42%{transform:translate(10px,-20px)rotate(-80deg)}  100%{opacity:0;transform:translate(16px,-6px)rotate(-190deg)} }
@keyframes garc3 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 40%{transform:translate(-6px,-22px)rotate(140deg)}  100%{opacity:0;transform:translate(-10px,-2px)rotate(300deg)} }
@keyframes garc4 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 44%{transform:translate(14px,-16px)rotate(-120deg)} 100%{opacity:0;transform:translate(22px,-2px)rotate(-260deg)} }
@keyframes garc5 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 43%{transform:translate(-8px,-24px)rotate(90deg)}   100%{opacity:0;transform:translate(-14px,0px)rotate(210deg)}  }
@keyframes garc6 { 0%{opacity:0;transform:translate(0,0)rotate(0)}   10%{opacity:1} 41%{transform:translate(6px,-18px)rotate(-60deg)}   100%{opacity:0;transform:translate(10px,-4px)rotate(-150deg)} }

.service-card:hover .grock-1, .service-card.active .grock-1 { animation: garc1 1.0s ease-in 0.00s infinite; }
.service-card:hover .grock-2, .service-card.active .grock-2 { animation: garc2 1.1s ease-in 0.18s infinite; }
.service-card:hover .grock-3, .service-card.active .grock-3 { animation: garc3 0.9s ease-in 0.35s infinite; }
.service-card:hover .grock-4, .service-card.active .grock-4 { animation: garc4 1.2s ease-in 0.08s infinite; }
.service-card:hover .grock-5, .service-card.active .grock-5 { animation: garc5 0.95s ease-in 0.50s infinite; }
.service-card:hover .grock-6, .service-card.active .grock-6 { animation: garc6 1.05s ease-in 0.28s infinite; }

/* ── LAND CLEARING ICON CHOP ANIMATION ── */
.icon-chop-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

/* Override general icon float */
.service-card:hover .service-icon--clearing, .service-card.active .service-icon--clearing {
  transform: none;
}

/* Pivot from bottom-right corner — slams down hard */
.service-icon--clearing {
  transform-origin: 100% 100%;
  transition: none;
}

@keyframes axe-swing {
  0%   { transform: rotate(0deg);  }   /* rest / start position */
  28%  { transform: rotate(50deg); }   /* wind up — swing back right */
  58%  { transform: rotate(0deg);  }   /* SLAM — stops at start position */
  64%  { transform: rotate(4deg);  }   /* tiny rebound */
  72%  { transform: rotate(0deg);  }   /* settle back */
  86%  { transform: rotate(0deg);  }   /* hold */
  100% { transform: rotate(0deg);  }   /* rest */
}

.service-card:hover .service-icon--clearing, .service-card.active .service-icon--clearing {
  animation: axe-swing 1.05s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Strike flash burst */
.strike-flash {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,80,0.95) 0%, rgba(245,165,0,0.5) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

@keyframes strike-burst {
  0%,56% { opacity: 0; transform: translateX(-50%) scale(0); }
  60%    { opacity: 1; transform: translateX(-50%) scale(1.4); }
  72%    { opacity: 0; transform: translateX(-50%) scale(1.8); }
  100%   { opacity: 0; transform: translateX(-50%) scale(0); }
}

.service-card:hover .strike-flash, .service-card.active .strike-flash {
  animation: strike-burst 1.05s ease-out infinite;
}

/* Wood chips */
.chip {
  position: absolute;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  background: rgba(245, 165, 0, 0.85);
}

.chip-1  { width: 6px;  height: 3px; bottom: 11px; left: 30px; }
.chip-2  { width: 4px;  height: 6px; bottom: 9px;  left: 34px; }
.chip-3  { width: 5px;  height: 3px; bottom: 14px; left: 25px; }
.chip-4  { width: 7px;  height: 2px; bottom: 8px;  left: 32px; }
.chip-5  { width: 3px;  height: 7px; bottom: 10px; left: 39px; }
.chip-6  { width: 5px;  height: 4px; bottom: 7px;  left: 23px; }
.chip-7  { width: 4px;  height: 3px; bottom: 16px; left: 37px; }
.chip-8  { width: 8px;  height: 2px; bottom: 9px;  left: 27px; }
.chip-9  { width: 3px;  height: 5px; bottom: 13px; left: 43px; }
.chip-10 { width: 5px;  height: 5px; bottom: 6px;  left: 21px; }

/* Each chip bursts at the 45% mark (same moment as the flash) then scatters wide */
@keyframes cf1  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(26px,-32px)rotate(80deg)}  }
@keyframes cf2  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(-18px,-38px)rotate(-95deg)} }
@keyframes cf3  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(36px,-18px)rotate(55deg)}  }
@keyframes cf4  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(-28px,-24px)rotate(-60deg)} }
@keyframes cf5  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(14px,-44px)rotate(110deg)} }
@keyframes cf6  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(-38px,-14px)rotate(-40deg)} }
@keyframes cf7  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(20px,-28px)rotate(70deg)}  }
@keyframes cf8  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(-8px,-42px)rotate(-120deg)} }
@keyframes cf9  { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(32px,-10px)rotate(30deg)}  }
@keyframes cf10 { 0%,57%{opacity:0;transform:translate(0,0)rotate(0deg)}   61%{opacity:1} 100%{opacity:0;transform:translate(-22px,-36px)rotate(-85deg)} }

.service-card:hover .chip-1  .chip-1  { animation: cf1  1.05s ease-out 0.00s infinite; }
.service-card:hover .chip-2  .chip-2  { animation: cf2  1.05s ease-out 0.02s infinite; }
.service-card:hover .chip-3  .chip-3  { animation: cf3  1.05s ease-out 0.04s infinite; }
.service-card:hover .chip-4  .chip-4  { animation: cf4  1.05s ease-out 0.01s infinite; }
.service-card:hover .chip-5  .chip-5  { animation: cf5  1.05s ease-out 0.03s infinite; }
.service-card:hover .chip-6  .chip-6  { animation: cf6  1.05s ease-out 0.05s infinite; }
.service-card:hover .chip-7  .chip-7  { animation: cf7  1.05s ease-out 0.02s infinite; }
.service-card:hover .chip-8  .chip-8  { animation: cf8  1.05s ease-out 0.00s infinite; }
.service-card:hover .chip-9  .chip-9  { animation: cf9  1.05s ease-out 0.03s infinite; }
.service-card:hover .chip-10, .service-card.active .chip-10 { animation: cf10 1.05s ease-out 0.01s infinite; }

/* ── GRADING ICON DRIVE ANIMATION ── */
.icon-drive-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

/* Ground line under the tracks */
.icon-drive-wrap::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -6px;
  right: -6px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245,165,0,0.55) 0%, transparent 70%);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .icon-drive-wrap::after .icon-drive-wrap::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Bounce / terrain rock */
@keyframes drive-bounce {
  0%   { transform: translateY(0px)  rotate(0deg);    }
  18%  { transform: translateY(-5px) rotate(-2deg);   }
  36%  { transform: translateY(1px)  rotate(0.8deg);  }
  54%  { transform: translateY(-4px) rotate(-1.5deg); }
  72%  { transform: translateY(1px)  rotate(0.5deg);  }
  90%  { transform: translateY(-2px) rotate(-0.8deg); }
  100% { transform: translateY(0px)  rotate(0deg);    }
}

/* Override the general icon float for this card */
.service-card:hover .service-icon--grading, .service-card.active .service-icon--grading {
  transform: none;
  animation: drive-bounce 0.72s ease-in-out infinite;
}

/* Dust particles */
.dust {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,0,0.7) 0%, rgba(139,90,10,0.4) 60%, transparent 100%);
  opacity: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.dust-1 { width: 8px;  height: 8px;  }
.dust-2 { width: 6px;  height: 6px;  }
.dust-3 { width: 10px; height: 10px; }

@keyframes dust-puff {
  0%   { opacity: 0;   transform: translate(0,    0)    scale(0.4); }
  25%  { opacity: 0.8; transform: translate(-6px, -4px) scale(0.8); }
  100% { opacity: 0;   transform: translate(-22px,-16px) scale(1.6); }
}

.service-card:hover .dust-1, .service-card.active .dust-1 { animation: dust-puff 0.85s ease-out 0.00s infinite; }
.service-card:hover .dust-2, .service-card.active .dust-2 { animation: dust-puff 0.85s ease-out 0.28s infinite; }
.service-card:hover .dust-3, .service-card.active .dust-3 { animation: dust-puff 0.85s ease-out 0.55s infinite; }

/* ── BUTTON SHINE SWEEP ── */
.scroll-cta a,
.btn-submit {
  position: relative;
  overflow: hidden;
}

.scroll-cta a::after,
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.28) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.scroll-cta a:hover::after,
.btn-submit:hover::after {
  transform: translateX(120%);
}

/* ── NAVBAR SCROLLED ── */

/* ── COUNTY CARD GLOW ── */
.county-card:not(.county-card--more):hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  #navbar { padding: 0 24px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--dark2);
    padding: 24px;
    gap: 0;
    border-top: 1px solid #222;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid #222; }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }

  .hero-stats { gap: 32px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  section { padding: 64px 20px; }

  /* One card per row on mobile — prevents two from animating side by side */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Active card highlight (set by JS scroll detection) */
  .service-card.active {
    border-color: var(--gold);
    background: var(--dark3);
    box-shadow: 0 0 0 1px rgba(245,165,0,0.15);
  }
}
