/* ══════════════════════════════════
   LAYOUT
   Reset, section scaffolding, grids,
   hero, animations, responsive
══════════════════════════════════ */

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── SHARED SECTION ── */
section { padding: 96px 60px; }

/* Hero background photo */
.hero-bg-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  filter: grayscale(0.6) sepia(0.15) brightness(0.5) contrast(1.3);
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative; overflow: hidden;
  background: var(--surface);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 68% 32%, rgba(255,140,0,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(90,60,22,0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(12,10,7,0.7) 0%, rgba(19,19,19,0.6) 50%, rgba(19,19,19,0.85) 100%);
}
/* Topography contour lines (hero-specific, stronger) */
.hero-hatch {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.07;
  background-image: url("../assets/pattern/topography.svg");
  background-size: 600px 600px;
  mix-blend-mode: overlay;
}
.hero-stains {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-stains::before {
  content: '';
  position: absolute;
  width: 600px; height: 450px; top: 5%; right: 0%;
  background: radial-gradient(ellipse, rgba(255,140,0,0.04) 0%, transparent 70%);
  border-radius: 55% 45% 60% 40%;
  filter: blur(40px);
}
.hero-stains::after {
  content: '';
  position: absolute;
  width: 350px; height: 280px; bottom: 15%; left: 5%;
  background: radial-gradient(ellipse, rgba(70,48,16,0.04) 0%, transparent 70%);
  border-radius: 40% 60%;
  filter: blur(25px);
}

/* Animated bore sweep lines */
.drill-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drill-line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,140,0,0.25), transparent);
  animation: drill-sweep 7s ease-in-out infinite; opacity: 0;
}
.drill-line:nth-child(1) { top: 30%; width: 60%; animation-delay: 0s; }
.drill-line:nth-child(2) { top: 45%; width: 80%; animation-delay: 1.8s; }
.drill-line:nth-child(3) { top: 60%; width: 50%; animation-delay: 3.6s; }
.drill-line:nth-child(4) { top: 72%; width: 70%; animation-delay: 5.4s; }
@keyframes drill-sweep {
  0%   { left: -85%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-headline);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 900;
  color: rgba(255,255,255,0.014);
  letter-spacing: -4px; white-space: nowrap;
  pointer-events: none; line-height: 1;
  text-transform: uppercase;
  filter: url(#ink-rough);
}
.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05rem; text-transform: uppercase;
  color: var(--orange); margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.3s;
  position: relative;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 12px; height: 4px;
  background: var(--orange);
}
.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.9; letter-spacing: -2px;
  text-transform: uppercase;
  position: relative;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.5s;
  text-shadow: 2px 3px 0 rgba(0,0,0,0.55);
}
.hero-title .accent { color: var(--orange); }
.hero-title .outline { -webkit-text-stroke: 2px rgba(228,226,225,0.72); color: transparent; }
.hero-sub {
  margin-top: 28px; font-size: 17px; color: var(--text-light);
  max-width: 540px; line-height: 1.65; position: relative;
  font-weight: 300;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.7s;
}
.hero-actions {
  display: flex; gap: 20px; margin-top: 40px; position: relative;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.9s;
}
.hero-stats {
  position: absolute; right: 60px; bottom: 80px;
  display: flex; flex-direction: column; gap: 28px; text-align: right;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 1.1s;
}
.stat-num {
  font-family: var(--font-headline); font-size: 52px; font-weight: 900; line-height: 1;
  color: var(--orange);
  text-shadow: 1px 2px 0 rgba(0,0,0,0.6);
}
.stat-label {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 700; letter-spacing: 0.05rem; text-transform: uppercase; color: var(--warm-gray);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TICKER ── */
.ticker {
  background: var(--orange); overflow: hidden; white-space: nowrap;
  padding: 14px 0;
  border-top: 2px solid var(--orange-dim); border-bottom: 2px solid var(--orange-dim);
  position: relative;
}
.ticker::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='24'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85 0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='24' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.ticker-inner { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-item {
  font-family: var(--font-label);
  font-weight: 700; font-size: 12px; letter-spacing: 0.05rem; text-transform: uppercase;
  color: var(--on-orange); padding: 0 40px;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SERVICES SECTION ── */
.services {
  background: var(--surface-container-low);
  position: relative; overflow: hidden;
}
.services .paper-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(255,140,0,0.03) 0%, transparent 60%),
    repeating-linear-gradient(-52deg, transparent, transparent 72px, rgba(255,255,255,0.005) 72px, rgba(255,255,255,0.005) 73px);
}
.services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--orange), rgba(255,140,0,0.3), transparent);
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 60px;
  position: relative; z-index: 2;
}
.services-grid .service-card-full { border: 1px solid rgba(86,67,52,0.08); }

