/* critical-home.css — ATF only. Re-concat after editing variables/reset/layout/navbar/hero. */

/* ===== variables.css ===== */
:root {
  color-scheme: light;

  /* Surfaces — Apple/Google-like light (cool gray ground, white cards) */
  --color-bg: #f2f2f7;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #e8e8ed;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-surface-strong: #ffffff;
  --color-glass: rgba(255, 255, 255, 0.72);
  --color-glass-strong: rgba(255, 255, 255, 0.9);

  /* Borders */
  --color-border: rgba(60, 60, 67, 0.12);
  --color-border-hover: rgba(60, 60, 67, 0.22);
  --color-border-strong: rgba(60, 60, 67, 0.32);

  /* Text — logo ink blue (same as mascot hands on light) */
  --color-text: #002c59;
  --color-text-secondary: rgba(0, 44, 89, 0.68);
  --color-text-muted: rgba(0, 44, 89, 0.48);

  /* Accent — TEST: brand pink (logo) only — no orange / emerald */
  --color-accent: #ed1458;
  --color-accent-soft: rgba(237, 20, 88, 0.12);
  --color-accent-glow: rgba(237, 20, 88, 0.24);
  --color-accent-hover: #ff3a72;
  --color-accent-deep: #c41148;
  --color-link: #ed1458;
  --color-success: #ed1458;
  --color-white: #ffffff;
  --color-black: #050507;
  --color-ink: #002c59;
  --mascot-ink: #002c59;

  /* Brand — hot pink / power from logo */
  --color-brand: #ed1458;
  --color-brand-soft: rgba(237, 20, 88, 0.1);
  --color-brand-glow: rgba(237, 20, 88, 0.24);
  --color-brand-bright: #ff3a72;

  /* Browser chrome */
  --theme-color: #f2f2f7;

  /* Typography — system UI first (no third-party webfont on critical path).
     Comfortaa remains for mascot bubble only (local woff2). */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-mascot: "Comfortaa", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.875rem, 3.6vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 6.2vw, 4.75rem);

  --leading-tight: 1.02;
  --leading-snug: 1.4;
  --leading-normal: 1.55;
  --tracking-tight: -0.035em;
  --tracking-display: -0.045em;
  --tracking-wide: 0.12em;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;
  --section-space: clamp(5.5rem, 11vw, 8.5rem);

  --container-max: 1120px;
  --container-wide: 1240px;
  --container-padding: 1.5rem;
  --navbar-height: 94px;
  --navbar-offset: 0px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 80px var(--color-accent-glow);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* Depth — floating panels */
  --surface-float: #ffffff;
  --surface-float-hover: #ffffff;
  --depth-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(0, 0, 0, 0.06);
  --depth-shadow-hover: 0 1px 0 #fff, 0 14px 32px rgba(0, 0, 0, 0.1);
  --focus-ring: rgba(237, 20, 88, 0.48);
  /* Soft brand aura for accent UI */
  --accent-soft-shadow: 0 1px 2px rgba(237, 20, 88, 0.28), 0 2px 12px rgba(237, 20, 88, 0.2);
  /* Edge + lift so brand accent holds on light ground (off in dark) */
  --accent-text-shadow:
    0 0 1px rgba(80, 10, 40, 0.039),
    0 0 0.5px rgba(80, 10, 40, 0.047),
    0 1px 0 rgba(255, 255, 255, 0.035),
    0 1px 3px rgba(28, 25, 23, 0.01);
  --accent-text-shadow-strong:
    0 0 1.35px rgba(80, 10, 40, 0.043),
    0 0 0.65px rgba(80, 10, 40, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.039),
    0 1px 4px rgba(28, 25, 23, 0.013),
    0 2px 10px rgba(237, 20, 88, 0.014);
  --accent-icon-shadow:
    drop-shadow(0 0 0.85px rgba(80, 10, 40, 0.044))
    drop-shadow(0 1px 2px rgba(28, 25, 23, 0.014));

  /* Atmosphere — soft uniform wash */
  --atm-brand: 0.045;
  --atm-accent: 0.035;
  --atm-cool: 0.03;
  --atm-soft: 0.4;
  --atm-mesh-brand: 0.03;
  --atm-mesh-accent: 0.025;
  --atm-mesh-cool: 0.02;
  --atm-mesh-soft: 0.01;
  --atm-veil: 0.015;
  --atm-mesh-opacity: 1;
  --atm-shift-x: 0%;
  --atm-shift-y: 0%;
  --atm-shift-scale: 1;
  --atm-shift-rot: 0deg;
  --atm-mid-a: rgba(242, 230, 236, 0.4);
  --atm-mid-b: rgba(228, 236, 244, 0.35);
  --atm-base-1: #f5f5f7;
  --atm-base-2: #f2f2f7;
  --atm-base-3: #ececf1;
  --atm-veil-rgb: 242, 242, 247;
  --atm-soft-spot: rgba(255, 255, 255, 0.5);

  /* Chrome / fades */
  --nav-glass: rgba(242, 242, 247, 0.72);
  --nav-glass-scrolled: rgba(242, 242, 247, 0.9);
  --nav-hairline: rgba(60, 60, 67, 0.1);
  --nav-hairline-scrolled: rgba(60, 60, 67, 0.16);
  --fade-edge: rgba(242, 242, 247, 0.94);
  --scrim: rgba(0, 0, 0, 0.4);
  --mascot-shadow: drop-shadow(0 10px 28px rgba(229, 0, 76, 0.18));
  --map-filter: grayscale(1) contrast(1.02) brightness(0.96);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.15, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 140ms;
  --motion-hover: 160ms;
  --motion-scene: 900ms;
  --duration-fast: 160ms;
  --duration-normal: 280ms;
  --duration-slow: 480ms;
  --duration-slower: 720ms;

  --z-progress: 120;
  --z-navbar: 100;
  --z-overlay: 90;
  --z-modal: 110;
  --z-float: 50;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: #050507;
  --color-bg-elevated: #0a0a0d;
  --color-bg-subtle: #101014;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.055);
  --color-surface-strong: rgba(255, 255, 255, 0.075);
  --color-glass: rgba(12, 12, 16, 0.65);
  --color-glass-strong: rgba(10, 10, 14, 0.82);

  --color-border: rgba(255, 255, 255, 0.075);
  --color-border-hover: rgba(255, 255, 255, 0.14);
  --color-border-strong: rgba(255, 255, 255, 0.2);

  --color-text: #f4f4f5;
  --color-text-secondary: rgba(244, 244, 245, 0.64);
  --color-text-muted: rgba(244, 244, 245, 0.4);

  --color-accent: #ed1458;
  --color-accent-soft: rgba(237, 20, 88, 0.14);
  --color-accent-glow: rgba(237, 20, 88, 0.32);
  --color-accent-hover: #ff3a72;
  --color-accent-deep: #c41148;
  --color-link: #ed1458;
  --color-success: #ed1458;

  --color-brand: #ed1458;
  --color-brand-soft: rgba(237, 20, 88, 0.14);
  --color-brand-glow: rgba(237, 20, 88, 0.35);
  --color-brand-bright: #ff3a72;
  --color-ink: #f4f4f5;
  --mascot-ink: #ffffff;

  --theme-color: #050507;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --surface-float: rgba(255, 255, 255, 0.028);
  --surface-float-hover: rgba(255, 255, 255, 0.05);
  --depth-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.32);
  --depth-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 36px rgba(0, 0, 0, 0.42);
  --focus-ring: rgba(237, 20, 88, 0.55);
  --accent-soft-shadow: 0 1px 2px rgba(237, 20, 88, 0.22), 0 2px 12px rgba(237, 20, 88, 0.2);
  --accent-text-shadow: none;
  --accent-text-shadow-strong: none;
  --accent-icon-shadow: none;

  --atm-brand: 0.075;
  --atm-accent: 0.045;
  --atm-cool: 0.04;
  --atm-soft: 0.012;
  --atm-mesh-brand: 0.04;
  --atm-mesh-accent: 0.03;
  --atm-mesh-cool: 0.025;
  --atm-mesh-soft: 0.012;
  --atm-veil: 0.04;
  --atm-mesh-opacity: 1;
  --atm-mid-a: rgba(18, 12, 22, 0.35);
  --atm-mid-b: rgba(8, 10, 14, 0.15);
  --atm-base-1: #0b0910;
  --atm-base-2: #07070b;
  --atm-base-3: #06080c;
  --atm-veil-rgb: 5, 5, 7;
  --atm-soft-spot: rgba(255, 255, 255, 0.02);

  --nav-glass: rgba(5, 5, 7, 0.28);
  --nav-glass-scrolled: rgba(5, 5, 7, 0.55);
  --nav-hairline: rgba(255, 255, 255, 0.04);
  --nav-hairline-scrolled: rgba(255, 255, 255, 0.08);
  --fade-edge: rgba(5, 5, 7, 0.92);
  --scrim: rgba(5, 5, 7, 0.62);
  --mascot-shadow: drop-shadow(0 12px 40px rgba(229, 0, 76, 0.28));
  --map-filter: grayscale(1) contrast(1.05) brightness(0.78);
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --navbar-height: 108px;
    --navbar-offset: 18px;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-max: 1160px;
    --container-wide: 1280px;
  }
}

