/* Orange Appliance — Custom Styles */

html { scroll-behavior: smooth; }

:root {
  --brand: #FF6200;
  --brand-dark: #e05500;
  --brand-light: #fff7ed;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #FF6200; border-radius: 3px; }

/* ── LOADING SCREEN ──────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loading-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loading-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#loading-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: roll-in-from-right 0.9s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes roll-in-from-right {
  0% {
    transform: translateX(320px) rotate(540deg) scale(0.6);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

#loading-brand {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up-brand 0.5s ease 0.85s forwards;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
#loading-brand .o { color: #FF6200; }
#loading-brand .a { color: #111; }

@keyframes fade-up-brand {
  to { opacity: 1; transform: translateY(0); }
}

#loading-tagline {
  opacity: 0;
  animation: fade-up-brand 0.5s ease 1.1s forwards;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.04em;
}

#loading-bar-wrap {
  width: 140px;
  height: 3px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  animation: fade-up-brand 0.3s ease 1.1s forwards;
  margin-top: 8px;
}
#loading-bar {
  height: 100%;
  background: #FF6200;
  border-radius: 99px;
  width: 0%;
  animation: loading-progress 1.4s ease 1.15s forwards;
}
@keyframes loading-progress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.09); }

/* ── HERO — CENTERED DESIGN ──────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,98,0,0.12);
  color: #fb923c;
  border: 1px solid rgba(255,98,0,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-logo-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,98,0,0.25) 0%, transparent 70%);
  animation: logo-glow-pulse 3s ease-in-out infinite;
}
.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,98,0,0.25);
  animation: logo-ring-spin 12s linear infinite;
}

@keyframes logo-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}
@keyframes logo-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255,98,0,0.4));
}

.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.hero-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s;
}
.hero-service-pill:hover {
  background: rgba(255,98,0,0.15);
  border-color: rgba(255,98,0,0.3);
  color: rgba(255,255,255,0.9);
}

/* Central glow */
.hero-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,98,0,0.13) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 4s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:.55s; }
.reveal-stagger.visible > *:nth-child(7) { opacity:1;transform:none;transition-delay:.65s; }
.reveal-stagger.visible > *:nth-child(8) { opacity:1;transform:none;transition-delay:.75s; }
.reveal-stagger.visible > *:nth-child(9) { opacity:1;transform:none;transition-delay:.85s; }

/* ── SERVICE CARDS ───────────────────────────────────────────── */
.service-card { transition: all 0.25s ease; }
.service-card:hover { transform: translateY(-4px); }

/* ── BRANDS ──────────────────────────────────────────────────── */
.brand-badge { transition: all 0.2s ease; border: 2px solid transparent; }
.brand-badge:hover {
  border-color: #FF6200;
  background: #fff7ed;
  transform: scale(1.04);
}

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonial-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ── FORM ────────────────────────────────────────────────────── */
.form-input {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  font-size: 15px;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus { outline: none; border-color: #FF6200; background: rgba(255,255,255,0.12); }
.form-input option { color: #111; background: white; }

/* ── BUTTON ──────────────────────────────────────────────────── */
.btn-orange {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-orange::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-orange:hover::after { left: 120%; }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open { max-height: 400px; }

/* ── MISC ────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #FF6200, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-bar { background: linear-gradient(90deg, #e05500 0%, #FF6200 50%, #ff8c00 100%); }
.hero-wave svg { display: block; margin-bottom: -2px; }

.lang-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle a {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  border-radius: 999px;
}
.lang-toggle a.active, .lang-toggle a:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* ── KAKAOTALK QR HOVER ───────────────────────────────────────── */
.kakao-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(254,229,0,0.12);
  border: 1px solid rgba(254,229,0,0.28);
  border-radius: 16px;
  transition: background 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.kakao-link:hover { background: rgba(254,229,0,0.22); }

/* QR thumbnail always visible */
.kakao-qr-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: white;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

/* QR popover — desktop hover only */
.kakao-qr-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;
  z-index: 100;
  pointer-events: none;
  min-width: 200px;
}
.kakao-qr-popover img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.kakao-qr-popover p {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  font-weight: 500;
}
.kakao-qr-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 28px;
  border: 8px solid transparent;
  border-top-color: white;
}

/* Show popover on hover — desktop only */
@media (hover: hover) and (pointer: fine) {
  .kakao-link:hover .kakao-qr-popover {
    display: block;
  }
}
