/* ===========================
   REKLAMUS — Custom Styles
   =========================== */

/* CSS Variables */
:root {
  --bg-primary: #0C0C0C;
  --bg-secondary: #141414;
  --bg-accent: #F5F2ED;
  --text-primary: #FFFFFF;
  --text-secondary: #9A9A9A;
  --text-dark: #1A1A1A;
  --accent: #C9A96E;
  --accent-hover: #DFC9A0;
  --border: rgba(255,255,255,0.08);
  --cursor-x: 0;
  --cursor-y: 0;
}

/* ===========================
   OVERDRIVE — Custom Cursor
   =========================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
}

.cursor-dot.visible,
.cursor-circle.visible {
  opacity: 1;
}

/* Cursor hover states */
.cursor-dot.hovering {
  width: 12px;
  height: 12px;
  background: var(--accent-hover);
}

.cursor-circle.hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(201, 169, 110, 0.6);
}

/* Hide default cursor on desktop when custom cursor active */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

/* But keep default cursor on interactive elements for accessibility */
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select {
  cursor: none !important;
}

@media (max-width: 1024px), (pointer: coarse) {
  .cursor-dot,
  .cursor-circle {
    display: none !important;
  }
}

/* ===========================
   OVERDRIVE — Hero Gradient Orb
   =========================== */
.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, rgba(201, 169, 110, 0.04) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: none;
}

@media (max-width: 1024px) {
  .hero-orb {
    width: 300px;
    height: 300px;
    opacity: 0.5;
    top: 30% !important;
    left: 50% !important;
  }
}

/* ===========================
   OVERDRIVE — Text Split Chars
   =========================== */
.char {
  display: inline-block;
  will-change: transform, opacity;
}

.word {
  display: inline-block;
  overflow: hidden;
}

.word .char {
  transform-origin: bottom left;
}

/* ===========================
   OVERDRIVE — Section Clip Reveal
   =========================== */
.section-reveal {
  clip-path: inset(0 0 0 0);
}

/* ===========================
   OVERDRIVE — Magnetic Button
   =========================== */
[data-magnetic] {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================
   OVERDRIVE — Hero Image Tilt
   =========================== */
[data-tilt] {
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px;
}

[data-tilt] img {
  transition: transform 0.1s ease-out;
}

/* ===========================
   OVERDRIVE — Marquee Glitch
   =========================== */
.marquee-item {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item:hover {
  opacity: 0.8 !important;
}

.marquee-item.glitch {
  animation: glitch-text 0.3s ease forwards;
}

@keyframes glitch-text {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -1px); filter: hue-rotate(-90deg); }
  60% { transform: translate(-1px, -1px); filter: hue-rotate(45deg); }
  80% { transform: translate(1px, 1px); filter: none; }
  100% { transform: translate(0); filter: none; opacity: 0.6; }
}

/* Glitch pseudo-layers */
.marquee-item.glitch::before,
.marquee-item.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.marquee-item.glitch::before {
  color: var(--accent);
  animation: glitch-layer-1 0.3s ease;
  clip-path: inset(20% 0 40% 0);
}

.marquee-item.glitch::after {
  color: rgba(201, 169, 110, 0.5);
  animation: glitch-layer-2 0.3s ease;
  clip-path: inset(60% 0 10% 0);
}

@keyframes glitch-layer-1 {
  0% { transform: translate(0); }
  25% { transform: translate(3px, -2px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-layer-2 {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
  100% { transform: translate(0); }
}

/* ===========================
   OVERDRIVE — Parallax layers
   =========================== */
.parallax-slow {
  will-change: transform;
}

.parallax-fast {
  will-change: transform;
}

/* Hero + Reveal initial states (prevents flash before GSAP runs) */
#hero .reveal {
  opacity: 0;
}

.reveal:not(#hero .reveal) {
  opacity: 0;
}

.reveal-item {
  opacity: 0;
}

/* ===========================
   DELIGHT — Scroll Progress
   =========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 10001;
  pointer-events: none;
  transition: none;
}

/* ===========================
   DELIGHT — Button Pulse
   =========================== */
.btn-primary {
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  z-index: -1;
  animation: btn-pulse 3s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.06); }
}

/* ===========================
   DELIGHT — Service Numbers
   =========================== */
.service-number {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  display: inline-block;
}

.service-header:hover .service-number {
  transform: scale(1.2);
  color: var(--accent-hover);
}

/* ===========================
   DELIGHT — Footer Logo Gold
   =========================== */
