/* Danube Properties — investor microsite prototype */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #181C24;
  --muted: #6C7280;
  --primary: #ED1C24;
  --primary-hover: #D11820;
  --secondary: #10141B;
  --accent: #C9A24B;
  --border: #E2DCD0;
  --border-strong: #C9C1AF;
  --focus: #FF4A51;

  --font-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── type ─────────────────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.display-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow-red { color: var(--primary); }
.eyebrow-light { color: rgba(255,255,255,0.6); }

/* ─── shell layout ─────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

section { position: relative; }

/* ─── nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 248, 244, 0.0);
  transition: background 280ms ease, border-color 280ms ease, color 280ms ease;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.nav.dark-mode { color: #fff; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo svg { height: 28px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: inherit; text-decoration: none; cursor: pointer;
  position: relative;
}
.nav-link:hover { opacity: 0.7; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: inherit;
}
.lang-toggle button {
  background: none; border: none; padding: 4px 6px; cursor: pointer;
  color: inherit; font: inherit; opacity: 0.55;
  transition: opacity 160ms;
}
.lang-toggle button:hover { opacity: 1; }
.lang-toggle button.active { opacity: 1; color: var(--primary); }
.nav.scrolled .lang-toggle button.active { color: var(--primary); }

@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* ─── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 14px 22px; border-radius: 2px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost-light {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ghost-dark {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost-dark:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text); display: inline-flex; align-items: center; gap: 8px;
}
.btn-link::after {
  content: "→"; transition: transform 180ms;
  font-family: var(--font-mono);
}
.btn-link:hover::after { transform: translateX(4px); }
.btn-sm { padding: 10px 16px; font-size: 12px; }

/* ─── diamond motif ────────────────────────────────── */
.diamond {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--primary);
  transform: rotate(45deg);
  vertical-align: middle;
}
.diamond-lg { width: 14px; height: 14px; }
.diamond-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
}

/* ─── hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  max-height: 1080px;
  background: var(--secondary);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity 1200ms ease;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16,20,27,0.55) 0%,
    rgba(16,20,27,0.25) 30%,
    rgba(16,20,27,0.35) 60%,
    rgba(16,20,27,0.85) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; max-width: 1440px;
  margin: 0 auto; padding: 0 40px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-eyebrow-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.hero-eyebrow-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  max-width: 18ch;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  color: #fff;
}
.hero-sub {
  font-size: 17px; line-height: 1.5;
  max-width: 52ch;
  color: rgba(255,255,255,0.82);
  margin: 0 0 36px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 80px; right: 40px;
  text-align: right; z-index: 3;
  max-width: 280px;
}
.hero-meta-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.hero-meta-value {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px; color: #fff;
}
.hero-meta-counter {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
.hero-thumbs {
  position: absolute; left: 40px; bottom: 80px; z-index: 3;
  display: flex; gap: 8px;
  display: none;
}
@media (max-width: 880px) {
  .hero { min-height: 640px; }
  .hero-content { padding-bottom: 120px; }
  .hero-meta { display: none; }
}

/* ─── 1% plan band ─────────────────────────────────── */
.plan-band {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
  position: relative;
}
.plan-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.plan-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.plan-headline em { font-style: italic; }
.plan-stat {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 0.9;
  margin-bottom: 8px;
}
.plan-stat-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.8;
}
.plan-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px;
}
.plan-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 13px;
  flex-wrap: wrap; gap: 16px;
}
.plan-foot-note { opacity: 0.85; max-width: 56ch; }
@media (max-width: 880px) {
  .plan-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .plan-stats { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
}

/* ─── section header ───────────────────────────────── */
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
@media (max-width: 720px) { .section-pad { padding: 72px 0; } }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; margin-bottom: 64px; align-items: end;
}
.section-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 16px 0 0;
  max-width: 18ch;
}
.section-h2 em { font-style: italic; }
.section-intro {
  font-size: 16px; line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ─── filter chips ─────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 100px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--muted); cursor: pointer;
  transition: all 160ms;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.active-red { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── project grid ─────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.project-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--surface);
  transition: transform 240ms ease;
}
.project-card:hover .project-img { transform: scale(1.04); }
.project-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  background: #ddd;
}
.project-card.feat .project-img-wrap { aspect-ratio: 16/10; }
.project-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms ease;
}
.project-info {
  padding: 18px 4px 4px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.project-name em { font-style: italic; }
.project-community {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.project-status {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px;
  white-space: nowrap;
}
.status-launching { background: var(--primary); color: #fff; }
.status-selling { background: var(--text); color: #fff; }
.status-handed { background: var(--border); color: var(--text); }

.project-partner-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px;
  color: var(--text);
}
.project-card .project-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  opacity: 0; transition: opacity 240ms;
}
.project-card:hover .project-img-wrap::after { opacity: 1; }

/* ─── microsite ────────────────────────────────────── */
.microsite-hero {
  position: relative; height: 90vh; min-height: 720px;
  color: #fff; overflow: hidden;
  background: var(--secondary);
}
.microsite-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.microsite-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.7));
}
.microsite-hero-content {
  position: relative; z-index: 2;
  height: 100%; max-width: 1440px; margin: 0 auto;
  padding: 120px 40px 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.microsite-breadcrumb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.microsite-breadcrumb button {
  background: none; border: none; color: inherit; font: inherit;
  cursor: pointer; padding: 0;
}
.microsite-breadcrumb button:hover { color: #fff; }
.microsite-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.88; letter-spacing: -0.03em;
  margin: 0;
}
.microsite-h1 em { font-style: italic; }
.microsite-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  margin-top: 28px; max-width: 36ch;
  color: rgba(255,255,255,0.92);
}
.microsite-meta-row {
  display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap;
}
.microsite-meta-item {
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 16px;
}
.microsite-meta-item .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.microsite-meta-item .value {
  font-family: var(--font-display);
  font-size: 22px; margin-top: 2px;
}

