/* Alamo Home Improvement — draft site
   Colors sampled from the company logo: red #EC1C24, black, white.
   Layout is mobile-first. */

:root {
  --red: #EC1C24;
  --red-dark: #C4161C;
  --red-deep: #9B1016;
  --black: #0B0B0B;
  --ink: #161616;
  --muted: #4B4B4B;
  --line: #E2E2E2;
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font-display: "Alfa Slab One", "Roboto Slab", "Rockwell", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Pacifico", "Segoe Script", cursive;
  --wrap: 72rem;
  --header-h: 4.75rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 4.25rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 1.5rem, 46rem); margin-inline: auto; }

h1, h2, h3, .h-like {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--black);
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(1.85rem, 5vw, 3.15rem); color: inherit; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: #222; color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-facebook { background: #1877F2; color: var(--white); border-color: #1877F2; }
.btn-facebook:hover { background: #0e63d3; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.25rem 0 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand img {
  width: 3.35rem;
  height: 3.35rem;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.6vw, 1.2rem);
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand-loc { font-size: 0.75rem; color: #cfcfcf; font-weight: 600; }

.nav-toggle {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 1.15rem; height: 2px; background: var(--white); }
.site-nav { display: none; }
.site-nav.open, .nav-toggle[aria-expanded="true"] + .site-nav { display: block; }

@media (max-width: 999px) {
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--black);
    border-bottom: 3px solid var(--red);
    padding: 0.5rem 1rem 1.2rem;
  }
  .site-nav ul { list-style: none; margin: 0; padding: 0; }
  .site-nav > ul > li { border-top: 1px solid #2a2a2a; }
  .site-nav a, .site-nav .sub-toggle {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 0.2rem;
    font-weight: 700;
  }
  .site-nav .sub { display: none; padding: 0 0 0.4rem 0.8rem; }
  .site-nav .has-sub.open .sub { display: block; }
  .site-nav .sub a { font-weight: 600; color: #ddd; padding: 0.4rem 0; }
  .header-cta { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
  .header-cta .btn { width: 100%; }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    align-items: center;
    gap: 1.4rem;
  }
  .site-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.2rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav > ul > li { position: relative; }
  .site-nav a, .site-nav .sub-toggle {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: none;
    border: 0;
    padding: 0.4rem 0;
    cursor: pointer;
    font-family: var(--font-body);
  }
  .site-nav a:hover, .site-nav .sub-toggle:hover { color: var(--red); }
  .site-nav .sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: var(--black);
    border: 1px solid #333;
    border-top: 3px solid var(--red);
    padding: 0.45rem 0;
    display: none;
    box-shadow: var(--shadow);
  }
  .site-nav .has-sub:hover .sub,
  .site-nav .has-sub:focus-within .sub { display: block; }
  .site-nav .sub a {
    display: block;
    padding: 0.45rem 0.9rem;
    text-transform: none;
    letter-spacing: 0;
  }
  .header-cta { display: flex; gap: 0.5rem; }
  .header-cta .btn { white-space: nowrap; padding: 0.55rem 0.85rem; font-size: 0.8rem; }
  .site-nav .btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
  .site-nav .btn-primary:hover { background: var(--red-dark); color: var(--white); }
  .site-nav .btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
  .site-nav .btn-ghost:hover { background: var(--white); color: var(--black); }
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: var(--black);
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-img.pos-top { object-position: center 25%; }
.hero-img.pos-floor { object-position: center 85%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.82) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 4.5rem 0 3.2rem; }
.hero .eyebrow, .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero p { color: #f0f0f0; max-width: 36rem; font-size: 1.12rem; }
.hero-page { min-height: 20rem; }
.hero-page .hero-inner { padding: 3.4rem 0 2.6rem; }

/* Red swoosh divider — echoes the business card */
.swoosh {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 0;
  background: var(--white);
}
.swoosh svg { width: 100%; height: 42px; display: block; }
.swoosh-dark { background: var(--black); }

/* Trust bar */
.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 0;
  border-bottom: 3px solid var(--red);
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.trust-bar li { display: flex; align-items: center; gap: 0.45rem; }
.trust-bar li + li::before {
  content: "•";
  color: var(--red);
  margin-right: 0.2rem;
  font-size: 1.1rem;
}

/* Sections */
.section { padding: 3.2rem 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { margin-bottom: 1.6rem; }
.kicker {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}

/* Cards / grids */
.card-grid, .service-grid, .gallery, .town-grid, .step-grid, .include-grid {
  display: grid;
  gap: 1.1rem;
}
.service-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .service-grid, .include-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .town-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery.gallery-3, .include-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
  .town-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card, .service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
a.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: 0.15s ease; }
.service-card img, .card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.card-body, .service-card .card-body { padding: 1rem 1.05rem 1.2rem; }
.service-card h3 { color: var(--black); margin-bottom: 0.35em; }
.service-card p { color: var(--muted); margin-bottom: 0.6em; }
.more { font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }

.photo-ph {
  background: repeating-linear-gradient(-45deg, #ececec, #ececec 12px, #e4e4e4 12px, #e4e4e4 24px);
  border: 2px dashed #b9b9b9;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  color: #555;
  aspect-ratio: 16/11;
}
.photo-ph strong { display: block; color: var(--black); margin-bottom: 0.3rem; }

/* Lists */
.plain-list, .include-list { margin: 0; padding: 0; list-style: none; }
.include-list li, .plain-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
}
.include-list li::before, .plain-list.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 0.5rem; height: 0.5rem;
  background: var(--red);
  border-radius: 50%;
}
.include-box, .step, .town-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.section-alt .include-box, .section-alt .step, .section-alt .town-card { border-color: #ddd; }
.step .num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* Before / after */
.ba-grid {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 700px) { .ba-grid.pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 800px) { .ba-grid.trio { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 700px) { .ba-grid.quad { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.ba-item figcaption, .gallery figcaption, .shot figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.ba-item img, .gallery img, .shot img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #ddd;
}
.ba-item img.portrait, .gallery img.portrait { object-position: center 60%; }

/* FAQ */
.faq { display: grid; gap: 0.55rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--muted); }

/* Forms */
form.estimate {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.form-note {
  background: #fff6e5;
  border: 1px solid #efd7a0;
  color: #5b4300;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.field { margin-bottom: 0.85rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Contact split */
.split { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.contact-card {
  background: var(--black);
  color: var(--white);
  padding: 1.4rem 1.3rem 1.6rem;
  border-radius: var(--radius);
}
.contact-card h2 { color: var(--white); }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: #ffd4d6; }
.nap dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; font-weight: 700; margin-top: 0.85rem; }
.nap dd { margin: 0.15rem 0 0; font-size: 1.05rem; }
.placeholder-val {
  display: inline-block;
  background: #fff3a8;
  color: #1a1a1a;
  padding: 0 0.3rem;
  border-radius: 3px;
  font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* Reviews placeholder */
.review-ph {
  background: var(--white);
  border: 2px dashed #b9b9b9;
  border-radius: var(--radius);
  padding: 1.1rem;
  min-height: 8rem;
  color: #555;
}

/* Footer */
.site-footer { background: var(--black); color: #ddd; padding: 2.6rem 0 1.4rem; }
.site-footer a { color: var(--white); }
.site-footer h3 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.footer-grid {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-services { columns: 2; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.footer-services li { break-inside: avoid; margin: 0 0 0.35rem; }
.footer-services a { text-decoration: none; font-weight: 600; }
.footer-services a:hover { color: var(--red); }
.tagline {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--white);
  margin: 1.2rem 0 0.2rem;
}
.tagline-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.tagline-rule::before, .tagline-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--red);
}
.legal {
  border-top: 1px solid #2a2a2a;
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #9a9a9a;
}
.legal p { margin: 0 0 0.4rem; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  border-top: 3px solid var(--red);
}
.sticky-cta a {
  text-align: center;
  padding: 0.85rem 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.sticky-cta a:first-child { background: var(--black); }
.sticky-cta a:last-child { background: var(--red); }
@media (min-width: 1000px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* Utility */
.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.review-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:1.5rem 0}
.review-card{margin:0;background:#fff;border-left:5px solid #EC1C24;padding:1.1rem 1.2rem;box-shadow:0 2px 8px rgba(0,0,0,.08);border-radius:6px}
.review-card .stars{color:#f5b301;font-size:1.2rem;margin:0 0 .4rem}
.review-card footer{font-weight:700;margin-top:.6rem;color:#111}
