/* ============================================================
   RenderForge - Landing Page Styles
   ============================================================ */

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

:root {
  --bg-primary: #080809;
  --bg-secondary: #1a1a1a;
  --bg-card: #141414;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #00d4ff;
  --accent-hover: #00b8e6;
  --max-width: 1200px;
  --max-width-wide: 1680px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Accent text helper ---- */
.accent-text {
  color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__logo-render {
  color: var(--text-primary);
}

.nav__logo-forge {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.nav__links a:hover {
  color: var(--accent);
}

.nav__cta {
  background: var(--accent);
  color: #000 !important;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  transition: background 0.3s ease !important;
}
.nav__cta:hover {
  background: var(--accent-hover) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO — CSS-variable-driven (Hero Builder compatible)
   ============================================================ */

@keyframes heroZoom {
  0%   { transform: scale(var(--rf-hero-base-scale, 1.15)); }
  100% { transform: scale(calc(var(--rf-hero-base-scale, 1.15) + 0.08)); }
}

@keyframes heroPan {
  0%   { transform: scale(var(--rf-hero-base-scale, 1.15)) translate(0, 0); }
  100% { transform: scale(calc(var(--rf-hero-base-scale, 1.15) + 0.05)) translate(-2%, -1%); }
}

.hero {
  position: relative;
  width: 100%;
  min-height: var(--rf-hero-height, 100vh);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero--full-bleed {
  min-height: var(--rf-hero-height, 100vh);
}

.hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero--text-right .hero__inner {
  flex-direction: row-reverse;
}

.hero__content {
  flex: 0 0 var(--rf-hero-text-pct, 45%);
  max-width: var(--rf-hero-text-pct, 45%);
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero__content h1 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__title-white { color: var(--text-primary); }
.hero__title-accent {
  color: var(--rf-hero-title2-color, var(--accent));
  white-space: nowrap;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__buttons .btn {
  min-width: 200px;
  text-align: center;
}

.hero__image {
  flex: 1 1 var(--rf-hero-image-pct, 55%);
  position: relative;
  aspect-ratio: var(--rf-hero-aspect, 1 / 1);
  width: 100%;
  max-width: var(--rf-hero-max-width, 620px);
  margin-left: auto;
  border-radius: var(--rf-hero-radius, 16px);
  overflow: visible;
  background: transparent;
  box-shadow: var(--rf-hero-shadow, none), var(--rf-hero-glow, none);
  border: var(--rf-hero-border, none);
  z-index: 3;
  pointer-events: none;
}

.hero--text-right .hero__image {
  margin-left: 0;
  margin-right: auto;
}

.hero--full-bleed .hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0;
  z-index: 0;
}
.hero--full-bleed .hero__inner { position: relative; z-index: 1; }
.hero--full-bleed .hero__content {
  flex: 0 0 auto;
  max-width: 540px;
  padding: 40px;
  background: linear-gradient(90deg, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.7) 70%, rgba(5,5,8,0) 100%);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity var(--rf-hero-crossfade, 1.8s) cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  transform: scale(var(--rf-hero-base-scale, 1.15));
  transform-origin: right center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero--text-right .hero__img {
  transform-origin: left center;
}

.hero__img.active {
  opacity: 1;
}

.hero--anim-zoom .hero__img.active {
  animation: heroZoom var(--rf-hero-anim-duration, 20s) ease-out forwards;
}

.hero--anim-pan .hero__img.active {
  animation: heroPan var(--rf-hero-anim-duration, 20s) ease-in-out forwards;
}

.hero--anim-none .hero__img.active {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__img.active { animation: none !important; }
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.hero__arrow:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.15);
}
.hero__arrow--prev { left: 12px; }
.hero__arrow--next { right: 12px; }

.hero__dots {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 20px;
  height: 3px;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero__dot.active {
  background: var(--accent);
  width: 28px;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section__subtitle {
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.overtitle {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.ba__tab {
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}
.ba__tab.active,
.ba__tab:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.ba__slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  aspect-ratio: 16 / 9;
}

.ba__img {
  position: absolute;
  inset: 0;
}
.ba__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__img--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba__img--before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.ba__handle-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.ba__label {
  position: absolute;
  top: 16px;
  z-index: 4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }

.ba__caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
  margin-top: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   TIMELINE — 24 Hours Process (Animated)
   ============================================================ */
.timeline {
  background: var(--bg-secondary);
  overflow: hidden;
}

.timeline__track {
  position: relative;
  padding-bottom: 16px;
}

/* Animated line that draws itself */
.timeline__line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 212, 255, 0.15);
  z-index: 0;
}

.timeline__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.3);
  transition: none;
}

.timeline.animated .timeline__line::after {
  animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
  to { width: 100%; }
}

.timeline__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.timeline.animated .timeline__step {
  animation: stepReveal 0.6s ease-out forwards;
}

.timeline.animated .timeline__step:nth-child(1) { animation-delay: 0.3s; }
.timeline.animated .timeline__step:nth-child(2) { animation-delay: 0.6s; }
.timeline.animated .timeline__step:nth-child(3) { animation-delay: 0.9s; }
.timeline.animated .timeline__step:nth-child(4) { animation-delay: 1.2s; }
.timeline.animated .timeline__step:nth-child(5) { animation-delay: 1.5s; }
.timeline.animated .timeline__step:nth-child(6) { animation-delay: 1.8s; }

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

/* Icon with pulse + glow on reveal */
.timeline__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline.animated .timeline__step:nth-child(1) .timeline__icon { animation: iconPulse 0.8s ease-out 0.5s; }
.timeline.animated .timeline__step:nth-child(2) .timeline__icon { animation: iconPulse 0.8s ease-out 0.8s; }
.timeline.animated .timeline__step:nth-child(3) .timeline__icon { animation: iconPulse 0.8s ease-out 1.1s; }
.timeline.animated .timeline__step:nth-child(4) .timeline__icon { animation: iconPulse 0.8s ease-out 1.4s; }
.timeline.animated .timeline__step:nth-child(5) .timeline__icon { animation: iconPulse 0.8s ease-out 1.7s; }
.timeline.animated .timeline__step:nth-child(6) .timeline__icon { animation: iconPulse 0.8s ease-out 2.0s; }

@keyframes iconPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 20px 8px rgba(0, 212, 255, 0.3); transform: scale(1.15); }
  100% { box-shadow: 0 0 8px 2px rgba(0, 212, 255, 0.15); transform: scale(1); }
}

.timeline__icon:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  transform: scale(1.1);
}

.timeline__card {
  background: var(--bg-card);
  padding: 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline__card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.08);
}

