/* ═══════════════════════════════════════════════════════════════
   DoorCo — World-Class Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Base Reset & Typography ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1a1a2e; overflow-x: hidden; }

/* ── Scroll Reveal Animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Hero Parallax ──────────────────────────────────────────── */
.hero-parallax {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-parallax .hero-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-parallax .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(22,33,62,0.72) 50%, rgba(26,26,46,0.6) 100%);
}
.hero-parallax .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 900px;
}

/* Sub-page hero (shorter) */
.hero-sub {
  min-height: 50vh;
}

/* ── Animated Gradient Text ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #e94560, #f5a623, #e94560);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Floating Animation ─────────────────────────────────────── */
.float-gentle {
  animation: floatGentle 6s ease-in-out infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Pulse Glow ─────────────────────────────────────────────── */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 25px rgba(233, 69, 96, 0.6), 0 0 50px rgba(233, 69, 96, 0.2); }
}

/* ── Card Hover Effects ─────────────────────────────────────── */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ── Image Zoom on Hover ────────────────────────────────────── */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}
.nav-fixed.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.nav-fixed.scrolled .nav-link {
  color: #1a1a2e !important;
  text-shadow: none !important;
}
.nav-fixed.scrolled .nav-link:hover {
  color: #e94560 !important;
}
.nav-fixed.scrolled .nav-phone {
  color: #1a1a2e !important;
  text-shadow: none !important;
}
.nav-fixed.scrolled .nav-logo {
  filter: none !important;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.nav-phone {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: #e94560;
}

/* ── Counter Animation ──────────────────────────────────────── */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ── Testimonial Carousel ───────────────────────────────────── */
.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .testimonial-card { flex: 0 0 50%; }
}
@media (min-width: 1024px) {
  .testimonial-card { flex: 0 0 33.333%; }
}

/* ── Section Divider Wave ───────────────────────────────────── */
.wave-divider {
  position: relative;
  overflow: hidden;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 C300 20 600 80 900 40 C1050 20 1150 50 1200 40 V80 H0Z' fill='%23f8f9fa'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}
.wave-divider-white::after {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 C300 20 600 80 900 40 C1050 20 1150 50 1200 40 V80 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #e94560, #d63a54);
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}
.btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: white;
  color: #1a1a2e;
  border-color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: #e94560;
  color: #e94560;
  transform: translateY(-1px);
}

/* ── Service Card ───────────────────────────────────────────── */
.service-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: #e94560;
}
.service-card .service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Team Grid ──────────────────────────────────────────────── */
.team-card {
  text-align: center;
  transition: transform 0.4s ease;
}
.team-card:hover {
  transform: translateY(-4px);
}
.team-card .team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #e94560, #f5a623);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  position: relative;
  overflow: hidden;
}
.team-card .team-avatar::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
  z-index: 0;
}
.team-card .team-avatar span {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e94560, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Partner Logos ───────────────────────────────────────────── */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Emergency Pulse ────────────────────────────────────────── */
.emergency-pulse {
  animation: emergencyPulse 1.5s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e94560;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 900;
  border: none;
  box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233,69,96,0.5);
}

/* ── Form Inputs ────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}
.form-input:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

/* ── Loading Skeleton ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Calculator Specific ────────────────────────────────────── */
.step-section { display: none; }
.step-section.active { display: block; animation: fadeInUp 0.4s ease-out; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.option-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
  position: relative;
}
.option-card:hover {
  border-color: #e94560;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
}
.option-card.selected {
  border-color: #e94560;
  background: linear-gradient(135deg, #fff5f7, #ffffff);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}
.option-card.selected::after {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #e94560;
  font-size: 1.25rem;
}

.progress-step { transition: all 0.3s ease; }
.progress-step.completed .step-dot { background: #e94560; color: white; }
.progress-step.active .step-dot {
  background: #e94560;
  color: white;
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2);
}
.progress-step .step-dot { background: #e5e7eb; color: #9ca3af; }
.progress-line.completed { background: #e94560; }

.style-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
@media (min-width: 768px) {
  .style-img { height: 160px; }
}

.helper-tip { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }

.price-reveal { animation: priceReveal 0.6s ease-out; }
@keyframes priceReveal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.pulse-price { animation: pulseBg 0.5s ease; }
@keyframes pulseBg {
  0% { background-color: #fef2f2; }
  100% { background-color: transparent; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-parallax { min-height: 70vh; }
  .hero-sub { min-height: 40vh; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .nav-fixed, .back-to-top, .mobile-menu { display: none !important; }
}