/* ─── tabs (microsite section nav) ─────────────────── */
.section-tabs {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.section-tabs-inner {
  display: flex; gap: 4px; overflow-x: auto;
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
}
.section-tab {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 16px; border: none; background: none;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 180ms;
}
.section-tab:hover { color: var(--text); }
.section-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── amenities ─────────────────────────────────────── */
.amenity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.amenity {
  background: var(--bg); padding: 36px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.amenity-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--primary);
}
.amenity-name {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.amenity-desc {
  font-size: 13px; color: var(--muted); margin-top: auto;
}
@media (max-width: 880px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── residence concept rows ─────────────────────────── */
.concepts {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.concept-row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr 1fr 120px;
  gap: 32px; align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding 200ms;
}
.concept-row:hover { padding-left: 12px; padding-right: 12px; background: rgba(237,28,36,0.03); }
.concept-row .num { font-family: var(--font-mono); color: var(--primary); font-size: 12px; letter-spacing: 0.12em; }
.concept-row .name { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.01em; font-weight: 500; }
.concept-row .name em { font-style: italic; }
.concept-row .desc { font-size: 14px; color: var(--muted); }
.concept-row .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.concept-row .cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); text-align: right; }
@media (max-width: 880px) {
  .concept-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .concept-row .cta { text-align: left; }
}

/* ─── gallery ───────────────────────────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.g-item { position: relative; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms; }
.g-item:hover img { transform: scale(1.04); }
.g-caption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text);
}
.g-1 { grid-column: span 8; aspect-ratio: 16/10; }
.g-2 { grid-column: span 4; aspect-ratio: 4/5; }
.g-3 { grid-column: span 4; aspect-ratio: 4/5; }
.g-4 { grid-column: span 4; aspect-ratio: 4/5; }
.g-5 { grid-column: span 4; aspect-ratio: 4/5; }
.g-6 { grid-column: span 8; aspect-ratio: 16/10; }
@media (max-width: 880px) {
  .g-1,.g-2,.g-3,.g-4,.g-5,.g-6 { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ─── location ──────────────────────────────────────── */
.location {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start;
}
.location-map {
  position: relative; aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 40%, rgba(237,28,36,0.04), transparent 45%),
    linear-gradient(135deg, #efeae0 0%, #e5dfd0 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(24,28,36,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,28,36,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-road { position: absolute; background: rgba(24,28,36,0.18); }
.map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 24px; height: 24px;
  background: var(--primary);
  transform-origin: bottom center;
  animation: pinPulse 2.4s ease-in-out infinite;
}
.map-pin::before {
  content: ""; position: absolute; inset: 0;
  background: var(--primary);
  transform: rotate(45deg);
}
.map-pin::after {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  z-index: 2;
}
.map-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--primary);
  opacity: 0; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.4); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes pinPulse {
  0%, 100% { transform: translate(-50%, -100%) scale(1); }
  50% { transform: translate(-50%, -100%) scale(1.06); }
}
.map-landmark {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.map-landmark::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text); margin-right: 6px;
  vertical-align: middle;
}
.landmark-list {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.landmark-item {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.landmark-item .dist {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--primary);
}
.landmark-item .lname { font-size: 15px; }
.landmark-item .ltype {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .location { grid-template-columns: 1fr; }
}

/* ─── lead capture / forms ──────────────────────────── */
.lead-block {
  background: var(--secondary);
  color: #fff;
  padding: 120px 0;
}
.lead-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.lead-h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.lead-h2 em { font-style: italic; }
.lead-pillars {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 40px;
}
.lead-pillar {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 16px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.lead-pillar:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.lead-pillar .num { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; }
.lead-pillar .title { font-family: var(--font-display); font-style: italic; font-size: 22px; margin-bottom: 4px; }
.lead-pillar .desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.lead-pillar.warm { color: var(--accent); }

.form-card {
  background: var(--bg);
  color: var(--text);
  padding: 40px;
}
.form-tabs {
  display: flex; gap: 0; margin: -40px -40px 32px;
  border-bottom: 1px solid var(--border);
}
.form-tab {
  flex: 1; padding: 18px 12px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--border); color: var(--muted);
  border: none; cursor: pointer;
  border-right: 1px solid var(--bg);
  transition: all 160ms;
}
.form-tab:last-child { border-right: none; }
.form-tab.active { background: var(--bg); color: var(--primary); }
.form-tab:hover:not(.active) { color: var(--text); }

.form-h3 {
  font-family: var(--font-display);
  font-size: 28px; line-height: 1.1;
  margin: 0 0 8px;
}
.form-h3 em { font-style: italic; }
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.form-field { margin-bottom: 16px; position: relative; }
.form-label {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-body); font-size: 14px;
  color: var(--text);
  border-radius: 2px;
  transition: border-color 160ms;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input.error { border-color: var(--primary); }
.form-error {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--primary); margin-top: 4px;
}
.form-phone-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.4;
  margin: 16px 0 24px;
  cursor: pointer;
}
.form-checkbox input { margin-top: 2px; accent-color: var(--primary); }
.form-submit {
  width: 100%;
  background: var(--primary); color: #fff;
  border: none; padding: 16px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms;
}
.form-submit:hover { background: var(--primary-hover); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--muted);
}
.form-divider::before, .form-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.form-whatsapp {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; background: #25D366; color: #fff; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

/* form success */
.form-success {
  text-align: center; padding: 32px 8px;
}
.form-success .check {
  width: 56px; height: 56px; border: 2px solid var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px; color: var(--primary);
}
.form-success h4 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; }
.form-success p { color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-card { padding: 28px; }
  .form-tabs { margin: -28px -28px 24px; }
}