.timeline__step-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline__card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline__card p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.timeline__time {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 5px 12px;
  margin-top: auto;
}

/* Animated counter for the header "24" */
.timeline__counter {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg-primary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.service-card__icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
/* ---- Portfolio ---- */
.portfolio-slider {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-slider__viewport {
  overflow: visible;
}

.portfolio-slider__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-slide {
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.portfolio-slide:hover {
  border-color: rgba(0, 212, 255, .25);
  box-shadow: 0 8px 32px rgba(0, 212, 255, .1);
  transform: translateY(-4px);
}

.portfolio-slide__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
}

.portfolio-slide__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.portfolio-slide:hover .portfolio-slide__img img {
  transform: scale(1.04);
}

.portfolio-slide__label {
  padding: 12px 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color .3s ease;
}

.portfolio-slide:hover .portfolio-slide__label {
  color: var(--accent);
}

/* Desktop: hide slider controls */
.portfolio-slider__counter,
.portfolio-slider__arrow {
  display: none;
}

/* ---- Mobile: carousel mode ---- */
@media (max-width: 900px) {
  .portfolio-slider {
    padding: 0 48px;
  }

  .portfolio-slider__viewport {
    overflow: hidden;
  }

  .portfolio-slider__track {
    display: flex;
    gap: 20px;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  }

  .portfolio-slide {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .portfolio-slider__arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(20,20,20,.8);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, background .3s;
  }

  .portfolio-slider__arrow:hover {
    border-color: var(--accent);
    background: rgba(0,212,255,.1);
  }

  .portfolio-slider__arrow--prev { left: 0; }
  .portfolio-slider__arrow--next { right: 0; }

  .portfolio-slider__counter {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--text-secondary);
  }
}

@media (max-width: 560px) {
  .portfolio-slide {
    min-width: 100%;
    max-width: 100%;
  }
  .portfolio-slider {
    padding: 0 36px;
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.lightbox.is-loading .lightbox__img {
  opacity: 0;
}

.lightbox__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: rf-spin 0.9s linear infinite;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2002;
}
.lightbox.is-loading .lightbox__loader {
  opacity: 1;
  visibility: visible;
}

@keyframes rf-spin {
  to { transform: rotate(360deg); }
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 2rem;
  padding: 12px;
  transition: color 0.2s ease;
  z-index: 2001;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--accent);
}
.lightbox__close {
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
}
.lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   TRUST
   ============================================================ */
.trust {
  padding: 60px 0;
}

.trust__inner {
  text-align: center;
}

.trust__line {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
}

.trust__label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 300;
  margin: 24px 0 12px;
}

