/* ═══════════════════════════════════════════════════════════════════════
   KW WRECKER SERVICE — Stylesheet
   Dark maroon and gold. Bold, professional, industrial.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --bg: #4B212D;
  --bg-card: #241212;
  --bg-elevated: #2e1616;
  --bg-subtle: #160909;
  --maroon: #6b1c1c;
  --maroon-light: #8a2828;
  --maroon-dark: #4a1010;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a88a30;
  --gold-glow: rgba(201,168,76,0.12);
  --white: #f5f3ef;
  --white-pure: #ffffff;
  --text: #e8e6e1;
  --text-light: #a09d96;
  --text-muted: #6b6860;
  --border: rgba(201,168,76,0.1);
  --border-subtle: rgba(255,255,255,0.06);
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Grain Overlay ─── */
body::after {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* ─── Utility ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ─── Typography ─── */
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-eyebrow.centered { text-align: center; }
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1; color: var(--white);
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.section-title.centered { text-align: center; }
.section-title em { font-style: normal; color: var(--gold); }
.section-subtitle {
  font-size: 17px; color: var(--text-light); line-height: 1.8; max-width: 640px;
}
.section-subtitle.centered { text-align: center; margin: 0 auto; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block; padding: 14px 32px; background: var(--gold);
  color: var(--bg); font-family: var(--font-body); font-size: 14px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 4px; border: none; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.btn-outline {
  display: inline-block; padding: 14px 32px; background: transparent;
  color: var(--gold); font-family: var(--font-body); font-size: 14px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 4px; border: 2px solid var(--gold); cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: var(--gold); color: var(--bg); font-family: var(--font-body);
  font-size: 15px; font-weight: 700; border-radius: 4px; text-decoration: none;
  transition: all 0.3s ease;
}
.btn-call:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-call svg { width: 18px; height: 18px; }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(75,33,45,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.nav-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--white); text-decoration: none; letter-spacing: 1px;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-light);
  text-decoration: none; letter-spacing: 0.8px; text-transform: uppercase;
  transition: color 0.2s; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-phone {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--gold); color: var(--bg); border-radius: 4px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: all 0.3s ease;
}
.nav-phone:hover { background: var(--gold-light); }
.nav-phone svg { width: 16px; height: 16px; }

/* ─── Mobile Nav ─── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; width: 100%; background: var(--bg);
    border-bottom: 1px solid var(--border-subtle); padding: 24px 32px; gap: 16px;
  }
  .nav-phone { display: none; }
  .mobile-phone {
    display: flex !important; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--gold); color: var(--bg);
    border-radius: 4px; font-weight: 700; text-align: center;
    justify-content: center; margin-top: 8px; text-decoration: none;
  }
}
@media (min-width: 769px) {
  .mobile-phone { display: none !important; }
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(107,28,28,0.15), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04), transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 2px; background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px);
  font-weight: 800; line-height: 1.05; color: var(--white); margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-desc {
  font-size: 18px; color: var(--text-light); line-height: 1.8;
  margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-number {
  font-family: var(--font-display); font-size: 48px; color: var(--gold);
  letter-spacing: -1px; line-height: 1; font-weight: 800;
}
.hero-stat-label {
  font-size: 13px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; margin-top: 4px;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero-desc {
  font-size: 17px; color: var(--text-light); line-height: 1.8; max-width: 600px;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card); border-radius: 12px; padding: 36px;
  border: 1px solid var(--border-subtle); transition: all 0.3s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.card-icon {
  margin-bottom: 16px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-glow); border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.15);
}
.card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ─── Service Cards (home page) ─── */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card); border-radius: 10px; padding: 28px;
  border: 1px solid var(--border-subtle); text-align: center;
  transition: all 0.3s ease;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.5px;
}

/* ─── Feature List ─── */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 10px 0 10px 28px; font-size: 15px; color: var(--text-light);
  position: relative; border-bottom: 1px solid var(--border-subtle);
}
.feature-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* ─── About Preview ─── */
.about-preview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
@media (max-width: 768px) { .about-preview { grid-template-columns: 1fr; gap: 32px; } }
.about-image-placeholder {
  background: var(--bg-card); border-radius: 16px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); position: relative; overflow: hidden;
}
.about-image-placeholder::after {
  content: 'Photo Coming Soon'; font-size: 14px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  background: var(--bg-card); border-radius: 10px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle); overflow: hidden;
  transition: all 0.3s ease; cursor: pointer;
}
.gallery-item:hover { border-color: var(--gold); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  font-size: 13px; color: var(--text-muted); letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Contact Section ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--bg-card); border-radius: 12px; padding: 28px;
  border: 1px solid var(--border-subtle); display: flex; gap: 16px;
  align-items: flex-start;
}
.contact-info-card .icon {
  width: 44px; height: 44px; background: var(--gold-glow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px; font-weight: 700; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.15);
}
.contact-info-card h3 { font-size: 14px; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.contact-info-card p { font-size: 15px; color: var(--text-light); }
.contact-info-card a { color: var(--gold); text-decoration: none; }
.contact-info-card a:hover { text-decoration: underline; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 14px 18px; font-family: var(--font-body);
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--gold);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form label {
  font-size: 13px; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ─── CTA Band ─── */
.cta-band {
  padding: 80px 0; background: var(--maroon-dark);
  text-align: center; border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; color: var(--white); margin-bottom: 12px;
}
.cta-band h2 em { font-style: normal; color: var(--gold); }
.cta-band p { font-size: 17px; color: var(--text-light); margin-bottom: 28px; }

/* ─── Emergency Banner ─── */
.emergency-banner {
  background: var(--maroon); color: var(--white); text-align: center;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px;
}
.emergency-banner a { color: var(--gold); text-decoration: underline; }

/* ─── Footer ─── */
footer {
  padding: 64px 0 32px; background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--white); letter-spacing: 1px; margin-bottom: 12px;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 320px; }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted);
}
@media (max-width: 500px) { .footer-bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* ─── Two-Column Layout ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child { order: 1; }
@media (max-width: 768px) {
  .two-col.reverse > :first-child { order: 1; }
  .two-col.reverse > :last-child { order: 2; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }
  .hero-stats { flex-direction: column; gap: 24px; }
  .section-title { font-size: clamp(28px, 5vw, 40px); }
  .container { padding: 0 20px; }

  /* Collapse all inline-styled content grids inside containers */
  .container > [style*="grid-template-columns"],
  .container [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Review/CTA banners: stack vertically */
  .container > [style*="justify-content:space-between"] {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Reviews inner flex layout */
  .container [style*="align-items:center"][style*="gap:20px"] {
    flex-direction: column;
    text-align: center;
  }

  /* Tall decorative blocks */
  .container [style*="height:480px"],
  .container [style*="height:400px"] {
    height: 240px !important;
  }

  /* Emergency banner text size */
  .emergency-banner { font-size: 12px; padding: 8px 16px; }
}
