/* ============================================
   ORIZON SOLS — CSS Global
   Design System : Variables, Reset, Base
   ============================================ */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Barlow:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* ── Palette officielle DEA Orizon Sols ── */

  /* Bleu marine principal — logo, textes forts, dark sections */
  --color-navy:        #1D365F;
  --color-navy-dark:   #142444;
  --color-navy-mid:    #274880;
  --color-navy-light:  #3A5E99;

  /* Gris ardoise — secondaire, icônes, textes corps */
  --color-slate:       #5A616B;
  --color-slate-dark:  #3E444D;
  --color-slate-light: #7E8899;

  /* Beige doré — accent signature, détails logo */
  --color-gold:        #BCA87A;
  --color-gold-dark:   #9A8558;
  --color-gold-light:  #D4C49A;
  --color-gold-pale:   #F2EDE0;

  /* Alias sémantiques */
  --color-charcoal:    var(--color-navy-dark);
  --color-dark:        #0E1B30;
  --color-mid:         #1D365F;
  --color-surface:     #F4F5F7;
  --color-white:       #FFFFFF;
  --color-light:       #F8F9FB;

  /* Neutres froids (harmonie avec bleu) */
  --color-gray-100:    #F2F4F7;
  --color-gray-200:    #E3E7ED;
  --color-gray-300:    #BEC5D0;
  --color-gray-400:    #8C97A8;
  --color-gray-500:    #5A616B;
  --color-gray-600:    #3E444D;
  --color-gray-700:    #252B35;

  /* Typographie — DEA Orizon Sols */
  --font-serif:        'Playfair Display', 'Georgia', serif;
  --font-sans:         'Barlow', 'Helvetica Neue', Arial, sans-serif;

  /* Tailles de fonte */
  --text-xs:     0.75rem;
  --text-sm:     0.875rem;
  --text-base:   1rem;
  --text-md:     1.125rem;
  --text-lg:     1.25rem;
  --text-xl:     1.5rem;
  --text-2xl:    2rem;
  --text-3xl:    2.5rem;
  --text-4xl:    3.25rem;
  --text-5xl:    4rem;
  --text-hero:   5rem;

  /* Espacements */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    1.5rem;
  --space-lg:    2rem;
  --space-xl:    3rem;
  --space-2xl:   4rem;
  --space-3xl:   6rem;
  --space-4xl:   8rem;
  --space-5xl:   10rem;

  /* Layout */
  --container-max:    1280px;
  --container-narrow: 860px;
  --nav-height:       90px;

  /* Bordures & rayons */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Ombres */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
  --shadow-navy: 0 8px 32px rgba(29,54,95,0.20);
  --shadow-gold: 0 8px 32px rgba(188,168,122,0.25);

  /* Transitions */
  --transition-fast:   0.18s ease;
  --transition-base:   0.3s ease;
  --transition-slow:   0.5s ease;

  /* Z-index */
  --z-base:    1;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Typographie ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.8rem, 3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.3rem, 2.5vw, var(--text-xl)); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); font-family: var(--font-sans); font-weight: 600; }
h6 { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 600; }

p { max-width: 68ch; }

strong { font-weight: 600; }

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

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--lg {
  padding: var(--space-5xl) 0;
}

/* ---- Grille ---- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* ---- Composants communs ---- */

/* Label section */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

/* Titre de section */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, var(--text-3xl));
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.section-title em {
  font-style: italic;
  color: var(--color-gold);
}

/* Sous-titre de section */
.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-gray-500);
  font-weight: 400;
  line-height: 1.7;
  max-width: 55ch;
}

/* Séparateur doré */
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: var(--space-md) 0;
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-navy);
}

.btn--primary:hover {
  background: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(29,54,95,0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

.btn--secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn--outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn--gold:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(188,168,122,0.4);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn--ghost-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn .btn-icon {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--color-gold-pale);
  color: var(--color-gold-dark);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  background: var(--color-charcoal);
  color: var(--color-white);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.nav--transparent {
  background: transparent;
}

.nav--scrolled {
  background: rgba(14, 27, 48, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav__logo {
  height: 72px;
  width: auto;
  max-width: 200px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Logo sur nav transparente (sombre) : filtre blanc */
.nav--transparent .nav__logo,
.nav--scrolled.nav--was-transparent .nav__logo {
  filter: brightness(0) invert(1);
}

/* Logo sur nav scrollée (fond blanc) : couleurs réelles */
.nav--scrolled .nav__logo {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__cta {
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menu mobile */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-dark);
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: calc(var(--z-nav) - 1);
  pointer-events: none;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav__mobile-link {
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--color-gold);
}

.nav__mobile-cta {
  margin-top: var(--space-lg);
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, var(--color-dark) 0%, #080F1A 100%);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 3px solid var(--color-navy);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: var(--space-md);
  max-width: 36ch;
}

.footer__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  /* Logo sur fond sombre footer : rendu blanc */
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-md);
}

.footer__col h5 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer__col ul li a:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xs);
}

.footer__contact-item i {
  color: var(--color-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}

.footer__legal-links a:hover {
  color: var(--color-gold);
}

/* ---- Formulaires ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}

.form-control--invalid {
  border-color: #e05252 !important;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Retours formulaire (succès / erreur) ---- */
.contact-form.form--loading .form__body {
  opacity: 0.55;
  pointer-events: none;
}

.contact-form.form--submitted .form__body,
.contact-form.form--submitted .form-feedback {
  display: none !important;
}

.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-feedback[hidden] {
  display: none !important;
}

.form-feedback--error {
  background: #fef2f2;
  border: 1px solid #f5c2c2;
  color: #9b2c2c;
}

.form-feedback--error .form-feedback__icon {
  color: #c53030;
}

.form-feedback__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-feedback__text {
  margin: 0;
  opacity: 0.95;
}

.form-feedback__text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.form-feedback__close {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 0.25rem;
  color: inherit;
}

.form-feedback__close:hover {
  opacity: 1;
}

.form-thankyou {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.form-thankyou[hidden] {
  display: none !important;
}

.form-thankyou__icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.form-thankyou__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.form-thankyou__text {
  color: var(--color-gray-500);
  max-width: 42ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.form__submit.is-loading .form__submit-text {
  opacity: 0.9;
}

.form__submit.is-loading .btn-icon {
  display: none;
}

.form-control::placeholder {
  color: var(--color-gray-300);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,110,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(200,169,110,0); }
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.anim-fade-in.visible {
  opacity: 1;
}

/* Délais */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- Patterns & Textures ---- */
.bg-grain {
  position: relative;
}
.bg-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Utilitaires ---- */
.text-center  { text-align: center; }
.text-gold    { color: var(--color-gold); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-gray-400); }
.text-serif   { font-family: var(--font-serif); }

.bg-dark    { background-color: var(--color-dark); }
.bg-surface { background-color: var(--color-surface); }
.bg-light   { background-color: var(--color-light); }
.bg-charcoal { background-color: var(--color-charcoal); }
.bg-navy    { background-color: var(--color-navy); }

.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.w-full { width: 100%; }

/* ---- Séparateur visuel ---- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-gray-200);
  margin: var(--space-xl) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  color: var(--color-gray-300);
}

/* ---- Page hero ---- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
  background: linear-gradient(155deg, var(--color-dark) 0%, var(--color-navy) 60%, var(--color-navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(188,168,122,0.04) 0px, rgba(188,168,122,0.04) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.65);
  max-width: 55ch;
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 76px;
    --space-4xl: 5rem;
    --space-5xl: 7rem;
  }

  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  p { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .btn { padding: 12px 24px; font-size: var(--text-xs); }
}