/* ===== reset.css ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background-color: transparent;
  background-image: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmosphere wash — sync with css/atmosphere.css */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      155deg,
      rgba(237, 20, 88, calc(var(--atm-brand) * 0.85)) 0%,
      var(--atm-mid-a) 28%,
      var(--atm-mid-b) 52%,
      rgba(237, 20, 88, calc(var(--atm-accent) * 0.9)) 78%,
      rgba(72, 88, 140, calc(var(--atm-cool) * 0.8)) 100%
    ),
    linear-gradient(
      180deg,
      var(--atm-base-1) 0%,
      var(--atm-base-2) 42%,
      var(--atm-base-3) 100%
    ),
    linear-gradient(
      rgba(var(--atm-veil-rgb), var(--atm-veil)),
      rgba(var(--atm-veil-rgb), var(--atm-veil))
    ),
    var(--color-bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 140% 100% at 50% 35%,
    var(--atm-soft-spot),
    transparent 68%
  );
  opacity: var(--atm-mesh-opacity, 1);
  transform: none;
  contain: strict;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    opacity: calc(var(--atm-mesh-opacity, 1) * 0.9);
  }
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--focus-ring, color-mix(in srgb, var(--color-accent) 55%, transparent));
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== layout.css ===== */
.container {
  width: min(100% - var(--container-padding) * 2, var(--container-max));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - var(--container-padding) * 2, var(--container-wide));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: calc(var(--z-modal) + 1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-black);
  font-size: var(--text-sm);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress);
  width: 100%;
  height: 1.5px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent));
  box-shadow: 0 0 10px var(--color-accent-glow);
  will-change: width;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    opacity var(--duration-normal) var(--ease-out);
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.16) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  content: "";
  pointer-events: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-white);
  color: #0a0a0c; /* always dark on white CTA (both themes) */
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.btn--secondary {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--accent {
  background: linear-gradient(180deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-accent) 28%, transparent),
    var(--accent-soft-shadow),
    0 8px 22px var(--color-accent-glow);
}

