/* ============================================
   DURANTE CONSULTING — Design System
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */

:root {
  /* Light Mode (default in CSS, overridden by JS for dark-first) */
  --bg-base:        #FAFAFC;
  --bg-elevated:    #FFFFFF;
  --bg-subtle:      #F0EDF8;
  --violet-primary: #331C79;
  --violet-accent:  #5A3DBF;
  --violet-soft:    #E8E2F6;
  --violet-glow:    rgba(51, 28, 121, 0.15);
  --violet-glow-strong: rgba(51, 28, 121, 0.25);
  --text-primary:   #1A0B2E;
  --text-secondary: #4C3A6B;
  --text-muted:     #7B6B96;
  --border-subtle:  rgba(51, 28, 121, 0.12);
  --border-medium:  rgba(51, 28, 121, 0.2);
  --shadow-glow:    0 0 60px rgba(51, 28, 121, 0.15);
  --shadow-card:    0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(51, 28, 121, 0.06);
  --shadow-card-hover: 0 4px 24px rgba(51, 28, 121, 0.15);

  /* Shared tokens */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1280px;
  --content-max: 720px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

[data-theme="dark"] {
  --bg-base:        #0A0612;
  --bg-elevated:    #140E28;
  --bg-subtle:      #1C1438;
  --violet-primary: #7B6BBF;
  --violet-accent:  #9B8CD9;
  --violet-soft:    #271D52;
  --violet-glow:    rgba(91, 61, 191, 0.25);
  --violet-glow-strong: rgba(91, 61, 191, 0.4);
  --text-primary:   #F5F3FF;
  --text-secondary: #C4B5FD;
  --text-muted:     #8B7FB8;
  --border-subtle:  rgba(91, 61, 191, 0.18);
  --border-medium:  rgba(91, 61, 191, 0.3);
  --shadow-glow:    0 0 80px rgba(91, 61, 191, 0.25);
  --shadow-card:    0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(91, 61, 191, 0.1);
  --shadow-card-hover: 0 4px 24px rgba(91, 61, 191, 0.25);
}

/* --- Reset & Base --- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Theme transition — only after JS enables it */
.theme-transitions-enabled,
.theme-transitions-enabled *,
.theme-transitions-enabled *::before,
.theme-transitions-enabled *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-accent);
}

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

.text-secondary {
  color: var(--text-secondary);
}

/* --- Layout --- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(80px, 12vw, 160px);
}

.section--narrow {
  max-width: var(--content-max);
  margin-inline: auto;
}

.section--hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 15vw, 200px) clamp(80px, 12vw, 160px);
}

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

.site-header {
  --header-height: 4rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: color-mix(in srgb, var(--bg-base) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.site-header__logo svg {
  width: 44px;
  height: auto;
}

.site-header__logo-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__logo-text span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-main__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding-block: 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-main__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--violet-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-main__link:hover,
.nav-main__link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-main__link:hover::after,
.nav-main__link[aria-current="page"]::after {
  width: 100%;
}

/* --- Navigation --- */

/* Desktop: nav sits fixed at top, aligned with container */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  height: 4rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  pointer-events: none; /* let clicks pass through to content below */
}

.nav-main__link,
.nav-close {
  pointer-events: auto; /* links themselves are clickable */
}

/* Burger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Close button — hidden on desktop, visible inside mobile panel */
.nav-close {
  display: none;
}

/* Overlay — hidden on desktop */
.nav-overlay {
  display: none;
}

/* --- Navigation: Mobile --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 300;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 80vw);
    height: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    background-color: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 200;
    overflow-y: auto;
    pointer-events: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.3s;
  }

  .nav-main.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-close:hover {
    background: var(--violet-soft);
    color: var(--violet-primary);
  }

  .nav-close svg {
    width: 20px;
    height: 20px;
  }

  .nav-main__link {
    font-size: 1.125rem;
    padding-block: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-main__link::after {
    display: none;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--violet-primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--violet-glow);
}

.btn--primary:hover {
  background-color: var(--violet-accent);
  color: #fff;
  box-shadow: 0 0 24px var(--violet-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--violet-accent);
  border: 1px solid var(--border-medium);
}

.btn--secondary:hover {
  background-color: var(--violet-soft);
  color: var(--violet-primary);
  border-color: var(--violet-primary);
}

.btn--ghost {
  background-color: transparent;
  color: var(--violet-accent);
  padding: 0.5rem 0;
}

.btn--ghost:hover {
  color: var(--violet-primary);
}

/* --- Cards --- */

.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: all var(--transition-base);
}

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

.card--service {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card--service:hover {
  color: var(--text-primary);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--violet-soft);
  color: var(--violet-primary);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
}

.card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__arrow {
  color: var(--violet-accent);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.card:hover .card__arrow {
  gap: 0.625rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* --- Timeline --- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(to right, var(--violet-primary), var(--violet-accent));
  opacity: 0.3;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.timeline__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--violet-soft);
  border: 2px solid var(--violet-primary);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--violet-primary);
  position: relative;
  z-index: 1;
}

