/*
Theme Name: Garage Door SF — Bay Service
Theme URI: https://garagedoorrepairsf.com
Author: Garage Door Repair San Francisco
Description: A lightweight, original local-service theme for San Francisco and Bay Area garage door service.
Version: 1.1.0
Text Domain: garagedoor-sf
*/

:root {
  --ink: #0c1824;
  --ink-2: #13283a;
  --fog: #f4f6f4;
  --paper: #ffffff;
  --line: #dbe2e5;
  --muted: #536473;
  --rust: #e65a2d;
  --rust-dark: #b53b18;
  --sage: #b8d7cb;
  --yellow: #f4c75d;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(12, 24, 36, .13);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--fog); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.15rem; }
h1, h2, h3 { margin: 0 0 .7em; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-weight: 800; letter-spacing: -.025em; line-height: 1.03; }
h1 { font-size: clamp(2.65rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 12px 18px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--rust); font-size: .79rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.section { padding: 88px 0; }
.section--white { background: var(--paper); }
.section--ink { color: white; background: var(--ink); }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.section-heading p { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.section--ink .section-heading p { color: #c8d4dd; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; background: var(--rust); color: #fff; font-weight: 900; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); background: var(--rust-dark); }
.btn--ghost { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sage); }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(12,24,36,.94); color: white; backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--rust); border-radius: 12px 12px 4px 4px; background: linear-gradient(145deg, rgba(230,90,45,.22), transparent); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: #b9c7d1; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; color: #fff; font-size: 1.4rem; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #e6edf1; font-size: .9rem; font-weight: 800; text-decoration: none; }
.main-nav a:hover { color: var(--yellow); }
.main-nav .header-phone { padding: 10px 17px; border-radius: 999px; background: white; color: var(--ink); }

.hero { position: relative; min-height: 720px; overflow: hidden; color: white; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,27,.98) 0%, rgba(7,17,27,.82) 36%, rgba(7,17,27,.24) 73%, rgba(7,17,27,.1) 100%), linear-gradient(0deg, rgba(7,17,27,.8), transparent 45%); }
.hero::after { content: ""; position: absolute; right: -8%; bottom: -190px; width: 520px; height: 360px; border: 70px solid rgba(230,90,45,.82); border-radius: 50%; transform: rotate(-12deg); }
.hero-inner { position: relative; z-index: 2; display: grid; align-content: center; min-height: 720px; padding-block: 96px 115px; }
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 800px; margin-bottom: 22px; text-transform: uppercase; }
.hero h1 em { display: block; color: var(--rust); font-style: normal; }
.hero-lead { max-width: 665px; margin-bottom: 30px; color: #dbe4e9; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; width: min(720px, 100%); margin-top: 50px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.15); }
.hero-proof div { padding: 17px 19px; background: rgba(12,24,36,.7); }
.hero-proof strong { display: block; color: white; font-size: 1rem; }
.hero-proof span { color: #bcd0db; font-size: .79rem; }

.problem-strip { position: relative; z-index: 4; margin-top: -52px; }
.problem-card { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 28px; padding: 29px 34px; border-left: 8px solid var(--yellow); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.problem-card h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.45rem); }
.problem-card p { margin: 0; color: var(--muted); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 250px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.service-card::after { content: attr(data-n); position: absolute; right: 18px; bottom: -22px; color: #edf1f2; font: 900 6.5rem/1 "Arial Narrow", sans-serif; }
.service-card:nth-child(2), .service-card:nth-child(5), .service-card:nth-child(8) { background: #edf3f1; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1.2rem; font-weight: 900; }
.service-card h3, .service-card p { position: relative; z-index: 1; }
.service-card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.image-frame { position: relative; }
.image-frame img { width: 100%; min-height: 500px; object-fit: cover; border-radius: 34px 8px 34px 8px; box-shadow: var(--shadow); }
.image-frame::before { content: ""; position: absolute; z-index: -1; inset: -18px 24% 35% -18px; border-radius: 34px 8px; background: var(--rust); }
.check-list { display: grid; gap: 13px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--sage); color: var(--ink); font-size: .76rem; font-weight: 900; }

.diagnostic { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; border-radius: 26px; background: var(--ink-2); color: white; }
.diagnostic-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.diagnostic-copy { padding: clamp(34px, 6vw, 72px); }
.diagnostic-copy p { color: #cad5dc; }
.steps { display: grid; gap: 18px; margin-top: 30px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--yellow); font-weight: 900; }
.step h3 { margin-bottom: 5px; font-size: 1.14rem; }
.step p { margin: 0; font-size: .91rem; }

.local-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: clamp(35px, 6vw, 76px); border-radius: 30px; background: #dfeae6; }
.local-panel h2 { margin-bottom: 0; }
.local-facts { display: grid; gap: 18px; }
.local-fact { padding: 22px; border: 1px solid rgba(12,24,36,.13); border-radius: 14px; background: rgba(255,255,255,.62); }
.local-fact strong { display: block; margin-bottom: 5px; }
.local-fact p { margin: 0; color: #435563; }

.brand-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.brand-cloud span { padding: 9px 13px; border: 1px solid #bdc9ce; border-radius: 999px; background: #fff; color: #3e5260; font-size: .82rem; font-weight: 800; }

.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.location-grid a { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #edf4f7; text-decoration: none; }
.location-grid a::after { content: "↗"; color: var(--rust); }
.location-grid a:hover { border-color: var(--rust); background: rgba(255,255,255,.06); }

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; background: white; }
.faq-item summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 900; list-style: none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { padding: 0 22px 21px; margin: 0; color: var(--muted); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: 26px; border-radius: var(--radius); background: #fff; color: var(--ink); }
.review-stars { margin-bottom: 14px; color: var(--rust); letter-spacing: .12em; }
.review footer { margin-top: 20px; color: var(--muted); font-size: .87rem; }

.cta-band { padding: 60px 0; background: var(--rust); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { margin: 0; max-width: 700px; }
.site-footer { padding: 62px 0 96px; background: #07111b; color: #dbe5ea; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 50px; }
.footer-title { margin-bottom: 14px; color: white; font-size: 1.05rem; font-weight: 900; }
.footer-brand p { max-width: 420px; color: #9cafba; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c6d3da; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.fineprint { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8195a2; font-size: .79rem; }
.sticky-call { position: fixed; z-index: 1200; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; padding: 13px 17px; border: 2px solid white; border-radius: 16px; background: var(--rust); color: white; box-shadow: 0 14px 40px rgba(0,0,0,.32); text-decoration: none; }
.sticky-call small { display: block; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sticky-call strong { display: block; font-size: 1.08rem; }
.sticky-call-icon { font-size: 1.45rem; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 66px; padding: 18px; border-radius: 14px; background: var(--ink-2); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .local-panel, .diagnostic { grid-template-columns: 1fr; }
  .diagnostic-image img { min-height: 380px; }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-card { grid-template-columns: 1fr; }
  .problem-card .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { padding-bottom: 68px; }
  body.admin-bar .site-header { top: 46px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 66px 0; }
  .brand-copy small { display: none; }
  .hero, .hero-inner { min-height: 690px; }
  .hero-inner { padding-top: 72px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(7,17,27,.96), rgba(7,17,27,.54)), linear-gradient(0deg, rgba(7,17,27,.94), transparent 55%); }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4.4rem); }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div:not(:first-child) { display: none; }
  .problem-strip { margin-top: -35px; }
  .problem-card { padding: 24px; }
  .services-grid, .reviews { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; }
  .image-frame img { min-height: 370px; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid a { min-height: 58px; font-size: .86rem; }
  .cta-inner, .footer-grid { display: grid; grid-template-columns: 1fr; }
  .sticky-call { left: 0; right: 0; bottom: 0; justify-content: center; border: 0; border-radius: 0; padding: 10px 16px; }
  .sticky-call small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scenario-grid article{padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.scenario-grid h3{margin-bottom:9px}.scenario-grid p{margin:0;color:var(--muted)}
@media(max-width:760px){body{padding-bottom:88px;font-size:16px}.eyebrow,.brand-copy small,.service-card p,.location-grid a,.faq-item p,.site-footer p,.site-footer a,.sticky-call,.sticky-call small,.sticky-call strong{font-size:16px!important}.scenario-grid{grid-template-columns:1fr}.sticky-call{left:0;right:0;bottom:0;min-height:72px;justify-content:center;gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border:0;border-radius:0}.sticky-call small{display:block}.sticky-call strong{white-space:nowrap}}
