/* LockerUp Self Storage - Custom Styles */

:root {
  --navy: #001F44;
  --orange: #FF8200;
  --light-grey: #A6AAB8;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --dark-text: #1A1A2E;
  --body-text: #4A4A5A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body-text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 31, 68, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #e67400;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 130, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #003366 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 130, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 130, 0, 0.15);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.size-option:hover {
  background: rgba(255, 130, 0, 0.15);
  border-color: var(--orange);
}

.size-option .size-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
}

.size-option .size-dim {
  font-size: 0.85rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.85);
}

.size-option .size-price {
  font-weight: 700;
  color: var(--orange);
  font-size: 1.1rem;
}

/* How It Works */
.section {
  padding: 80px 24px;
}

.section-dark {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-navy .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--body-text);
  max-width: 560px;
  margin: 0 auto;
}

.section-navy .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 31, 68, 0.06);
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--orange), #FFa040);
  color: var(--white);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 16px;
  margin-bottom: 20px;
}

.step-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Unit Sizes */
.units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.unit-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 31, 68, 0.06);
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.unit-card:hover, .unit-card.popular {
  border-color: var(--orange);
}

.unit-card.popular {
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unit-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--off-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-icon svg {
  width: 36px;
  height: 36px;
  color: var(--navy);
}

.unit-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.unit-card .unit-dimensions {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin-bottom: 8px;
}

.unit-card .unit-fits {
  font-size: 0.88rem;
  color: var(--body-text);
  margin-bottom: 16px;
  min-height: 44px;
}

.unit-card .unit-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.unit-card .unit-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-grey);
}

.unit-card .btn {
  margin-top: 16px;
  width: 100%;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 130, 0, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--orange), #FFa040);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
}

/* Responsive */
@media (max-width: 1024px) {
  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .units-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================
   LIVE DATA: Sold Out & Availability
   ============================ */

/* --- Unit card sold-out overlay --- */
.unit-card.unit-sold-out {
  position: relative;
  opacity: 0.75;
  pointer-events: none;
}

.unit-card.unit-sold-out .btn-waitlist {
  pointer-events: auto;
  background: var(--light-grey);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 1;
}

.sold-out-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 68, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
  pointer-events: auto;
  cursor: pointer;
}

.sold-out-banner span {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 3px;
}

.sold-out-banner small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* --- Availability badges on unit cards --- */
.availability-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 180, 80, 0.1);
  color: #00a84f;
  display: inline-block;
  margin-bottom: 8px;
}

.availability-badge.low {
  background: rgba(255, 130, 0, 0.12);
  color: var(--orange);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Quick Quote sold-out state --- */
.size-option.sold-out {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.sold-out-tag {
  background: rgba(255, 60, 60, 0.2);
  color: #ff4444;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.low-stock {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}