.trust__industries {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  background: var(--bg-secondary);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__field {
  margin-bottom: 20px;
}

.contact-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--accent);
}

.contact-form__field textarea {
  resize: vertical;
}

.contact-form__upload {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-form__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.contact-form__upload-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255,255,255,.5);
}

.contact-form__filename {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand .nav__logo {
  margin-bottom: 16px;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  margin-top: 12px;
}

.footer__company h4,
.footer__links h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer__company p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer__company a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer__company a:hover {
  color: var(--accent);
}

.footer__by {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: .8rem;
}

.footer__timezone {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-size: 0.85rem;
}
.footer__social a:hover {
  color: var(--accent);
}

.footer__cert img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.footer__cert img:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
}

.footer__disclaimer {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Upload max size */
.contact-form__maxsize {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1199px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .timeline__line {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .hero__inner {
    gap: 28px;
    padding: 32px 20px;
  }
  .hero--split .hero__content {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  .hero--split .hero__image {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  .hero__buttons .btn { min-width: 140px; }
}

/* Mobile */
@media (max-width: 767px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav__links.open {
    transform: translateX(0);
  }

  .nav__cta {
    margin-top: 12px;
  }

  /* Hero — stacked on mobile: title → image → rest of text */
  .hero {
    min-height: auto;
    align-items: stretch;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 56px;
  }

  .hero__inner {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    align-items: stretch;
  }

  /* Flatten .hero__content so its children become flex items of .hero__inner,
     so the image can sit between the title and the rest of the text */
  .hero__content {
    display: contents;
  }

  .hero__badge    { order: 1; align-self: flex-start; margin-bottom: 0; }
  .hero__content h1 { order: 2; margin-bottom: 0; }
  .hero__image    { order: 3; flex: 0 0 auto; max-width: 100%; width: 100%; margin: 8px auto; }
  .hero__subtitle { order: 4; margin: 0; }
  .hero__tagline  { order: 5; margin: 0; }
  .hero__buttons  {
    order: 6;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }
  .hero__buttons .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .hero--full-bleed .hero__image {
    position: absolute;
    height: 100%;
    order: 0;
  }

  .hero__arrow { display: none; }

  /* Dots: na mobile wychodzą z absolute positioning i lądują pod przyciskami,
     żeby nie nakładały się na CTA przy stacked layout (zgłoszenie iPhone mini). */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero__dots {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin: 20px auto 0;
    justify-content: center;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ba__tabs {
    flex-wrap: wrap;
  }

  .section {
    padding: 60px 0;
  }

  .timeline__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .timeline__line {
    display: none;
  }
  .timeline__step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .timeline__card {
    align-items: flex-start;
  }
  .timeline__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px;
  transform: translateY(0);
  transition: transform .4s ease;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__inner p {
  font-size: .85rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}
.cookie-banner__inner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn--sm {
  padding: 8px 20px;
  font-size: .8rem;
}

/* ---- Footer policy link ---- */
.footer__bottom a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
.footer__bottom a:hover {
  text-decoration: underline;
}

/* ---- Contact form messages ---- */
.contact-form__message {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.5;
}
.contact-form__message--success {
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .3);
  color: var(--accent);
}
.contact-form__message--error {
  background: rgba(255, 80, 80, .1);
  border: 1px solid rgba(255, 80, 80, .3);
  color: #ff5050;
}

@media (max-width: 480px) {
  .hero__img.active {
    animation: none !important;
  }
}

/* ============================================================
   STATIC PAGES (privacy policy, etc.)
   ============================================================ */
.rf-page__article {
  max-width: 820px;
  margin: 0 auto;
}
.rf-page__header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rf-page__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.rf-page__content {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  font-size: 0.95rem;
}
.rf-page__content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 40px 0 16px;
}
.rf-page__content h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.rf-page__content p {
  margin-bottom: 16px;
}
.rf-page__content ul,
.rf-page__content ol {
  margin: 8px 0 20px 24px;
  padding: 0;
}
.rf-page__content ul { list-style: disc; }
.rf-page__content ol { list-style: decimal; }
.rf-page__content li {
  margin-bottom: 8px;
}
.rf-page__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.rf-page__content a:hover {
  color: var(--accent-hover);
}
.rf-page__content strong {
  color: var(--text-primary);
  font-weight: 700;
}
.rf-page__content em {
  color: var(--text-secondary);
  opacity: .75;
}

/* ============================================================
   WIDE LAYOUT - more room for visual sections on large screens
   ============================================================ */
@media (min-width: 1600px) {
  .hero__inner,
  .process .container,
  .work .container,
  .portfolio-slider {
    max-width: var(--max-width-wide);
  }
}
