/* ============================================================
   MÖBLÉ CLOSETS — The Science of Order
   Palette priority: Navy + Onyx (base) · Champagne Gold (accent)
   · Ash Grey + Taupe + Ivory (warmth/air)
   Type: Bodoni Moda (Didone display) + Jost (geometric sans)
   ============================================================ */

:root {
  /* Base (dominant) */
  --onyx: #000f08;
  --navy: #032b43;
  --navy-deep: #021e30;
  --navy-soft: #0a3a55;

  /* Gold — refined from #FBAF00 into champagne metal, never raw yellow */
  --gold: #c6a15b;
  --gold-light: #e6cd8c;
  --gold-deep: #a87e3c;
  --gold-grad: linear-gradient(135deg, #e6cd8c 0%, #c6a15b 45%, #a87e3c 100%);

  /* Warmth / air */
  --ash: #c2d3cd;
  --taupe: #a37b73;
  --ivory: #f4f1ea;
  --ivory-deep: #ece7da;

  /* Text */
  --ink: #11202a;
  --ink-soft: #50606a;
  --on-dark: #eef2f3;
  --on-dark-soft: #a9bcc4;

  /* System */
  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px -20px rgba(0, 15, 8, 0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(72px, 11vw, 140px) 0; scroll-margin-top: 84px; }

h1, h2, h3, h4 { font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
em { font-style: italic; }

.eyebrow {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--gold-deep); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }
.lead-light { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: "Jost", sans-serif; font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s, color 0.4s;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--onyx); box-shadow: 0 12px 30px -12px rgba(198, 161, 91, 0.7); }
.btn-gold:hover { box-shadow: 0 18px 40px -12px rgba(198, 161, 91, 0.85); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-whatsapp { background: #1f3b2e; color: #eafff3; border-color: rgba(37, 211, 102, 0.45); }
.btn-whatsapp:hover { background: #25543d; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* Scrolled: solid very-dark navy (almost black). At the top it stays fully
   transparent so the video shows through cleanly. */
.site-header.scrolled {
  background: rgba(1, 14, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 78px;
  /* Full-bleed header: logo and nav sit at the screen corners on wide displays */
  max-width: none; padding-inline: clamp(20px, 2.6vw, 48px); }
/* Glassmorphism plate behind the logo — frosted, dark-navy tinted, fine champagne bevel */
.brand {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 22, 36, 0.55), rgba(0, 12, 20, 0.42));
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(230, 205, 140, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.brand:hover { border-color: rgba(230, 205, 140, 0.5); }
.brand-logo { height: 26px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--on-dark-soft); font-size: 0.92rem; letter-spacing: 0.04em; transition: color 0.3s, text-shadow 0.3s;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.site-header.scrolled .nav a { text-shadow: none; }
.nav a:hover { color: var(--gold-light); }
.nav-cta {
  color: var(--onyx) !important; background: var(--gold-grad);
  padding: 11px 22px; border-radius: 999px; font-weight: 500;
}
.nav-cta:hover { color: var(--onyx) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--on-dark); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); transform-origin: center; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--navy-deep); padding: 8px 24px 20px; }
.mobile-nav a { color: var(--on-dark); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); letter-spacing: 0.04em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(6, 34, 52, 0.45), transparent 55%),
    linear-gradient(165deg, #000000 0%, #02060a 55%, #000000 100%);
  color: var(--on-dark);
  padding: clamp(120px, 18vh, 200px) 0 clamp(90px, 12vh, 150px);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
/* On wide screens, let the hero breathe edge-to-edge so the copy anchors left
   instead of floating toward the middle */
.hero .container { max-width: none; padding-inline: clamp(24px, 5vw, 96px); }
.hero-title { font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 500; margin-bottom: 26px; }
.hero-title em { color: var(--gold-light); }
.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--on-dark-soft); max-width: 56ch; margin-bottom: 38px; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-stats > div:not(.stat-divider) { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: "Bodoni Moda", serif; font-size: 1.9rem; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.05em; color: var(--on-dark-soft); }
.stat-divider { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.14); }

/* Background video + brand overlay for legibility */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    /* PURE black on the left (text side) — no green cast — opening toward the right to reveal the video */
    linear-gradient(100deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 32%, rgba(0, 0, 0, 0.46) 62%, rgba(0, 0, 0, 0.18) 100%),
    /* pure-black fade at the bottom so content reads and section blends down */
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.9) 100%),
    /* faint navy tint, top-right only, to keep a subtle brand presence */
    radial-gradient(110% 100% at 85% 8%, rgba(3, 43, 67, 0.22), transparent 58%);
}

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span {
  display: block; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 14px; position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold-light); border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { top: 8px; opacity: 1; } 50% { top: 22px; opacity: 0.3; } }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 22px; }

