:root {
  --color-primary: #5c2d91;
  --color-primary-dark: #4a2475;
  --color-primary-light: #7c4fbf;
  --color-accent: #e07a6f;
  --color-accent-soft: #fdf0ee;
  --color-bg: #faf9f7;
  --color-bg-alt: #f0edf5;
  --color-surface: #ffffff;
  --color-text: #2d3748;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(92, 45, 145, 0.12);
  --radius: 12px;
  --nav-height: 72px;
  --max-width: 1100px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  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-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

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

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(74, 36, 117, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand:hover {
  color: #fff;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-affiliations {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-affiliations a {
  padding: 0.25rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
}

.nav-affiliations img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-primary-dark);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-affiliations {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    justify-content: center;
  }
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  background:
    linear-gradient(135deg, rgba(92, 45, 145, 0.92) 0%, rgba(74, 36, 117, 0.88) 50%, rgba(224, 122, 111, 0.75) 100%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  color: #fff;
}

.hero h1 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn:hover {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}

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

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

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

.section-accent {
  background: var(--color-accent-soft);
}

.section-dark {
  background: linear-gradient(160deg, #2d3748 0%, #1a202c 100%);
  color: #e2e8f0;
}

.section-dark h2 {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Credentials list */
.credential-group {
  margin-bottom: 1.75rem;
}

.credential-group:last-child {
  margin-bottom: 0;
}

.credential-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.credential-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-group li {
  padding: 0.25rem 0;
}

/* Services */
.service-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}

.service-list li {
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Background / photo */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-width: fit-content;
  margin: 2rem auto 0;
}

.profile-card img {
  width: 72px;
  height: 108px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.profile-card figcaption {
  padding: 0;
  text-align: left;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
  max-width: 16rem;
}

.highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.highlights li {
  padding-left: 1.25rem;
  position: relative;
}

.highlights li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.testimonial p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

.testimonial cite::before {
  content: "— ";
}

/* Resources */
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.resource-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.resource-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  padding: 0.375rem 0;
}

.resource-list a {
  word-break: break-all;
}

/* Contact */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 28rem;
  margin-inline: auto;
  text-align: center;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-detail {
  margin: 0.75rem 0;
  color: var(--color-text-muted);
}

.contact-detail strong {
  display: block;
  color: var(--color-text);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-detail a {
  font-weight: 600;
}

.contact-cta {
  margin-top: 1.5rem;
}

/* Glossary */
.glossary {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.glossary dt {
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.25rem;
}

.glossary dt:first-child {
  margin-top: 0;
}

.glossary dd {
  margin: 0.375rem 0 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}
