/* ============================================
   F.C. INSTALAȚII — Design System
   ============================================ */

:root {
  /* Colors — light theme */
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-tinted: #f0f9ff;
  --ink: #0a1628;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;
  --muted-3: #94a3b8;
  --line: #e5e7eb;
  --line-soft: #f1f5f9;

  /* Accent — sky/cyan (default) */
  --accent: #0ea5e9;
  --accent-2: #0284c7;
  --accent-soft: #e0f2fe;
  --accent-glow: rgba(14, 165, 233, 0.25);

  /* Typography */
  --font-display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Geist", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1480px;
  --container-wide: 1520px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.16), 0 8px 24px rgba(15, 23, 42, 0.06);

  /* Spacing rhythm */
  --section-py: clamp(72px, 10vw, 128px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.005em;
  position: relative;
}
/* Fixed background image — visible behind every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("background.webp") center center / cover no-repeat;
  background-color: var(--bg);
  pointer-events: none;
}

/* Subtle wash for "alternating" sections — keeps visual rhythm while
   letting the fixed background image show through. */
:root { --wash: rgba(255, 255, 255, 0.55); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   Typography
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.h-1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.04em; }
.h-2 { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.035em; }
.h-3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
.h-4 { font-size: 20px; line-height: 1.25; font-weight: 600; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.body-sm { font-size: 14px; color: var(--muted); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: var(--container-wide); }
.section { padding: var(--section-py) 0; position: relative; }
.section-tight { padding: 64px 0; }

/* ============================================
   Nav
   ============================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-logo .mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.nav-logo .mark svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--ink-2);
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--accent-2); }
.nav-cta {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.nav-burger {
  display: none;
  background: none; border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 10px;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Mobile menu drawer.
   .nav-wrap uses backdrop-filter, which turns it into the containing block
   for fixed children — so the drawer is positioned against the nav bar
   (top: 100%) and sized to the remaining viewport explicitly. */
.nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 99;
  padding: 16px 24px 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a.active { color: var(--accent-2); }
.nav-drawer a.nav-cta { display: inline-flex; color: white; border-bottom: none; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }
.nav-drawer a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .nav-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  padding: 14px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-outline {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-soft {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: clamp(680px, 92vh, 1000px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.85) 0%, rgba(224, 242, 254, 0.6) 50%, rgba(248, 250, 252, 0.4) 100%);
  border-bottom: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0.18) 35%, rgba(248, 250, 252, 0.02) 65%, rgba(248, 250, 252, 0) 100%),
    url("hero-showroom.webp");
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero-img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(255, 255, 255, 0.35) 70%, rgba(255, 255, 255, 0.85) 90%, #ffffff 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 60%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 96px 0 80px;
  width: 100%;
}
.hero-eyebrow {
  color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-title {
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 36px;
  font-weight: 400;
  line-height: 1.5;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero AI intensity variants — switched via data-ai-vibe on root */
[data-ai-vibe="subtle"] .hero { background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%); }
[data-ai-vibe="subtle"] .hero-img-placeholder { background: linear-gradient(180deg, #f8fafc, #f1f5f9); }
[data-ai-vibe="subtle"] .hero-glow { display: none; }
[data-ai-vibe="moderate"] .hero { background: linear-gradient(180deg, #f4f9fd 0%, #eaf5fd 100%); }

/* Hero layout variants */
[data-hero-layout="center"] .hero { align-items: center; text-align: center; }
[data-hero-layout="center"] .hero-content { padding: 120px 0; }
[data-hero-layout="center"] .hero-title { margin-left: auto; margin-right: auto; }
[data-hero-layout="center"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-hero-layout="center"] .hero-eyebrow { justify-content: center; display: flex; }
[data-hero-layout="center"] .hero-ctas { justify-content: center; }
[data-hero-layout="split"] .hero { background: white; align-items: center; }
[data-hero-layout="split"] .hero-content { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
[data-hero-layout="split"] .hero-img-placeholder { position: relative; inset: auto; border-radius: var(--radius-lg); aspect-ratio: 4/3; }
[data-hero-layout="split"] .hero-bg { display: none; }
[data-hero-layout="split"] .hero-glow { display: none; }
[data-hero-layout="split"] .hero-grid { display: none; }
@media (max-width: 900px) {
  [data-hero-layout="split"] .hero-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   Brands strip
   ============================================ */
.brands {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--wash);
  backdrop-filter: blur(2px);
}
.brands-head { text-align: center; margin-bottom: 56px; }
.brands-head h2 { margin-top: 12px; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.brand-cell {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  place-items: center;
  min-height: 160px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  transition: border-color 0.2s, transform 0.2s;
}
.brand-cell strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-cell img {
  width: 100%;
  max-width: 200px;
  max-height: 110px;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-cell:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Features (CVLA section)
   ============================================ */
.features-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.features-head h2 { max-width: 14ch; }
@media (max-width: 800px) {
  .features-head { grid-template-columns: 1fr; gap: 24px; }
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: stretch;
}
.feature-img {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a1628;
  border: 1px solid var(--line);
}
.feature-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}
.feature-img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.feature-img-placeholder span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 14px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  max-width: 70%;
}
.feature-img-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.feature-img-eyebrow {
  position: absolute;
  top: 24px; left: 24px;
  color: white;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}
.feature-img-eyebrow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--accent);
  text-transform: none;
  font-weight: 600;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.feature-card h3 { margin-bottom: 16px; }
.feature-card p { color: var(--muted); line-height: 1.65; font-size: 17px; }

@media (max-width: 900px) {
  .feature-showcase { grid-template-columns: 1fr; }
}

.feature-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.feature-tab {
  cursor: pointer;
  padding: 8px 0;
  border-top: 2px solid transparent;
  margin-top: -34px;
  padding-top: 24px;
  transition: border-color 0.2s, opacity 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  color: var(--ink);
  font-family: inherit;
}
.feature-tab.active { border-top-color: var(--ink); }
.feature-tab:not(.active) { opacity: 0.55; }
.feature-tab:not(.active):hover { opacity: 0.85; }
.feature-tab h4 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.feature-tab p { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.55; }

@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .feature-tabs { grid-template-columns: 1fr; }
}

/* ============================================
   Services grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 19px; margin: 0; font-weight: 600; }
.service-card p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.6; flex: 1; }
.service-card .service-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   About / Experience
   ============================================ */
.about {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-xl);
  padding: 80px;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 70%; height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about h2 { color: white; }
.about .lead { color: rgba(255, 255, 255, 0.7); }
.about-years {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: white;
  font-weight: 600;
}
.about-years sup {
  font-size: 0.25em;
  vertical-align: top;
  color: var(--accent);
  margin-left: 8px;
  font-weight: 500;
}
.about-years-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 16px;
}
.about-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.about .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.about .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: white; }
.about .btn-primary { background: white; color: var(--ink); }
.about .btn-primary:hover { background: var(--accent-soft); }

@media (max-width: 900px) {
  .about { padding: 48px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Lucrari preview / polaroid gallery
   ============================================ */
.gallery-head { text-align: center; margin-bottom: 64px; }
.gallery-head h2 { margin: 12px auto 16px; max-width: 14ch; }
.gallery-head p { color: var(--muted); margin: 0 auto; max-width: 56ch; }

.polaroid-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  flex-wrap: wrap;
}
.polaroid {
  width: 240px;
  background: white;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform 0.3s;
}
.polaroid:hover { transform: rotate(0deg) translateY(-8px); z-index: 2; }
.polaroid-img {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, #f1f5f9 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}
.polaroid-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.faq-head h2 { margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}
@media (max-width: 800px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Final CTA
   ============================================ */
.cta-final {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.75) 0%, rgba(240, 249, 255, 0.65) 100%);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { margin: 16px auto 16px; max-width: 16ch; }
.cta-final p { color: var(--muted); margin: 0 auto 32px; max-width: 52ch; }
.cta-final-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 700px) { .cta-final { padding: 48px 24px; } }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  color: var(--ink-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo { margin-bottom: 20px; font-size: 17px; }
.footer-brand .nav-logo .mark { width: 38px; height: 38px; border-radius: 10px; }
.footer-tagline { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 24px; max-width: 36ch; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.footer-phone svg { width: 14px; height: 14px; color: var(--accent); }
.footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-whatsapp svg { color: #25D366; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-size: 14px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col li a:hover { color: var(--accent-2); }
.footer-col li svg { width: 14px; height: 14px; color: var(--muted-3); flex-shrink: 0; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item strong { display: block; font-weight: 600; color: var(--ink); font-size: 13px; margin-bottom: 2px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 13px;
  color: var(--muted);
}
.footer-legal a { margin: 0 8px; color: var(--muted-2); }
.footer-legal a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted-2);
  transition: color 0.15s, border-color 0.15s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Cookie banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}
.cookie-banner.show { display: block; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner h4 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cookie-banner h4 svg { width: 18px; height: 18px; color: var(--accent); }
.cookie-banner p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cookie-banner p a { color: var(--accent-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions button { padding: 10px 18px; font-size: 13px; border-radius: 8px; }
.cookie-actions .btn-primary { padding: 10px 18px; }

/* Settings dialog */
.cookie-settings {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-settings.show { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-settings-card {
  background: white;
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
}
.cookie-settings-card h3 { margin-bottom: 8px; }
.cookie-settings-card > p { color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 1.55; }
.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cookie-row:last-of-type { border-bottom: none; }
.cookie-row .desc { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.cookie-row .meta { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; max-width: 38ch; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
  padding: 0;
  margin-top: 2px;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(20px); }
.toggle.disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-settings-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

/* ============================================
   WhatsApp / chat float
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s;
  color: white;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ============================================
   Pages: shared page header
   ============================================ */
.page-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.page-header > * { position: relative; }
.page-header .eyebrow { color: var(--ink-2); margin-bottom: 20px; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--muted); max-width: 60ch; font-size: 17px; line-height: 1.55; margin: 0; }

/* ============================================
   Lucrări (projects) — chapters
   ============================================ */
.chapter { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }
.chapter:last-child { border-bottom: none; }
.chapter-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.chapter-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.chapter-head h2 { max-width: 16ch; }
.chapter-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 16px; }
.chapter-meta span::before { content: "·"; margin-right: 16px; color: var(--muted-3); }
.chapter-meta span:first-child::before { content: none; margin-right: 0; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proj-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.proj-img {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.proj-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.proj-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-loc svg { width: 12px; height: 12px; }
.proj-title { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.3; }
.proj-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.proj-brand-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Project rows (stacked) + horizontal carousel
   ============================================ */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.proj-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.proj-row .proj-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.proj-row .proj-title { font-size: 22px; line-height: 1.25; }

.proj-carousel { position: relative; min-width: 0; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
  margin: -2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto;
  width: min(72%, 580px);
  aspect-ratio: 4/3;
  scroll-snap-align: start;
  background:
    repeating-linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.carousel-slide span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(100, 116, 139, 0.3);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.carousel-slide.has-photo {
  background: #0a1628;
  padding: 0;
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  width: min(48%, 440px);
  height: auto;
}
.carousel-slide.has-photo::before { display: none; }
.carousel-slide.has-photo img,
.carousel-slide.has-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .carousel-slide.has-photo { width: min(62%, 380px); }
}
@media (max-width: 540px) {
  .carousel-slide.has-photo { width: 72%; }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.carousel-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  font-family: inherit;
  padding: 0;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:not([disabled]):hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.carousel-btn:not([disabled]):active { transform: scale(0.96); }
.carousel-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 900px) {
  .proj-row { grid-template-columns: 1fr; gap: 24px; }
  .proj-row .proj-info { padding-top: 0; }
  .carousel-slide { width: min(85%, 520px); }
}
@media (max-width: 540px) {
  .carousel-slide { width: 85%; }
  .proj-list { gap: 40px; }
}

/* ============================================
   Contact page
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 96px; }
.contact-block { display: flex; gap: 16px; }
.contact-block .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-block .icon svg { width: 18px; height: 18px; }
.contact-block h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 6px; font-weight: 500; }
.contact-block p { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.4; font-weight: 500; }
.contact-block a { color: var(--ink); }
.contact-block a:hover { color: var(--accent-2); }

.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.field label,
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  background: white;
}
.radio-pill:hover { border-color: var(--ink); }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-3);
  display: inline-block;
  position: relative;
  transition: border-color 0.15s;
}
.radio-pill input:checked ~ .dot { border-color: var(--accent); }
.radio-pill input:checked ~ .dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.radio-pill input:checked + .dot { border-color: var(--accent); }
.radio-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 8px; }
.dropzone p { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.dropzone .hint { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--line);
}
.file-item svg { width: 14px; height: 14px; color: var(--accent); }
.file-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.file-item .remove { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.file-item .remove:hover { color: #ef4444; }

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.checkbox-row input { margin-top: 2px; accent-color: var(--accent); }
.checkbox-row a { color: var(--accent-2); text-decoration: underline; }

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  display: none;
}
.form-success.show { display: block; }
.form-success h4 { margin: 0 0 4px; color: #166534; font-size: 15px; }
.form-success p { margin: 0; font-size: 14px; color: #166534; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { position: static; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Policy pages
   ============================================ */
.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 64px 0 96px;
}
.policy-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
.policy-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
  font-weight: 500;
}
.policy-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.policy-toc a { color: var(--muted); padding: 4px 0; display: block; }
.policy-toc a:hover { color: var(--accent-2); }

.policy-content { max-width: 75ch; }
.policy-content h2 { font-size: 28px; margin: 48px 0 16px; scroll-margin-top: 96px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { font-size: 19px; margin: 32px 0 12px; }
.policy-content p, .policy-content li { color: var(--ink-2); line-height: 1.65; font-size: 16px; }
.policy-content p { margin: 0 0 16px; }
.policy-content ul { padding-left: 22px; margin: 0 0 16px; }
.policy-content li { margin-bottom: 6px; }
.policy-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.policy-content th, .policy-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-content th { background: var(--bg-soft); font-weight: 600; }
.policy-content .placeholder { color: var(--muted); font-family: var(--font-mono); background: #fff7ed; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .policy-toc { position: static; }
}

/* ============================================
   Typography tweak variants
   ============================================ */
[data-type-style="serif"] h1,
[data-type-style="serif"] h2,
[data-type-style="serif"] h3,
[data-type-style="serif"] .h-display,
[data-type-style="serif"] .h-1,
[data-type-style="serif"] .h-2,
[data-type-style="serif"] .h-3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  letter-spacing: -0.025em;
  font-weight: 400;
}
[data-type-style="tech"] h1,
[data-type-style="tech"] h2 .accent-mono,
[data-type-style="tech"] .h-display {
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  font-weight: 500;
}

/* Utility */
.text-accent { color: var(--accent-2); }
.text-mono { font-family: var(--font-mono); }
.no-wrap { white-space: nowrap; }
.scroll-anchor { scroll-margin-top: 96px; }

/* ============================================
   Scroll-driven video section
   ============================================ */
.scroll-video {
  position: relative;
  height: 300vh;
  background: #fff;
}
.sv-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.sv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}
.sv-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Edge fades — top & bottom blend smoothly into the white page above and below */
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,1) 100%),
    /* Subtle cinematic vignette in soft white instead of dark */
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(255,255,255,0) 55%, rgba(255,255,255,0.18) 100%);
  pointer-events: none;
}
.sv-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.6;
}
.sv-captions {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: white;
  text-align: center;
  padding: 24px;
}
.sv-caption {
  position: absolute;
  max-width: 22ch;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(255,255,255,0.8), 0 0 32px rgba(255,255,255,0.6);
}
.sv-caption.show { opacity: 1; transform: translateY(0); }
.sv-caption .eyebrow {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.9);
}
.sv-caption .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent-glow);
}
.sv-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.sv-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
  z-index: 2;
}
.sv-progress span {
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.sv-progress span.active { color: var(--ink); }
.sv-progress span::before {
  content: "";
  width: 40px; height: 2px;
  background: rgba(15, 23, 42, 0.18);
  display: inline-block;
  transform: scaleX(0.6);
  transform-origin: left center;
  transition: background 0.3s, transform 0.3s;
}
.sv-progress span.active::before { background: var(--accent); transform: scaleX(1); }

.sv-loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(15, 23, 42, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.sv-loading::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid rgba(15, 23, 42, 0.18);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: sv-spin 0.8s linear infinite;
}
@keyframes sv-spin { to { transform: rotate(360deg); } }
.sv-stage.ready .sv-loading { display: none; }

/* On smaller screens, reduce scroll distance so it isn't tedious */
@media (max-width: 760px) {
  .scroll-video { height: 250vh; }
  .sv-caption h2 { font-size: clamp(28px, 8vw, 44px); }
}

/* ============================================
   Polish pass — accessibility, mobile, motion
   ============================================ */

/* Visible keyboard focus everywhere (mouse clicks stay clean) */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.whatsapp-float:focus-visible,
.footer-social a:focus-visible { outline-offset: 3px; border-radius: 999px; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: none; } /* fields keep their own focus ring */
.radio-pill:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.checkbox-row input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Remove the 300 ms tap delay on touch devices */
a, button, summary, label { touch-action: manipulation; }

/* Footer links: comfortable tap targets on phones */
.footer-col li a { min-height: 28px; }
.footer-social a { width: 44px; height: 44px; }

/* Hero on phones: the showroom photo sits right behind the copy,
   so lay a light veil under the text column for legible contrast. */
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-img-placeholder {
    background-position: center, 70% center;
  }
  .hero-img-placeholder::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.55) 30%,
      rgba(255, 255, 255, 0.88) 55%,
      #ffffff 100%);
  }
  .hero-content { padding: 220px 0 56px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .sv-progress { gap: 12px; letter-spacing: 0.12em; }
  .sv-progress span::before { width: 24px; }
}