.navbar__actions .btn.btn--accent,
.navbar__actions a.btn--accent {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--link {
  min-height: auto;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-link);
  font-weight: 500;
  text-shadow: var(--accent-text-shadow);
}

.btn--link::before {
  display: none;
}

.btn--sm {
  min-height: 36px;
  padding: 0 0.95rem;
  font-size: 0.8125rem;
}

.btn--sm svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before {
    transform: translateX(120%);
  }

  .btn--primary:hover {
    box-shadow: var(--shadow-md), var(--shadow-inset);
  }

  .btn--secondary:hover {
    border-color: var(--color-border-strong);
    background: rgba(255, 255, 255, 0.06);
  }

  .btn--accent:hover {
    background: linear-gradient(180deg, var(--color-accent-hover) 0%, var(--color-accent-deep) 100%);
  }

  .btn--ghost:hover,
  .btn--link:hover {
    opacity: 0.8;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-shadow: var(--accent-text-shadow);
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  content: "";
}

@media (min-width: 900px) {
  .eyebrow {
    font-size: 0.86rem; /* ~+25% vs 0.6875rem */
  }
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

/* Soft seams between homepage zones — no hard cuts */
.section::before,
.brands::before,
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(3.5rem, 9vw, 6rem);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-bg) 45%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 18%, transparent) 42%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.section > *,
.brands > *,
.footer > * {
  position: relative;
  z-index: 1;
}

