/* ================================================================
   RK DESIGN STUDIO — Home Page Premium Styles v2.0
================================================================ */

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse, rgba(197,160,89,0.07) 0%, transparent 65%);
  animation: heroOrb1 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse, rgba(197,160,89,0.04) 0%, transparent 65%);
  animation: heroOrb2 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroOrb1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes heroOrb2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(60px, -40px) scale(1); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─── Hero Media Wrap (Slides + Video) ─── */
.hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Image slides */
.hero-slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero-slide.active .hero-slide-img { transform: scale(1); }

/* Video slide */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay above everything */
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.50) 45%,
    rgba(0,0,0,0.28) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(197,160,89,0.3);
  color: var(--gold);
  background: rgba(197,160,89,0.07);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: heroFadeUp 0.8s var(--ease-out) both;
  animation-delay: 0.2s;
}
.hero-title {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--white);
  margin-bottom: 24px;
  animation: heroFadeUp 0.8s var(--ease-out) both;
  animation-delay: 0.35s;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: heroFadeUp 0.8s var(--ease-out) both;
  animation-delay: 0.5s;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s var(--ease-out) both;
  animation-delay: 0.65s;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Slide Dots */
.hero-dots-bar {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}

/* Arrow Buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.hero-arrow:hover { border-color: var(--gold); background: rgba(197,160,89,0.15); }
.hero-arrow.prev { right: 24px; }
.hero-arrow.next { left: 24px; }

/* Social Side Strip */
.hero-social {
  position: absolute;
  bottom: 48px;
  right: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  font-size: 15px;
}
.hero-social a:hover { border-color: var(--gold); color: var(--gold); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

@media (max-width: 768px) {
  .hero-title { letter-spacing: -1.5px; }
  .hero-social, .hero-scroll { display: none; }
  .hero-arrow { display: none; }
  .hero-dots-bar { bottom: 32px; }
}

/* ─── About Strip ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold);
  color: var(--bg);
  padding: 22px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
}
.about-stat-card .big { font-size: 42px; font-weight: 900; line-height: 1; }
.about-stat-card .sm  { font-size: 13px; font-weight: 700; margin-top: 4px; }

/* ─── Two Pillars ─── */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 680px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: block;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  text-decoration: none;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-dim), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.pillar:hover {
  border-color: rgba(197,160,89,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(197,160,89,0.08);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}
.pillar-icon { font-size: 32px; margin-bottom: 20px; display: block; }
.pillar h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.pillar p { font-size: 14.5px; color: var(--ink-3); line-height: 1.8; margin-bottom: 24px; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pillar-tags span {
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: 11.5px;
  padding: 4px 13px;
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}
.pillar:hover .pillar-tags span { border-color: var(--gold-line); color: var(--gold); }
.pillar-link { color: var(--gold); font-weight: 700; font-size: 14px; transition: gap 0.2s; }

/* ─── Workflow Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold-line), transparent);
  pointer-events: none;
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
  position: relative;
}
.step:hover { border-color: rgba(197,160,89,0.3); transform: translateY(-4px); }
.step-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(197,160,89,0.18);
  line-height: 1;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.step h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step p  { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }

/* ─── Services Full Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.65);
  transition: transform 0.65s var(--ease-out), filter 0.4s;
}
.service-card:hover img { transform: scale(1.08); filter: grayscale(0%) brightness(0.85); }
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.service-num { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 6px; text-transform: uppercase; }
.service-title { font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.3; }

/* ─── Features Grid ─── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}
.feature:hover { border-color: rgba(197,160,89,0.3); transform: translateY(-4px); }
.feature-icon { font-size: 28px; margin-bottom: 20px; }
.feature h4 { font-size: 17px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.feature p  { font-size: 14px; color: var(--ink-3); line-height: 1.8; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--bg-3);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197,160,89,0.08) 0%, transparent 65%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 32px; }
}

/* ─── Planner Callout ─── */
.planner-callout {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 768px) {
  .planner-callout { flex-direction: column; text-align: center; padding: 40px 28px; }
}


/* ══════════════════════════════════════════
   MOBILE HERO FIXES
══════════════════════════════════════════ */

/* Video poster fallback */
.hero-video-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-slide-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Mobile hero height fix */
@media (max-width: 768px) {
  .hero {
    height: 100svh;
    min-height: 600px;
  }
  .hero-title {
    font-size: clamp(36px, 9vw, 56px);
    letter-spacing: -1px;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-tag {
    font-size: 10px;
    padding: 6px 14px;
    margin-bottom: 18px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
  }
  .hero-dots-bar {
    bottom: 24px;
  }
  /* Ken Burns subtle on mobile */
  .hero-slide-img {
    transform: scale(1.03) !important;
  }
  .hero-slide.active .hero-slide-img {
    transform: scale(1) !important;
  }
}

/* ══════════════════════════════════════════
   PARALLAX MOBILE FIX
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .parallax-banner {
    height: 260px;
  }
  /* Disable fixed attachment on mobile — use scroll instead */
  .parallax-img {
    background-attachment: scroll !important;
    /* Simulate parallax with Ken Burns */
    animation: kenBurnsMobile 12s ease-in-out infinite alternate;
  }
  @keyframes kenBurnsMobile {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, -1%); }
  }
  .parallax-overlay {
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    background: rgba(0,0,0,0.55);
  }
  .parallax-text .headline-md {
    font-size: clamp(22px, 6vw, 32px);
  }
}
