/* ========================================
   ZAFERSA - MAIN STYLESHEET v3
   Corporate Light Edition (SAP / Bosch)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=Barlow+Condensed:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* === BRAND YELLOW (logo) === */
  --yellow:        #F5A300;      /* signature amber-yellow */
  --yellow-bright: #FFB81C;
  --yellow-dark:   #C78400;
  --yellow-soft:   rgba(245,163,0,0.10);
  --yellow-line:   rgba(245,163,0,0.32);

  /* Backward-compat orange alias → maps to brand yellow */
  --orange:        #F5A300;
  --orange-dark:   #C78400;
  --orange-light:  #FFB81C;
  --orange-soft:   rgba(245,163,0,0.10);
  --orange-line:   rgba(245,163,0,0.32);

  /* === INK is now the primary TEXT color (white in dark mode).
        For "text on yellow", use --on-yellow.  === */
  --ink:           #FFFFFF;
  --ink-2:         #EAEAEA;
  --ink-3:         #B8B8B8;
  --on-yellow:     #0A0A0A;

  /* === DARK SURFACES (now primary) === */
  --bg:            #0A0A0A;      /* page background — near black */
  --bg-alt:        #141414;      /* panel */
  --bg-mute:       #1A1A1A;      /* deeper panel */
  --bg-deep:       #000000;      /* true black hero & footer */
  --bg-elev:       #1F1F1F;      /* elevated card */

  /* === TEXT (white-on-dark) === */
  --text:          #FFFFFF;
  --text-soft:     #C8CCD3;
  --text-mute:     #8A8F98;
  --text-faint:    #555A63;

  /* === LINES (subtle on dark) === */
  --line:          #262626;
  --line-soft:     #1A1A1A;
  --line-strong:   #3A3A3A;

  /* Backward compatibility aliases (other page CSS keeps working) */
  --dark:          #0A0A0A;
  --dark-2:        #141414;
  --dark-3:        #1A1A1A;
  --dark-4:        #1F1F1F;
  --steel:         #1F1F1F;
  --gray:          #3A3A3A;
  --gray-mid:      #8A8F98;
  --gray-light:    #C8CCD3;
  --gray-pale:     #555A63;
  --white:         #FFFFFF;
  --white-dim:     rgba(255,255,255,0.04);
  --white-border:  rgba(255,255,255,0.10);
  --orange-dim:    rgba(245,163,0,0.10);
  --orange-border: rgba(245,163,0,0.32);

  --font-display:   'Barlow Condensed', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Barlow', sans-serif;

  --nav-h:         108px;
  --section-pad:   96px;
  --container:     1280px;
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "kern";
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: var(--font-body); background: none; color: inherit; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

::selection { background: var(--yellow); color: var(--on-yellow); }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 56px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 56px;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.94);
  border-bottom-color: rgba(245,163,0,0.18);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 8px 28px -14px rgba(0,0,0,0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 6px 0;
}

.nav-logo img {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s var(--ease), filter 0.3s;
}

.nav-logo:hover img { transform: scale(1.03); }

/* Legacy brand-text (hidden when full logo is used) */
.brand-text { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-soft);
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: #FFFFFF; }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: 0;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 24px -8px rgba(245,163,0,0.45);
}

.nav-links .nav-cta::after { display: none; }

.nav-links .nav-cta:hover {
  background: #FFFFFF;
  color: var(--on-yellow);
  box-shadow: 0 8px 28px -8px rgba(255,255,255,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #FFFFFF;
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  font-family: var(--font-condensed);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--orange); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
  white-space: nowrap;
}

.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
  box-shadow: 0 8px 28px -10px rgba(245,163,0,0.6);
}
.btn-primary:hover {
  background: #FFFFFF;
  color: var(--on-yellow);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -10px rgba(255,255,255,0.35);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--on-yellow);
}

.btn-dark {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
}
.btn-dark:hover {
  background: #FFFFFF;
  color: var(--on-yellow);
  border-color: #FFFFFF;
}

