/* =========================================================
   Kadraj Studyo — Motion Design Layer
   SEED 25: Geometric / Lens-focused / Structured
   ========================================================= */

/* =============================================================
   A: APERTURE IRIS REVEAL
   Circular diaphragm expanding from center — true camera feel
   ============================================================= */
.iris-overlay{
  position:fixed;inset:0;z-index:9998;
  pointer-events:none;
  background:var(--c-charcoal,#1c1917);
}
/* Inner ring decoration — copper accent */
.iris-overlay::before{
  content:'';position:absolute;
  top:50%;left:50%;
  width:80px;height:80px;
  margin:-40px 0 0 -40px;
  border:2px solid rgba(176,117,48,0.6);
  border-radius:50%;
  opacity:1;
  transition:opacity 0.3s 0.2s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
  transform:scale(1);
}
.iris-overlay.opening::before{
  opacity:0;
  transform:scale(8);
}
/* Expanding circle reveal via clip-path on the CONTENT behind */
.iris-overlay{
  animation:none;
  clip-path:inset(0);
  transition:clip-path 0.9s cubic-bezier(0.16,1,0.3,1),
             opacity 0.3s 0.7s ease;
}
.iris-overlay.opening{
  clip-path:inset(50% round 50%);
  opacity:0;
}

/* =============================================================
   B: BLUR-TO-SHARP FOCUS PULL
   ============================================================= */
.fx-focus{
  opacity:0;
  filter:blur(4px);
  transform:translateY(14px);
  transition:opacity 0.45s cubic-bezier(0.25,1,0.5,1),
             filter 0.45s cubic-bezier(0.25,1,0.5,1),
             transform 0.45s cubic-bezier(0.25,1,0.5,1);
  will-change:opacity,filter,transform;
}
.fx-focus.in-view{
  opacity:1;filter:blur(0);transform:translateY(0);
}

/* =============================================================
   B: STAGGERED CASCADE — cards, steps, contact-cards
   ============================================================= */
.fx-stagger>*{
  opacity:0;
  transform:translateY(18px) scale(0.98);
  transition:opacity 0.4s cubic-bezier(0.25,1,0.5,1),
             transform 0.4s cubic-bezier(0.25,1,0.5,1);
  will-change:opacity,transform;
}
.fx-stagger.in-view>*{opacity:1;transform:translateY(0) scale(1)}
.fx-stagger.in-view>:nth-child(1){transition-delay:0s}
.fx-stagger.in-view>:nth-child(2){transition-delay:0.07s}
.fx-stagger.in-view>:nth-child(3){transition-delay:0.14s}
.fx-stagger.in-view>:nth-child(4){transition-delay:0.21s}
.fx-stagger.in-view>:nth-child(5){transition-delay:0.28s}
.fx-stagger.in-view>:nth-child(6){transition-delay:0.35s}

/* =============================================================
   B: PERSPECTIVE TILT-IN — sections
   ============================================================= */
.fx-tilt{
  opacity:0;
  transform:perspective(1200px) rotateX(3deg) translateY(20px);
  transition:opacity 0.5s cubic-bezier(0.25,1,0.5,1),
             transform 0.5s cubic-bezier(0.25,1,0.5,1);
  will-change:opacity,transform;
}
.fx-tilt.in-view{
  opacity:1;
  transform:perspective(1200px) rotateX(0deg) translateY(0);
}

/* =============================================================
   C: UNDERLINE SLIDE — nav links
   ============================================================= */
.main-nav a,.nav-list a{position:relative;overflow:visible}
.main-nav a::after,.nav-list a::after{
  content:'';position:absolute;bottom:2px;left:14px;right:14px;
  height:2px;background:var(--c-copper);
  transform:scaleX(0);transform-origin:left;
  transition:transform 0.3s cubic-bezier(0.25,1,0.5,1);
  border-radius:1px;
}
.main-nav a:hover::after,.nav-list a:hover::after,
.main-nav a[aria-current="page"]::after,.nav-list a[aria-current="page"]::after{
  transform:scaleX(1);
}

/* =============================================================
   C: RIPPLE EFFECT — buttons
   ============================================================= */
.btn{position:relative;overflow:hidden}
.btn .ripple{
  position:absolute;border-radius:50%;
  background:rgba(255,255,255,0.35);
  transform:scale(0);
  animation:rippleOut 0.5s cubic-bezier(0.25,1,0.5,1) forwards;
  pointer-events:none;
}
.btn-secondary .ripple{background:rgba(176,117,48,0.15)}
@keyframes rippleOut{
  to{transform:scale(4);opacity:0}
}

/* =============================================================
   C: CARD LIFT + DYNAMIC SHADOW (enhanced)
   ============================================================= */
.card,.price-card,.contact-card,.step,.info-block,.payment-step{
  transition:transform 0.3s cubic-bezier(0.25,1,0.5,1),
             box-shadow 0.3s cubic-bezier(0.25,1,0.5,1);
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 48px rgba(0,0,0,0.10),0 4px 12px rgba(176,117,48,0.08);
}
.price-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 48px rgba(0,0,0,0.10),0 4px 12px rgba(176,117,48,0.08);
}
.contact-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,0.08);
}

