:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f2f0ec;
  --color-dark: #1a2332;
  --color-dark-soft: #2a3544;
  --color-accent: #3d6b7a;
  --color-accent-light: #5a8f9f;
  --color-gold: #c4a35a;
  --color-text: #2c2c2c;
  --color-text-muted: #5c5c5c;
  --color-border: #e0ddd6;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-dark);
  color: white;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: var(--color-dark);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--color-dark);
  color: white !important;
  border-radius: 100px;
}

.nav-cta:hover {
  background: var(--color-accent);
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 107, 122, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(196, 163, 90, 0.1), transparent),
    var(--color-bg);
  z-index: -1;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.eyebrow.light {
  color: var(--color-gold);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn-secondary-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary-light:hover {
  border-color: white;
  color: white;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-cta {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-soft) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.section-cta h2 {
  color: white;
}

.section-cta .section-lead.light {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header.light {
  color: white;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-dark);
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.stat-list {
  list-style: none;
}

.stat-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.stat-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-dark);
  font-weight: 600;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-minimal {
  background: transparent;
  border: none;
  padding: 1.5rem 0;
}

.card-minimal:hover {
  box-shadow: none;
  transform: none;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.service-card.featured {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(61, 107, 122, 0.06), white);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Framework */
.framework-steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.framework-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.framework-step:hover {
  background: rgba(255, 255, 255, 0.1);
}

.step-letter {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
}

.framework-step h3 {
  color: white;
  margin-bottom: 0.35rem;
}

.framework-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Score visual */
.score-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(61, 107, 122, 0.08), transparent);
}

.score-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.score-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.score-caption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 280px;
}

.feature-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

/* Testimonials */
.testimonial {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.testimonial-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* Affiliations */
.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.affiliation-item {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.affiliation-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.affiliation-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  color: white;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: white;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .card-grid.two,
  .card-grid.three,
  .testimonial-grid,
  .affiliation-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.875rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