/* Variant used over dark surfaces (CTA section) */
.btn-on-dark {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
}
.btn-on-dark:hover {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
}

/* ========================================
   SECTION TYPOGRAPHY
   ======================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-condensed);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 18px;
  text-transform: none;
}

.section-title span {
  color: var(--ink);
  font-weight: 400;
  display: block;
  position: relative;
}

.section-title span::before {
  content: '';
  display: inline-block;
  width: 28px; height: 3px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 560px;
}

/* ========================================
   REVEAL ANIMATIONS v3
   Multiple directions + stagger + cinematic feel
   ======================================== */
.reveal,
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-blur,
.reveal-mask,
.reveal-clip {
  opacity: 0;
  will-change: transform, opacity, filter, clip-path;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.7s var(--ease-out),
    clip-path 1s var(--ease-out);
}

.reveal,
.reveal-up { transform: translateY(40px); }

.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.88); }
.reveal-blur { transform: translateY(20px); filter: blur(14px); }

.reveal-mask {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  transform: none;
}

.reveal-clip {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: none;
}

.reveal.visible,
.reveal-up.visible,
.reveal-down.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.reveal-blur.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal-mask.visible { clip-path: inset(0 0 0 0); }
.reveal-clip.visible { clip-path: inset(0 0 0 0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---- STAGGERED CHILDREN ---- */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s var(--ease-out) var(--stagger-delay, 0ms),
    transform 0.85s var(--ease-out) var(--stagger-delay, 0ms);
  will-change: transform, opacity;
}

[data-stagger].visible > * {
  opacity: 1;
  transform: none;
}

[data-stagger="scale"] > * { transform: scale(0.9) translateY(24px); }
[data-stagger="scale"].visible > * { transform: scale(1) translateY(0); }

[data-stagger="left"] > * { transform: translateX(-50px); }
[data-stagger="left"].visible > * { transform: translateX(0); }

[data-stagger="right"] > * { transform: translateX(50px); }
[data-stagger="right"].visible > * { transform: translateX(0); }

[data-stagger="blur"] > * { transform: translateY(20px); filter: blur(10px); }
[data-stagger="blur"].visible > * { transform: none; filter: blur(0); transition: opacity 0.7s var(--ease-out) var(--stagger-delay,0ms), transform 0.7s var(--ease-out) var(--stagger-delay,0ms), filter 0.6s var(--ease-out) var(--stagger-delay,0ms); }

/* ========================================
   PAGE TRANSITION — sliding curtain (exit only)
   ======================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  display: none;
}

.page-transition.exit { display: block; }

.page-transition-panel {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  transform: translateY(100%);
}

.page-transition-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 80px,
      rgba(255,255,255,0.035) 80px, rgba(255,255,255,0.035) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 80px,
      rgba(255,255,255,0.035) 80px, rgba(255,255,255,0.035) 81px
    );
  opacity: 0.5;
}

.page-transition-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.page-transition-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #FFFFFF;
  z-index: 1;
  opacity: 0;
}

.page-transition-text .ptt-line {
  font-family: var(--font-condensed);
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1;
  transform: translateY(30px);
  opacity: 0;
}

.page-transition-text .ptt-sub {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--yellow);
  padding-left: 50px;
  position: relative;
  transform: translateY(15px);
  opacity: 0;
}

.page-transition-text .ptt-sub::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 36px; height: 1px;
  background: var(--orange);
}

.page-transition-text .ptt-sub:empty { display: none; }

.page-transition.exit .page-transition-panel {
  animation: curtainExit 0.65s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}
.page-transition.exit .page-transition-panel::after {
  animation: barProgress 0.65s linear forwards;
}
.page-transition.exit .page-transition-text {
  opacity: 1;
}
.page-transition.exit .ptt-line {
  animation: pttIn 0.5s var(--ease-out) 0.25s forwards;
}
.page-transition.exit .ptt-sub {
  animation: pttIn 0.45s var(--ease-out) 0.35s forwards;
}

@keyframes curtainExit {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes barProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes pttIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- PAGE ENTRANCE (gentle fade-in; no transform on body to keep fixed nav stable) ---- */
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageEnter 0.5s var(--ease-out) both;
}

