/* ============================================================
   QualityPro X Demolition — Design System
   ============================================================ */

:root {
  --navy-dark: #0a1a2c;
  --navy: #132a42;
  --navy-light: #2d5075;
  --orange: #c4551f;
  --orange-light: #e2803d;
  --gray: #5b7186;
  --gray-light: #8a97a5;
  --offwhite: #f7f4ec;
  --white: #ffffff;
  --border: #e3e6ea;
  --radius: 10px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(10, 26, 44, 0.12);
  --shadow-sm: 0 2px 10px rgba(10, 26, 44, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray); }
.lede { font-size: 1.15rem; color: var(--gray); max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-word { display: none; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.94rem; font-weight: 600; }
.main-nav a:hover { color: var(--orange-light); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--white); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.header-phone .gray { color: var(--gray-light); font-weight: 500; display: block; font-size: 0.72rem; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .header-phone .gray { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, rgba(19,42,66,0.88) 0%, rgba(10,26,44,0.92) 100%), url('/assets/img/hero-demolition.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,85,31,0.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lede { color: rgba(255,255,255,0.78); margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600; }
.hero-badge svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--orange-light); }

.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: var(--white); margin-bottom: 6px; }
.hero-panel p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 18px; }

.quote-form { display: flex; flex-direction: column; gap: 12px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.92rem;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.quote-form textarea { resize: vertical; min-height: 80px; }
.quote-form label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Section spacing */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--navy-dark); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--orange); }
.trust-item h4 { font-size: 0.96rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.85rem; margin: 0; }
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-bar { grid-template-columns: 1fr; } }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.service-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card .icon-wrap svg { width: 24px; height: 24px; color: var(--orange-light); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* Two column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--navy); }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }

.visual-card {
  background: linear-gradient(155deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius);
  padding: 46px 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visual-card svg.bg-icon {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.12;
}
.visual-card .stat { font-size: 2.4rem; font-weight: 800; color: var(--orange-light); }
.visual-card .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 22px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--orange), #a8451a);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-primary { background: var(--navy-dark); }
.cta-banner .btn-primary:hover { background: var(--navy); }

/* Areas list */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 280px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--orange-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page hero (interior pages) */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.work-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.work-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.work-gallery-item:hover img { transform: scale(1.04); }
.work-gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(10,26,44,0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 700px) { .work-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .work-gallery { grid-template-columns: 1fr; } }

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 60px;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .lede { color: rgba(255,255,255,0.78); }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }

/* Forms (contact page) */
.form-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* Notice / placeholder callouts (dev-facing, not for production copy) */
.dev-note {
  background: #fff7ed;
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #8a4a1a;
  margin-bottom: 20px;
}

/* Form feedback */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--gray);
}
.form-success a {
  color: var(--orange);
  font-weight: 600;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #991b1b;
  margin-bottom: 16px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
