/* ─── Author = Daniel Nikolov ─── */

/* ═══════════════════════════════════════════════════════════
   НИКО-М-66 | Global Stylesheet — Industrial / Steelworks system
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Steel / navy family — primary */
  --navy:        #1C3A5C;
  --navy-deep:   #142B45;
  --steel:       #2C5F8A;
  --steel-light: #8FB4D6;
  --steel-pale:  #EAF0F4;

  /* Accent blue — used for calls to action and accent stripes (previously red) */
  --red:       #1567C4;
  --red-light: #2E8AE6;

  /* Neutrals */
  --white:    #FFFFFF;
  --gray-50:  #F5F7F8;
  --gray-100: #EEF0F2;
  --gray-200: #DCE2E7;
  --gray-400: #8B94A0;
  --gray-600: #525C66;
  --gray-800: #1A2126;

  /* Aliases kept for backward compatibility with page-level styles */
  --blue: var(--steel);
  --blue-dark: var(--navy);
  --blue-pale: var(--steel-pale);

  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-sans:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --font-serif: var(--font-display); /* legacy alias used in page styles */

  --max-w: 1200px;
  --section-pad: 104px 7%;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--navy); color: var(--white); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); color: var(--gray-800); }
h1 em { font-style: normal; color: inherit; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--gray-800); margin-bottom: 1rem; }
h2 span { color: inherit; }
h3 { font-size: 1.1rem; color: var(--gray-800); letter-spacing: 0.02em; }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--red); flex-shrink: 0; }

/* ─── BUTTONS ─── */
.btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 14px 28px; border-radius: 2px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s; width: fit-content;
}
.btn-red:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-red svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-blue-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; color: var(--gray-800);
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 13px 26px; border-radius: 2px; border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: all 0.2s;
}
.btn-blue-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ─── NAV: two-tier transparent glass header, consistent on every page ─── */
.nav-utility {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 34px;
  background: rgba(10,25,48,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.nav-utility.nav-hidden { transform: translateY(-40px); }
.nav-utility-inner {
  height: 100%; padding: 0 7%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-utility-left { display: flex; align-items: center; gap: 22px; }
.nav-utility-left a {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s;
}
.nav-utility-left a:hover { color: var(--white); }
.nav-utility-right { display: flex; align-items: center; gap: 20px; }
.nav-utility-download {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s;
}
.nav-utility-download svg { width: 13px; height: 13px; }
.nav-utility-download:hover { color: var(--white); }

nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 100;
  background: none;
  border-bottom: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7%; height: 68px;
  transition: transform 0.3s ease;
}
nav.nav-hidden { transform: translateY(-110px); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: var(--white);
  text-decoration: none; letter-spacing: 0.02em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-logo-img { height: 30px; width: auto; display: block; }
.logo-66 { color: inherit; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.75);
  text-decoration: none; letter-spacing: 0.09em; text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 22px; padding-top: 22px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); border-bottom-color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; gap: 3px; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 9px; border-radius: 2px;
  cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; font-family: var(--font-mono);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--white); border-color: var(--white); color: var(--navy);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ─── HOME HERO (full-bleed, image + overlay, Semperit-style) ─── */
#hero {
  position: relative;
  padding-top: 102px;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  background: var(--navy-deep);
}
.hero-right { position: absolute; inset: 0; z-index: 0; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; }
.hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,43,69,0.32) 0%, rgba(20,43,69,0.14) 30%, rgba(20,43,69,1) 100%),
              linear-gradient(90deg, rgba(20,43,69,0.6) 0%, rgba(20,43,69,0.02) 55%);
}
.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 7% 0; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; color: var(--steel-light);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0; border-radius: 0;
  margin-bottom: 1.6rem; width: fit-content;
}
.hero-badge::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.hero-left h1 { margin-bottom: 1.3rem; color: var(--white); }
.hero-left h1 em { color: inherit; }
.hero-sub { font-size: 1.02rem; color: rgba(255,255,255,0.72); font-weight: 300; max-width: 460px; margin-bottom: 2.4rem; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-btns .btn-blue-outline { color: var(--white); border-color: rgba(255,255,255,0.3); }
.hero-btns .btn-blue-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.hero-right-bar {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,43,69,0.5);
  display: grid; grid-template-columns: repeat(3,1fr);
  backdrop-filter: blur(6px);
}
.hero-stat { padding: 22px 7%; text-align: left; border-right: 1px solid rgba(255,255,255,0.12); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--white); line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-family: var(--font-mono); font-size: 0.66rem; color: rgba(255,255,255,0.55); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── ABOUT STRIP ─── */
#about-strip { padding: var(--section-pad); background: var(--white); position: relative; }
#about-strip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg,
    rgba(20,43,69,1) 0%,
    rgba(20,43,69,0.7) 35%,
    rgba(20,43,69,0.35) 65%,
    rgba(20,43,69,0.08) 88%,
    rgba(20,43,69,0) 100%);
  pointer-events: none;
}
.about-strip-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: center;
}
.about-body p { color: var(--gray-600); font-size: 0.96rem; margin-bottom: 1rem; }
.about-values { margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value-chip {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-left: 3px solid var(--steel);
  padding: 12px 16px; border-radius: 0;
  font-size: 0.82rem; font-weight: 500; color: var(--gray-800);
  align-items: center; gap: 10px;
}
.value-chip::before { content: none; }
.about-cta { margin-top: 1.8rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.about-cta a {
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--navy); font-weight: 700;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em;
}
.about-cta a:hover { color: var(--red); }

.about-photo-wrap { position: relative; }
.about-photo-wrap img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 0; display: block; }
.about-year-tag {
  position: absolute; top: 0; left: -1px;
  background: var(--navy); border: none; color: var(--white);
  box-shadow: 0 10px 26px rgba(20,43,69,0.25); padding: 14px 18px; text-align: center;
}
.about-year-tag strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--white); line-height: 1; }
.about-year-tag span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--steel-light); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── SERVICES STRIP ─── */
#services-strip { background: var(--gray-50); padding: var(--section-pad); }
.services-strip-inner { max-width: var(--max-w); margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200); border-top: 3px solid var(--navy);
  border-radius: 0; padding: 1.7rem; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.service-card:hover { box-shadow: 0 14px 30px rgba(16,36,62,0.1); transform: translateY(-3px); border-top-color: var(--red); }