.footer-logo-hover {
  transition: filter 0.4s ease;
}

.footer-logo-hover:hover {
  filter: brightness(0) invert(0.82) sepia(1) saturate(2) hue-rotate(10deg) !important;
}

/* ===========================
   DELIGHT — Link Arrow Nudge
   =========================== */
.btn-primary svg,
.btn-secondary svg,
.cta-btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg,
.btn-secondary:hover svg {
  transform: translateX(3px);
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Grain Overlay */
.grain::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}

/* Logo hover */
.navbar a img {
  transition: opacity 0.3s ease;
}

.navbar a:hover img {
  opacity: 0.8;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  .nav-links-desktop {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .service-header {
    gap: 24px;
    padding: 24px 0;
  }
}

/* Corner Brackets */
.corner-brackets {
  position: relative;
}

.corner-brackets::before,
.corner-brackets::after,
.corner-brackets > .cb-inner::before,
.corner-brackets > .cb-inner::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(255,255,255,0.35);
  border-style: solid;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.corner-brackets::before {
  top: -10px;
  left: -10px;
  border-width: 1px 0 0 1px;
}

.corner-brackets::after {
  top: -10px;
  right: -10px;
  border-width: 1px 1px 0 0;
}

.corner-brackets > .cb-inner::before {
  bottom: -10px;
  left: -10px;
  border-width: 0 0 1px 1px;
}

.corner-brackets > .cb-inner::after {
  bottom: -10px;
  right: -10px;
  border-width: 0 1px 1px 0;
}

.corner-brackets:hover::before,
.corner-brackets:hover::after,
.corner-brackets:hover > .cb-inner::before,
.corner-brackets:hover > .cb-inner::after {
  border-color: var(--accent);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: scale(1.04);
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Marquee */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 48px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.15;
  transition: opacity 0.5s ease, transform 0.5s ease, text-shadow 0.5s ease;
  user-select: none;
  position: relative;
}

/* When track is hovered, dim ALL items further */
.marquee-track:hover .marquee-item {
  opacity: 0.08;
}

/* Then spotlight the hovered item */
.marquee-track:hover .marquee-item:hover {
  opacity: 0.9;
  transform: scale(1.05);
  text-shadow: 0 0 40px rgba(201, 169, 110, 0.2);
}

/* Services Accordion */
.service-item {
  border-bottom: 1px solid var(--border);
}

.service-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  position: relative;
  font-family: 'Outfit', sans-serif;
  outline: none;
}

.service-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.service-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-header:hover::after {
  width: 100%;
}

.service-number {
  font-size: 14px;
  font-weight: 300;
  color: var(--accent);
  min-width: 32px;
}

