/* ═══════════════════════════════════════════════
   KALIBTOOZ — HOMEPAGE ADDITIONS
   Only elements not defined in style.css
   Loaded after style.css on index.html only
═══════════════════════════════════════════════ */

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 10001;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--serif); font-size: 80px; font-weight: 300;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: .2; transform: scale(.88); }
  50%       { opacity: 1; transform: scale(1); }
}

/* ── URGENCY BANNER ── */
#urgency-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(90deg, rgba(212,176,106,.12), rgba(212,176,106,.07));
  border-bottom: 1px solid rgba(212,176,106,.2);
  padding: 10px 56px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 12px; color: rgba(212,176,106,.9); letter-spacing: .3px;
  transition: transform .4s ease;
}
#urgency-banner.hidden { transform: translateY(-100%); }
#urgency-banner strong { color: rgba(212,176,106,1); font-weight: 600; }
#urgency-banner a  { color: rgba(212,176,106,.9); text-decoration: underline; text-underline-offset: 2px; }
#urgency-banner a:hover { color: #fff; }
.urgency-close {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(212,176,106,.55);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 8px;
  transition: color .2s;
}
.urgency-close:hover { color: rgba(212,176,106,1); }

/* Push nav below banner when it's visible */
nav { transition: top .4s ease; }
body.has-banner nav { top: 38px; }

/* ── NAV RIGHT SIDE ── */
.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-cta-btn {
  display: inline-flex; align-items: center;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0f0f12;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  border-radius: 100px;
  transition: all .4s var(--ease-expo);
  box-shadow: 0 0 18px rgba(45,226,230,.2);
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(45,226,230,.45), 0 8px 24px rgba(45,226,230,.25);
}

/* Override style.css .nav-menu-btn for hamburger icon */
.nav-menu-btn { gap: 0; letter-spacing: 0; text-transform: none; }
.nav-menu-btn:hover { color: var(--accent); }
.menu-hamburger line { transition: stroke .25s; }
.nav-menu-btn:hover .menu-hamburger line { stroke: var(--accent); }

/* ── HERO BADGES ── */
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-badge {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 100px;
  letter-spacing: .3px;
  transition: border-color .25s, color .25s;
  white-space: nowrap;
}
.hero-rating-badge { display: inline-flex; align-items: center; gap: 5px; }
.hero-badge:hover { border-color: rgba(45,226,230,.4); color: var(--text); }

/* ── HERO AVAILABILITY ── */
.hero-availability {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-top: 32px;
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  position: relative;
  animation: availPulse 2.4s ease-in-out infinite;
}
.avail-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(34,197,94,.4);
  animation: availPulse 2.4s ease-in-out infinite;
}
@keyframes availPulse {
  0%,100% { transform: scale(1); opacity: .7; }
  70%     { transform: scale(2.4); opacity: 0; }
}

/* ── WORK ADDITIONS ── */
/* .work-info groups name + type vertically in the grid cell */
.work-info { display: flex; flex-direction: column; gap: 4px; }

/* Footer row below the 3 work items */
.work-footer {
  padding: 52px 56px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}

/* ── PRICING TOGGLE (button-based, homepage only) ── */
.pricing-toggle-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 56px 0;
}
.pt-label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim); font-weight: 500; transition: color .25s;
}
.pt-label.pt-active { color: var(--text); }
.pt-yr em { font-style: normal; color: var(--accent2); font-size: 10px; margin-left: 4px; }
.pt-switch {
  position: relative; width: 44px; height: 24px;
  background: var(--border); border: none; border-radius: 100px;
  cursor: pointer; transition: background .3s ease; flex-shrink: 0;
}
.pt-switch.active { background: var(--accent); }
.pt-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .3s var(--ease-expo);
  pointer-events: none;
}
.pt-switch.active .pt-knob { transform: translateX(20px); }

/* ── PROCESS ── */
.process { padding: 120px 56px; border-bottom: 1px solid var(--border); }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
}
.process-step {
  padding: 52px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.process-step:last-child { border-right: none; }
.process-num {
  font-family: var(--serif); font-size: 48px; font-weight: 300;
  color: var(--accent); opacity: .3; line-height: 1;
}
.process-content h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  color: var(--text); margin: 0 0 12px; letter-spacing: -.5px;
}
.process-content p {
  font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0;
}