.service-icon {
  width: 44px; height: 44px; background: var(--steel-pale);
  border-radius: 0; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--steel); }
.service-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.84rem; color: var(--gray-600); line-height: 1.6; text-transform: none; }

/* ─── AWARDS STRIP ─── */
#awards { background: var(--white); padding: var(--section-pad); position: relative; }
.awards-inner { max-width: var(--max-w); margin: 0 auto; }
#awards .eyebrow { color: var(--steel); }
#awards h2 { color: #000000; }
#awards h2 span { color: inherit; }
.awards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 2.5rem; }
.award-card {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 0; padding: 1.5rem;
}
.award-year { font-family: var(--font-mono); font-weight: 500; font-size: 1.3rem; color: #000000; display: block; margin-bottom: 0.5rem; }
.award-card h4 { font-family: var(--font-sans); font-size: 0.86rem; font-weight: 600; color: #000000; margin-bottom: 0.4rem; text-transform: none; letter-spacing: 0; }
.award-card p { font-size: 0.8rem; color: #000000; line-height: 1.55; }

/* ─── FOOTER ─── */
footer { background: var(--navy-deep); border-top: none; position: relative; }
.footer-top {
  max-width: var(--max-w); margin: 0 auto; padding: 60px 7% 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
.footer-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 0.9rem; text-transform: uppercase; }
.footer-logo-img { height: 28px; width: auto; display: block; }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 220px; text-transform: none; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.84rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item { font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.footer-contact-item a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 7%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; align-items: center; gap: 18px; }
.footer-legal a, .footer-legal button {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.72rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--white); }

/* ─── CRITICAL LANGUAGE SEPARATION ENGINE ─── */
[data-lang="en"] { display: none !important; }
[data-lang="bg"] { display: block !important; }
[data-lang="bg"].inl { display: inline-block !important; }

.value-chip[data-lang="bg"] { display: flex !important; }

body.lang-en [data-lang="bg"] { display: none !important; }
body.lang-en [data-lang="en"] { display: block !important; }
body.lang-en [data-lang="en"].inl { display: inline-block !important; }
body.lang-en .value-chip[data-lang="en"] { display: flex !important; }

/* ─── UTILITY ─── */
.section-head { margin-bottom: 3rem; }
.section-head p { color: var(--gray-600); font-size: 0.95rem; max-width: 540px; margin-top: 0.5rem; text-transform: none; }
.centered { text-align: center; }
.centered p { margin-left: auto; margin-right: auto; }
.centered .eyebrow { justify-content: center; }

/* ─── PAGE HERO MEDIA (photographic, fades into page — used on inner pages) ─── */
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,43,69,0.82) 0%, rgba(20,43,69,0.6) 45%, var(--gray-50) 96%);
}
.page-hero-inner { position: relative; z-index: 1; }

