/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ============================================================
   DESIGN TOKENS — Urban Peinture
   Noir profond + blanc cassé + bleu cobalt accent
============================================================ */
:root {
  /* Surfaces */
  --bg:           #0A0A0A;
  --bg-light:     #F4F1EA;
  --bg-card:      #FFFFFF;
  --bg-muted:     #EDE9DF;

  /* Text */
  --text:         #0A0A0A;
  --text-muted:   #57534E;
  --text-light:   #A8A29E;
  --text-on-dark: #F4F1EA;

  /* Brand */
  --accent:       #1E40AF;
  --accent-dark:  #1E3A8A;
  --accent-glow:  rgba(30, 64, 175, 0.12);

  /* Borders */
  --border:       #E7E5E4;
  --border-dark:  #D6D3D1;
  --border-on-dark: rgba(244, 241, 234, 0.12);

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Shape */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;

  /* Layout */
  --max-w:        1280px;
  --px:           clamp(1.25rem, 5vw, 4rem);
  --nav-h:        72px;
}

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.on-dark { color: var(--text-light); }

/* Fade-up */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0.1, 1), transform 0.7s cubic-bezier(0.2, 0, 0.1, 1);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.18s; }
.reveal.delay-3 { transition-delay: 0.28s; }
.reveal.delay-4 { transition-delay: 0.38s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   NAV
============================================================ */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#mainNav.scrolled {
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

/* ============================================================
   NAV — Light state (default, over dark hero)
============================================================ */
#mainNav .nav-logo { color: var(--text-on-dark); }
#mainNav .nav-links a { color: rgba(244, 241, 234, 0.7); }
#mainNav .nav-links a:hover { color: var(--text-on-dark); }
#mainNav .nav-links a.active { color: var(--text-on-dark); }
#mainNav .nav-cta {
  background: var(--text-on-dark);
  color: var(--text);
}
#mainNav .nav-cta:hover { background: #87B5FF; color: var(--text); }
#mainNav .menu-toggle {
  border-color: rgba(244, 241, 234, 0.25);
}
#mainNav .menu-toggle svg { color: var(--text-on-dark); }
#mainNav .menu-toggle:hover { background: rgba(244, 241, 234, 0.06); border-color: var(--text-on-dark); }

/* NAV — Dark state (when scrolled OR menu open, over light backdrop) */
#mainNav.scrolled .nav-logo,
#mainNav.menu-open .nav-logo { color: var(--text); }
#mainNav.scrolled .nav-links a,
#mainNav.menu-open .nav-links a { color: var(--text-muted); }
#mainNav.scrolled .nav-links a:hover,
#mainNav.menu-open .nav-links a:hover { color: var(--text); }
#mainNav.scrolled .nav-links a.active,
#mainNav.menu-open .nav-links a.active { color: var(--text); }
#mainNav.scrolled .nav-cta,
#mainNav.menu-open .nav-cta {
  background: var(--text);
  color: var(--text-on-dark);
}
#mainNav.scrolled .nav-cta:hover,
#mainNav.menu-open .nav-cta:hover { background: var(--accent); color: var(--text-on-dark); }
#mainNav.scrolled .menu-toggle,
#mainNav.menu-open .menu-toggle {
  border-color: var(--border-dark);
}
#mainNav.scrolled .menu-toggle svg,
#mainNav.menu-open .menu-toggle svg { color: var(--text); }
#mainNav.scrolled .menu-toggle:hover,
#mainNav.menu-open .menu-toggle:hover { background: var(--bg-card); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.nav-logo-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--text);
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
  font-variant-numeric: tabular-nums;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: var(--bg-card); }
.menu-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: transform 400ms ease-in-out;
}
.menu-toggle svg path:first-child {
  transition: stroke-dasharray 400ms ease-in-out, stroke-dashoffset 400ms ease-in-out;
  stroke-dasharray: 12 63;
}
.menu-toggle.open svg { transform: rotate(-45deg); }
.menu-toggle.open svg path:first-child {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 2.5rem) var(--px) 3rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-nav-links {
  list-style: none;
  border-top: 1px solid var(--border);
}
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a {
  display: block;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-menu-cta {
  margin-top: 2.5rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--text-on-dark);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: var(--text-on-dark);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-card);
}
.btn-ghost-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(244, 241, 234, 0.25);
}
.btn-ghost-light:hover {
  border-color: var(--text-on-dark);
  background: rgba(244, 241, 234, 0.06);
}

/* ============================================================
   SECTION
============================================================ */
.section { padding: 7rem 0; }
.section-light { background: var(--bg-light); }
.section-card { background: var(--bg-card); }
.section-dark { background: var(--bg); color: var(--text-on-dark); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: inherit;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-dark .section-title em { color: #87B5FF; }
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 520px;
}
.section-dark .section-desc { color: var(--text-light); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg);
  color: var(--text-on-dark);
  padding: 5rem 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-logo-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(244, 241, 234, 0.55);
  line-height: 1.65;
}
.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a,
.footer-links li {
  font-size: 0.875rem;
  color: rgba(244, 241, 234, 0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8125rem; color: rgba(244, 241, 234, 0.35); }
.footer-legal-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; }
.footer-legal-links a { color: rgba(244, 241, 234, 0.55); transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--text-on-dark); }
.footer-legal-links .sep { color: rgba(244, 241, 234, 0.2); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .nav-cta span.nav-cta-text { display: none; }
  .nav-cta { padding: 0.5rem 0.875rem; }
}