/* =============================================================
   D: BLUR-IN PER WORD — hero heading
   ============================================================= */
.hero h1 .word{
  display:inline-block;
  opacity:0;
  filter:blur(6px);
  transform:translateY(8px);
  transition:opacity 0.35s cubic-bezier(0.25,1,0.5,1),
             filter 0.4s cubic-bezier(0.25,1,0.5,1),
             transform 0.35s cubic-bezier(0.25,1,0.5,1);
  will-change:opacity,filter,transform;
}
.hero h1 .word.revealed{
  opacity:1;filter:blur(0);transform:translateY(0);
}

/* hero subtitle + actions fade in after words */
.hero .hero-subtitle{
  opacity:0;transform:translateY(8px);
  transition:opacity 0.4s cubic-bezier(0.25,1,0.5,1),
             transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
.hero.words-done .hero-subtitle{opacity:1;transform:translateY(0)}
.hero .hero-actions{
  opacity:0;transform:translateY(8px);
  transition:opacity 0.35s 0.1s cubic-bezier(0.25,1,0.5,1),
             transform 0.35s 0.1s cubic-bezier(0.25,1,0.5,1);
}
.hero.words-done .hero-actions{opacity:1;transform:translateY(0)}

/* =============================================================
   E: GRADIENT ORBS — hero background
   ============================================================= */
.hero{position:relative;overflow:hidden}
.hero::before,.hero::after{
  content:'';position:absolute;border-radius:50%;
  pointer-events:none;
  filter:blur(80px);opacity:0.35;
  animation:orbFloat 12s ease-in-out infinite alternate;
}
.hero::before{
  width:420px;height:420px;
  background:radial-gradient(circle,rgba(176,117,48,0.4),transparent 70%);
  top:-120px;right:-80px;
}
.hero::after{
  width:350px;height:350px;
  background:radial-gradient(circle,rgba(201,142,74,0.3),transparent 70%);
  bottom:-100px;left:-60px;
  animation-delay:-6s;
}
@keyframes orbFloat{
  0%{transform:translate(0,0) scale(1)}
  50%{transform:translate(30px,-20px) scale(1.08)}
  100%{transform:translate(-20px,15px) scale(0.95)}
}

/* =============================================================
   E: FLOATING BOKEH PARTICLES — canvas behind hero
   ============================================================= */
#bokeh-canvas{
  position:absolute;inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.5;
}
.hero .container{position:relative;z-index:1}

/* =============================================================
   F: FLOATING LABELS + FOCUS GLOW
   ============================================================= */
.form-group{position:relative}
.form-group label{
  transition:transform 0.25s cubic-bezier(0.25,1,0.5,1),
             font-size 0.25s cubic-bezier(0.25,1,0.5,1),
             color 0.25s cubic-bezier(0.25,1,0.5,1);
  transform-origin:left top;
}
.form-group input:focus,.form-group textarea:focus{
  box-shadow:0 0 0 3px rgba(176,117,48,0.12),0 0 20px rgba(176,117,48,0.06);
}
.form-group input:focus~label,.form-group textarea:focus~label{
  color:var(--c-copper);
}

/* =============================================================
   LOGO SPIN ON HOVER
   ============================================================= */
.logo-icon{
  transition:transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.logo:hover .logo-icon{
  transform:rotate(90deg);
}

/* =============================================================
   REDUCED MOTION — disable everything
   ============================================================= */
@media(prefers-reduced-motion:reduce){
  .iris-overlay{display:none!important}
  .fx-focus,.fx-tilt,.fx-stagger>*{
    opacity:1!important;filter:none!important;transform:none!important;
    transition:none!important;
  }
  .hero h1 .word{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
  .hero .hero-subtitle,.hero .hero-actions{opacity:1!important;transform:none!important;transition:none!important}
  .hero::before,.hero::after{animation:none!important}
  #bokeh-canvas{display:none!important}
  .btn .ripple{display:none!important}
  .logo-icon{transition:none!important}
  .main-nav a::after,.nav-list a::after{transition:none!important}
}

/* =============================================================
   MOBILE — disable heavy effects
   ============================================================= */
@media(max-width:768px){
  .hero::before,.hero::after{display:none}
  #bokeh-canvas{display:none}
  .fx-tilt{
    transform:none;opacity:0;
    transition:opacity 0.4s cubic-bezier(0.25,1,0.5,1);
  }
  .fx-tilt.in-view{opacity:1}
  .main-nav a::after,.nav-list a::after{display:none}
}