/* ── PRICING NOTE ── */
.pricing-note {
  padding: 24px 56px 72px;
  font-size: 12px; color: var(--muted); text-align: center;
}
.pricing-note a { color: var(--accent); text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; }


/* ── FOOTER ICON LINKS ── */
.social-icon-link {
  color: var(--disabled); text-decoration: none;
  display: inline-flex; align-items: center;
  transition: color .25s;
}
.social-icon-link:hover { color: var(--text); }
.footer-back-top {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--dim); text-decoration: none;
  letter-spacing: .5px; transition: color .25s;
}
.footer-back-top:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   HOMEPAGE RESPONSIVE — only new elements
   Global breakpoints already in style.css
═══════════════════════════════════════════════ */

@media (max-width: 1100px) {
  /* Process — 5 steps collapse to 2-col: [1,2] [3,4] [5] */
  .process { padding: 80px 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .process-step:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .process-step:nth-child(5) { border-top: 1px solid var(--border); border-right: none; }

  /* Urgency banner */
  #urgency-banner { padding: 8px 44px 8px 24px; font-size: 11px; }
  body.has-banner nav { top: 34px; }

  /* Nav */
  nav { padding: 22px 32px; }
  nav.scrolled { padding: 14px 32px; }

  /* Hero */
  .hero-left { padding: 160px 32px 80px; min-height: 88svh;
    background: linear-gradient(180deg, rgba(15,15,18,.95) 0%, rgba(15,15,18,.85) 100%); }

  /* Work */
  .work-footer { padding: 40px 32px; }

  /* Pricing toggle */
  .pricing-toggle-wrap { padding: 28px 32px 0; }
  .pricing-note { padding: 20px 32px 56px; }

  /* Section headers */
  .section-header { padding: 56px 32px 28px; }
  .section-header::after { left: 32px; }

  /* Menu */
  .menu-overlay { padding: 0 32px; }
  .menu-close { right: 32px; }
  .menu-links li a { font-size: clamp(40px, 7vw, 80px); }
}

@media (max-width: 768px) {
  /* Process */
  .process { padding: 60px 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; padding: 36px 0; }
  .process-step { border-top: 1px solid var(--border); }

  /* Hide desktop nav CTA (mobile nav covers it) */
  .nav-cta-btn { display: none; }

  /* Nav tighter */
  nav { padding: 18px 20px; }
  nav.scrolled { padding: 12px 20px; }

  /* Urgency banner compact */
  #urgency-banner { font-size: 11px; padding: 8px 40px 8px 16px; text-align: center; }

  /* Hero compact */
  .hero-left { padding: 130px 20px 72px; min-height: 90svh; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); letter-spacing: -2px; }
  .hero-eyebrow { margin-bottom: 32px; }
  .hero-tagline { font-size: 16px; margin: 20px 0 32px; }
  .hero-ctas { gap: 12px; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 10px; padding: 4px 10px; }
  .hero-availability { margin-top: 24px; }

  /* Work */
  .work-footer { padding: 28px 20px; }

  /* Pricing toggle */
  .pricing-toggle-wrap { padding: 20px 20px 0; }
  .pricing-note { padding: 14px 20px 48px; }

  /* Section headers */
  .section-header { padding: 48px 20px 24px; }
  .section-header::after { left: 20px; }

  /* Footer */
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .social-links { gap: 20px; }

  /* Menu */
  .menu-overlay { padding: 0 20px; }
  .menu-close { right: 20px; }
}

@media (max-width: 480px) {
  .process { padding: 48px 16px; }
  .process-step { padding: 28px 0; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); letter-spacing: -1.5px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn-glow, .btn-ghost { width: 100%; justify-content: center; }
  .work-footer { padding: 24px 16px; }
  .pricing-toggle-wrap { padding: 16px 16px 0; }
  .pricing-note { padding: 12px 16px 40px; }
  .section-header { padding: 40px 16px 20px; }
  .section-header::after { left: 16px; }
}

/* ── Touch: ensure tap targets have pointer cursor ── */
@media (hover: none) and (pointer: coarse) {
  a, button, .service-row, .work-item, .pricing-card, .faq-q,
  .pt-switch, .sticky-action { cursor: pointer; }
  .form-group select { cursor: pointer; }
}