/* Hero already fades out — avoid a second hard dark band on Servicii */
.hero + .section::before {
  opacity: 0.35;
  height: clamp(2.5rem, 6vw, 4rem);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--center .eyebrow::before {
  display: none;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.section-desc {
  margin-top: 1rem;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.75rem;
}

.section-cta--center {
  justify-content: center;
}

/* ===== navbar.css ===== */
/* Floating header — full-bleed glass, permanently visible */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  width: 100%;
  height: var(--navbar-height);
  border: none;
  border-radius: 0;
  background: var(--nav-glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transform: none;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.navbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--nav-hairline);
  transition: background-color var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.navbar.is-scrolled {
  background: var(--nav-glass-scrolled);
  box-shadow: none;
}

.navbar.is-scrolled::after {
  background: var(--nav-hairline-scrolled);
}

/* Never auto-hide on scroll */
.navbar.is-hidden {
  transform: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 0 var(--container-padding);
  gap: 1.25rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.navbar__logo-img {
  display: block;
  height: 83px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.navbar__logo:hover .navbar__logo-img {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .navbar__logo-img {
    height: 97px;
    max-width: 460px;
  }
}

@media (min-width: 1100px) {
  .navbar__logo-img {
    height: 110px;
    max-width: 520px;
  }
}

@media (max-width: 899px) {
  /* Keep logo size; fit theme + hamburger via padding/gap only (no translate) */
  .navbar__inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem;
    transform: none;
  }

  .navbar__logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar__logo-img {
    max-width: 100%;
  }

  .navbar__actions,
  .navbar__toggle {
    flex-shrink: 0;
  }

  .navbar__toggle {
    margin-right: 0;
  }

  .navbar__actions {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .navbar__inner {
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    gap: 0.4rem;
  }

  .navbar__logo-img {
    height: 61px;
    max-width: min(62vw, 260px);
  }
}

.navbar__nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.navbar__indicator {
  display: none;
}

.navbar__link {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
}

.navbar__link.is-active,
.navbar__link[aria-current="page"] {
  color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
  .navbar__link:hover {
    color: var(--color-text);
  }
}

.navbar__actions {
  display: none;
  align-items: center;
}

/* Phone CTA only from desktop; theme toggle stays visible on mobile */
.navbar__actions .btn {
  display: none;
}

.navbar__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
}

.navbar__toggle-icon,
.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-fast);
}

.navbar__toggle-icon {
  position: relative;
}

.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.navbar__toggle-icon::before { top: -5px; }
.navbar__toggle-icon::after { top: 5px; }

.navbar.is-open .navbar__toggle-icon {
  background: transparent;
}

.navbar.is-open .navbar__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar.is-open .navbar__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.navbar__mobile {
  position: absolute;
  top: 100%;
  left: var(--container-padding);
  right: var(--container-padding);
  display: none;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-lg);
}

.navbar.is-open .navbar__mobile {
  display: block;
}

.navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar__mobile-link {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.navbar__mobile-link:hover {
  background: var(--color-surface);
  color: var(--color-text);
}

body.navbar-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .navbar__nav {
    display: flex;
  }

  .navbar__actions .btn {
    display: inline-flex;
    order: 1;
  }

  /* Far right — mirrors logo’s left edge inset */
  .navbar__actions .theme-toggle {
    order: 2;
  }

  .navbar__actions .status-page__back {
    order: 1;
  }

  .navbar__toggle {
    display: none;
  }

  .navbar__mobile {
    display: none !important;
  }
}

/* ===== hero.css ===== */
/* Hero — brand power mark identity */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding:
    calc(var(--navbar-height) + clamp(1.5rem, 4vw, 2.75rem))
    0
    clamp(4rem, 10vw, 6.5rem);
  overflow: hidden;
}

/* Soft fade into the next section (Mai departe → Servicii) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(5rem, 14vh, 9rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--color-bg) 12%, transparent) 35%,
    color-mix(in srgb, var(--color-bg) 42%, transparent) 70%,
    color-mix(in srgb, var(--color-bg) 72%, transparent) 100%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

/* Soft orbs — soft edges via gradient (no live blur filter = cheaper paint) */
/* Soft orbs retired — page atmosphere is the uniform wash */
.hero__glow {
  display: none;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.035;
}

html[data-theme="dark"] .hero__noise {
  mix-blend-mode: overlay;
  opacity: 0.022;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero__title {
  margin: 0.65rem 0 0;
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  text-wrap: balance;
}

.hero__title-accent {
  color: var(--color-accent);
  text-shadow: var(--accent-text-shadow-strong);
}

.hero__subtitle {
  margin-top: 1.15rem;
  max-width: 30rem;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
  margin-top: 1.75rem;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 560;
  text-decoration: none;
  transition: color var(--duration-fast, 0.15s) ease;
}

.hero__rating:hover {
  color: var(--color-text);
}

.hero__rating-stars {
  color: var(--color-accent);
  text-shadow: var(--accent-text-shadow);
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  line-height: 1;
}

.hero__rating-score {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.hero__rating-meta {
  color: var(--color-text-muted);
}

.hero__open,
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__open-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 45%, transparent);
  animation: open-pulse 2.2s ease-out infinite;
}

.hero__open.is-closed .hero__open-dot {
  background: var(--color-brand);
  box-shadow: 0 0 0 0 rgba(237, 20, 88, 0.45);
  animation-name: open-pulse-closed;
}

@keyframes open-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes open-pulse-closed {
  0% { box-shadow: 0 0 0 0 rgba(237, 20, 88, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(237, 20, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 20, 88, 0); }
}


/* Mascot stage */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.hero__stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  will-change: transform;
  animation: mascot-float 6.5s ease-in-out infinite;
}

.hero__stage > * {
  grid-area: 1 / 1;
}

.hero__stage-glow {
  position: absolute;
  /* Centered on torso; wash = accent + logo ink */
  width: 76%;
  height: 76%;
  left: 5%;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-accent) 30%, transparent) 0%,
    color-mix(in srgb, var(--color-ink) 14%, transparent) 52%,
    transparent 78%
  );
  filter: blur(28px);
  pointer-events: none;
  animation: mascot-glow 5s ease-in-out infinite;
}

/* Ambient rings/sparks — accent + logo ink */
.hero__ambient {
  position: absolute;
  width: 90%;
  height: 90%;
  left: -2%;
  top: 6%;
  pointer-events: none;
  z-index: 0;
}

.hero__ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--color-accent) 52%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--color-accent) 22%, transparent);
  animation: ambient-ring 6.5s ease-in-out infinite;
}

.hero__ring--2 {
  inset: 6%;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--color-ink) 40%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-ink) 14%, transparent);
  animation-duration: 8.5s;
  animation-delay: -2.2s;
}