.timeline__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Accordion --- */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion__item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion__item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

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

.accordion__trigger-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion__item[open] .accordion__trigger-icon,
.accordion__trigger[aria-expanded="true"] .accordion__trigger-icon {
  transform: rotate(45deg);
}

.accordion__panel {
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-rows: 0fr;
}

.accordion__item[open] .accordion__panel,
.accordion__panel.is-open {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__content {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.accordion__content h4 {
  color: var(--violet-accent);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.accordion__content h4:first-child {
  margin-top: 0;
}

.accordion__content ul {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.accordion__content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.accordion__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-accent);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, var(--violet-glow-strong), transparent),
    radial-gradient(ellipse 40% 40% at 20% 60%, var(--violet-glow), transparent);
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

/* Page hero (inner pages) */
.hero--page {
  min-height: 30vh;
  padding-block: clamp(160px, 22vw, 260px) clamp(40px, 6vw, 80px);
}

.hero--page .hero__title {
  margin-bottom: 1rem;
}

/* --- CTA Section --- */

.cta-section {
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* --- Pillars / Feature List --- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--violet-soft);
  color: var(--violet-primary);
}

.pillar__icon svg {
  width: 20px;
  height: 20px;
}

.pillar__text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--violet-accent);
  margin-top: 0.125rem;
}

.contact-info__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-info__value a {
  color: var(--text-primary);
}

.contact-info__value a:hover {
  color: var(--violet-accent);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form__input,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--violet-primary);
  box-shadow: 0 0 0 3px var(--violet-glow);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__consent {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form__consent a {
  color: var(--violet-accent);
}

.form__status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form__status--success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .form__status--success {
  color: #4ade80;
}

.form__status--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .form__status--error {
  color: #f87171;
}

/* --- Founder Section --- */

.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.founder__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--violet-soft);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer__social a:hover {
  color: var(--violet-accent);
  background: var(--violet-soft);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--violet-accent);
  border-color: var(--violet-primary);
  background: var(--violet-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root .theme-toggle__sun {
  display: none;
}

:root .theme-toggle__moon {
  display: block;
}

/* Fix: dark theme shows sun (to switch to light), light theme shows moon (to switch to dark) */
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
:not([data-theme="dark"]) .theme-toggle__sun { display: none; }
:not([data-theme="dark"]) .theme-toggle__moon { display: block; }

/* --- Scroll Reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Legal / Prose Content --- */

.prose {
  max-width: var(--content-max);
  margin-inline: auto;
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
}

.prose a {
  color: var(--violet-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Service Section --- */

.service-section {
  padding-block: clamp(48px, 8vw, 80px);
}

.service-section + .service-section {
  border-top: 1px solid var(--border-subtle);
}

.service-section__header {
  margin-bottom: 2rem;
}

.service-section__intro {
  color: var(--text-secondary);
  max-width: var(--content-max);
  margin-bottom: 2rem;
}

/* --- Focus States (Accessibility) --- */

:focus-visible {
  outline: 2px solid var(--violet-primary);
  outline-offset: 2px;
}

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--violet-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
  font-size: 0.875rem;
}

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

/* --- Utility: Responsive spacing --- */

.mt-section { margin-top: clamp(80px, 12vw, 160px); }
.mb-section { margin-bottom: clamp(80px, 12vw, 160px); }
.mt-lg { margin-top: clamp(2rem, 5vw, 4rem); }
.mb-lg { margin-bottom: clamp(2rem, 5vw, 4rem); }

/* --- Placeholder Image --- */

.placeholder-img {
  background: linear-gradient(135deg, var(--violet-soft), var(--bg-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   MOBILE RESPONSIVE (consolidated)
   ============================================ */

@media (max-width: 768px) {
  /* --- Header --- */
  .site-header {
    padding-block: 0.75rem;
  }

  .site-header__logo svg {
    width: 36px;
  }

  .site-header__logo-text {
    font-size: 0.75rem;
  }

  /* --- Hero --- */
  .hero {
    min-height: 60vh;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero--page {
    min-height: auto;
    padding-block: 8rem 2.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* --- Typography --- */
  h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h3 {
    font-size: 1.125rem;
  }

  /* --- Timeline --- */
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
  }

  .timeline__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .timeline__content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  /* --- Cards --- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  /* --- Founder --- */
  .founder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder__photo {
    max-width: 240px;
    margin-inline: auto;
  }

  /* --- Pillars --- */
  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* --- Footer --- */
  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer__left {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer__right {
    gap: 1rem;
  }

  /* --- Sections --- */
  .section {
    padding-block: clamp(48px, 10vw, 80px);
  }

  /* --- Buttons --- */
  .btn {
    padding: 0.8125rem 1.5rem;
    font-size: 0.875rem;
  }

  /* --- Accordion --- */
  .accordion__trigger {
    font-size: 1rem;
    padding-block: 1rem;
  }

  .accordion__content {
    font-size: 0.9375rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero {
    padding-top: 6rem;
  }

  .container {
    padding-inline: 1rem;
  }
}
