@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────── */
:root {
  --coral:        #B84F3C;
  --coral-dark:   #9A3F2F;
  --coral-light:  #F7E8E5;
  --navy:         #2B3A5C;
  --navy-light:   #3D5080;
  --sage:         #6B9E87;
  --sage-light:   #E8F2EE;
  --yellow:       #F2C535;
  --yellow-light: #FBF4D4;
  --cream:        #F5F1E6;
  --sand:         #EAE5D8;
  --white:        #ffffff;
  --charcoal:     #1A2438;
  --mid-grey:     #5A6478;
  --light-grey:   #F8F7F4;
  --border:       #E2DDD4;

  --font: 'Quicksand', sans-serif;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(43,58,92,0.08), 0 1px 2px rgba(43,58,92,0.05);
  --shadow:    0 4px 20px rgba(43,58,92,0.10), 0 2px 6px rgba(43,58,92,0.06);
  --shadow-lg: 0 12px 40px rgba(43,58,92,0.14), 0 4px 12px rgba(43,58,92,0.08);
  --shadow-xl: 0 24px 60px rgba(43,58,92,0.18);

  --max-width:  1140px;
  --nav-height: 76px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        200ms;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--coral); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--coral-dark); }
ul { list-style: none; }
button { font-family: var(--font); }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }

/* ── Accessibility ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--coral);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Container ─────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-coral { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-coral:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-outline:hover { background: var(--coral); color: var(--white); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); text-decoration: none; }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--cream); text-decoration: none; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); text-decoration: none; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ── Announce bar ──────────────────────── */
.announce-bar {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.announce-bar__label {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.announce-bar p { font-size: 0.875rem; line-height: 1.5; }
.announce-bar a { color: var(--white); text-decoration: underline; font-weight: 600; }

/* ── Navigation ────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.site-logo { height: 60px; width: auto; }

.site-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  justify-content: flex-end;
}
.nav-list a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  position: relative;
  text-decoration: none;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
  border-radius: 2px;
}
.nav-list a:hover:not(.btn),
.nav-list a.active:not(.btn) { color: var(--coral); }
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-list .btn { padding: 0.6rem 1.5rem; color: var(--white); }
.nav-list .btn::after { display: none; }
.nav-list .btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* ── Section utilities ─────────────────── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 6.5rem 0; }
.section-cream  { background: var(--cream); }
.section-light  { background: var(--light-grey); }
.section-sage   { background: var(--sage-light); }
.section-navy   { background: var(--navy); }
.section-sand   { background: var(--sand); }
.section-navy *:not(.btn) { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}
.eyebrow--sage { color: var(--sage); }
.eyebrow--white { color: rgba(255,255,255,0.7); }

.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
.section-intro { font-size: 1.05rem; color: var(--mid-grey); max-width: 600px; line-height: 1.8; }
.section-intro--white { color: rgba(255,255,255,0.8); }

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── Service card ──────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card__icon img { width: 195px; height: 195px; object-fit: contain; }
.service-card__icon--sage   { }
.service-card__icon--yellow { }
.service-card__icon--navy   { }
.service-card h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.service-card p  { font-size: 0.9rem; color: var(--mid-grey); line-height: 1.65; margin: 0; flex: 1; }
.service-card a  { font-size: 0.875rem; font-weight: 700; color: var(--coral); margin-top: auto; align-self: flex-start; }
.service-card a:hover { color: var(--coral-dark); }

/* ── Info box ──────────────────────────── */
.info-box {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--coral);
}
.info-box h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.info-box--sage { border-left-color: var(--sage); }
.info-box--navy { border-left-color: var(--navy); }

/* ── Team card ─────────────────────────── */
.team-card { text-align: center; }
.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1rem;
  filter: grayscale(0.3);
  border: 4px solid var(--sand);
  transition: filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.team-card:hover .team-card__photo { filter: grayscale(0); border-color: var(--coral); }
.team-card__name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.team-card__pronouns { font-size: 0.8rem; color: var(--mid-grey); margin-bottom: 0.35rem; }
.team-card__role { font-size: 0.875rem; color: var(--mid-grey); }
.team-card__bio { font-size: 0.82rem; color: var(--mid-grey); line-height: 1.65; margin-top: 0.75rem; text-align: left; }
.team-card__photo--placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--border); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: var(--mid-grey);
  border: 3px solid var(--border);
}

/* ── Forms ─────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(184,79,60,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.required { color: var(--coral); }

.form-success {
  display: none;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Pricing table ─────────────────────── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.pricing-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:nth-child(even) td { background: var(--light-grey); }

/* ── Two-col grid ──────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col--center { align-items: center; }
.two-col--60-40 { grid-template-columns: 3fr 2fr; }

/* ── Page hero (inner pages) ───────────── */
.page-hero {
  background: var(--cream);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--sand);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--mid-grey); max-width: 580px; }

/* ── Split hero (inner pages) ──────────── */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.split-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 0;
}
.split-hero__img { overflow: hidden; }
.split-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Stat strip ────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--coral); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ── Carousel ──────────────────────────── */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.45s var(--ease); }
.carousel-track img { min-width: 100%; height: 440px; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.carousel-btn:hover { background: rgba(255,255,255,1); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--dur) var(--ease);
}
.carousel-dot.active { background: var(--coral); width: 24px; border-radius: 4px; }

/* ── Blog card ─────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card__body { padding: 1.5rem; }
.blog-card__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.blog-card__body h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.blog-card__body p { font-size: 0.875rem; color: var(--mid-grey); line-height: 1.6; }

/* ── Footer ────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 151px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.85); max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.825rem;
  font-weight: 700;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.footer-social a:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 0.6rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.75; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.7);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4rem 0; }

  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open {
    display: block;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open .nav-list { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .site-nav.open .nav-list .btn { display: inline-flex; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col--60-40 { grid-template-columns: 1fr; }
  .split-hero { grid-template-columns: 1fr; }
  .split-hero__content { padding: 2.5rem 0; }
  .split-hero__img { min-height: 260px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .announce-bar { flex-direction: column; gap: 0.4rem; align-items: flex-start; }
  .page-hero { padding: 2.5rem 0 2rem; }
}

/* ── Enhancement animations ─────────────────────────────────────── */

/* Scroll fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image fade-in on load */
img {
  opacity: 0;
  transition: opacity 0.45s ease;
}
img.img-loaded {
  opacity: 1;
}

/* Team card hover lift */
.team-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(43,58,92,0.13);
}

/* Button press squish */
.btn {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-pressed {
  transform: scale(0.96) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

/* Button hover lift */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.btn-pressed:hover {
  transform: scale(0.96) !important;
}
