/* ============================================================================
   Beli Drim 2014 DOO — mobile-first stylesheet
   Base styles target phones; min-width media queries enhance for larger screens.
   ========================================================================== */

/* ----------  Design tokens  ---------- */
:root {
  --blue: #0a5fb0;
  --blue-700: #084a8a;
  --blue-50: #eaf2fb;
  --navy: #0d2440;
  --navy-700: #0a1c33;
  --ink: #1f2a37;
  --body: #4b5563;
  --muted: #5d636e;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --accent: #f4a51c;
  --accent-700: #d98a0a;
  --line: #e5e9f0;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(13, 36, 64, 0.08);
  --shadow: 0 8px 24px rgba(13, 36, 64, 0.1);
  --shadow-lg: 0 18px 50px rgba(13, 36, 64, 0.18);

  --container: 1200px;
  --header-h: 64px;
  --font: 'Kumbh Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

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

/* <picture> is only a format-selection wrapper — let its <img> lay out exactly
   as if the picture weren't there, so existing image rules keep working. */
picture {
  display: contents;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--body);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
/* On the navy navbar / footer / hero / CTA, accent has the contrast blue lacks. */
.navbar :focus-visible,
.footer :focus-visible,
.page-hero :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--accent);
}

/* Visually hidden, but available to screen readers and crawlers. */
.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-to-content link: off-screen until keyboard-focused. */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
}

/* ----------  Layout helpers  ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

/* Gallery page only (the single page that has a .slider): tighter hero and a
   smaller gap above the carousel so it is visible without scrolling. */
main:has(.slider) .page-hero {
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 1.5rem;
}
main:has(.slider) .section {
  padding-top: 1rem;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--navy);
}
.btn--accent:hover {
  background: var(--accent-700);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-700);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  background: var(--blue-50);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--block {
  width: 100%;
}

/* ============================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Before scrolling, the transparent navbar overlays the hero photo. A subtle
   top scrim guarantees the links stay legible over any part of the image; it
   fades out once the bar turns solid. */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(13, 36, 64, 0.55),
    rgba(13, 36, 64, 0)
  );
  transition: opacity 0.3s ease;
}
.navbar.is-scrolled::before,
.navbar.is-menu-open::before {
  opacity: 0;
}

/* Solid state — when scrolled past the hero, or while the mobile menu is open */
.navbar.is-scrolled,
.navbar.is-menu-open {
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

/* The navbar is dark-themed in every state, so the logo is always white. */
.navbar__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}
/* Hover: tint just the logo to the accent gold (filter only affects the image,
   not the navbar background). */
.navbar__logo:hover img,
.navbar__logo:focus-visible img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(53%) saturate(1015%)
    hue-rotate(351deg) brightness(99%) contrast(94%);
}

.navbar__container {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar__toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar__toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu: slide-down panel below the header */
.navbar__menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h)); /* fallback for browsers without dvh */
  height: calc(100dvh - var(--header-h));
  background: var(--navy);
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.navbar__menu.is-open {
  transform: translateX(0);
}

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

.navbar__link {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar__link.is-active {
  color: var(--accent);
}

.navbar__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.navbar__cta {
  width: 100%;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn.is-active {
  background: var(--white);
  color: var(--navy);
}

/* ============================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 90vh, 820px);
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(13, 36, 64, 0.7) 0%,
    rgba(13, 36, 64, 0.82) 100%
  );
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 1.25rem 3.5rem;
}

.hero__content {
  max-width: 620px;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ----------  Stats  ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.stat__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================================
   About preview (home)
   ========================================================================== */
.about-preview__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-preview__img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-preview__text h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 1rem;
}

.about-preview__text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--blue);
}
.link-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.service-card__icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

/* ============================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-700) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band__inner {
  padding: 3rem 1.25rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

/* ============================================================================
   Inner page hero (about, gallery, careers, contact)
   ========================================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem 3rem;
}

.page-hero .eyebrow {
  color: var(--accent);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 6vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================================
   About page
   ========================================================================== */
.about__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.about__text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__img img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-card__icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

/* ============================================================================
   Gallery slider
   ========================================================================== */
.slider {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slider__viewport {
  position: relative;
  width: 100%;
  /* Fallback for browsers without aspect-ratio (Safari <14.1, old Android):
     reserve a 3:4 box via padding so the slider can't collapse to zero height. */
  padding-top: 133.333%;
  /* Horizontal swipe is handled in JS; keep vertical page scroll on touch. */
  touch-action: pan-y;
  cursor: grab;
}
@supports (aspect-ratio: 1 / 1) {
  .slider__viewport {
    padding-top: 0;
    /* Most gallery photos are 3:4 portrait — match that so they fill the frame
       without cropping. The few landscape shots are cropped via object-fit. */
    aspect-ratio: 3 / 4;
  }
}
.slider__viewport:active {
  cursor: grabbing;
}

.slide {
  position: absolute;
  inset: 0;
  /* Default (pre-JS) state: every slide sits just off the right edge so only
     the first slide is visible on load/refresh. JS overrides via inline
     transform once initSlider() runs. */
  transform: translateX(100%);
  transition: transform 0.7s ease;
}

.slide:first-child {
  transform: translateX(0);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Stop the browser hijacking the swipe to drag/select the image. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border-radius: 50%;
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.slider__btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__btn:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-50%) scale(1.08);
}

