/* ====================================================================
   IRON MASTER - Public Landing Page & Web Stylesheet (landing.css)
   ==================================================================== */

:root {
  --im-navy: #0B285C;
  --im-navy-dark: #071A3D;
  --im-blue: #0756B5;
  --im-royal: #1D4ED8;
  --im-cyan: #08A9EE;
  --im-pale-blue: #DCEBFF;
  --im-bg: #F8FAFC;
  --im-card-bg: #FFFFFF;
  --im-text-dark: #0F172A;
  --im-text-muted: #64748B;
  --im-border: #E2E8F0;
  --im-gold: #F59E0B;
  --im-green: #10B981;
}

/* Base resets & typography for public pages */
body.im-public-body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--im-text-dark);
  background-color: var(--im-bg);
  overflow-x: clip;
}

/* Public Header Nav */
.im-public-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--im-border);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: all 0.25s ease;
}

.im-public-nav.scrolled {
  box-shadow: 0 4px 20px rgba(11, 40, 92, 0.08);
}

.im-nav-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.im-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--im-navy);
}

.live-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Navigation Links */
.im-nav-links .nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.im-nav-links .nav-link:hover,
.im-nav-links .nav-link.active {
  color: var(--im-blue);
  background: rgba(7, 86, 181, 0.06);
}

/* Action Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0756B5 0%, #08A9EE 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 20px rgba(7, 86, 181, 0.28);
  transition: all 0.25s ease;
}

.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(7, 86, 181, 0.38);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmerMove 3.5s infinite;
  pointer-events: none;
}

@keyframes shimmerMove {
  0% { left: -100%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(8, 169, 238, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(11, 40, 92, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
  padding: 3rem 1.5rem 4rem;
  border-bottom: 1px solid var(--im-border);
}

.hero-main-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--im-navy);
  letter-spacing: -0.6px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--im-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Hero Photo Stage */
.hero-image-stage {
  position: relative;
  width: 100%;
}

.hero-switcher-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(11, 40, 92, 0.06);
  padding: 4px;
  border-radius: 24px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(11, 40, 92, 0.08);
  max-width: 100%;
}

.hero-switch-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--im-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-switch-btn.active {
  background: #FFFFFF;
  color: var(--im-blue);
  box-shadow: 0 2px 8px rgba(11, 40, 92, 0.12);
}

.hero-main-photo-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 40, 92, 0.18);
  border: 4px solid #FFFFFF;
  background: var(--im-navy);
  width: 100%;
  height: 420px;
}

@media (max-width: 768px) {
  .hero-main-photo-frame {
    height: 290px;
  }
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease, transform 4.5s ease-out;
}

/* Hero Animated Slider */
.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide .hero-main-img {
  transform: scale(1);
}

.hero-slide.active .hero-main-img {
  animation: heroKenBurns 5.2s ease-out forwards;
}

@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(11, 40, 92, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-slider-arrow:hover {
  background: rgba(7, 86, 181, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 40, 92, 0.48);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-slider-dot.active {
  width: 24px;
  background: #FFFFFF;
}

/* Floating Badges */
.hero-badge-floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(8, 169, 238, 0.35);
  box-shadow: 0 10px 30px rgba(11, 40, 92, 0.16);
  border-radius: 16px;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.badge-top-right {
  top: 14px;
  right: -10px;
  animation: floatAnim 4.5s ease-in-out infinite;
}

.badge-bottom-left {
  bottom: 48px;
  left: -10px;
  animation: floatAnimAlt 5s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatAnimAlt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 640px) {
  .hero-badge-floating {
    position: static;
    margin-top: 0.75rem;
    animation: none !important;
  }
}

/* Interactive Hover Lift */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(11, 40, 92, 0.1) !important;
  border-color: rgba(8, 169, 238, 0.5) !important;
}

/* Home Price Filter Tabs */
.home-price-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.home-price-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--im-border);
  padding: 0.55rem 1.25rem;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--im-navy);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(11, 40, 92, 0.04);
}

.home-price-tab-btn:hover {
  border-color: var(--im-blue);
  color: var(--im-blue);
}

.home-price-tab-btn.active {
  background: var(--im-navy);
  border-color: var(--im-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 40, 92, 0.2);
}

/* Step Number Badges in How it works */
.step-number-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
}

/* FAQ Details Accordion */
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--im-navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 1.3rem;
  color: var(--im-blue);
}

/* Public Footer */
.im-public-footer {
  background: var(--im-navy-dark);
  color: #94A3B8;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.im-public-footer h6 {
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.im-public-footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.im-public-footer a:hover {
  color: var(--im-cyan);
}

/* Order Tracker Progress Bar */
.track-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 8px auto;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.track-step.completed .track-step-circle {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.track-step.active .track-step-circle {
  background: var(--im-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(7, 86, 181, 0.4);
  animation: pulseStep 1.8s infinite;
}

.track-step.pending .track-step-circle {
  background: #E2E8F0;
  color: #94A3B8;
}

@keyframes pulseStep {
  0% { box-shadow: 0 0 0 0 rgba(7, 86, 181, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(7, 86, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 86, 181, 0); }
}

/* ====================================================================
   PUBLIC NATIVE MOBILE APP LAYOUT & PWA FEEL
   ==================================================================== */
@media (max-width: 991.98px) {
  body.im-public-body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .im-public-nav {
    height: 56px;
    padding: 0 10px;
  }

  .native-back-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F1F5F9;
    color: var(--im-navy);
    border: 1px solid #E2E8F0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .native-back-arrow:active {
    transform: scale(0.92);
    background-color: #E2E8F0;
  }

  .mobile-appbar-title h6 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--im-navy);
    letter-spacing: -0.01em;
  }

  /* Public Mobile Bottom Tab Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(11, 40, 92, 0.08);
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748B;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 6px;
    min-width: 54px;
    border-radius: 12px;
    transition: all 0.15s ease;
    cursor: pointer;
  }
  .mobile-nav-item i {
    font-size: 1.28rem;
    margin-bottom: 2px;
  }
  .mobile-nav-item:active {
    transform: scale(0.92);
  }
  .mobile-nav-item.active {
    color: var(--im-blue);
  }

  .mobile-nav-center-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0756B5 0%, #08A9EE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(7, 86, 181, 0.4);
    margin-top: -26px;
    border: 3.5px solid #fff;
    text-decoration: none;
    transition: transform 0.15s ease;
  }
  .mobile-nav-center-btn:active {
    transform: scale(0.92);
  }

  /* Form & card optimizations */
  .im-card, .card {
    border-radius: 16px;
  }
  .btn {
    min-height: 44px;
    border-radius: 12px;
  }
}

/* Responsive Fix: Navbar items clipping between 992px and 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .im-public-nav .im-hub-pill {
    display: none !important;
  }
  .im-nav-links {
    gap: 2px !important;
  }
  .im-nav-links .nav-link {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.45rem !important;
  }
  .im-nav-brand img {
    height: 36px !important;
    max-width: 160px !important;
  }
}

/* Responsive Fix: Footer overlap with fixed bottom navigation & CTA bar on mobile */
@media (max-width: 767.98px) {
  .im-public-footer {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


