/* ============================================================
   East Ridge Consulting Group — 2026 redesign
   Palette drawn from the brand logo: pine green ridges,
   golden sunrise, charcoal serif type.
   ============================================================ */

:root {
  --pine-deep: #1c2417;      /* near-black green */
  --pine: #2e3b22;
  --pine-mid: #3c4b00;       /* brand olive */
  --sage: #8a9a6b;
  --paper: #faf8f2;          /* warm off-white */
  --paper-dim: #f1eee4;
  --ink: #22271f;
  --ink-soft: #55604a;
  --gold: #f2a71b;           /* sunrise gold */
  --gold-deep: #d97a12;      /* sunrise orange */
  --gold-soft: #fbd77e;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-height: 76px;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(28, 36, 23, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}
.container.narrow { width: min(820px, 92vw); }
.center { text-align: center; }

/* ---------- Typography ---------- */

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--pine-deep);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--paper); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}
.lede.center { margin-inline: auto; text-align: center; }

.underline-gold {
  background-image: linear-gradient(120deg, var(--gold-soft), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 90%;
  padding: 0 0.05em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #2b1c04;
  box-shadow: 0 10px 30px -10px rgba(217, 122, 18, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(217, 122, 18, 0.65); }
.btn-ghost {
  color: var(--paper);
  border-color: rgba(250, 248, 242, 0.55);
}
.btn-ghost:hover { background: rgba(250, 248, 242, 0.12); border-color: var(--paper); }
.btn-full { width: 100%; border: none; font-family: var(--font-body); }

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(28, 36, 23, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px -12px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
/* Full-color brand logo sits on a light "chip" so it reads on the dark nav/hero */
.brand-logo {
  height: 50px;
  width: auto;
  flex: none;
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  color: rgba(250, 248, 242, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #2b1c04;
  font-weight: 600;
}
.nav-links .nav-cta:hover { color: #2b1c04; filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 105%, rgba(242, 167, 27, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(28, 36, 23, 0.72) 0%, rgba(28, 36, 23, 0.45) 45%, rgba(28, 36, 23, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 92vw);
  padding-top: var(--nav-height);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(242, 167, 27, 0.5);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  margin-bottom: 1.8rem;
  background: rgba(28, 36, 23, 0.35);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.02;
  color: var(--paper);
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}
.accent-word {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-soft) 10%, var(--gold) 50%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(250, 248, 242, 0.9);
  max-width: 38em;
  margin: 0 auto 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(250, 248, 242, 0.55);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.scroll-cue span {
  width: 4px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 8px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0.2; }
}

/* ---------- Ridge dividers ---------- */

.ridge-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  display: block;
  z-index: 3;
}
.ridge-hero { bottom: -1px; }
.ridge-quote { bottom: -1px; }
.ridge-contact { top: -1px; }

/* ---------- Intro ---------- */

.intro { padding: 7rem 0 5.5rem; }
.intro-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  color: var(--pine-deep);
  margin-bottom: 1.8rem;
}

/* ---------- Quote band ---------- */

.quote-band {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(242, 167, 27, 0.16), transparent 50%),
    linear-gradient(150deg, var(--pine-deep), var(--pine) 70%);
  padding: 6.5rem 0 9rem;
  text-align: center;
}
.quote-band blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  color: var(--paper);
}
.quote-band cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Services ---------- */

.services { padding: 6.5rem 0; text-align: center; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
  margin-top: 3.2rem;
  text-align: left;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(60, 75, 0, 0.1);
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--pine-mid), var(--pine-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 28px; height: 28px; fill: var(--gold); }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--pine-deep);
  margin-bottom: 0.8rem;
}
.service-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--paper-dim);
  border-block: 1px solid rgba(60, 75, 0, 0.12);
  padding: 3.6rem 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-value, .stat-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  color: var(--pine-mid);
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-deep);
  vertical-align: 0.5em;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 22ch;
  margin-inline: auto;
}

/* ---------- Team ---------- */

.team { padding: 6.5rem 0; text-align: center; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 3.2rem;
  text-align: center;
}
.team-card {
  background: #fff;
  border: 1px solid rgba(60, 75, 0, 0.1);
  border-radius: var(--radius);
  padding: 2.8rem 2.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  object-fit: cover;
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--pine-deep);
}
.team-role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0.35rem 0 1.1rem;
}
.team-card > p:last-child { color: var(--ink-soft); font-size: 0.95rem; text-align: left; }

/* ---------- Story band ---------- */

.story {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.story-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center 58%;
  will-change: transform;
}
.story-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217, 122, 18, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(28, 36, 23, 0.85), rgba(28, 36, 23, 0.68));
}
.story-content { position: relative; z-index: 2; text-align: center; }
.story-content p { color: rgba(250, 248, 242, 0.92); margin-bottom: 1.3rem; font-size: 1.06rem; }

/* ---------- Booking ---------- */

.booking { padding: 6.5rem 0; }
.booking-action { margin-top: 2.2rem; display: flex; justify-content: center; }
/* Restyle Google's injected scheduling button to match the design */
.booking-action button.qxCTlb {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 1rem 2.4rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
  color: #2b1c04 !important;
  box-shadow: 0 10px 30px -10px rgba(217, 122, 18, 0.55) !important;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 15%, rgba(242, 167, 27, 0.14), transparent 45%),
    linear-gradient(160deg, var(--pine-deep), var(--pine) 75%);
  padding: 10rem 0 6.5rem;
  color: rgba(250, 248, 242, 0.92);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-copy p { margin-bottom: 1.2rem; }
.contact-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}
.sunrise-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 0 18px 2px rgba(242, 167, 27, 0.65);
  flex: none;
}
.contact-form {
  background: rgba(250, 248, 242, 0.06);
  border: 1px solid rgba(250, 248, 242, 0.14);
  border-radius: var(--radius);
  padding: 2.4rem;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label { display: flex; flex-direction: column; gap: 0.45rem; }
.contact-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--paper);
  background: rgba(28, 36, 23, 0.45);
  border: 1px solid rgba(250, 248, 242, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(250, 248, 242, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 167, 27, 0.22);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #141a10;
  color: rgba(250, 248, 242, 0.75);
  padding: 3.4rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250, 248, 242, 0.12);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.footer-logo {
  height: 62px;
  width: auto;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 10px;
}
.footer-tag { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--gold); }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(250, 248, 242, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal { padding-top: 1.6rem; font-size: 0.82rem; color: rgba(250, 248, 242, 0.5); }
.footer-legal a { color: rgba(250, 248, 242, 0.7); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Fixed-height hero for automated full-page captures */
.capture .hero { min-height: 900px; max-height: 900px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    background: rgba(28, 36, 23, 0.97);
    padding: 2rem 0 2.4rem;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .scroll-cue { display: none; }
}
