/* RankForge -- Bold template. Faithful to the alcoholrehabhouston.com brand
   theme (seo-directory-builder/web-brand/src/components/Layout.astro):
   charcoal header/footer, cream body, gold accent, Oswald condensed
   uppercase headings + Roboto body, square corners, loud gold CTAs.

   Brand colors still come in via CSS custom properties set inline per-
   property (see renderer.py) -- this file only ever references var(--accent)
   etc for anything that must stay readable on a swapped palette. The
   charcoal header/footer are the one deliberate exception: they're a fixed
   part of this look (like the reference site), so their background AND
   their text are BOTH hardcoded together -- never mixed with a --base/
   --surface-driven color -- so contrast can never break under a palette
   swap. */
@import url('fonts.css');

:root {
  --accent: #f4b43c;
  --accent-dark: #d99a1e;
  --base: #d9d6c7;
  --surface: #f0ede1;
  --text: #2b2b26;
  --text-muted: #6d6a5c;
  --border: #c4c1b0;
  --charcoal: #181818;
  --charcoal-2: #242424;
  --cream-bright: #fbf8e6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--base);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: 'Oswald', "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}
main { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 3rem; }

/* Header -- fixed charcoal, always readable regardless of palette swap */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--charcoal);
  border-bottom: 1px solid #2e2e2e;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-bright);
  text-decoration: none;
  margin-right: auto;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-header nav a {
  color: var(--cream-bright);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }

/* CTA buttons -- square, condensed, loud */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0;
  background: var(--accent);
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cta-button:hover { background: var(--accent-dark); color: var(--charcoal); }
.cta-button.secondary {
  background: transparent;
  color: var(--cream-bright);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.cta-button.large { font-size: 1.1rem; padding: 1rem 2rem; }

/* Breadcrumbs */
.breadcrumbs {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 1.2rem 0 0.2rem;
}
.breadcrumbs a { color: var(--text-muted); }

/* Hero -- dark charcoal band with the hero image full-bleed behind a dark
   gradient overlay (mirrors the reference site's inline background-image
   treatment), always readable regardless of palette swap. */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--cream-bright); }
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  margin: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(24, 24, 24, 0.72), rgba(24, 24, 24, 0.9));
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem 4.4rem;
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 {
  color: var(--cream-bright);
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.hero .slogan { color: #cfccba; font-size: 1.1rem; max-width: 60ch; margin: 0 0 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.hero-availability {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #9b9884;
  margin: 0;
}

/* Trust badges */
.trust-badges { padding: 1.1rem 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: 0.75rem 1.5rem; }
.trust-badges li { font-size: 0.85rem; color: var(--text); }

/* Services grid */
.services-grid { padding: 2.2rem 0; }
.services-grid .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.service-card {
  display: block;
  padding: 1.1rem;
  border: 1px solid var(--border-on-surface);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  background: var(--surface);
  text-decoration: none;
  color: var(--text-on-surface);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: transform 0.1s;
}
.service-card:hover { transform: translateY(-2px); }
.service-card img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 0; margin-bottom: 0.6rem; }
.service-card span { display: block; }

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

/* Content */
.content-sections { padding: 1.5rem 0; }
.content-block { padding: 1.5rem 0; }
.content-block h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.content-block h3 { font-size: 1.1rem; }
.inline-call { text-align: center; padding: 1.5rem 0; }

/* FAQ */
.faq { padding: 1.5rem 0; }
.faq details {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
  color: var(--text-on-surface);
}
.faq summary {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  cursor: pointer;
}
.faq details > div { margin-top: 0.6rem; color: var(--text-muted-on-surface); }

/* Reviews */
.reviews { padding: 2rem 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.review-card { border: 1px solid var(--border-on-surface); border-radius: 0; 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.5rem; }

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

/* Quote form */
.quote-form { padding: 1.75rem; background: var(--surface); color: var(--text-on-surface); border-radius: 0; margin: 1.5rem 0; border-left: 4px solid var(--accent); }
.quote-form h2 { margin-top: 0; }
.quote-form form { display: grid; gap: 0.75rem; max-width: 480px; }
.quote-form label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.03em; }
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-on-surface);
  border-radius: 0;
  font: inherit;
  font-family: 'Roboto', sans-serif;
}
.quote-form button {
  justify-self: start;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--charcoal);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  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 -- fixed charcoal, always readable regardless of palette swap */
footer {
  background: var(--charcoal);
  color: #b9b6a4;
  border-top: 1px solid #2e2e2e;
  padding: 2.2rem 1.25rem 5.5rem;
  margin-top: 2rem;
}
footer .nap { max-width: 1100px; margin: 0 auto; font-size: 0.85rem; color: #b9b6a4; }
footer .nap p:first-child { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-bright); font-weight: 600; }
footer .nap p { margin: 0.25rem 0; }
.footer-links { max-width: 1100px; margin: 1.1rem auto 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links a { font-size: 0.8rem; color: #b9b6a4; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* 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(--charcoal);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.95rem;
    text-decoration: none;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.3);
  }
  .hero h1 { font-size: 1.9rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding-bottom: 4.5rem; } /* clear the mobile call bar */
}