.hero__ring--3 {
  inset: -8%;
  border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
  animation-duration: 10s;
  animation-delay: -4s;
}

.hero__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 88%, #fff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent) 55%, transparent);
  animation: ambient-spark 4.8s ease-in-out infinite;
}

.hero__spark--1 { top: 12%; left: 18%; animation-delay: 0s; }
.hero__spark--2 {
  top: 20%;
  right: 14%;
  width: 5px;
  height: 5px;
  animation-delay: -1.2s;
  background: var(--color-ink);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-ink) 45%, transparent);
}
.hero__spark--3 {
  bottom: 18%;
  left: 14%;
  width: 4px;
  height: 4px;
  animation-delay: -2.4s;
  background: color-mix(in srgb, var(--color-ink) 75%, #fff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--color-ink) 35%, transparent);
}
.hero__spark--4 {
  bottom: 22%;
  right: 16%;
  animation-delay: -3.5s;
  background: color-mix(in srgb, var(--color-accent) 85%, transparent);
}

.hero__bubble {
  position: absolute;
  top: 8%;
  right: 20%;
  z-index: 2;
  padding: 0.78rem 1.25rem 0.88rem;
  border-radius: 1.25rem 1.25rem 1.25rem 0.4rem;
  background: #fff;
  color: #002c59; /* readable on white bubble in both themes */
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(229, 0, 76, 0.14);
  animation: bubble-pop 5.5s ease-in-out infinite;
  transform-origin: 15% 110%;
}

.hero__bubble::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 3px 3px 0 -1px rgba(229, 0, 76, 0.08);
}

.hero__bubble-text {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-mascot);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero__bubble-text strong {
  font-weight: 800;
}

.hero__mascot {
  position: relative;
  z-index: 1;
  width: min(82%, 360px);
  height: auto;
  overflow: visible;
}

.hero__mascot-body {
  filter: var(--mascot-shadow);
}

.hero__fill-brand {
  fill: #ed1458;
}

.hero__fill-white {
  fill: #fff;
  fill-rule: evenodd;
}

.hero__fill-ink {
  fill: var(--mascot-ink, #002c59);
  fill-rule: evenodd;
}

/* Natural blink: quick eyelid close via scaleY (body shows through) */
.hero__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-blink 5.6s linear infinite;
}

.hero__eyes path {
  fill: #fff;
}

/* Left hand (pointing) moves; right hand stays in original pose */
.hero__arm--point {
  transform-box: view-box;
  transform-origin: 42px 48px;
  animation: mascot-wave 2.8s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mascot-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Double blink mid-cycle, then a single blink — rest open */
@keyframes mascot-blink {
  0%, 36%, 42%, 48%, 78%, 84%, 100% { transform: scaleY(1); }
  38%, 46% { transform: scaleY(0.06); }
  40%, 44% { transform: scaleY(1); }
  80%, 82% { transform: scaleY(0.06); }
}

@keyframes mascot-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(6deg); }
}

