/* ============================================================
   La Roche d'Aujoux — feuille de style commune
   Design system : design.md (Expo) appliqué littéralement.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surface */
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --surface-card: #ffffff;
  --surface-strong: #f0f0f3;
  --surface-dark: #171717;
  --surface-dark-elevated: #1a1a1a;

  /* Hairlines */
  --hairline: #f0f0f3;
  --hairline-soft: #f5f5f7;
  --hairline-strong: #dcdee0;

  /* Text */
  --ink: #171717;
  --body: #60646c;
  --body-strong: #171717;
  --muted: #999999;
  --muted-soft: #cccccc;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #b0b4ba;

  /* Brand & Accent — palette terre (ocre / cuivré / ambre) */
  --primary: #000000;
  --primary-active: #1a1a1a;
  --text-link: #9d5e1c;
  --text-link-secondary: #b87333;
  --accent-link-bright: #d4a056;

  /* Atmospheric backdrop (hero only) — lavis sable / ocre */
  --gradient-sky-light: #f0e0c2;
  --gradient-sky-mid: #d4b483;

  /* Semantic */
  --accent-warning: #ab6400;
  --accent-preview: #8145b5;
  --semantic-success: #16a34a;
  --semantic-error: #eb8e90;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-base: 16px;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-pill: 9999px;

  /* Container */
  --container: 1200px;
  --container-narrow: 880px;

  /* Type */
  --font-sans: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  /* Mono variable unifié sur Inter — police unique pour tout le site */
  --font-mono: var(--font-sans);

  /* Elevation */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-base);
}

.display-mega {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-xl {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-lg {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.display-sm {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-base);
}

/* Justification globale des paragraphes de contenu (sections du <main>) */
main section p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Exceptions : hero/intro et quotes restent centrés (mise en page impactée) */
main section.hero p,
main section.hero-page p,
main .quote p {
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
}

/* Largeur de lecture confortable : limite le corps de texte des sections à ~640 px
   pour augmenter les marges droite/gauche et éviter les lignes trop étirées.
   Ne s'applique qu'aux enfants directs des containers, pas aux figures/diptychs/grids
   qui peuvent conserver toute la largeur disponible. */
main section > .container > :is(p, h2, h3, h4, ul, ol, blockquote),
main section > .container-narrow > :is(p, h2, h3, h4, ul, ol, blockquote) {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-base);
}

.caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
  margin-top: var(--space-sm);
}

.inv-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

strong {
  color: var(--body-strong);
  font-weight: 600;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-section) 0;
}

section.tight {
  padding: 64px 0;
}

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

.section-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--on-dark);
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ---------- Top navigation ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.top-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-line-2 {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

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

.btn-secondary-on-dark {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

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

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-link);
  font-weight: 500;
  font-size: 14px;
}

.btn-tertiary::after {
  content: "→";
  transition: transform 0.15s ease;
}

.btn-tertiary:hover {
  text-decoration: none;
  color: var(--text-link);
}

.btn-tertiary:hover::after {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero,
.hero-page {
  position: relative;
  isolation: isolate;
}

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

/* Sky-blue gradient atmospheric wash — applied to both home hero and inner-page heros */
.hero::before,
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      var(--gradient-sky-light) 0%,
      rgba(240, 224, 194, 0.6) 30%,
      rgba(240, 224, 194, 0) 70%
    ),
    linear-gradient(
      180deg,
      var(--gradient-sky-mid) 0%,
      rgba(212, 180, 131, 0.25) 30%,
      var(--canvas) 75%
    );
  pointer-events: none;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero p.lead {
  color: var(--body);
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-image {
  margin-top: var(--space-xxl);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-strong);
  aspect-ratio: 16 / 9;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-strong);
}

.hero-page {
  padding: 64px 0 16px;
  text-align: center;
}

.hero-page .eyebrow {
  margin-bottom: var(--space-sm);
}

/* ---------- Image placeholders ---------- */
.img-frame {
  background: var(--surface-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: var(--space-lg);
}

.img-frame[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.img-frame[data-ratio="2-1"]  { aspect-ratio: 2 / 1; }
.img-frame[data-ratio="4-3"]  { aspect-ratio: 4 / 3; }
.img-frame[data-ratio="3-2"]  { aspect-ratio: 3 / 2; }
.img-frame[data-ratio="1-1"]  { aspect-ratio: 1 / 1; }
.img-frame[data-ratio="3-4"]  { aspect-ratio: 3 / 4; }

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder-label {
  position: relative;
  z-index: 1;
  padding: var(--space-sm) var(--space-base);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  border: 1px dashed var(--hairline-strong);
}

.figure {
  margin: 0;
}

.figure figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ---------- Two-column blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.split-text > .eyebrow + h2,
.split-text > h2 {
  margin-bottom: var(--space-lg);
}

.split.reverse > .split-text {
  order: 2;
}

/* ---------- Image en encart flottant à droite (text-wrap) ----------
   Le texte du paragraphe environnant s'enroule autour de l'image.
   À utiliser à l'intérieur d'un .prose-with-inset qui réinitialise la
   largeur des paragraphes (sinon notre règle globale les centre à 640 px
   et empêche le wrap). */
.inset-right {
  float: right;
  max-width: 240px;
  margin: 0 0 var(--space-base) var(--space-lg);
  clear: right;
}

.inset-right img {
  display: block;
  width: 100%;
  height: auto;
}

.inset-right figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: var(--space-xs);
  font-style: italic;
  line-height: 1.4;
}

.prose-with-inset {
  max-width: 880px;
  margin: 0 auto;
}

.prose-with-inset > p,
.prose-with-inset > h2,
.prose-with-inset > h3,
.prose-with-inset > h4 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.prose-with-inset::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .inset-right {
    float: none;
    max-width: 280px;
    margin: var(--space-base) auto;
  }
}