/* ---------- Philosophy ---------- */
.philosophy { background: #e3d3b8; position: relative; overflow: hidden; }
.philosophy .container { position: relative; z-index: 1; }
/* Background photo kept faint for calm; covered by a WARM CREAM veil (never white) */
.philosophy-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../assets/img/philosophy-bg.jpg");
  background-size: cover; background-position: center;
  opacity: 0.45;
}
.philosophy-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* warm cream veil, a touch denser behind the heading text */
    radial-gradient(85% 90% at 18% 22%, rgba(227,211,184,0.82) 0%, rgba(227,211,184,0.5) 55%, rgba(227,211,184,0.30) 100%),
    /* warm taupe wash to keep the calm, palette-tinted cream tone */
    linear-gradient(180deg, rgba(220,202,172,0.26) 0%, rgba(189,160,130,0.26) 100%);
}
.philosophy h2 { font-family: "Fraunces", Georgia, serif; color: var(--ink); font-weight: 400; letter-spacing: -0.01em; }
.philosophy .lead { color: #3a4750; font-weight: 400; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pillar {
  background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 14px 40px -22px rgba(60, 40, 25, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.pillar-mark { font-family: "Bodoni Moda", serif; font-size: 2.2rem; font-weight: 600; color: var(--gold-deep); display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 12px; color: var(--ink); font-weight: 600; }
.pillar p { color: #46535b; font-size: 1rem; }

/* ---------- The System (dark) ---------- */
.system { background: linear-gradient(180deg, var(--navy-deep), var(--onyx)); color: var(--on-dark); }
.system h2 { color: var(--on-dark); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 70px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; padding: 38px 30px; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  background: rgba(255,255,255,0.025); transition: border-color 0.4s, background 0.4s; }
.step:hover { border-color: rgba(198,161,91,0.5); background: rgba(198,161,91,0.05); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 22px;
  font-family: "Bodoni Moda", serif; font-size: 1.5rem; color: var(--onyx);
  background: var(--gold-grad);
}
.step h3 { color: var(--on-dark); margin-bottom: 10px; }
.step p { color: var(--on-dark-soft); font-size: 1rem; }

.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  padding-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); }
.advantage h4 { font-size: 1.15rem; color: var(--gold-light); margin-bottom: 10px; }
.advantage p { color: var(--on-dark-soft); font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.gallery h2 { color: var(--ink); }

/* Placeholder styling */
.ph { position: relative; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(163,123,115,0.07) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--ash), var(--ivory-deep));
  color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ph span { background: rgba(255,255,255,0.7); padding: 8px 14px; border-radius: 6px; font-weight: 500; }

.ba-slider { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; user-select: none; box-shadow: var(--shadow-soft); margin-bottom: 40px; }
.ba-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-after { background-image: url("../assets/img/after.jpg"); }
.ba-before { background-image: url("../assets/img/before.jpg");
  clip-path: inset(0 50% 0 0); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--gold-light);
  transform: translateX(-50%); z-index: 3; pointer-events: none; }
.ba-handle-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.ba-handle-grip::before { content: "‹ ›"; color: var(--onyx); font-size: 1rem; letter-spacing: 2px; font-weight: 600; }
.ba-tag { position: absolute; top: 16px; z-index: 3; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,15,8,0.6); color: var(--on-dark); padding: 6px 12px; border-radius: 6px; }
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ph-grid { aspect-ratio: 3 / 4; border-radius: var(--radius); margin: 0; }

/* Closet-type cards */
.types-head { margin: 70px 0 34px; }
.types-title { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); margin-bottom: 12px; }
.type-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: none;
  box-shadow: 0 14px 40px -24px rgba(60, 40, 25, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.type-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px -24px rgba(60, 40, 25, 0.62); }
.type-card-img { position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease); }
.type-card:hover .type-card-img { transform: scale(1.05); }
.type-card::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 12, 20, 0.72) 100%); }
.type-card-label { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: "Bodoni Moda", serif; font-weight: 500; font-size: 1.12rem; color: #fff; text-align: left; }
.type-card-view { font-family: "Jost", sans-serif; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(230, 205, 140, 0.5); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }

/* Type preview modal */
.type-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease); }
.type-modal.open { opacity: 1; visibility: visible; }
.type-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 9, 14, 0.46); backdrop-filter: blur(4px); }
.type-modal-card { position: relative; z-index: 1; width: min(900px, 100%); max-height: 88vh; overflow: hidden;
  background: #fff; border-radius: 18px; display: grid; grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
  transform: translateY(18px) scale(0.97); transition: transform 0.4s var(--ease); }
.type-modal.open .type-modal-card { transform: none; }
.type-modal-img { position: relative; min-height: 340px; background-size: cover; background-position: center;
  filter: brightness(1.06) contrast(1.04) saturate(1.06); }