@keyframes ambient-ring {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ambient-spark {
  0%, 100% { transform: translateY(0) scale(0.65); opacity: 0.35; }
  50% { transform: translateY(-12px) scale(1.15); opacity: 1; }
}

@keyframes bubble-pop {
  0%, 8%, 78%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  12% { transform: scale(1.05) translateY(-2px); }
  82% { transform: scale(0.97) translateY(2px); opacity: 0.95; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: float-y 2s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .hero__scroll-hint:hover {
    color: var(--color-text-secondary);
  }
}

/* Mobile / tablet: fit entire hero (copy + mascot) in one viewport */
@media (max-width: 959px) {
  .hero {
    /* svh = toolbars visible — avoids mascot cut by Safari chrome */
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: calc(var(--navbar-height) + 0.55rem);
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero__layout {
    flex: 1 1 auto;
    min-height: 0;
    /* Same horizontal inset as every other .container on the page */
    width: min(100% - var(--container-padding) * 2, var(--container-max));
    margin-inline: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(0.45rem, 1.5vh, 1rem);
    align-items: stretch;
    align-content: start;
  }

  .hero__content {
    flex-shrink: 0;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(1.85rem, 7.2vw, 2.65rem);
    margin-top: 0.35rem;
  }

  .hero__subtitle {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .hero__actions {
    margin-top: 1rem;
  }

  .hero__trust {
    margin-top: 0.85rem;
  }

  .hero__visual {
    position: relative;
    z-index: 3; /* above bottom fade — full graphic on top */
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.15rem 0 0.35rem;
    overflow: visible;
    container-type: size;
    container-name: hero-visual;
  }

  .hero__stage {
    /* Leave a little air so rings/legs aren't flush-clipped */
    width: min(94cqw, 90cqh, 340px);
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
  }

  @supports not (width: 1cqw) {
    .hero__stage {
      width: min(82vw, 38svh, 340px);
      max-height: min(38svh, 100%);
    }
  }

  .hero__mascot {
    width: min(80%, 300px);
    max-height: 100%;
  }

  .hero__bubble {
    top: 4%;
    right: 14%;
    transform: scale(0.92);
    transform-origin: top right;
  }

  .hero::after {
    z-index: 1;
    height: clamp(2rem, 6vh, 4rem);
  }

  .hero__scroll-hint {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }

  .hero__visual {
    min-height: 480px;
    justify-content: flex-end;
  }

  .hero__stage {
    width: min(100%, 460px);
  }

  .hero__mascot {
    width: min(86%, 400px);
  }

  .hero__scroll-hint {
    display: inline-flex;
  }
}

/* Pause mascot/ambient while estimator is open — frees CPU/GPU */
html:has(#modal-estimator[open]) .hero__visual,
html:has(#modal-estimator[open]) .hero__visual * {
  animation-play-state: paused !important;
}

html:has(#modal-estimator[open]) .hero__stage {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    opacity: calc(var(--atm-mesh-opacity, 1) * 0.85);
  }

  .hero__stage,
  .hero__stage-glow,
  .hero__eyes,
  .hero__arm--point,
  .hero__ring,
  .hero__spark,
  .hero__bubble,
  .hero__scroll-hint svg,
  .hero__open-dot {
    animation: none;
  }
}

/* ===== theme-toggle.css ===== */
/* Theme toggle — sun / moon; desktop: far right of header */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* Show moon when light (click → dark); sun when dark (click → light) */
.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-top__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Dual logo: Poz (light) / tr (dark) */
.navbar__logo-picture--dark,
.footer__logo-picture--dark {
  display: none;
}

.navbar__logo-picture--light,
.footer__logo-picture--light {
  display: block;
}

html[data-theme="dark"] .navbar__logo-picture--light,
html[data-theme="dark"] .footer__logo-picture--light {
  display: none;
}

html[data-theme="dark"] .navbar__logo-picture--dark,
html[data-theme="dark"] .footer__logo-picture--dark {
  display: block;
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* Accent contrast — stronger stroke/shadow on all orange UI (light only via tokens) */
.hero__title-accent {
  text-shadow: var(--accent-text-shadow-strong);
}

.eyebrow,
.btn--link,
.hero__rating-stars,
.reviews__stars,
.seo-eyebrow,
.seo-crumbs a:hover,
.contact__item-cta,
.contact__item-label,
.legal-top a,
.status__label,
.status__metric-value,
.status__chip,
.modal__step.is-active,
.estimator__label,
.faq__item[open] .faq__question,
a:where(.footer__link):hover {
  text-shadow: var(--accent-text-shadow);
}

.hero__trust-item svg,
.faq__icon,
.faq__icon svg,
.status__benefit svg,
.status__note svg,
.status__metric-icon svg,
.status__qr-icon svg,
.contact__map-pin svg,
.contact__map-action svg,
.contact__item-cta svg,
.modal__close svg,
.btn--link svg {
  filter: var(--accent-icon-shadow);
}