/* ─── legacy / about ───────────────────────────────── */
.legacy {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.legacy-text { padding-right: 0; }
.legacy-pull {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: var(--text);
}
.legacy-pull em { color: var(--primary); }
.legacy-body { font-size: 16px; line-height: 1.65; color: var(--muted); }
.legacy-body p { margin: 0 0 14px; }
.legacy-timeline {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.legacy-year {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.legacy-year:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--border); }
.legacy-year:nth-child(even) { padding-left: 24px; }
.legacy-year .year {
  font-family: var(--font-display); font-style: italic;
  font-size: 48px; color: var(--primary);
  line-height: 1;
}
.legacy-year .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}
.legacy-year .body { font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.45; }
.legacy-img {
  aspect-ratio: 4/5; overflow: hidden;
  position: relative;
}
.legacy-img img { width: 100%; height: 100%; object-fit: cover; }
.legacy-img-caption {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 880px) {
  .legacy { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── footer ───────────────────────────────────────── */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
}
.footer-brand .display {
  font-size: 56px; color: #fff;
  font-family: var(--font-display);
  font-style: italic; letter-spacing: -0.02em;
}
.footer-tagline {
  margin: 16px 0 0; font-size: 14px; max-width: 36ch;
  line-height: 1.5;
}
.footer h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin: 0 0 20px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; cursor: pointer; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ─── WhatsApp FAB ─────────────────────────────────── */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 2px 6px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms;
}
.fab:hover { transform: scale(1.08); }
.fab-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fabPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ─── lead modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,20,27,0.6);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 240ms ease;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg); width: 100%; max-width: 480px;
  position: relative;
  animation: slideUp 320ms ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; color: var(--text);
  font-size: 22px; z-index: 2;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── partner band ─────────────────────────────── */
.partner-band {
  background: var(--text); color: #fff;
  padding: 28px 0;
  overflow: hidden;
}
.partner-track {
  display: flex; gap: 80px; align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.partner-item {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 80px;
  flex-shrink: 0;
}
.partner-item::after {
  content: "◆"; color: var(--primary); font-size: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── tweaks panel ─────────────────────────────────── */
.tweaks {
  position: fixed; bottom: 28px; left: 28px; z-index: 200;
  background: var(--secondary); color: #fff;
  padding: 20px 22px; width: 280px;
  font-size: 12px;
}
.tweaks h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 16px; color: var(--primary);
}
.tweaks .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.tweaks label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.7; text-transform: uppercase; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .swatch { width: 22px; height: 22px; cursor: pointer; border: 1.5px solid transparent; border-radius: 50%; }
.tweaks .swatch.active { border-color: #fff; }
.tweaks .toggle {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; cursor: pointer;
}
.tweaks .toggle.active { background: var(--primary); border-color: var(--primary); }
.tweaks-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 16px;
}

/* ─── arabic mode ──────────────────────────────────── */
.rtl { direction: rtl; }
.rtl .hero-content,
.rtl .microsite-hero-content,
.rtl .lead-grid,
.rtl .section-head,
.rtl .legacy {
  direction: rtl;
}
.rtl .display, .rtl .display-italic { direction: rtl; }

/* ─── utilities ────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.bg-dark { background: var(--secondary); color: #fff; }
.bg-dark .text-muted { color: rgba(255,255,255,0.6); }
.bg-dark .eyebrow { color: rgba(255,255,255,0.6); }
.text-center { text-align: center; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line {
  width: 1px; height: 32px; background: rgba(255,255,255,0.4);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
