/* ==========================================================================
   Acme Roofing marketing site (biz-bots.ai/acme)
   Rebuilt from scratch, Aug 22 2026 -- the original assets/css/style.css
   was missing on the server (empty css/ folder, 404 on every page).
   Brand colors pulled from the inline :root fallback already present in
   each page's <head> (navy #1B4B6B / orange #E8792B), so this file just
   needs to var() them rather than redefine -- keeps a single source of
   truth if the palette ever changes. Structure/classes reverse-engineered
   from the live (unstyled) DOM across index.php, about.php, and faq.php.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* Base size bumped from the browser default 16px -- on a large/high-res
   display 16px body copy and ~2.7rem hero headings were reading as
   noticeably small (Richard, Aug 22 2026: "too small to even read").
   Scaling the root instead of every individual rule keeps all the rem-
   based sizing below proportionate to each other, just larger overall. */
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1F2933;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 121, 43, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232, 121, 43, 0.4); }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #E5E9EC;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand__logo { height: 40px; width: auto; border-radius: 6px; }
.brand__text { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__list li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4A5568;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav__list li a:hover { color: var(--navy); }
.site-nav__list li a.is-active { color: var(--navy); border-color: var(--orange); }
.site-nav__list li a.nav-login {
  color: var(--navy);
  border: 1.5px solid #D8DEE4;
  border-radius: 8px;
  padding: 8px 16px;
}
.site-nav__list li a.nav-login:hover { border-color: var(--navy); }
.site-nav__list li a.nav-cta {
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
}
.site-nav__list li a.nav-cta:hover { background: var(--orange-dark); }

/* --------------------------------------------------------------- hero
   Richard, Aug 22 2026: "add some images that are appropriate" -- no
   licensed photography available, so a roofline motif (a repeating
   zig-zag silhouette, like shingles/roof peaks along the horizon) is
   layered under the gradient instead of a stock photo. Same SVG tiles
   along the bottom edge of every navy band (hero, page-hero, cta-band)
   so the motif feels consistent site-wide rather than a one-off. */
.hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, #123049 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 40 L20 8 L40 40 L60 8 L80 40 L100 8 L120 40' fill='none' stroke='white' stroke-width='1.5' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat-x;
  background-position: center, bottom;
  background-size: cover, 120px 40px;
  color: #fff;
  padding: 88px 0;
}
.hero__inner { display: flex; }
.hero__content { max-width: 640px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero h1 { font-size: 2.75rem; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* page-hero: simpler top band used on About / FAQ */
.page-hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, #123049 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 40 L20 8 L40 40 L60 8 L80 40 L100 8 L120 40' fill='none' stroke='white' stroke-width='1.5' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat-x;
  background-position: center, bottom;
  background-size: cover, 120px 40px;
  color: #fff;
  padding: 64px 0;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: 2.25rem; font-weight: 800; }
.page-hero .hero__lead { margin-top: 14px; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; max-width: 620px; }

/* ------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section--alt { background: #F7F9FA; }
.section__title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
}
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--align-center { align-items: center; }
.grid--2 .section__title { text-align: left; }

.card {
  background: #fff;
  border: 1px solid #E9EDF0;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 42, 67, 0.1); }
/* The template's only per-card content is a plain bullet with no
   class to distinguish one service from another -- rather than edit the
   PHP to add real icon markup, each card's icon is swapped in here by
   position (Roof Replacement / Roof Repair / Free Estimates always render
   in that fixed order). Text is hidden and a small line-art SVG badge
   (house outline / wrench / clipboard-check) takes its place. */
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange);
  font-size: 0;
  margin-bottom: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
/* Multiple background-image layers paint top-to-bottom in the order
   listed -- the SVG glyph has to come FIRST (so it's the top layer that
   actually shows) with the solid-orange fill listed SECOND underneath
   it. Had these backwards on first deploy: the opaque orange layer was
   listed first and fully covered the icon beneath it, which is why the
   cards rendered as plain orange squares with no glyph visible at all. */
.card:nth-child(1) .card__icon {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v9a1 1 0 0 0 1 1h3v-6h6v6h3a1 1 0 0 0 1-1v-9'/%3E%3C/svg%3E"),
    linear-gradient(var(--orange), var(--orange));
  background-size: 22px 22px, cover;
}
.card:nth-child(2) .card__icon {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 1 0-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2-2z'/%3E%3C/svg%3E"),
    linear-gradient(var(--orange), var(--orange));
  background-size: 22px 22px, cover;
}
.card:nth-child(3) .card__icon {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M9 4V3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"),
    linear-gradient(var(--orange), var(--orange));
  background-size: 22px 22px, cover;
}
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: #5A6672; font-size: 0.95rem; }

/* ---------------------------------------------- section--alt two-col band
   (index.php: "Why homeowners choose Acme" list + stat card) */
.section--alt__inner { display: flex; align-items: center; gap: 56px; }
.section--alt__inner > div:first-child { flex: 1 1 55%; }
.section--alt__inner .section__title { text-align: left; }
.check-list { margin: 0 0 28px; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: #3D4852;
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero-stat-card {
  flex: 0 0 auto;
  width: 260px;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(27, 75, 107, 0.28);
}
.hero-stat-card__number { font-size: 2.75rem; font-weight: 800; color: var(--orange); }
.hero-stat-card__label { margin-top: 8px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

/* ------------------------------------------------------------- CTA band */
.cta-band {
  background:
    linear-gradient(135deg, var(--navy) 0%, #123049 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 40 L20 8 L40 40 L60 8 L80 40 L100 8 L120 40' fill='none' stroke='white' stroke-width='1.5' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat-x;
  background-position: center, bottom;
  background-size: cover, 120px 40px;
  color: #fff;
}
.cta-band__inner { text-align: center; padding: 8px 0; }
.cta-band__inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-band__inner p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin-bottom: 28px; }

/* ----------------------------------------------------------------- FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #E5E9EC;
  border-radius: 12px;
  padding: 4px 20px;
  background: #fff;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F0F3F5;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 24px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-item__answer { padding: 0 0 20px; color: #5A6672; font-size: 0.95rem; }

/* -------------------------------------------------------------- footer */
.site-footer { background: #102A40; color: rgba(255, 255, 255, 0.75); padding: 56px 0 0; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer .brand--footer { color: #fff; margin-bottom: 12px; }
.site-footer__col h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.site-footer__col p { margin: 0 0 8px; font-size: 0.9rem; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__license { color: rgba(255, 255, 255, 0.5); font-size: 0.82rem; margin-top: 8px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .hero h1 { font-size: 2.1rem; }
  .section--alt__inner { flex-direction: column; align-items: stretch; }
  .hero-stat-card { width: 100%; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--2 .section__title { text-align: center; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav__list {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #E5E9EC;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list li a { display: block; padding: 12px 0; border-bottom: 1px solid #F0F3F5; }
  .site-nav__list li a.nav-login,
  .site-nav__list li a.nav-cta { margin-top: 10px; text-align: center; border-bottom: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.8rem; }
}
