/* ═══════════════════════════════════════
   home.css — homepage-specific styles
═══════════════════════════════════════ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(212,175,55,0.07) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.55) 100%);
}
.hero-gold-line { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Subtle gold text glow on the whole block */
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.08));
}
.hero h1 {
  font-size: 72px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  margin: 16px 0 24px;
  letter-spacing: -1px;
  text-shadow: 0 2px 32px rgba(0,0,0,0.7), 0 0 80px rgba(212,175,55,0.12);
}
.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212,175,55,0.45), 0 2px 16px rgba(0,0,0,0.6);
}
.hero-sub {
  font-size: 15px;
  font-weight: 700;
  color: #d0d0d0;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
  text-align: center;
}

/* Hero CTA button — persistent pulsing glow */
@keyframes hero-btn-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 40px rgba(212,175,55,0.2), 0 4px 16px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 32px rgba(212,175,55,0.75), 0 0 64px rgba(212,175,55,0.35), 0 4px 16px rgba(0,0,0,0.4); }
}
.hero-cta-btn {
  animation: hero-btn-pulse 2.4s ease-in-out infinite;
}
.hero-cta-btn:hover {
  animation: none;
  box-shadow: 0 0 40px rgba(212,175,55,0.9), 0 0 80px rgba(212,175,55,0.4), 0 6px 20px rgba(0,0,0,0.5) !important;
  transform: translateY(-3px);
}
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  display: flex;
}
.hero-stat {
  flex: 1;
  padding: 20px 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.hero-stat:last-child { border-right: none; }
.hs-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hs-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

/* ── SERVICES PREVIEW ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.45);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.12),
    0 0 32px rgba(212,175,55,0.1),
    0 20px 48px rgba(0,0,0,0.55);
}
.service-card.featured { border-top: 3px solid var(--gold); }
.service-num {
  font-size: 60px;
  font-weight: 900;
  /* Bright, shiny number — premium pop */
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,175,55,0.18);
  text-shadow: 0 0 20px rgba(212,175,55,0.08);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
  letter-spacing: -4px;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}
.service-card:hover .service-num {
  -webkit-text-stroke-color: rgba(212,175,55,0.35);
  text-shadow: 0 0 30px rgba(212,175,55,0.2);
}
.service-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.service-name {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-desc {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.service-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
}
.service-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.service-link {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.service-link:hover { gap: 12px; }

/* ── TRANSFORMATION SECTION — TROPHY TREATMENT ── */

/* Outer wrapper: gold halo glow around the whole block */
.transform-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.12),
    0 0 40px rgba(212,175,55,0.12),
    0 0 80px rgba(212,175,55,0.06),
    0 24px 64px rgba(0,0,0,0.5);
}

/* Gold top accent line — like a trophy pedestal */
.transform-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  z-index: 6;
  pointer-events: none;
}

/* Center divider line */
.transform-block::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(212,175,55,0.4) 50%, var(--gold) 100%);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* Reversed variant — content left, photo right */
.transform-block--reversed .tf-content-side { order: 1; }
.transform-block--reversed .tf-photo-side   { order: 2; }

.tf-photo-side {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--surface-2);
}

/* Trophy glow overlay — rich gold vignette from all edges */
.tf-photo-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 110%, rgba(212,175,55,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212,175,55,0.10) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Dark cinematic vignette — keeps subject sharp at centre */
.tf-photo-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,10,10,0.45) 0%,
      transparent 22%,
      transparent 55%,
      rgba(10,10,10,0.75) 100%),
    linear-gradient(to right,
      rgba(10,10,10,0.35) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10,10,10,0.35) 100%);
  pointer-events: none;
  z-index: 3;
}

.tf-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s ease;
  filter: contrast(1.05) saturate(0.9);
}
.tf-photo-side:hover img { transform: scale(1.02); }

