/* RankForge -- Editorial template. Premium/high-ticket feel (legal,
   medical, luxury): spacious, large serif headings, restrained accent,
   few loud CTAs. Uses a strong system serif stack (no font file to self-
   host, keeps this skin dependency-free). 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: #9c7c38;
  --accent-dark: #7a5f2a;
  --base: #fdfcf9;
  --surface: #f5f2ea;
  --text: #1f1c16;
  --text-muted: #6b6355;
  --border: #e4ded0;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--base);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--text); font-weight: 400; }
main { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4.5rem; }

/* Header -- quiet, no loud CTA button up top */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--base); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 780px; margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.brand { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.02em; }
.site-header nav a:hover { color: var(--text); }

/* CTA buttons -- restrained, understated */
.cta-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 0.15rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cta-button:hover { background: var(--accent); color: var(--text-on-accent); }
.cta-button.secondary { border-color: var(--border); color: var(--text-muted); }
.cta-button.large { font-size: 0.95rem; padding: 0.85rem 2rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.78rem; color: var(--text-muted); padding: 1.5rem 0 0; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--text-muted); }

/* Hero -- spacious, quiet, serif */
.hero { padding: 4rem 0 2.5rem; text-align: left; }
.hero-image { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 0.15rem; margin-bottom: 2rem; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin: 0 0 0.85rem; }
.hero .slogan { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text-muted); margin: 0 0 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Trust badges */
.trust-badges { padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-badges ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.trust-badges li { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.01em; }

/* Services grid */
.services-grid { padding: 2.5rem 0; }
.services-grid h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.services-grid .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.service-card {
  display: block;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-on-surface);
  text-decoration: none;
  color: var(--text-on-surface);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.service-card:hover { color: var(--accent); }
.service-card img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 0.15rem; margin-bottom: 0.85rem; }
.service-card span { display: block; }

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

/* Content */
.content-sections { padding: 1.5rem 0; }
.content-block { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.content-block:last-child { border-bottom: 0; }
.content-block h2 { font-size: 1.65rem; }
.content-block h3 { font-size: 1.2rem; font-style: italic; }
.content-block p { max-width: 68ch; }

/* FAQ */
.faq { padding: 2rem 0; }
.faq h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; margin-bottom: 0; }
.faq summary { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; cursor: pointer; }
.faq details > div { margin-top: 0.75rem; color: var(--text-muted); }

/* Reviews */
.reviews { padding: 2.5rem 0; }
.reviews h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.review-card { border-top: 1px solid var(--border-on-surface); padding-top: 1.1rem; color: var(--text-on-surface); }
.review-card .stars { color: var(--accent); letter-spacing: 0.15em; }
.review-card p:not(.reviewer) { font-family: var(--serif); font-style: italic; }
.review-card .reviewer { color: var(--text-muted-on-surface); font-size: 0.82rem; margin-top: 0.6rem; }

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

/* Quote form */
.quote-form { padding: 2rem; background: var(--surface); color: var(--text-on-surface); border-radius: 0.15rem; margin: 2.5rem 0; }
.quote-form h2 { font-size: 1.4rem; margin-top: 0; }
.quote-form form { display: grid; gap: 0.85rem; max-width: 460px; }
.quote-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-on-surface);
  border-radius: 0.1rem;
  font: inherit;
  background: var(--base);
  color: var(--text);
}
.quote-form button {
  justify-self: start;
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: 0.15rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.quote-form button:hover { background: var(--accent); color: var(--text-on-accent); }

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

/* 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; }
footer .nap { max-width: 780px; margin: 0 auto; font-size: 0.85rem; color: var(--text-muted-on-surface); }
footer .nap p:first-child { font-family: var(--serif); font-size: 1rem; color: var(--text-on-surface); }
footer .nap p { margin: 0.25rem 0; }
.footer-links { max-width: 780px; margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted-on-surface); text-decoration: none; }

/* Sticky mobile call bar -- present but understated */
.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(--text);
    color: var(--base);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem;
    text-decoration: none;
  }
  .hero h1 { font-size: 1.85rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding-bottom: 4.5rem; }
}