/* ---- HERO IMAGE INTRO (used by home + interior pages) ---- */
@keyframes heroImgIn {
  from { transform: scale(1.12); opacity: 0; filter: blur(8px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}

/* ========================================
   FLUID IMAGE LOADING
   Smooth fade-in + slight scale/blur when each <img> finishes decoding.
   JS adds .img-loaded once the asset is ready (see main.js).
   Opt-out: add data-no-fade to skip.
   ======================================== */
img:not([data-no-fade]) {
  opacity: 0;
  transform: scale(1.015);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.7s var(--ease-out);
  will-change: opacity, transform, filter;
}
img.img-loaded:not([data-no-fade]) {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  img:not([data-no-fade]) {
    transition: opacity 0.25s linear;
    transform: none;
    filter: none;
  }
}

/* ========================================
   FIXED PAGE BACKGROUND STACK
   Scroll-triggered image cross-fade behind sections
   ======================================== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.page-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.6s var(--ease-out),
    transform 14s linear,
    filter 1.5s var(--ease-out);
  filter: saturate(1.05) brightness(1);
  will-change: opacity, transform;
}

.page-bg-img.active {
  opacity: 1;
  transform: scale(1);
}

/* Subtle Ken Burns when active */
.page-bg-img.active.zoom {
  transform: scale(1.06);
}

/* Veil that softens the bg under content sections (now dark) */
.page-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10,10,10,0.70) 0%,
      rgba(10,10,10,0.88) 35%,
      rgba(10,10,10,0.92) 65%,
      rgba(10,10,10,0.86) 100%
    );
  transition: background 1s var(--ease-out);
}

.page-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 100px,
      rgba(245,163,0,0.035) 100px, rgba(245,163,0,0.035) 101px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 100px,
      rgba(245,163,0,0.035) 100px, rgba(245,163,0,0.035) 101px
    );
}

/* Color-tinted veil variants — set via JS based on active step */
.page-bg[data-tone="warm"] .page-bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(20,12,0,0.70) 0%,
      rgba(20,12,0,0.88) 50%,
      rgba(10,10,10,0.88) 100%
    );
}
.page-bg[data-tone="cool"] .page-bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(0,8,20,0.72) 0%,
      rgba(0,8,20,0.90) 50%,
      rgba(10,10,10,0.88) 100%
    );
}
.page-bg[data-tone="deep"] .page-bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.92) 50%,
      rgba(0,0,0,0.85) 100%
    );
}

/* Body becomes transparent so the fixed bg shows where sections allow it */
body.has-page-bg {
  background: transparent;
}

/* ========================================
   FROSTED / TRANSPARENT SECTION VARIANT
   Use class="surface-glass" on a section to let bg show through
   ======================================== */
.surface-glass {
  background: rgba(20,20,20,0.62) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
  color: #FFFFFF;
}

.surface-glass-deep {
  background: rgba(0,0,0,0.78) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: #FFFFFF;
  position: relative;
}

.surface-glass .section-title,
.surface-glass .section-title span,
.surface-glass-deep .section-title,
.surface-glass-deep .section-title span { color: #FFFFFF; }
.surface-glass .section-desc,
.surface-glass-deep .section-desc { color: rgba(255,255,255,0.72); }
.surface-glass-deep .section-tag,
.surface-glass .section-tag { color: var(--yellow-bright); }

/* ========================================
   IMAGE COMPONENT TRANSITIONS
   Hover color shifts + Ken Burns
   ======================================== */
@keyframes kenBurnsSlow {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.kb-img {
  animation: kenBurnsSlow 18s ease-in-out infinite;
}

/* Color-cycling overlay for image components */
@keyframes colorPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,146,10,0); }
  50%  { box-shadow: 0 0 0 12px rgba(232,146,10,0.08); }
  100% { box-shadow: 0 0 0 0 rgba(232,146,10,0); }
}

