/* ==========================================================================
   All Star Roofing Of Garland — "1995 Texas Letterpress"
   Paper + asphalt ink + barn red + brass. Hard offset shadows, stamp badges,
   billboard slab display type. Mobile-first, no framework, no build step.
   ========================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-deep: #efe6d3;
  --ink: #211d18;
  --ink-soft: #4a4238;
  --red: #b03a24;
  --red-deep: #8f2c1a;
  --brass: #c68f2e;
  --brass-soft: #e8c983;
  --white: #fffdf8;
  --green: #2e5c43;

  --font-display: "Alfa Slab One", "Rockwell", serif;
  --font-body: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --border-ink: 3px solid var(--ink);
  --radius: 4px;

  --w-content: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.container { max-width: var(--w-content); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- type scale ---- */
.display, h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.5vw, 4.2rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: uppercase;
}
h3 { font-size: 1.25rem; font-weight: 800; }
.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 0.75rem;
}
.accent-red { color: var(--red); }
.accent-brass { color: var(--brass); }

/* star divider between sections */
.star-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--brass); font-size: 1.1rem; margin: 0 0 1.25rem;
}
.star-divider::before, .star-divider::after {
  content: ""; height: 3px; width: min(90px, 18vw); background: var(--ink);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.6rem; font-size: 1rem;
  border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-lg { font-size: 1.15rem; padding: 1.1rem 2rem; }

/* ---- header ---- */
.topbar {
  background: var(--ink); color: var(--paper);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0; text-align: center; letter-spacing: 0.04em;
}
.topbar .stars { color: var(--brass-soft); letter-spacing: 0.15em; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border-ink);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-star {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: var(--white);
  border: var(--border-ink); border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.brand-name {
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.05;
  text-transform: uppercase;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.28em; color: var(--red-deep); }
.main-nav { display: none; gap: 1.4rem; }
.main-nav a { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.main-nav a:hover { color: var(--red); }
.header-call { display: none; }
@media (min-width: 62rem) {
  .main-nav { display: flex; }
  .header-call { display: inline-flex; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: clip; border-bottom: var(--border-ink); }
.hero-inner {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
@media (min-width: 62rem) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 .underline {
  background-image: linear-gradient(transparent 62%, var(--brass-soft) 62% 92%, transparent 92%);
}
.hero-sub { font-size: 1.2rem; max-width: 34rem; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-phone-note { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

/* trust chips under hero heading */
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.85rem; font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}
.chip .stars { color: var(--brass); }

/* stamp badge (EST. 1995) */
.stamp {
  position: absolute; top: clamp(0.5rem, 3vw, 2rem); right: clamp(0.5rem, 3vw, 2.5rem);
  width: clamp(84px, 12vw, 128px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 3px dashed var(--red); color: var(--red);
  font-family: var(--font-display); font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  transform: rotate(8deg); line-height: 1.15; padding: 0.6rem;
  opacity: 0.9; pointer-events: none;
}

/* ---- quote form card ---- */
.quote-card {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard); padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
}
.quote-card::before {
  content: "FREE"; position: absolute; top: -1.1rem; right: 1.2rem;
  background: var(--brass); color: var(--ink); border: var(--border-ink);
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.05em;
  padding: 0.15rem 0.7rem; transform: rotate(3deg);
}
.quote-card h2 { font-size: 1.45rem; }
.quote-card .form-note { font-size: 0.85rem; color: var(--ink-soft); }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--brass); outline-offset: 1px;
}
.form-status { font-weight: 700; margin-top: 0.75rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red-deep); }

/* ---- section scaffolding ---- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--white); }
.section-deep { background: var(--paper-deep); border-block: var(--border-ink); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

/* ---- services grid ---- */
.services-grid { display: grid; gap: 1.4rem; }
@media (min-width: 44rem) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.service-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.service-card .icon { font-size: 1.8rem; }
.service-card h3 { margin: 0.2rem 0 0.2rem; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; flex: 1; }
.service-card .learn { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; margin-top: 0.9rem; }
.service-card .learn::after { content: " →"; }

/* ---- reviews ---- */
.review-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-bottom: 2rem;
}
.review-summary .big-rating { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.review-summary .stars-lg { color: var(--brass); font-size: 1.5rem; letter-spacing: 0.2em; }
.reviews-grid { display: grid; gap: 1.4rem; }
@media (min-width: 44rem) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--paper); color: var(--ink);
  border: var(--border-ink); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
}
.review-card .stars { color: var(--brass); letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.review-card blockquote { margin: 0 0 1rem; font-size: 0.98rem; flex: 1; }
.review-card figcaption { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.review-card figcaption .src { display: block; font-weight: 600; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }

/* ---- gallery: job-site corkboard ---- */
.gallery { display: grid; gap: 1.6rem; }
@media (min-width: 44rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.polaroid {
  background: var(--white); border: var(--border-ink);
  padding: 0.7rem 0.7rem 1rem; box-shadow: var(--shadow-hard-sm);
  transform: rotate(var(--tilt, -1.2deg));
  transition: transform 0.15s ease;
}
.polaroid:nth-child(2n) { --tilt: 1.4deg; }
.polaroid:nth-child(3n) { --tilt: -0.6deg; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.polaroid figcaption { font-weight: 700; font-size: 0.85rem; margin-top: 0.6rem; text-align: center; }

/* ---- why us / process ---- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .mark {
  flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--brass); border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 900; box-shadow: 2px 2px 0 var(--ink); font-size: 0.9rem;
}
.feature-list strong { display: block; }
.feature-list span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---- service area ---- */
.area-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-tags a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.92rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1rem; box-shadow: 2px 2px 0 var(--ink);
}
.area-tags a:hover { background: var(--brass-soft); }

/* ---- offer stack + promise strip ---- */
.offer-stack { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.offer-stack li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; }
.offer-stack li::before { content: "★"; position: absolute; left: 0; color: var(--brass); }
.promise-strip { padding-block: clamp(2rem, 5vw, 3.5rem); }
.promise-grid { display: grid; gap: 1.2rem; }
@media (min-width: 44rem) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
.promise {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm); padding: 1.2rem 1.3rem;
}
.promise strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.promise span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---- service-area map + coverage checker ---- */
.area-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .area-layout { grid-template-columns: 0.9fr 1.1fr; } }
.area-map-wrap {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard); padding: 1rem;
}
.area-map { width: 100%; height: auto; display: block; max-height: 74vh; }
.ctx-shape {
  fill: #e6e1d4; stroke: #b9b2a2; stroke-width: 1;
  stroke-linejoin: round; pointer-events: none;
}
.ctx-label {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; fill: #a89f8c; text-anchor: middle;
  pointer-events: none;
}
.area-shape {
  fill: var(--white); stroke: var(--ink); stroke-width: 2;
  stroke-linejoin: round; cursor: pointer;
  transition: fill 0.15s ease;
}
.area-shape:hover, .area-shape.lit { fill: var(--brass-soft); }
#shape-garland { fill: #e8d9b8; }
#shape-garland:hover, #shape-garland.lit { fill: var(--brass-soft); }
.area-shape.hit { fill: var(--brass); }
.area-label {
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  letter-spacing: 0.08em; fill: var(--ink); text-anchor: middle;
  pointer-events: none; paint-order: stroke; stroke: var(--white); stroke-width: 3px;
}
.home-star { font-size: 26px; fill: var(--red); pointer-events: none; }
.area-side { display: grid; gap: 1.6rem; }
.coverage-check {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm); padding: 1.4rem;
}
.coverage-check h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 0.3rem; }
.coverage-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: stretch; margin-top: 0.8rem; }
.zip-form { display: flex; gap: 0.5rem; flex: 1; min-width: 14rem; }
.zip-form input {
  flex: 1; min-width: 7rem; font: inherit; font-weight: 700;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; color: var(--ink);
}
.zip-form input:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.coverage-result { font-weight: 700; margin: 0.9rem 0 0; min-height: 1.4em; }
.coverage-result.yes { color: var(--green); }
.coverage-result.maybe { color: var(--brass); filter: brightness(0.75); }
.coverage-result.no { color: var(--red-deep); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- FAQ ---- */
.faq details {
  background: var(--white); border: var(--border-ink); border-radius: var(--radius);
  margin-bottom: 0.9rem; box-shadow: var(--shadow-hard-sm);
}
.faq summary {
  cursor: pointer; font-weight: 800; padding: 1rem 1.2rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ---- big CTA band ---- */
.cta-band { background: var(--red); color: var(--white); border-block: var(--border-ink); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-secondary { background: var(--white); }
.cta-band .phone-big {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--white); text-decoration: none; display: inline-block; margin: 0.5rem 0 1rem;
}

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 3rem 6rem; font-size: 0.95rem; }
.site-footer a { color: var(--brass-soft); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 44rem) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(246,241,230,0.25); font-size: 0.82rem; color: rgba(246,241,230,0.7); }
.social-row a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--brass-soft); text-decoration: none; font-weight: 700;
}
.social-row a:hover { color: var(--white); }
.social-row svg { flex: none; }

/* ---- mobile sticky call bar ---- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: var(--border-ink);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem; font-weight: 800; text-transform: uppercase; font-size: 0.95rem;
  text-decoration: none; letter-spacing: 0.04em;
}
.callbar .call { background: var(--red); color: var(--white); }
.callbar .quote { background: var(--brass); color: var(--ink); }
@media (min-width: 62rem) { .callbar { display: none; } .site-footer { padding-bottom: 3rem; } }

/* ---- reveal animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- breadcrumbs + inner pages ---- */
.breadcrumbs { font-size: 0.85rem; font-weight: 600; padding-top: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "★"; color: var(--brass); margin-right: 0.4rem; font-size: 0.7rem; }
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }
.sidebar-card { position: sticky; top: 6rem; }
