/* 24 Hour Emergency Roof Repair Pittsburgh — Towson-inspired local service theme */
:root {
  --brand: #fdcb6e;
  --brand-dark: #f0ac2b;
  --brand-soft: #fff5e0;
  --ink: #101c2b;
  --ink-soft: #4c5a6b;
  --line: #e2e8f0;
  --bg: #fff;
  --bg-alt: #f5f7fa;
  --bg-dark: #12233a;
  --bg-darker: #0b1725;
  --max: 1160px;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(16, 28, 43, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink-soft); line-height: 1.65; background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1,h2,h3,h4 { font-family: var(--font); line-height: 1.12; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: .55em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .35em; }
p { margin-bottom: 1rem; }
a { color: #b5750a; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.15rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

.topbar {
  background: var(--bg-darker); color: #c9d4e0; font-size: .82rem; padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar span { margin-right: 16px; }
.topbar .dot::before { content: "•"; color: var(--brand); margin-right: 8px; }
.topbar a { color: #fff; font-weight: 700; }

.nav {
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.2; text-decoration: none; max-width: 220px; }
.logo:hover { text-decoration: none; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__links > li > a {
  display: block; padding: 10px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); border-bottom: 2px solid transparent;
}
.nav__links > li > a:hover { color: var(--ink); border-bottom-color: var(--brand); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 260px; padding: 8px 0; box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; margin: 0; }
.dropdown a { display: block; padding: 10px 18px; font-size: .93rem; color: var(--ink); font-weight: 500; border-left: 3px solid transparent; text-transform: none; letter-spacing: 0; }
.dropdown a:hover { background: var(--brand-soft); border-left-color: var(--brand); text-decoration: none; }
.nav__call {
  background: var(--brand); color: #0b1725 !important; padding: 11px 18px; border-radius: var(--radius);
  font-weight: 700; box-shadow: 0 6px 16px rgba(240,172,43,.32);
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

.hero { position: relative; color: #fff; min-height: 640px; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(100deg, rgba(11,23,37,.93) 0%, rgba(11,23,37,.76) 42%, rgba(11,23,37,.38) 100%),
  url("photos/tarping-wide-dusk.jpg") center/cover no-repeat;
}
.hero--inner { min-height: 360px; }
.hero--inner .hero__media { background:
  linear-gradient(100deg, rgba(11,23,37,.92) 0%, rgba(11,23,37,.7) 100%),
  url("photos/roof-valley.jpg") center/cover no-repeat;
}
.hero .wrap { position: relative; z-index: 2; padding: 72px 20px; }
.eyebrow {
  display: inline-block; background: var(--brand); color: #0b1725; font-weight: 800; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .rule { width: 52px; height: 5px; background: var(--brand); border-radius: 3px; margin: 18px 0; }
.hero p.lead { color: #d7e0ea; font-size: 1.12rem; max-width: 36em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 28px; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: var(--radius); font-weight: 700; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #0b1725; }
.btn-primary:hover { background: var(--brand-dark); color: #0b1725; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 22px; color: #e8eef4; font-size: .95rem; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.check::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #0b1725; font-size: .7rem; font-weight: 800; margin-right: 8px; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: #c9d4e0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section > .wrap > h2::before {
  content: ""; display: block; width: 52px; height: 5px; background: var(--brand); border-radius: 3px; margin-bottom: 18px;
}
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card a.more { font-weight: 700; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  color: var(--ink); font-weight: 600; font-size: .92rem;
}
.pill-list a:hover { background: var(--brand-soft); text-decoration: none; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--ink); font-size: .9rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 12px 0 12px 52px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #0b1725; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 10px 0 0; }
.cta-band { background: var(--bg-darker); color: #d7e0ea; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band h2::before { margin-left: auto; margin-right: auto; }
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink);
}
.form label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: #c9d4e0; }
.crumbs a { color: var(--brand); }
.footer { background: var(--bg-darker); color: #9aabbd; padding: 48px 0 24px; font-size: .92rem; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer a { color: #d7e0ea; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer ul { list-style: none; padding: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 16px; font-size: .82rem; }
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--bg-darker);
  padding: 10px 12px; gap: 8px; border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-cta a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 8px; font-weight: 700; }
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
}

.form-embed { display: grid; gap: 10px; max-width: 640px; }
.form-embed .form-note { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.form-embed iframe { width: 100%; min-height: 560px; border: 0; border-radius: 8px; display: block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px;
}

/* --- photography --- */
.photo { margin: 0; }
.photo img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-alt);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.photo-wide { max-width: 900px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.photo-note { margin-top: 16px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.pill-list--plain li span {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
}
.grid-4 .card h3 { margin: 0; font-size: 1rem; }
.grid-4 .card h3 a { color: var(--ink); }
nav.crumbs { margin-bottom: 18px; }
nav.crumbs p { margin: 0; font-size: .88rem; color: #c9d4e0; }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
