/* Downey Garage Door Service v2 — clean local business */
:root {
  --navy: #0f2744;
  --navy-2: #1a3a5c;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --cream: #faf9f7;
  --white: #fff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --max: 1100px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--orange); }

/* Header */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand:hover { color: var(--white); }

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255,255,255,.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active { color: #fff; background: rgba(255,255,255,.12); }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s;
}

.btn-phone:hover { background: var(--orange-dark); color: #fff !important; }

.btn-phone-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius);
}

.btn-phone-block { display: flex; justify-content: center; width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 48px 20px 56px;
}

.hero-wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.hero-inner { max-width: 560px; }

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: rgba(255,255,255,.9);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero > .hero-inner > p,
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
}

.hero-trust span::before {
  content: "✓ ";
  color: #4ade80;
  font-weight: 700;
}

/* Sections */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-white { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* Services grid */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s, border-color .2s;
  overflow: hidden;
}

.card-photo { padding: 0; }

.card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-photo .card-body { padding: 18px 20px 22px; }

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15,39,68,.08);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  line-height: 1;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--orange); }

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
}

/* Steps */
.grid-3 {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.step p { font-size: 0.875rem; color: var(--muted); }

/* Photo band */
.photo-band-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .photo-band-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.photo-band-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(15,39,68,.12);
}

.photo-band-copy h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.photo-band-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Areas */
.areas-box {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
}

.areas-box h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.areas-box > p {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tags span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* FAQ */
.faq { max-width: 640px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-item p { font-size: 0.875rem; color: var(--muted); }

/* CTA */
.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}

.cta h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Disclaimer */
.note {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy-2);
  padding: 16px 18px;
  border-radius: var(--radius);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #0a1f36;
  color: rgba(255,255,255,.6);
  padding: 40px 20px 24px;
  font-size: 0.875rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer .brand { margin-bottom: 10px; }

.footer p { line-height: 1.6; max-width: 280px; }

.footer h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

/* Inner pages */
.page-top {
  background: var(--navy);
  color: #fff;
  padding: 32px 20px 40px;
}

.page-top .wrap { max-width: var(--max); margin: 0 auto; }

.crumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}

.crumb a { color: rgba(255,255,255,.75); }
.crumb a:hover { color: #fff; }

.page-top h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 640px;
}

.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .page-body { grid-template-columns: 1fr 280px; }
}

.content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.content h2:first-child { margin-top: 0; }

.content p { margin-bottom: 14px; color: var(--muted); font-size: 0.95rem; }

.content-feature {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.content li { margin-bottom: 6px; }

.alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.alert strong { color: var(--orange-dark); }

.sidebox {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  height: fit-content;
}

@media (min-width: 860px) {
  .sidebox { position: sticky; top: 80px; }
}

.sidebox h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.sidebox p { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }

.sidebox .phone-big {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.sidebox .phone-big:hover { color: var(--orange); }

/* Mobile sticky bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 200;
}

@media (max-width: 768px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 72px; }
  .nav { display: none; }
}

@media (min-width: 769px) {
  .header-phone-text {
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 4px;
  }
  .header-phone-text:hover { color: #fff; }
}
