/* =====================================================================
   Texas Roof Damage — Roof Repair landing page
   Plain CSS, mobile-first. Change the brand in :root.
   ===================================================================== */
:root {
  --navy: #0f2238;        /* deep navy — headers, footer, headlines */
  --navy-2: #16304d;      /* lighter navy for gradients */
  --storm: #5b6b7c;       /* storm gray — body text on light */
  --storm-2: #e7ebf0;     /* light gray — section backgrounds, borders */
  --white: #ffffff;
  --accent: #ff6a13;      /* safety orange — every primary CTA */
  --accent-dark: #e05a0b;
  --green: #15803d;       /* inspection green — every "Free Inspection" CTA (5.0:1 on white text) */
  --green-dark: #166534;  /* hover */
  --green-darker: #14532d;/* active */
  --ink: #141c26;
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 34, 56, .14);
  --max: 1160px;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px; padding-bottom: 72px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.08; margin: 0 0 .5rem; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.lede { color: var(--storm); font-size: 1.05rem; max-width: 62ch; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 84px 0; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin-bottom: .4rem; }
.alt { background: var(--storm-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; font-weight: 600; padding: .85rem 1.3rem; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(255, 106, 19, .35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-dark-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-dark-outline:hover { background: var(--navy); color: var(--white); }
.btn-youtube { background: #ff0000; color: #fff; }
.btn-youtube:hover { background: #cc0000; }
.btn-inspect { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(21, 128, 61, .35); }
.btn-inspect:hover { background: var(--green-dark); }
.btn-inspect:active { background: var(--green-darker); box-shadow: 0 3px 10px rgba(21, 128, 61, .3); }
.btn-inspect:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--green); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.cta-row { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.4rem; }
@media (min-width: 560px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
.cta-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); height: var(--header-h); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .03em; font-size: 1.05rem; }
.logo img { height: 44px; width: auto; display: block; }
.site-footer .logo img { height: 56px; }
.logo-mark { width: 40px; height: 40px; border-radius: 6px; background: var(--storm-2); color: var(--navy); display: grid; place-items: center; font-size: .6rem; text-align: center; line-height: 1; padding: 2px; font-family: var(--font-body); font-weight: 600; }
.header-actions { display: none; gap: .6rem; }
.header-actions .btn { padding: .55rem 1rem; min-height: 42px; font-size: .95rem; }
.header-call-mobile { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; }
.header-call-mobile svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 900px) { .header-actions { display: flex; } .header-call-mobile { display: none; } }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #1d3b5c 100%); color: var(--white); padding: 44px 0 52px; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.82); }
.hero-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero { padding: 84px 0; } .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; } }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; grid-template-columns: 1fr; font-weight: 600; font-size: .98rem; }
@media (min-width: 560px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust li { display: flex; align-items: center; gap: .55rem; }
.trust svg { width: 20px; height: 20px; fill: var(--accent); flex: none; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid rgba(255,255,255,.08); }

/* Placeholders (gray boxes). The label is baked into the JPG; this is the fallback. */
.ph { background: #c9cfd6; color: #3b4652; display: grid; place-items: center; text-align: center; font-size: .85rem; font-weight: 600; width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Intro */
.intro .wrap { max-width: 820px; text-align: center; }

/* Cards / grids */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.grid-5 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--white); border: 1px solid var(--storm-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(15,34,56,.06); display: flex; flex-direction: column; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card h3 { margin-top: .2rem; }
.card p { color: var(--storm); margin: 0; font-size: .95rem; }
.card-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--navy); color: var(--accent); display: grid; place-items: center; margin-bottom: .8rem; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.center { text-align: center; align-items: center; padding: 1.4rem 1rem; }
.card.center .card-icon { margin-left: auto; margin-right: auto; }

/* Reviews */
.reviews-widget { border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--white); box-shadow: var(--shadow); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.reviews-widget .gr-left { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.reviews-widget .gr-left:hover strong { text-decoration: underline; }
.reviews-widget .g-mark svg { width: 44px; height: 44px; display: block; }
.reviews-widget strong { display: block; color: var(--navy); font-size: 1.05rem; }
.reviews-widget .gr-score { display: flex; align-items: center; gap: .5rem; }
.reviews-widget .gr-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.reviews-widget .stars { color: var(--accent); font-size: 1.15rem; letter-spacing: .08em; }
.reviews-widget .gr-sub { font-size: .85rem; color: var(--storm); }
.reviews-widget .gr-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.reviews-widget .gr-actions .btn { padding: .7rem 1.1rem; font-size: .9rem; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
@media (max-width: 559px) { .reviews-widget .gr-actions { width: 100%; } .reviews-widget .gr-actions .btn { flex: 1; justify-content: center; } }
.review-card { padding: 1.2rem; }
#review-cards { display: flex; flex-wrap: wrap; justify-content: center; }
#review-cards .card { flex: 1 1 280px; max-width: 100%; text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
#review-cards .card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,34,56,.14); }
#review-cards .card p { color: var(--storm); }
@media (min-width: 900px) { #review-cards .card { max-width: calc((100% - 2 * 1.1rem) / 3); } }
.review-card .stars { color: var(--accent); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: .4rem; }
.review-card .who { font-weight: 600; color: var(--navy); margin-top: .8rem; font-size: .9rem; }
.review-card .when { display: block; font-weight: 400; color: var(--storm); font-size: .78rem; margin-top: .15rem; }
.placeholder-tag { display: inline-block; background: #fff3e8; color: #9a3d00; border: 1px solid #ffc89c; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; margin-bottom: .5rem; letter-spacing: .04em; }

/* Video section */
.video-section { background: var(--navy); color: var(--white); }
.video-section h2, .video-section .lede { color: var(--white); }
.video-section .lede { color: rgba(255,255,255,.8); }
.video-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .video-grid { grid-template-columns: 2fr 1fr; align-items: start; } .video-grid .stack { display: grid; gap: 1rem; } }
.video-grid .stack { display: grid; gap: 1rem; }
@media (min-width: 560px) and (max-width: 899px) { .video-grid .stack { grid-template-columns: repeat(3, 1fr); } }
.yt { position: relative; aspect-ratio: 16 / 9; background: #0a1522 center / cover no-repeat; border-radius: var(--radius); overflow: hidden; cursor: pointer; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); }
.yt .yt-label { position: absolute; left: 10px; bottom: 8px; font-size: .78rem; color: rgba(255,255,255,.75); font-weight: 600; }
.yt .play { width: 64px; height: 44px; background: #ff0000; border-radius: 12px; display: grid; place-items: center; transition: transform .15s ease; }
.yt:hover .play { transform: scale(1.08); }
.yt .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cta { margin-top: 1.6rem; text-align: center; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.2rem 1.2rem; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: .4rem; }

/* Service area */
.chips { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chips li { background: var(--white); border: 1px solid #cfd6de; border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.map-ph { border-radius: var(--radius); overflow: hidden; border: 1px solid #d5dbe2; min-height: 260px; }
.map-ph iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Lead form */
.quote { background: var(--navy); color: var(--white); }
.quote h2 { color: var(--white); }
.quote .lede { color: rgba(255,255,255,.8); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.2rem; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem .9rem; border: 1.5px solid #cfd6de; border-radius: 8px; background: #fff; min-height: 48px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255,106,19,.35); border-color: var(--accent); }
.field.invalid input, .field.invalid select { border-color: #d12e2e; }
.field .error { display: none; color: #d12e2e; font-size: .82rem; margin-top: .3rem; }
.field.invalid .error { display: block; }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; color: var(--storm); margin: .2rem 0 1.2rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent.invalid { color: #d12e2e; }
.form-card .btn { width: 100%; font-size: 1.1rem; }
.form-note { text-align: center; font-size: .82rem; color: var(--storm); margin: .8rem 0 0; }
.thanks { display: none; text-align: center; padding: 2rem 0; }
.thanks svg { width: 56px; height: 56px; stroke: #1f9d55; fill: none; stroke-width: 2.5; margin: 0 auto 1rem; }
.form-card.sent form { display: none; }
.form-card.sent .thanks { display: block; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 720px; margin: 1.2rem auto 0; }
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(6, 1fr); } }
.thumbs .ph { border-radius: 8px; overflow: hidden; font-size: .62rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--storm-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0; font-weight: 600; font-size: 1.02rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq .answer { color: var(--storm); padding: 0 0 1.1rem; max-width: 70ch; }

/* Closing band */
.band { background: linear-gradient(135deg, var(--accent) 0%, #ff8a3d 100%); color: var(--white); text-align: center; }
.band h2 { color: var(--white); }
.band .btn-primary { background: var(--navy); box-shadow: none; }
.band .btn-primary:hover { background: var(--navy-2); }
.band .btn-outline { border-color: #fff; }
.band .btn-inspect { border-color: #fff; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 2.4rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: .6rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.copyright .credit a { color: inherit; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }

/* Mobile sticky bar */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(15,34,56,.96); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.12); }
.sticky-bar .btn { min-height: 50px; font-size: 1rem; padding: .6rem .5rem; }
.sticky-bar .btn-call { background: var(--white); color: var(--navy); }
@media (min-width: 900px) { .sticky-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .yt .play { transition: none; } }
