/* ==========================================================
   Rich Kelly — CV site stylesheet
   Shared by index.html and rates.html.
   Change colors and fonts in one place: the :root block below.
   ========================================================== */

:root {
  /* Colors */
  --navy: #0F1B2D;
  /* nav bar, dark sections, headings */
  --ground: #F5F7FA;
  /* page background */
  --panel: #E8EDF3;
  /* light grey section background */
  --white: #FFFFFF;
  --line: #C9D3DF;
  /* borders and dividers */
  --text-muted: #3A4A60;
  /* body text on light backgrounds */
  --text-on-dark: #D6DEE8;
  /* body text on navy */
  --accent: #F59E42;
  /* amber highlight (try #5EC2B7, #8FB3FF, #F2C14E) */
  --link: #B4410C;
  /* links and small labels */
  --link-hover: #8A3009;

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  /* Layout */
  --max-width: 1160px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--font-body);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Small uppercase label above headings */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}

.eyebrow--accent {
  color: var(--accent);
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 22px;
}

.btn--solid {
  background: var(--navy);
  color: var(--ground);
}

.btn--solid:hover {
  background: #1E3250;
  color: var(--ground);
}

.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 20px;
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--ground);
}

/* ---------- Navigation bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--ground);
}

.site-nav {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ground);
  text-decoration: none;
  padding: 10px 0;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__brand:hover {
  color: var(--accent);
}

.brand__mark {
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__owner {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-on-dark);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav__links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 15px;
  padding: 12px;
}

.site-nav__links a:hover {
  color: var(--white);
}

.site-nav__links a.nav-cta {
  color: var(--navy);
  background: var(--accent);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 6px;
}

.site-nav__links a.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  max-width: 960px;
}

.hero .btn-row {
  margin-top: 8px;
}

/* Text on the left, headshot on the right; stacks on phones */
.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__photo {
  width: clamp(200px, 26vw, 320px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--accent);
}

@media (max-width: 760px) {
  .hero {
    padding-top: 64px;
  }

  .hero__intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__photo {
    order: -1;
    width: 168px;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
}

.stat__label {
  color: var(--text-muted);
}

/* ---------- Values (scroll reveal section) ---------- */
.values {
  background: var(--navy);
  color: var(--ground);
  padding: 120px 0;
}

.values .container {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.values__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.values__intro h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  max-width: 900px;
}

.value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 64px;
  align-items: start;
}

.value__word {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.value__rule {
  height: 3px;
  width: 80px;
  background: var(--accent);
  margin-bottom: 20px;
}

.value p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

/* ---------- Section headings ---------- */
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section__head h2 {
  font-size: clamp(32px, 4vw, 52px);
}

/* ---------- Experience timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--line);
}

/* ">" so these rules apply only to timeline entries, not the bullets inside them */
.timeline>li {
  padding: 0 0 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline>li:last-child {
  padding-bottom: 0;
}

.timeline__dates {
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
}

.timeline h3 {
  font-size: 26px;
}

.timeline p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}

/* Bulleted accomplishments under each entry */
.timeline__bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.timeline__bullets li::marker {
  color: var(--link);
}

/* ---------- Capabilities ---------- */
.practice {
  background: var(--panel);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.card__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card__list li::marker {
  color: var(--link);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact h2 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 860px;
  line-height: 1.05;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Rates page ---------- */
.rates-hero {
  padding-top: 96px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rates-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.back-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  align-self: flex-start;
}

.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.rate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rate-card--featured {
  background: var(--navy);
  color: var(--ground);
  border-color: var(--navy);
}

.rate-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rate-card h2 {
  font-size: 24px;
}

.rate-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rate-card__amount {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.rate-card__unit {
  font-size: 18px;
  color: var(--text-muted);
}

.rate-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.rate-card--featured .rate-card__unit,
.rate-card--featured p {
  color: var(--text-on-dark);
}

.badge {
  background: var(--accent);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.rate-summary {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rate-summary h2 {
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  min-width: 520px;
}

.rate-table th,
.rate-table td {
  padding: 16px 24px;
  text-align: left;
}

.rate-table thead tr {
  background: var(--panel);
}

.rate-table tbody tr {
  border-top: 1px solid var(--line);
}

.rate-table .num {
  text-align: right;
  font-weight: 600;
}

.rate-table th.num {
  font-weight: 700;
}

.fine-print {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.terms__label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.terms__list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms__list li::marker {
  color: var(--link);
}

.rate-summary .btn-row {
  margin-top: 16px;
}

/* ---------- Scroll reveal ----------
   Elements with class "reveal" fade up as they scroll into view.
   js/reveal.js adds "is-visible" when they enter the screen.
   Without JavaScript, everything simply shows. */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal .value__rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease 0.3s;
}

.js .reveal.is-visible .value__rule {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal .value__rule {
    opacity: 1;
    transform: none;
    transition: none;
  }
}