/* Common image transition behavior */
img.fx,
.video-frame img,
.why-img-wrap img,
.gallery-item img,
.about-img-main {
  transition:
    transform 1.2s var(--ease-out),
    filter 0.7s var(--ease-out);
  filter: saturate(0.95) brightness(0.98) contrast(1.02);
}

.video-frame:hover img,
.why-img-wrap:hover img,
.gallery-item:hover img,
.about-image-side:hover .about-img-main {
  filter: saturate(1.15) brightness(1.04) contrast(1.05);
  transform: scale(1.05);
}

/* Image color sweep overlay (orange wash that slides across on hover) */
.img-sweep {
  position: relative;
  overflow: hidden;
}
.img-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(232,146,10,0.25) 50%, transparent 60%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}
.img-sweep:hover::before {
  transform: translateX(100%);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1001;
  transition: transform 0.1s linear;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-down, .reveal-left, .reveal-right,
  .reveal-scale, .reveal-blur, .reveal-mask, .reveal-clip,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .page-transition { display: none !important; }
}

/* ========================================
   FOOTER (deep corporate)
   ======================================== */
.footer {
  background: var(--bg-deep);
  color: #B6BFCB;
  padding: 80px 0 0;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.98;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.25s;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,146,10,0.08);
}

.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s, padding 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '\203A';
  color: var(--orange);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.footer-col ul li a:hover { color: #FFFFFF; }
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item svg { color: var(--orange); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 20px;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.4);
  text-transform: none;
}

.footer-bottom .social-links p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-mute);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb svg { color: var(--text-faint); }

.breadcrumb span { color: var(--orange-dark); font-weight: 600; }

.surface-deep .breadcrumb { color: rgba(255,255,255,0.6); }
.surface-deep .breadcrumb a { color: rgba(255,255,255,0.6); }
.surface-deep .breadcrumb a:hover { color: #FFFFFF; }
.surface-deep .breadcrumb span { color: var(--orange-light); }

/* ========================================
   UTILITY: dark section over light page
   ======================================== */
.surface-deep {
  background: var(--bg-deep);
  color: #FFFFFF;
}
.surface-deep .section-tag { color: var(--orange-light); }
.surface-deep .section-title,
.surface-deep .section-title span { color: #FFFFFF; }
.surface-deep .section-desc { color: rgba(255,255,255,0.72); }

/* ========================================
   BASES / SUCURSALES
   Reusable block for branch offices
   ======================================== */
.bases-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.bases-section.is-dark { background: var(--bg-deep); }
.bases-section.is-alt  { background: var(--bg-alt); }

.bases-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.bases-head .section-tag { justify-content: center; }
.bases-head h2 {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--ink);
  margin: 14px 0 16px;
  text-transform: uppercase;
}
.bases-head h2 span { color: var(--orange); }
.bases-head p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

.bases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.base-card {
  background: var(--bg-alt);
  padding: 32px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border-top: 3px solid transparent;
}
.base-card:hover {
  background: var(--bg-mute);
  border-top-color: var(--orange);
  transform: translateY(-2px);
}

.base-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.base-pin {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--orange-border);
}
.base-card h3 {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
.base-card h3 small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--orange-light);
  margin-top: 4px;
}

.base-address {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}

.base-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ink);
  text-decoration: none;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  transition: color 0.2s;
}
.base-phone:hover { color: var(--orange); }
.base-phone svg { color: var(--orange); flex-shrink: 0; }

@media (max-width: 1024px) {
  .bases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bases-grid { grid-template-columns: 1fr; }
  .bases-section { padding: 70px 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .container { padding: 0 36px; }
  .navbar { padding: 0 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 22px; }
  .navbar { padding: 0 22px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