.service-title {
  flex: 1;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.service-toggle {
  color: var(--accent);
  min-width: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG + to X morph */
.service-toggle .toggle-v {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transform-origin: center;
}

.service-item.active .toggle-v {
  transform: scaleY(0);
  opacity: 0;
}

.service-toggle .toggle-h {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.service-item.active .toggle-h {
  transform: rotate(180deg);
}

/* Content — GSAP controls height */
.service-content {
  overflow: hidden;
  height: 0;
}

.service-content ul {
  list-style: none;
  padding: 8px 0 0 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (min-width: 768px) {
  .service-content ul {
    padding-left: 56px;
  }
}

.service-content li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-content li.li-visible {
  opacity: 1;
  transform: translateX(0);
}

.service-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-content li.li-visible::before {
  transform: translateY(-50%) scale(1);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Gold progress bar on left edge of active item */
.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -24px;
  width: 2px;
  height: 0;
  background: var(--accent);
  border-radius: 1px;
  transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active::before {
  height: 100%;
}

.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  gap: 16px;
  outline: none;
  transition: color 0.3s ease;
}

.faq-item.active .faq-header {
  color: var(--accent);
}

.faq-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-toggle {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  /* GSAP handles rotation */
}

.faq-content {
  overflow: hidden;
  height: 0;
}

.faq-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-bottom: 24px;
}

/* Process Steps — Overdrive */

/* Progress line */
.process-line-wrap {
  position: relative;
  height: 3px;
  margin: 0 12.5%;
}

.process-line-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(12, 12, 12, 0.08);
  border-radius: 2px;
}

.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: none; /* GSAP handles this */
}

.process-line-dots {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.process-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-accent);
  border: 2px solid rgba(12, 12, 12, 0.12);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-dot.reached {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* Process grid */
@media (min-width: 1024px) {
  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .process-step {
    position: relative;
    padding: 0 1.5rem;
    opacity: 0.3;
    transition: opacity 0.5s ease;
  }

  .process-step:first-child {
    padding-left: 0;
  }

  .process-step:last-child {
    padding-right: 0;
  }

  .process-step.reached {
    opacity: 1;
  }
}

/* Process step number — starts gold, turns dark when reached */
.process-num {
  color: var(--accent);
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step.reached .process-num {
  color: var(--text-dark);
  transform: scale(1.08);
}

/* Mobile: simple stack with border */
@media (max-width: 1023px) {
  .process-step {
    position: relative;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(201, 169, 110, 0.15);
  }

  .process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .process-num {
    color: var(--accent);
  }
}

/* Testimonial — Overdrive */
.testimonial-swiper {
  overflow: hidden;
}

.testimonial-swiper .swiper-slide {
  overflow: hidden;
}

.testimonial-quote-icon {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
  user-select: none;
  pointer-events: none;
}

.swiper-pagination-bullet {
  background: var(--text-secondary) !important;
  opacity: 0.3 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Stats Divider */
.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  align-self: center;
}

@media (max-width: 768px) {
  .stat-divider {
    width: 64px;
    height: 1px;
  }
}

/* Overline Label */
.overline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.overline-dark {
  color: var(--accent);
}

/* Section Transitions */
.section-dark {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.section-light {
  background-color: var(--bg-accent);
  color: var(--text-dark);
}

/* Hero mobile: background image with overlay */
.hero-bg-mobile {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-bg-mobile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 12, 0.5) 0%,
    rgba(12, 12, 12, 0.75) 40%,
    rgba(12, 12, 12, 0.92) 70%,
    rgba(12, 12, 12, 1) 100%
  );
}

/* About section overdrive */
/* Desktop: animated reveal */
@media (min-width: 768px) {
  .about-line {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .about-line.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  .about-img-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .about-img-wrap.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .about-img {
    transform: scale(1.2);
    transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .about-img.zoomed {
    transform: scale(1);
  }
}

/* Mobile: no animation, always visible */
@media (max-width: 767px) {
  .about-line,
  .about-img-wrap {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Smooth Image */
.img-reveal {
  overflow: hidden;
  border-radius: 16px;
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Footer Links */
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-text {
  opacity: 0;
}

/* ===========================
   OVERDRIVE — CTA Form
   =========================== */
.cta-form {
  background: rgba(12, 12, 12, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(12, 12, 12, 0.06);
}

.cta-input {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(12, 12, 12, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cta-input::placeholder {
  color: rgba(12, 12, 12, 0.3);
}

.cta-input:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(12, 12, 12, 0.15);
}

.form-field label {
  transition: color 0.3s ease;
}

.form-field:focus-within label {
  color: var(--bg-primary);
}

/* Submit button — multi-state */
.cta-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.02em;
}

.cta-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-submit-btn:active {
  transform: translateY(0);
}

.cta-btn-text,
.cta-btn-arrow {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cta-btn-check,
.cta-btn-success {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-btn-check {
  stroke: var(--accent);
}

.cta-btn-success {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 28px;
}

/* Success state */
.cta-submit-btn.success {
  background: var(--bg-primary);
  pointer-events: none;
}

.cta-submit-btn.success .cta-btn-text,
.cta-submit-btn.success .cta-btn-arrow {
  opacity: 0;
  transform: translateY(-20px);
}

.cta-submit-btn.success .cta-btn-check {
  opacity: 1;
  transform: scale(1);
  left: calc(50% - 60px);
}

.cta-submit-btn.success .cta-btn-success {
  opacity: 1;
  transform: scale(1);
}

/* Loading state */
.cta-submit-btn.loading {
  pointer-events: none;
}

.cta-submit-btn.loading .cta-btn-text {
  opacity: 0;
}

.cta-submit-btn.loading .cta-btn-arrow {
  animation: spin-arrow 0.8s linear infinite;
}

@keyframes spin-arrow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Contact Form */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--bg-primary);
}

/* Footer mobile separators */
@media (max-width: 1024px) {
  .footer-col {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
  .loader {
    display: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Marquee slow down on hover */
.marquee-track {
  transition: animation-duration 0.5s ease;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Social icon touch targets */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.06);
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Mobile stat separator */
@media (max-width: 768px) {
  .stat-item + .stat-item {
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 12, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-img {
  max-width: min(96vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(201,169,110,0.25); transform: scale(1.05); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
body.lightbox-open { overflow: hidden; }
