﻿/* ============================================================
   Maryland Home Inspection Services — Stylesheet
   ============================================================ */

/* ── Google Font ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:          #f4f7fb;
  --surface:     #ffffff;
  --surface-alt: #edf1f7;
  --ink:         #0f1b2d;
  --ink-soft:    #3d4f63;
  --muted:       #6b7a8d;
  --brand:       #e85d26;        /* warm orange */
  --brand-dark:  #c44b18;
  --navy:        #12304e;        /* professional navy */
  --navy-mid:    #1a4469;
  --accent:      #2a7de1;        /* trust blue */
  --line:        #d6dde8;
  --shadow-sm:   0 2px 8px rgba(15, 27, 45, 0.08);
  --shadow-md:   0 6px 24px rgba(15, 27, 45, 0.12);
  --shadow-lg:   0 16px 40px rgba(15, 27, 45, 0.14);
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ── Header & Navigation ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.5rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  line-height: 1.2;
  flex-shrink: 0;
  max-width: 220px;
}

.brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #fff;
}

.nav-toggle svg { display: block; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.6rem 1.3rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 14px rgba(232, 93, 38, 0.35);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.btn:hover {
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 93, 38, 0.4);
  text-decoration: none;
}

.btn-ghost {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  color: #fff;
  background: var(--navy);
  box-shadow: none;
  text-decoration: none;
}

.btn-outline-white {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: transparent;
  box-shadow: none;
}

.btn-outline-white:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
  text-decoration: none;
  box-shadow: none;
}

/* ── Trust / Badge Strip ──────────────────────────────────── */
.trust-strip {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.55rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--brand);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 110%, rgba(232, 93, 38, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 10% -20%, rgba(42, 125, 225, 0.15) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(232, 93, 38, 0.14);
  border: 1px solid rgba(232, 93, 38, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

h1, h2, h3 {
  line-height: 1.18;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero .lead {
  color: rgba(255,255,255,0.76);
  max-width: 52ch;
  font-size: 1.07rem;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-contact {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
}

.hero-contact a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.hero-contact a:hover { color: var(--brand); }

/* Quick facts panel inside hero */
.panel-hero {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.panel-hero h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 0.6rem;
}

.panel-hero .list-clean li {
  color: rgba(255,255,255,0.82);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
}

.panel-hero .list-clean li:last-child { border-bottom: none; }

.check-icon { color: var(--brand); flex-shrink: 0; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  max-width: 55ch;
}

.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p  { color: rgba(255,255,255,0.65); }

/* ── Cards & Panels ───────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
}

.panel h2, .panel h3 { margin-bottom: 0.65rem; color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 125, 225, 0.3);
  text-decoration: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(232,93,38,0.12), rgba(42,125,225,0.1));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--brand);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.card p, .card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ── Lists ────────────────────────────────────────────────── */
.list-clean {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.list-clean li { margin-bottom: 0.45rem; }

/* ── Blockquotes / Testimonials ───────────────────────────── */
blockquote {
  margin: 0;
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  position: relative;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.25;
  font-family: Georgia, serif;
}

blockquote cite {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
}

blockquote cite::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  opacity: 0.5;
}

/* ── Process Steps ────────────────────────────────────────── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3rem 0 2.75rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.03rem;
  max-width: 58ch;
  margin: 0;
}

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ── Notice ───────────────────────────────────────────────── */
.notice {
  border-left: 4px solid var(--accent);
  background: rgba(42, 125, 225, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.kicker {
  color: var(--muted);
  font-size: 0.92rem;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  border-top: none;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-lic {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1rem;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ── Animations ───────────────────────────────────────────── */
.hero-grid > * {
  animation: reveal-up 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 100ms;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3.5rem 0 3rem; }

  .footer-grid {
    gap: 1.5rem;
  }
}

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--navy-mid);
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

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

  .nav-links a {
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .nav-toggle { display: flex; }

  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0;
  }

  /* Stack call button below nav on small screens */
  .nav-wrap > .btn {
    order: 2;
  }

  .section { padding: 2.75rem 0; }

  .hero { padding: 2.5rem 0 2rem; }

  .cta-band { padding: 2.5rem 0; }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
  }

  .hero-actions { gap: 0.6rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.25rem;
  }
}
