/* RankForge -- Modern template. Clean, light, rounded, conversion-focused
   local-service look: big hero image with a soft overlay, bold sans
   headline, card grids with soft shadows. 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: #0ea5e9;
  --accent-dark: #0369a1;
  --base: #ffffff;
  --surface: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--base);
  line-height: 1.65;
  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.01em; }
main { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.site-header nav a:hover { color: var(--text); }

/* CTA buttons -- rounded, bold, high-contrast */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}
.cta-button:hover { background: var(--accent-dark); color: var(--text-on-accent); }
.cta-button.secondary { background: var(--surface); color: var(--text); box-shadow: none; }
.cta-button.large { font-size: 1.1rem; padding: 1rem 2rem; }

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

/* Hero -- large image, rounded card, soft overlay */
.hero { position: relative; margin: 1.5rem 0 0; border-radius: 1.5rem; overflow: hidden; background: var(--surface); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; z-index: 0; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.65));
}
.hero:not(:has(.hero-image))::after { display: none; }
.hero-inner { position: relative; z-index: 2; padding: 4rem 2rem; }
.hero:not(:has(.hero-image)) .hero-inner { padding: 3rem 0; }
.hero:not(:has(.hero-image)) { border-radius: 0; background: none; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero:not(:has(.hero-image)) .hero-eyebrow { background: var(--surface); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.6rem; color: #fff; max-width: 20ch; }
.hero:not(:has(.hero-image)) h1 { color: var(--text); }
.hero .slogan { font-size: 1.15rem; color: #e2e8f0; margin: 0 0 1.5rem; max-width: 55ch; }
.hero:not(:has(.hero-image)) .slogan { color: var(--text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Trust badges */
.trust-badges { padding: 1.5rem 0; }
.trust-badges ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.trust-badges li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* Services grid */
.services-grid { padding: 2.5rem 0; }
.services-grid .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.service-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border-on-surface);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-on-surface);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.service-card img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 0.7rem; 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: 340px; object-fit: cover; border-radius: var(--radius); }

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

/* FAQ */
.faq { padding: 2rem 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details > div { margin-top: 0.6rem; color: var(--text); }

/* Reviews */
.reviews { padding: 2.5rem 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.review-card {
  border: 1px solid var(--border-on-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
  color: var(--text-on-surface);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.review-card .stars { color: #f59e0b; letter-spacing: 0.1em; }
.review-card .reviewer { color: var(--text-muted-on-surface); font-size: 0.85rem; margin-top: 0.6rem; font-weight: 600; }

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

/* Quote form */
.quote-form { padding: 2rem; background: var(--surface); color: var(--text-on-surface); border-radius: 1.5rem; margin: 2rem 0; }
.quote-form form { display: grid; gap: 0.85rem; max-width: 480px; }
.quote-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 700; }
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-on-surface);
  border-radius: 0.6rem;
  font: inherit;
  background: var(--base);
  color: var(--text);
}
.quote-form button {
  justify-self: start;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
  cursor: pointer;
}

/* Related links */
.related-links { padding: 1.5rem 0; border-top: 1px 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(--surface);
  color: var(--text-on-surface);
  border-top: 1px solid var(--border-on-surface);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
  border-radius: 1.5rem 1.5rem 0 0;
}
footer .nap { max-width: 1040px; margin: 0 auto; font-size: 0.85rem; color: var(--text-muted-on-surface); }
footer .nap p { margin: 0.25rem 0; }
.footer-links { max-width: 1040px; margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted-on-surface); 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: 700;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.15);
  }
  .hero h1 { font-size: 1.7rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding-bottom: 4.5rem; }
}
