/* ===================================================================
   Roads to Recovery CIC — Main Stylesheet
   Brand: Teal #1A6B5B / Dark Teal #0D3D33
   =================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- Design Tokens ---------- */
:root {
  --teal: #1A6B5B;
  --teal-dark: #0D3D33;
  --teal-deep: #083129;
  --teal-tint: #E8F1EF;
  --teal-soft: #F4F9F7;
  --accent: #D9A566;            /* warm amber for contrast accents */
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --text-soft: #7A7A7A;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF7;
  --bg-cream: #F7F4EC;
  --border: #E5E5E3;
  --shadow-sm: 0 1px 2px rgba(13, 61, 51, 0.06);
  --shadow: 0 4px 20px rgba(13, 61, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 61, 51, 0.15);
  --radius: 4px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --container: 1200px;
  --container-narrow: 900px;
  --section-py: clamp(60px, 8vw, 120px);
  --transition: 0.25s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--text-muted); line-height: 1.55; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--section-py) 0; }
.section-tint { background: var(--teal-soft); }
.section-cream { background: var(--bg-cream); }
.section-dark { background: var(--teal-dark); color: #fff; }
.section-teal { background: var(--teal); color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.text-center { text-align: center; }
.max-prose { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  min-height: 48px;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 61, 51, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--teal-dark);
}
.btn-light:hover {
  background: var(--teal-tint);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.nav-cta { margin-left: 12px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-dark);
  position: relative;
  transition: all var(--transition);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--teal-dark);
  transition: all var(--transition);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(26, 107, 91, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(8, 49, 41, 0.65) 0%, transparent 55%),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 45%, var(--teal) 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.8;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(217, 165, 102, 0.08) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero .eyebrow {
  color: #F5D9B0;
  opacity: 0.95;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 2.5rem;
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Section Headings ---------- */
.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.left { text-align: left; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .intro {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.section-head.left .intro { margin-left: 0; margin-right: 0; }

/* ---------- Opener / Intro block ---------- */
.opener { text-align: center; }
.opener h2 { margin-bottom: 1.5rem; }
.opener p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }
.opener p + p { margin-top: 1.25rem; }

/* ---------- What We Do (3-block) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.pillar-card {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal);
}
.pillar-card h3 { color: var(--teal-dark); margin-bottom: 12px; }
.pillar-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Client Cards ---------- */
.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.client-card {
  padding: 32px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: inherit;
}
.client-card:hover {
  background: #fff;
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.client-card .client-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-card h4 { color: var(--teal-dark); font-size: 1.1rem; }
.client-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.client-card-more {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.client-card:hover .client-card-more { gap: 10px; }

/* ---------- Pillars Strip (How we're different) ---------- */
.diff-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
}
.diff-pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.diff-pillar-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  padding-top: 2px;
}
.diff-pillar h4 { color: var(--teal-dark); margin-bottom: 6px; font-size: 1.05rem; }
.diff-pillar p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- Partners strip ---------- */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.partner-tile {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  min-height: 80px;
  transition: all var(--transition);
}
.partner-tile:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

/* ---------- Quote block ---------- */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 48px clamp(24px, 4vw, 56px);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  position: relative;
}
.quote-block .quote-mark {
  font-size: 4rem;
  color: var(--teal);
  line-height: 0.5;
  font-family: Georgia, serif;
  opacity: 0.3;
  position: absolute;
  top: 24px;
  left: 24px;
}
.quote-block p {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.quote-attribution {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 96px) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band .lead { color: rgba(255,255,255,0.88); max-width: 580px; margin: 0 auto 2rem; }
.cta-band-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 48px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.55; }
.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-contact p { margin-bottom: 6px; color: rgba(255,255,255,0.75); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }
  .nav.open .nav-links a {
    padding: 12px 16px;
    border-radius: 6px;
    width: 100%;
  }
  .nav.open .nav-links a:hover { background: var(--teal-soft); }
  .nav.open .nav-cta {
    display: flex;
    margin: 12px 20px 0;
  }
  .nav.open .nav-cta .btn { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero { min-height: 80vh; }
  .hero-scroll { display: none; }
}

@media (max-width: 540px) {
  .hero-cta .btn { width: 100%; }
  .cta-band-buttons .btn { width: 100%; max-width: 300px; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