/* ── WHY SECTION ── */
.why-section {
  padding: 96px 60px; background: var(--surface); position: relative; overflow: hidden;
}
.why-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.018;
  background-image: repeating-linear-gradient(
    -30deg, rgba(164,140,122,0.6), rgba(164,140,122,0.6) 1px, transparent 1px, transparent 30px
  );
}
.why { position: relative; z-index: 2; }
.why-stats {
  display: flex; justify-content: center; gap: 0;
  margin-bottom: 56px; border: 1px solid rgba(86,67,52,0.15);
  background: var(--surface-container-low);
  box-shadow: var(--machined-groove);
}
.why-stat-item {
  flex: 1; padding: 28px 24px; text-align: center;
  border-right: 1px solid rgba(86,67,52,0.15);
  position: relative;
}
.why-stat-item:last-child { border-right: none; }
.why-stat-num {
  font-family: var(--font-headline); font-size: 40px; font-weight: 900;
  color: var(--orange); line-height: 1; margin-bottom: 6px;
  text-shadow: 1px 2px 0 rgba(0,0,0,0.5);
}
.why-stat-label {
  font-family: var(--font-label); font-size: 10px; font-weight: 700;
  letter-spacing: 0.05rem; text-transform: uppercase; color: var(--warm-gray);
}
.why-points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }

/* ── PROCESS SECTION ── */
.process { background: var(--surface-container-low); position: relative; overflow: hidden; }
.process::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle, rgba(164,140,122,0.6) 1px, transparent 1px);
  background-size: 14px 14px;
}
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 60px; position: relative; z-index: 2;
}
.process-steps::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,140,0,0.35), rgba(255,140,0,0.35), transparent);
  opacity: 0.35; filter: url(#grunge-line);
}

/* ── EQUIPMENT SECTION ── */
.equipment-section { overflow: hidden; background: var(--surface); padding: 96px 60px; }
.equipment-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.equipment-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2px;
}

/* ── COVERAGE SECTION (Full-width map) ── */
#coverage .state-chip {
  background: rgba(19,19,19,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ── TESTIMONIALS SECTION ── */
.testimonials { background: var(--surface); padding: 96px 60px; position: relative; overflow: hidden; }
.testimonials::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.04;
  background: radial-gradient(ellipse 110% 55% at 50% 50%, rgba(255,140,0,0.12) 0%, transparent 70%);
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }

/* ── CONTACT CTA SECTION ── */
.contact-cta {
  padding: 96px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
  position: relative; overflow: hidden; background: var(--surface-container-low);
}
.contact-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at 100% 50%, rgba(255,140,0,0.035) 0%, transparent 70%),
    repeating-linear-gradient(-45deg, transparent, transparent 48px, rgba(255,255,255,0.005) 48px, rgba(255,255,255,0.005) 49px);
}
.contact-title {
  font-family: var(--font-headline);
  font-size: clamp(56px, 7vw, 96px); font-weight: 900; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -1px;
  text-shadow: 2px 3px 0 rgba(0,0,0,0.6); position: relative; z-index: 2;
}
.contact-title .line2 { -webkit-text-stroke: 2px var(--orange); color: transparent; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1200px) {
  .img-card-content { padding: 20px; }
  .img-card-title { font-size: clamp(18px, 2vw, 26px); }
  .img-card-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .img-card-label { font-size: 9px; }
}
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 16px 24px; }
  .nav-links { display: none; }

  /* Global padding */
  section, .hero, .why-section, .equipment-section, footer { padding-left: 24px; padding-right: 24px; }

  /* Hero */
  .hero { padding-bottom: 60px; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-stats { display: none; }
  .hero-bg-photo { opacity: 0.2; }
  .hero-eyebrow { font-size: 9px; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; }
  .service-card-full { padding: 32px; }
  .service-card-full .material-symbols-outlined { font-size: 36px; margin-bottom: 20px; }
  .service-card-full h4 { font-size: 20px; }

  /* Why section */
  .why-section [style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  .why-points-grid { grid-template-columns: 1fr; }
  .img-card { min-height: 0; max-width: 100%; aspect-ratio: 4/5 !important; }
  .img-card-title { font-size: 24px; }

  /* Process — single column */
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { display: none; }

  /* Equipment — single column */
  .equipment-section [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .equip-card.featured, .spec-card { grid-column: span 1 !important; grid-row: span 1; min-height: auto; }
  .equipment-header { flex-direction: column; gap: 16px; align-items: flex-start; }

  /* Gallery — 2 columns */
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .gallery-section { padding-left: 24px !important; padding-right: 24px !important; }

  /* Coverage map */
  #coverage #map { height: 500px !important; }
  #coverage [style*="top:48px"] { left: 24px !important; top: 20px !important; }
  #coverage .section-title { font-size: 32px; }
  #coverage p { font-size: 12px !important; }
  #coverage [style*="bottom:40px"] { bottom: 12px !important; gap: 6px !important; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  #coverage .state-chip { font-size: 9px; padding: 6px 12px; }

  /* CTA Banner */
  .cta-banner { padding: 48px 24px !important; }
  .cta-banner-title { font-size: clamp(28px, 7vw, 40px) !important; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .cta-banner .btn-cta-primary,
  .cta-banner .btn-cta-outline { width: 100%; text-align: center; font-size: 14px !important; padding: 16px 24px !important; }
  .cta-banner-status { font-size: 8px; letter-spacing: 0.2em; }

  /* Contact form */
  .contact-cta { grid-template-columns: 1fr; gap: 36px; padding: 60px 24px !important; }
  .contact-title { font-size: clamp(36px, 10vw, 48px); }
  .contact-form { width: 100%; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Section titles global */
  .section-title { font-size: clamp(36px, 8vw, 52px); }

  /* Lightbox */
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