.tf-ba-labels {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  border-top: 1px solid rgba(212,175,55,0.4);
  z-index: 4;
}
.ba-label {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(4px);
}
.ba-label.before { color: #666; border-right: 1px solid rgba(212,175,55,0.2); }
.ba-label.after  {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212,175,55,0.6);
}
/* Hover — block glows brighter on approach */
.transform-block:hover {
  border-color: rgba(212,175,55,0.6);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.2),
    0 0 60px rgba(212,175,55,0.2),
    0 0 120px rgba(212,175,55,0.08),
    0 32px 80px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.tf-content-side {
  padding: 48px 40px;
  background: linear-gradient(135deg, #141414 0%, #111 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle gold bloom behind the stat number */
.tf-content-side::before {
  content: '';
  position: absolute;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.tf-bg-number {
  position: absolute;
  right: -10px; bottom: -20px;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212,175,55,0.04);
  pointer-events: none;
  user-select: none;
}
.tf-result-label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tf-result-number {
  font-size: 88px;
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 0 40px rgba(212,175,55,0.2), 0 2px 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}
.tf-result-number .minus {
  color: var(--gold);
  font-size: 66px;
  margin-top: 5px;
  text-shadow: 0 0 20px rgba(212,175,55,0.7);
}
.tf-result-number .unit  {
  color: var(--gold);
  font-size: 36px;
  font-weight: 900;
  margin-top: 18px;
  text-shadow: 0 0 16px rgba(212,175,55,0.6);
}
.tf-result-sub {
  color: #555;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.tf-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold) 40%, transparent 100%);
  margin-bottom: 28px;
}
.tf-achievements { display: flex; flex-direction: column; gap: 16px; }
.tf-achievement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.tf-bullet {
  width: 20px; height: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tf-bullet::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.tf-achievement-text {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.tf-achievement-text em { font-style: normal; color: var(--gold); }
.tf-client-tag {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tf-client-tag .dash { width: 28px; height: 2px; background: var(--gold); }
.tf-client-name { font-size: 11px; font-weight: 700; }
.tf-client-info { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #555; font-weight: 700; margin-top: 2px; }
.tf-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-top: none;
  background: #0d0d0d;
}
.tf-stat {
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tf-stat:last-child { border-right: none; }
.tf-stat-num { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.tf-stat-desc { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.4; }

/* ── GOOGLE REVIEWS MARQUEE ── */
.gr-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--surface) 0%, #0f0f0f 100%);
  overflow: hidden;
}
.gr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad, 48px);
  max-width: var(--container-max, 1200px);
  margin: 0 auto 32px;
}
.gr-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gr-glogo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.gr-score-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gr-score {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
}
.gr-stars-row {
  color: #f9ab00;
  font-size: 14px;
  letter-spacing: 2px;
}
.gr-count {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}
.gr-cta { font-size: 9px; padding: 10px 18px; }

/* Infinite track */
.gr-track-wrap {
  overflow: hidden;
  /* Fade edges for smooth feel */
  mask-image: linear-gradient(to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%);
}
.gr-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gr-scroll 35s linear infinite;
  padding: 4px 0 12px;
}
.gr-track:hover { animation-play-state: paused; }

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

/* Individual card */
.gr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(212,175,55,0.25);
  padding: 20px 22px;
  width: 280px;
  flex-shrink: 0;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.gr-card:hover {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 24px rgba(212,175,55,0.1), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.gr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.gr-name {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-white);
}
.gr-date {
  font-size: 9px;
  color: #555;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 1px;
}
.gr-stars {
  color: #f9ab00;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.gr-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .gr-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gr-card { width: 240px; }
}

/* ── OPINIE PREVIEW ── */
.opinie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.opinia-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.opinia-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.35);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.08),
    0 0 24px rgba(212,175,55,0.08),
    0 16px 40px rgba(0,0,0,0.5);
}
.opinia-card.featured { border-top: 3px solid var(--gold); }
.opinia-quote-mark {
  font-size: 72px;
  font-weight: 900;
  color: rgba(212,175,55,0.08);
  line-height: 0.8;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.opinia-text {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 20px;
}
.opinia-divider {
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}
.opinia-author { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.opinia-detail { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #555; margin-top: 3px; text-transform: uppercase; }
.opinie-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-top: 3px solid var(--gold);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner .section-sub { margin: 0 auto 32px; max-width: 520px; text-align: center; }

/* CTA with photo background + layered gradient glow */
.cta-banner--photo {
  background:
    url('../images/hero-collage.jpg') center 30% / 110% auto no-repeat;
  border-color: rgba(212,175,55,0.3);
  border-top-width: 2px;
  padding: 100px 48px;
  isolation: isolate;
  background-attachment: scroll; /* disable parallax/pan on mobile */
}
@media (max-width: 768px) {
  .cta-banner--photo {
    background-size: cover;
    background-position: center center;
  }
}
.cta-banner--photo .section-title { font-size: 44px; }

/* Layer 1 — dark photo overlay */
.cta-banner--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 4, 1, 0.94) 0%,
    rgba(10, 8, 2, 0.88) 40%,
    rgba(6, 4, 1, 0.94) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Layer 2 — gold radial glow pulse */
.cta-banner--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,175,55,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(212,175,55,0.08) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

/* Ensure text sits above layers */
.cta-banner--photo > * {
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }

  /* Transformation blocks stack vertically */
  .transform-block {
    grid-template-columns: 1fr;
    /* Remove center divider on mobile */
  }
  .transform-block::after { display: none; }
  /* Reset reversed order on mobile — photo always on top */
  .transform-block--reversed .tf-content-side { order: 2; }
  .transform-block--reversed .tf-photo-side   { order: 1; }

  .tf-photo-side { min-height: 280px; }
  .tf-content-side { padding: 32px 24px; }
  .tf-result-number { font-size: 64px; }
  .tf-bg-number { font-size: 120px; }

  .opinie-grid { grid-template-columns: 1fr; }

  .tf-stats-strip { grid-template-columns: 1fr 1fr; }
  .tf-stat:nth-child(2) { border-right: none; }
  .tf-stat:nth-child(3) { border-top: 1px solid var(--border); grid-column: 1 / -1; }

  .cta-banner--photo .section-title { font-size: 32px; }
}

@media (max-width: 600px) {
  /* Keep hero visible but remove the photo — use dark gradient instead */
  .hero {
    display: flex;
    min-height: 58vh;
    background: linear-gradient(160deg, #0a0a0a 0%, #111 50%, #0d0c09 100%);
  }
  .hero-bg { display: none; } /* hide background image on mobile */
  .hero-overlay {
    background: radial-gradient(ellipse 100% 80% at 50% 60%, rgba(212,175,55,0.06) 0%, transparent 65%);
  }
  .hero h1 {
    font-size: 38px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(212,175,55,0.35), 0 0 80px rgba(212,175,55,0.15), 0 2px 16px rgba(0,0,0,0.8);
  }
  .hero h1 span {
    text-shadow: 0 0 30px rgba(212,175,55,0.7), 0 0 60px rgba(212,175,55,0.3);
  }
  .hero-sub { font-size: 13px; }
  .hero-content { padding: 0 18px; }

  .services-grid { gap: 12px; }
  .service-card { padding: 24px 20px; }

  .tf-photo-side { min-height: 240px; }
  .tf-content-side { padding: 28px 18px; }
  .tf-result-number { font-size: 52px; }
  .tf-stats-strip { grid-template-columns: 1fr; }
  .tf-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .tf-stat:last-child { border-bottom: none; }
  .tf-stat:nth-child(3) { grid-column: auto; border-top: none; }

  .cta-banner { padding: 48px 18px; }
  .cta-banner--photo { padding: 64px 18px; }
  .cta-banner--photo .section-title { font-size: 26px; }
  .opinie-ctas { flex-direction: column; }
  .opinie-ctas .btn { text-align: center; }
}