/* ---------- Diptyque (2 figures côte à côte) ---------- */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

/* ---------- Texte + image latérale (figure à droite du contenu) ----------
   Grille 2 colonnes : texte à gauche, figure en colonne auto à droite.
   Largeur du bloc cadrée à 880 px pour conserver une bonne largeur de lecture.
   Variante .image-bottom pour caler l'image en bas du bloc. */
.text-with-image {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xxl);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.text-with-image.image-bottom {
  align-items: end;
}

.text-with-image > figure {
  margin: 0;
}

@media (max-width: 768px) {
  .text-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .text-with-image > figure {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---------- Quote block ---------- */
.quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.quote::before,
.quote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--hairline-strong);
  margin: 0 auto;
}

.quote::before { margin-bottom: var(--space-lg); }
.quote::after { margin-top: var(--space-lg); }

.quote p {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 500;
}

.quote cite {
  display: block;
  margin-top: var(--space-base);
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- M3 accordion ---------- */
.m3-list {
  display: grid;
  gap: var(--space-base);
  margin-top: var(--space-xl);
}

.m3-item {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  background: var(--surface-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.m3-item:hover {
  box-shadow: var(--shadow-soft);
}

.m3-item[data-open="true"] {
  border-color: var(--ink);
}

.m3-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  background: transparent;
}

.m3-trigger:hover {
  background: var(--canvas-soft);
}

.m3-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.m3-trigger-text .m3-title {
  display: block;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.m3-trigger-teaser {
  font-size: 14px;
  color: var(--body);
}

.m3-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.25s ease, background 0.15s ease, color 0.15s ease;
}

.m3-item[data-open="true"] .m3-chevron {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--on-primary);
}

.m3-body {
  padding: 0 var(--space-xl) var(--space-xl);
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.m3-body[hidden] {
  display: none;
}

.m3-body .img-frame {
  margin: 0;
}

.m3-body p {
  margin: 0 0 var(--space-sm);
  color: var(--body);
}

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

/* ---------- Tags grid (spécialités) — badge-pill from design.md ---------- */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-base) 0 0;
  padding: 0;
  list-style: none;
}

.tag-grid li {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* ---------- Axes list ---------- */
.axes-list {
  margin: var(--space-base) 0 var(--space-lg);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.axes-list li {
  padding-left: 28px;
  position: relative;
  color: var(--body);
}

.axes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

/* ---------- Partners strip ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-base) var(--space-xl);
  padding: 0;
  list-style: none;
  margin: 0;
}

.partners li {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Page layout (anciennement à 2 colonnes avec aside donation) ----------
   L'aside a été retiré : seule la colonne principale subsiste, le widget HelloAsso
   est désormais uniquement accessible via la modale (boutons .js-open-ha-modal). */
.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Sections inside page-main don't need their own container constraints —
   the grid already provides horizontal padding and max-width. */
.page-main {
  min-width: 0;
}

.page-main > .container,
.page-main > section > .container,
.page-main > section > .container-narrow {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  color: var(--body);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-xxl);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 var(--space-base);
}

.footer-col p,
.footer-col ul {
  font-size: 14px;
  color: var(--body);
  margin: 0 0 var(--space-xs);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.partners-logos {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg) var(--space-xxl);
}

.partners-logos a {
  display: inline-flex;
  align-items: center;
  filter: grayscale(0.3);
  opacity: 0.85;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.partners-logos a:hover {
  filter: none;
  opacity: 1;
  text-decoration: none;
}

.partners-logos img {
  height: 96px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .partners-logos img { height: 72px; max-width: 220px; }
}

.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-base);
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Hover for HelloAsso modal close button (was inline JS, now CSS) */
#closeHaWidgetBtn { color: #333; }
#closeHaWidgetBtn:hover { background: #E0E0E8 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
  }
  .split {
    gap: var(--space-xl);
  }
  .m3-body {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 64px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .top-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    flex-direction: column;
    gap: 0;
    padding: var(--space-base) var(--space-lg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
  }
  .top-nav.is-open .nav-links li {
    border-bottom: 1px solid var(--hairline-soft);
  }
  .top-nav.is-open .nav-links li:last-child {
    border-bottom: 0;
  }
  .top-nav.is-open .nav-links a {
    display: block;
    padding: var(--space-base) 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .split.reverse > .split-text {
    order: 0;
  }
  .m3-body {
    grid-template-columns: 1fr;
  }
  .m3-trigger {
    padding: var(--space-base) var(--space-lg);
  }
  .m3-body {
    padding: 0 var(--space-lg) var(--space-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero {
    padding: 64px 0 48px;
  }
  .hero-image {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
