/* ============================================================
   AMERICAN IRON EXCAVATION — pages.css
   Page-specific styles: home hero, inner heroes, service
   blocks, about, contact form, service area map
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HOME — Full-screen hero
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.80) 40%, rgba(11,13,16,0.45) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero-text { max-width: 680px; }
.hero-text h1 { margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-text p { font-size: 1.1rem; color: rgba(244,244,244,0.82); max-width: 560px; }

/* ── Who We Are image ─────────────────────────────────────── */
.who-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.who-image img { width: 100%; height: 100%; object-fit: cover; }
.who-image::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: 8px; bottom: 8px;
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

/* ── Service overview cards ───────────────────────────────── */
.services-img-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 21/7;
}
.services-img-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.service-card { display: flex; flex-direction: column; }
.service-icon {
  width: 44px; height: 44px;
  background: rgba(245,180,0,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.service-icon i { color: var(--yellow); font-size: 1.1rem; }
.service-card:hover .service-icon { background: rgba(245,180,0,0.16); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { flex: 1; font-size: 0.9rem; margin-bottom: 1.25rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow); transition: gap var(--transition);
}
.card-link:hover { gap: 0.65rem; }

/* ── Why cards ────────────────────────────────────────────── */
.why-card { border-top: 3px solid var(--red); }
.why-icon {
  width: 44px; height: 44px;
  background: rgba(201,35,35,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.why-icon i { color: var(--red); font-size: 1.1rem; }
.why-card:hover { border-color: var(--yellow); }
.why-card:hover .why-icon { background: rgba(245,180,0,0.1); }
.why-card:hover .why-icon i { color: var(--yellow); }

/* ── Project types ────────────────────────────────────────── */
.project-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-list li { color: #4A5260; }
.project-list li i { color: var(--red); font-size: 6px; margin-top: 5px; }

/* ══════════════════════════════════════════════════════════
   SPLIT PAGE HERO (services.html, about.html)
   Text left, image right
   ══════════════════════════════════════════════════════════ */
.page-hero-split {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.page-hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-hero-split-content h1 {
  margin-bottom: 1rem;
}
.page-hero-split-content p {
  font-size: 1.05rem;
  max-width: 520px;
}
.page-hero-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.page-hero-split-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(245,180,0,0.15);
  pointer-events: none;
}
.page-hero-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   SERVICES PAGE — Detailed service blocks
   ══════════════════════════════════════════════════════════ */
.service-blocks { padding-top: 0; }

.service-use-list {
  list-style: none; padding: 0;
  margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.service-use-list li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-secondary); font-size: 0.95rem;
}
.service-use-list li::before {
  content: ''; display: block;
  width: 6px; height: 6px;
  background: var(--yellow); border-radius: 50%; flex-shrink: 0;
}
.use-for-heading {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 0.5rem; margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════ */
.about-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-value-card { border-top: 3px solid var(--yellow); }
.value-icon {
  width: 44px; height: 44px;
  background: rgba(245,180,0,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.value-icon i { color: var(--yellow); font-size: 1.1rem; }

.licensed-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.licensed-icon-wrap {
  width: 80px; height: 80px;
  background: rgba(245,180,0,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.licensed-icon-wrap i { color: var(--yellow); font-size: 2.25rem; }

/* ══════════════════════════════════════════════════════════
   SERVICE AREA PAGE
   ══════════════════════════════════════════════════════════ */
.map-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 420px;
}
.map-embed-wrap iframe { display: block; width: 100%; height: 100%; }

.area-fit-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.area-fit-img img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════ */
.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-header { margin-bottom: 2rem; }
.form-header p { max-width: 560px; }

.contact-assurance-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.contact-assurance-img img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Page-specific
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { min-height: 80svh; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(11,13,16,0.88) 0%, rgba(11,13,16,0.75) 100%); }
  .who-image::before { display: none; }
  .page-hero-split { padding: 3rem 0; }
  .page-hero-split-inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-split-img { aspect-ratio: 16/9; }
  .services-img-banner { aspect-ratio: 16/7; }
  .map-embed-wrap { height: 320px; }
  .licensed-inner { gap: 2rem; padding: 2rem; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(90svh - var(--header-height)); padding-top: 2rem; padding-bottom: 2rem; }
  .hero-content { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .hero-text h1 { font-size: 1.9rem; }
  .page-hero-split { padding: 2.5rem 0; }
  .page-hero-split-inner { gap: 1.75rem; }
  .services-img-banner { aspect-ratio: 4/3; }
  .map-embed-wrap { height: 260px; }
  .licensed-inner { grid-template-columns: 1fr; }
  .form-wrap { padding: 1.25rem; overflow: hidden; }
  .checkbox-group { gap: 0.4rem; }
  .checkbox-label { font-size: 0.82rem; padding: 0.4rem 0.6rem; white-space: normal; }
}

/* ── GHL Form Embed ───────────────────────────────────────── */
.ghl-form-embed {
  width: 100%;
  min-height: 600px;
  margin-top: 1.5rem;
}
.ghl-form-embed iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: var(--radius-lg);
  display: block;
}