/* Polaroids on the homepage now hold real project photos */
.polaroid { display: block; color: inherit; }
.polaroid-img { padding: 0; overflow: hidden; background: var(--bg-soft); }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-cap { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .polaroid-row { gap: 20px; }
  .polaroid { width: calc(50% - 10px); padding: 8px 8px 12px; }
}

/* Respect "reduce motion": keep state changes, drop travel and smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .polaroid, .polaroid:hover { transform: none; }
  .btn-primary:hover, .nav-cta:hover, .service-card:hover,
  .brand-cell:hover, .proj-card:hover { transform: none; }
}

/* Form labels: 11px mono was below comfortable reading size */
.field label, .field-label { font-size: 12px; }
/* .field label was overriding the pill's own type — restore the intended pill style */
.field .radio-pill {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0;
  display: inline-flex;
  min-height: 44px;
}

/* Contact form: send states */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  display: none;
}
.form-error.show { display: block; }
.form-error h4 { margin: 0 0 4px; color: #991b1b; font-size: 15px; }
.form-error p { margin: 0; font-size: 14px; color: #991b1b; }
.form-error a { text-decoration: underline; font-weight: 500; }
.contact-form button[type="submit"][disabled] { opacity: 0.7; cursor: progress; transform: none; }
.was-validated .field input:invalid,
.was-validated .field textarea:invalid { border-color: #dc2626; }
.was-validated .checkbox-row input:invalid { outline: 2px solid #dc2626; outline-offset: 2px; }

/* Contact: where to send plans/photos (Web3Forms free plan has no attachments) */
.files-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.files-note svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.files-note p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.files-note strong { color: var(--ink); }
.files-note a { color: var(--accent-2); text-decoration: underline; font-weight: 500; }

/* Brand logo (round badge) in header and footer */
.nav-logo .logo-img {
  width: 58px; height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.footer-brand .nav-logo { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .nav-logo .logo-img { width: 88px; height: 88px; }
@media (max-width: 920px) {
  .nav-logo .logo-img { width: 50px; height: 50px; }
}

/* The hidden attribute must win over component display rules (e.g. .proj-row grid) */
[hidden] { display: none !important; }

/* Contact: map block (Google Maps only after consent) */
.map-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed.loaded .map-consent { display: none; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
}
.map-consent svg { width: 28px; height: 28px; color: var(--accent-2); }
.map-consent p { margin: 0; max-width: 42ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) {
  .map-layout { grid-template-columns: 1fr; gap: 28px; }
  .map-embed { aspect-ratio: 4 / 3; }
}

/* Policy pages: wide tables scroll inside themselves on phones */
.policy-layout > * { min-width: 0; }
.policy-content td, .policy-content th { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .policy-content table { display: block; overflow-x: auto; }
  .policy-content th, .policy-content td { min-width: 120px; overflow-wrap: normal; }
}

/* 404 page */
.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-header .notfound-call { margin-top: 28px; font-size: 15px; }
.notfound-call a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.notfound-call a:hover { text-decoration: underline; }
.notfound > .container { width: 100%; }