/* ─── MOBILE RESPONSIVENESS ─── */
@media (max-width: 960px) {
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: fixed; top: 102px; left: 0; right: 0;
    background: var(--navy); padding: 2rem 7%;
    border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 99;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 0; }
  #hero { min-height: auto; padding-bottom: 0; }
  .hero-left { padding: 130px 7% 0; }
  .nav-utility-left { display: none; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap { width: 100%; max-width: 500px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .band-sep { display: none; }
  .hero-stat { padding: 18px 5%; }
}
@media (max-width: 580px) {
  :root { --section-pad: 64px 5%; }
  .about-values { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-right-bar { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero-stat:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   MOTION SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Hamburger morphs into an X when the mobile menu is open */
.hamburger span { transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Press feedback on the controls people click most */
.btn-red, .btn-blue-outline, .nav-cta {
  transition: background 0.2s ease, transform 0.15s ease-out, color 0.2s ease, border-color 0.2s ease;
}
.btn-red:active, .btn-blue-outline:active, .nav-cta:active { transform: scale(0.96); }

.lang-btn, .hamburger {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease-out;
}
.lang-btn:active { transform: scale(0.94); }

/* Scroll-reveal: fade + rise, applied by nav.js to card/section elements site-wide */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1), transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* Homepage hero: staggered entrance on load (plays once, above the fold) */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge, .hero-left h1, .hero-sub, .hero-btns, .hero-right-bar {
  animation: heroRise 0.7s cubic-bezier(0.23,1,0.32,1) both;
}
.hero-badge  { animation-delay: 0.05s; }
.hero-left h1 { animation-delay: 0.15s; }
.hero-sub    { animation-delay: 0.28s; }
.hero-btns   { animation-delay: 0.4s; }
.hero-right-bar { animation-delay: 0.5s; }

/* Respect reduced-motion preferences: keep feedback, drop the rest */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { transition: opacity 0.3s ease; transform: none; }
  .hero-badge, .hero-left h1, .hero-sub, .hero-btns, .hero-right-bar {
    animation: none; opacity: 1; transform: none;
  }
  .btn-red:active, .btn-blue-outline:active, .nav-cta:active,
  .lang-btn:active { transform: none; }
}

/* ─── Accessibility: skip link + visible keyboard focus ─── */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  background: var(--white); color: var(--navy);
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  padding: 12px 18px; border-radius: 2px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--steel-light);
  outline-offset: 2px;
}

/* ─── Cookie consent banner ─── */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 998;
  max-width: 560px; margin: 0 auto;
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  transform: translateY(140%); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text { color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner-actions button {
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 10px 18px; border-radius: 2px; cursor: pointer;
  transition: background 0.2s, transform 0.15s ease-out;
}
.cookie-decline { background: none; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); }
.cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cookie-accept { background: var(--red); border: none; color: var(--white); }
.cookie-accept:hover { background: var(--red-light); }
.cookie-banner-actions button:active { transform: scale(0.96); }

/* ─── Back to top ─── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 2px;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); }
.back-to-top:active { transform: scale(0.94); }
.back-to-top svg { width: 18px; height: 18px; }
/* Clears the cookie banner on phone-width screens so the two never overlap */
.back-to-top.above-banner { bottom: 150px; }
@media (min-width: 601px) {
  .back-to-top.above-banner { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .back-to-top { transition: opacity 0.2s ease; }
}

/* ─── Shared hero → next-section fade, used on every inner page ─── */
.hero-fade-in { position: relative; }
.hero-fade-in::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg,
    rgba(20,43,69,1) 0%,
    rgba(20,43,69,0.7) 35%,
    rgba(20,43,69,0.35) 65%,
    rgba(20,43,69,0.08) 88%,
    rgba(20,43,69,0) 100%);
  pointer-events: none;
}