/* RankForge -- Trades template. Sturdy blue-collar contractor look
   (HVAC/plumbing/roofing): friendly, solid, big bold service cards, strong
   CTA buttons, slightly heavier/condensed sans, trust-forward. Brand colors
   come in via CSS custom properties set inline per-property (see
   renderer.py); this file only ever references var(--accent) etc, never a
   hardcoded brand color. */
:root {
  --accent: #ea580c;
  --accent-dark: #9a3412;
  --base: #ffffff;
  --surface: #eef2f7;
  --text: #1e293b;
  --text-muted: #56657a;
  --border: #d7dfe9;
  --navy: #14283f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial Narrow, Arial, sans-serif;
  color: var(--text);
  background: var(--base);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; color: var(--text); font-weight: 800; letter-spacing: -0.005em; }
main { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem 3.5rem; }

/* Header -- solid navy bar */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 3px solid var(--accent); }
.header-inner { max-width: 1000px; margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.brand { font-weight: 800; font-size: 1.2rem; color: #fff; text-decoration: none; margin-right: auto; text-transform: uppercase; letter-spacing: 0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-header nav a { color: #cbd5e1; text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.site-header nav a:hover { color: #fff; }

/* CTA buttons -- big, bold, solid */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--text-on-accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 3px solid var(--accent-dark);
}
.cta-button:hover { background: var(--accent-dark); color: var(--text-on-accent); }
.cta-button.secondary { background: transparent; color: #fff; border: 2px solid #fff; border-bottom: 2px solid #fff; }
.cta-button.large { font-size: 1.15rem; padding: 1rem 2rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.8rem; color: var(--text-muted); padding: 1rem 0 0; font-weight: 600; }
.breadcrumbs a { color: var(--text-muted); }

/* Hero -- solid navy band, friendly and direct */
.hero { background: var(--navy); color: #fff; }
.hero-image { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.hero-inner { max-width: 1000px; margin: 0 auto; padding: 3rem 1.25rem 3rem; }
.hero-eyebrow { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 0.85rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 0.6rem; color: #fff; }
.hero .slogan { font-size: 1.1rem; color: #cbd5e1; margin: 0 0 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Trust badges -- prominent, trust-forward */
.trust-badges { padding: 1.25rem 0; background: var(--surface); }
.trust-badges ul { max-width: 1000px; margin: 0 auto; list-style: none; padding: 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem 1.75rem; }
.trust-badges li { font-size: 0.9rem; font-weight: 700; color: var(--text-on-surface); }

/* Services grid -- big bold cards */
.services-grid { padding: 2.5rem 0; }
.services-grid h2 { font-size: 1.7rem; text-transform: uppercase; }
.services-grid .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.service-card {
  display: block;
  padding: 1.25rem;
  border: 2px solid var(--border-on-surface);
  border-radius: 0.5rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--text-on-surface);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.service-card:hover { border-color: var(--accent); }
.service-card img { display: block; width: 100%; height: 145px; object-fit: cover; border-radius: 0.35rem; margin-bottom: 0.75rem; }
.service-card span { display: block; }

/* Team photo */
.team-photo { padding: 1.5rem 0; }
.team-photo img { display: block; width: 100%; max-height: 330px; object-fit: cover; border-radius: 0.5rem; }

/* Content */
.content-sections { padding: 1.5rem 0; }
.content-block { padding: 1.6rem 0; }
.content-block h2 { font-size: 1.5rem; }
.content-block h3 { font-size: 1.15rem; }

/* FAQ */
.faq { padding: 1.75rem 0; }
.faq h2 { font-size: 1.5rem; text-transform: uppercase; }
.faq details { border: 2px solid var(--border); border-radius: 0.5rem; padding: 0.85rem 1.1rem; margin-bottom: 0.65rem; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details > div { margin-top: 0.6rem; color: var(--text); }

/* Reviews */
.reviews { padding: 2.25rem 0; }
.reviews h2 { font-size: 1.5rem; text-transform: uppercase; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.review-card { border: 2px solid var(--border-on-surface); border-radius: 0.5rem; padding: 1.1rem; background: var(--surface); color: var(--text-on-surface); }
.review-card .stars { color: var(--accent); letter-spacing: 0.1em; }
.review-card .reviewer { color: var(--text-muted-on-surface); font-size: 0.85rem; margin-top: 0.55rem; font-weight: 700; }

/* Map */
.map { padding: 1.5rem 0; }
.map iframe { width: 100%; min-height: 300px; border: 0; border-radius: 0.5rem; }

/* Quote form */
.quote-form { padding: 1.75rem; background: var(--navy); color: #fff; border-radius: 0.5rem; margin: 1.75rem 0; }
.quote-form h2 { color: #fff; text-transform: uppercase; }
.quote-form form { display: grid; gap: 0.8rem; max-width: 480px; }
.quote-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 700; color: #e2e8f0; }
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 0.35rem;
  font: inherit;
}
.quote-form button {
  justify-self: start;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

/* Related links */
.related-links { padding: 1.5rem 0; border-top: 2px solid var(--border); }
.related-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Footer */
footer { background: var(--navy); color: #cbd5e1; padding: 2.25rem 1.25rem; margin-top: 2rem; }
footer .nap { max-width: 1000px; margin: 0 auto; font-size: 0.85rem; }
footer .nap p:first-child { font-weight: 800; color: #fff; text-transform: uppercase; }
footer .nap p { margin: 0.2rem 0; }
.footer-links { max-width: 1000px; margin: 1rem auto 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links a { font-size: 0.8rem; color: #cbd5e1; text-decoration: none; }

/* Sticky mobile call bar */
.mobile-call { display: none; }
@media (max-width: 640px) {
  .mobile-call {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--text-on-accent);
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
  }
  .hero h1 { font-size: 1.8rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding-bottom: 4.5rem; }
}