.type-modal-img span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.type-modal-body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.type-modal-body h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.9rem; color: var(--ink); margin-bottom: 14px; }
.type-modal-body p { color: #46535b; font-size: 1.02rem; }
.type-modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: background 0.3s; }
.type-modal-close:hover { background: rgba(0, 0, 0, 0.78); }
@media (max-width: 760px) {
  .type-modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .type-modal-img { min-height: 220px; }
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 60%, var(--onyx) 100%); color: var(--on-dark); }
.contact h2 { color: var(--on-dark); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-points li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--on-dark-soft); }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.lead-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-bottom: 8px; }
.opt { text-transform: none; letter-spacing: 0; color: var(--on-dark-soft); opacity: 0.7; }
.field input, .field select, .field textarea {
  width: 100%; font-family: "Jost", sans-serif; font-size: 1rem; color: var(--on-dark);
  background: rgba(0,15,8,0.35); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 14px 16px; transition: border-color 0.3s, background 0.3s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169,188,196,0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(0,15,8,0.55); }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c6a15b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field select option { color: #11202a; }
.field textarea { resize: vertical; }
.field-radio { border: 0; padding: 0; margin: 0 0 20px; }
.radio-row { display: flex; gap: 14px; }
.radio { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer;
  background: rgba(0,15,8,0.35); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; padding: 13px 16px;
  text-transform: none; letter-spacing: 0; color: var(--on-dark); font-size: 0.95rem; transition: border-color 0.3s, background 0.3s; }
.radio:has(input:checked) { border-color: var(--gold); background: rgba(198,161,91,0.12); }
.radio input { width: auto; accent-color: var(--gold); }
.lead-form .radio input[type="radio"] {
  flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px;
  margin: 0; padding: 0; border: 0; border-radius: 50%;
  appearance: auto; -webkit-appearance: radio;
  background: transparent; box-shadow: none; transform: none; transition: none;
}
.lead-form .radio input[type="radio"]:focus {
  background: transparent; border: 0; outline: none;
}
.lead-form .radio input[type="radio"]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.radio span { margin: 0; }
.lead-form [hidden] { display: none !important; }
.lead-form .radio { transition: none; }

.form-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 180px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.form-actions .btn:disabled { cursor: wait; opacity: 0.68; transform: none; box-shadow: none; }
.form-note { font-size: 0.82rem; color: var(--on-dark-soft); margin-top: 16px; text-align: center; }
.form-status { color: var(--on-dark-soft); font-size: 0.9rem; margin-bottom: 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 10px 14px; }
.form-status.is-loading { color: #d8e7ec; border-color: rgba(216,231,236,0.24); }
.form-status.is-success { color: #cdeed9; background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.3); }
.form-status.is-error { color: #ffb4a6; background: rgba(255,80,60,0.1); border-color: rgba(255,120,100,0.3); }
.form-fallback-link { display: inline-flex; margin: -4px 0 16px; color: var(--gold-light); font-size: 0.92rem;
  text-decoration: underline; text-underline-offset: 4px; }
.form-fallback-link[hidden] { display: none; }
.form-fallback-link:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--onyx); color: var(--on-dark-soft); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; font-size: 0.95rem; }
.footer-col h5 { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-areas { font-size: 0.88rem; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Hero content always animates in on page load — never depends on the scroll
   observer, so the hero text can never stay invisible above the fold. */
.hero .reveal { animation: heroReveal 0.9s var(--ease) both; }
.hero .eyebrow.reveal { animation-delay: 0.10s; }
.hero .hero-title.reveal { animation-delay: 0.22s; }
.hero .hero-sub.reveal { animation-delay: 0.36s; }
.hero .hero-cta.reveal { animation-delay: 0.50s; }
.hero .hero-stats.reveal { animation-delay: 0.64s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .mobile-nav { display: flex; }
  .pillars, .steps, .advantages { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  /* Long type names need the full width on narrow cards */
  .type-card-view { display: none; }
  .type-card-label { font-size: 1.05rem; right: 14px; left: 16px; }

  /* Tighten section rhythm on mobile so cards don't feel oversized */
  .section { padding: clamp(54px, 9vw, 140px) 0; }
  .section-head { margin-bottom: 38px; }

  /* Philosophy pillars: more compact */
  .pillars { gap: 14px; }
  .pillar { padding: 26px 22px; }
  .pillar-mark { font-size: 1.7rem; margin-bottom: 10px; }
  .pillar h3 { font-size: 1.28rem; margin-bottom: 8px; }
  .pillar p { font-size: 0.96rem; }

  /* System steps + advantages: more compact */
  .steps { gap: 14px; margin-bottom: 44px; }
  .step { padding: 24px 22px; }
  .step-num { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: 16px; }
  .step h3 { font-size: 1.28rem; }
  .step p { font-size: 0.96rem; }
  .advantages { gap: 22px; padding-top: 34px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero-stats { gap: 18px; }
  .stat-divider { display: none; }
  .form-actions .btn { min-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-grain span { opacity: 0.4; }
}