.slider__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slider__btn--left {
  left: 0.9rem;
}
.slider__btn--right {
  right: 0.9rem;
}

.dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.dots__dot {
  border: none;
  background: rgba(255, 255, 255, 0.6);
  height: 0.7rem;
  width: 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dots__dot--active {
  background: var(--white);
  transform: scale(1.25);
}

/* ============================================================================
   Careers
   ========================================================================== */
.careers__grid {
  display: grid;
  gap: 2rem;
}

.positions {
  display: grid;
  gap: 0.85rem;
}

.position {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
}
.position svg {
  flex: 0 0 auto;
  color: var(--blue);
}

/* ============================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-info__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.contact-info__value {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.map {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ============================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: 1.1rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form__control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid #bcc7d8;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 95, 176, 0.15);
}
textarea.form__control {
  min-height: 130px;
  resize: vertical;
}

/* Honeypot anti-spam field — visually hidden */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form__status {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form__status.is-success {
  color: #157347;
}
.form__status.is-error {
  color: #c0392b;
}

/* ============================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
}

.footer__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  gap: 2rem;
}

.footer__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}
.footer__logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer__logo-link:hover .footer__logo,
.footer__logo-link:focus-visible .footer__logo {
  filter: brightness(0) saturate(100%) invert(73%) sepia(53%) saturate(1015%)
    hue-rotate(351deg) brightness(99%) contrast(94%);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
}

.footer__heading {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer__links li,
.footer__contact li {
  margin-bottom: 0.7rem;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer__contact svg {
  flex: 0 0 auto;
  color: var(--accent);
  margin-top: 2px;
}
.footer__contact a:hover {
  color: var(--white);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer__social:hover {
  background: var(--accent);
  color: var(--navy);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.footer__bottom p {
  margin: 0;
}
.footer__legal {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}
.footer__credit {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__credit-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
a.footer__credit-link:hover,
a.footer__credit-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

/* Wide screens: copyright sits left, author credit settles into the corner. */
@media (min-width: 600px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================================
   App-shell load fade
   Body content is server-rendered (text is pre-rendered, sections are static),
   so only the JS-injected navbar + footer pop in. We fade ONLY those two
   regions in once assembled and leave the hero/content to paint immediately
   (so the LCP element is never gated behind JS). Gated behind .is-loading
   (added by an inline <head> script, JS-only) so content always shows without
   JS, and the inline script skips it under reduced motion.
   ========================================================================== */
html.is-loading #site-header,
html.is-loading #site-footer {
  opacity: 0;
}
html.is-ready #site-header,
html.is-ready #site-footer {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ============================================================================
   Scroll reveal
   Below-the-fold blocks fade in (opacity only — no movement) as they scroll
   into view, and again each time they re-enter. Targets are tagged with
   [data-reveal] by reveal.js; the hidden state is gated behind .reveal-ready
   (added by JS) so content stays visible without JS or under reduced motion.
   Content already on screen at load is shown by the app-shell fade above, so
   nothing slides or reflows in the initial view.
   ========================================================================== */
@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Holding state for anything not currently revealed (off-screen or pre-reveal). */
.reveal-ready [data-reveal] {
  opacity: 0;
}

/* Fade in each time the element scrolls into view. `backwards` fill keeps it
   hidden through the stagger delay, then reverts to the element's own style. */
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  animation: reveal-fade 0.6s ease backwards;
  animation-delay: calc(var(--reveal-i, 0) * 90ms);
}

/* ============================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Never leave a reveal target stuck hidden if it was somehow tagged. */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================================
   Tablet — 600px and up
   ========================================================================== */
@media (min-width: 600px) {
  .section {
    padding: 4.5rem 0;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__inner {
    padding: calc(var(--header-h) + 3.5rem) 1.25rem 5rem;
  }
}

/* ============================================================================
   Desktop — 900px and up (horizontal navbar)
   ========================================================================== */
@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0;
    background: transparent;
    transform: none;
    overflow: visible;
  }

  .navbar__nav {
    flex-direction: row;
    gap: 0.5rem;
  }

  .navbar__link {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .navbar__link:hover {
    color: var(--white);
  }
  .navbar__link.is-active {
    color: var(--accent);
  }

  .navbar__actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
  }
  .navbar__cta {
    width: auto;
  }
  .lang-switch {
    align-self: center;
  }

  .section {
    padding: 5.5rem 0;
  }

  .about-preview__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
  }

  .about__img img {
    aspect-ratio: 16 / 9;
  }

  .values__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .careers__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1.2fr auto;
    gap: 2.5rem;
  }
}

/* (No 1200px overrides — the hero title clamp already caps correctly.) */
