/* ============================================================
   Agência Bazcar — style.css
   Estilos estruturais (layout, componentes, responsividade)
   Animações e keyframes → animations.css
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0A0F;
  --bg2:       #0F0F18;
  --bg3:       #13131F;
  --gold:      #E8651A;
  --gold-dim:  #C44E0E;
  --gold-glow: rgba(232,101,26,0.18);
  --white:     #FFFFFF;
  --gray:      #A8A8B8;
  --gray-dim:  #5A5A70;
  --glass-bg:  rgba(255,255,255,0.04);
  --glass-bdr: rgba(255,255,255,0.08);
  --radius:    14px;
  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip; /* clip não cria scroll container — evita bug do IntersectionObserver no iOS Safari */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* === UTILITIES === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }

.gold-line {
  display: inline-block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.75;
}

.counting { display: inline-block; }

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--glass-bdr) 30%,
    var(--glass-bdr) 70%,
    transparent 100%);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-gold {
  background: linear-gradient(135deg, #E8651A 0%, #C44E0E 100%);
  color: #0A0A0F;
  box-shadow: 0 4px 24px rgba(232,101,26,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,101,26,0.5);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--glass-bdr);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

/* === NAVIGATION === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  padding: 12px 0;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-bdr);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #E8651A, #C44E0E);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #0A0A0F;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--gold); }

/* === HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-mesh::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(ellipse, rgba(232,101,26,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-mesh::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -5%;
  width: 50vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(100,80,245,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb-1 {
  width: 380px; height: 380px;
  top: 8%; right: 6%;
  background: radial-gradient(circle at 40% 40%,
    rgba(232,101,26,0.14) 0%,
    rgba(232,101,26,0.05) 40%,
    transparent 70%);
  border: 1px solid rgba(232,101,26,0.10);
  animation: floatY 7s ease-in-out infinite;
}
.orb-2 {
  width: 200px; height: 200px;
  top: 20%; right: 14%;
  background: radial-gradient(circle, rgba(232,101,26,0.08) 0%, transparent 70%);
  border: 1px solid rgba(232,101,26,0.07);
  animation: floatY 9s ease-in-out infinite reverse;
}
.orb-3 {
  width: 120px; height: 120px;
  bottom: 20%; left: 10%;
  background: radial-gradient(circle, rgba(200,180,255,0.06) 0%, transparent 70%);
  border: 1px solid rgba(200,180,255,0.06);
  animation: floatY 11s ease-in-out infinite;
}

.grid-lines {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.hero-content { min-width: 0; }

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 56px;
  animation: fadeIn 0.9s 0.4s ease both;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  overflow: hidden;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(232,101,26,0.3);
  z-index: 2;
  pointer-events: none;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(10,10,15,0.5), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-image-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  filter: brightness(0.9) saturate(1.05);
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,101,26,0.14) 0%, transparent 70%);
  z-index: -1;
}

.hero-image-tag {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 50px;
  padding: 10px 20px;
  color: #0A0A0F;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(232,101,26,0.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}
.hero-badge i { font-size: 0.7rem; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-title .highlight {
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.7s 0.45s ease both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-bdr);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray-dim);
  margin-top: 4px;
}

/* === SERVICES === */
#servicos { background: var(--bg2); }

.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.5s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,101,26,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  border-color: rgba(232,101,26,0.4);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45), 0 0 0 1px rgba(232,101,26,0.15);
}
.service-card:hover::before { opacity: 1; }

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(232,101,26,0.15), rgba(232,101,26,0.05));
  border: 1px solid rgba(232,101,26,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  transition: background 0.35s;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(232,101,26,0.25), rgba(232,101,26,0.1));
}

.service-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(232,101,26,0.08);
  line-height: 1;
  transition: color 0.35s;
}
.service-card:hover .service-num { color: rgba(232,101,26,0.15); }

.service-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.35s;
}
.service-card:hover .service-title { color: var(--gold); }

.service-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(232,101,26,0.08);
  border: 1px solid rgba(232,101,26,0.15);
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* === RESULTS === */
#resultados { position: relative; overflow: hidden; }

#resultados::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,101,26,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.results-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.results-left .section-sub { margin-bottom: 32px; }

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.results-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray);
}
.results-list li i {
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

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

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(232,101,26,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.stat-card:hover::after { transform: scaleX(1); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(232,101,26,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 16px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
}

/* === ABOUT === */
#sobre { background: var(--bg2); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 780px;
}

.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  overflow: hidden;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(232,101,26,0.25);
  z-index: 2;
  pointer-events: none;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,15,0.55), transparent);
  z-index: 1;
  pointer-events: none;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  filter: brightness(0.92) saturate(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.03);
  filter: brightness(1) saturate(1.1);
}

.about-img-glow {
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: radial-gradient(ellipse at 60% 40%, rgba(232,101,26,0.12) 0%, transparent 70%);
  z-index: -1;
}

.about-badge-float {
  position: absolute;
  bottom: -12px; right: -12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 12px;
  padding: 16px 20px;
  color: #0A0A0F;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(232,101,26,0.4);
  animation: floatY 5s ease-in-out infinite;
}
.about-badge-float i { font-size: 1.1rem; }

.about-text p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.value-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(232,101,26,0.1);
  border: 1px solid rgba(232,101,26,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.value-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.value-text span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* === CONTACT === */
#contato { position: relative; overflow: hidden; }

#contato::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,101,26,0.4) 50%,
    transparent 100%);
}

.contact-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.contact-inner .section-title { margin-bottom: 16px; }

.contact-sub {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 44px;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
}

.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding-top: 44px;
  border-top: 1px solid var(--glass-bdr);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.25s;
}
.contact-info-item:hover { color: var(--white); }
.contact-info-item i {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(232,101,26,0.08);
  border: 1px solid rgba(232,101,26,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
}

/* === FOOTER === */
footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-bdr);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--gray-dim);
}
.footer-copy span { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--gray);
  transition: all 0.25s;
}
.social-btn:hover {
  background: rgba(232,101,26,0.1);
  border-color: rgba(232,101,26,0.3);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-dim);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulseGold 2.5s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

/* === PROGRESS BAR === */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), #f5c842);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 100px;
  }
  .hero-image-wrap { order: -1; }
  .hero-image-frame { max-width: 320px; margin: 0 auto; }
  .results-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img-wrap { max-width: 320px; margin: 0 auto; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .contact-info-row { gap: 20px; }
  .about-values { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* === PORTFOLIO MARQUEE === */
.portfolio-header {
  text-align: center;
  margin-bottom: 48px;
}
.portfolio-header .label { justify-content: center; }
.portfolio-header .section-sub { max-width: 600px; margin: 0 auto; }

.portfolio-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

@media (hover: hover) {
  .portfolio-carousel:hover .carousel-track { animation-play-state: paused; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.carousel-slide {
  flex-shrink: 0;
  width: 340px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.carousel-slide[data-type="image"] { cursor: zoom-in; }
.carousel-slide[data-type="video"] { cursor: pointer; }

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slide-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

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

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  display: none;
  outline: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }

@media (max-width: 640px) {
  .carousel-slide { width: 260px; height: 195px; }
}
