@import './design-system.css';

/* Navbar - Clean White Luxury Glass Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(205, 4, 11, 0.28);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.brand-logo:hover .brand-mark {
  box-shadow: 0 6px 20px rgba(205, 4, 11, 0.4);
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 850;
  font-size: 1.42rem;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 8px 14px;
  height: 38px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
}

.nav-link.active {
  color: #FFFFFF;
  background: #031E49;
  box-shadow: 0 4px 12px rgba(3, 30, 73, 0.2);
}

.nav-link.active::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.92rem;
  height: 42px;
  padding: 0 20px;
  background: #031E49;
  border: 1px solid transparent;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(3, 30, 73, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  line-height: 1;
}

.phone-badge:hover {
  background: #0066FF;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero Section - Clean Light Storefront */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 80px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(0, 159, 219, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
              radial-gradient(circle at 15% 80%, rgba(205, 4, 11, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  background: #FFF0F1;
  border: 1px solid #FFCCD0;
  color: var(--verizon-red);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #0F172A;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.availability-card {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  max-width: 600px;
}

.availability-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.availability-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zip-form {
  display: flex;
  gap: 12px;
}

.zip-input-wrapper {
  flex: 1;
  position: relative;
}

.zip-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.zip-input:focus {
  outline: none;
  border-color: var(--att-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 159, 219, 0.15);
}

.zip-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-medium);
}

.partner-pill-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.partner-logo-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Hero Right Side - 3D Interactive Fiber Showroom & Floating Badges */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 520px;
}

.floating-stat-card {
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
  border-color: var(--border-medium);
}

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

.animate-float {
  animation: floatSmooth 6s ease-in-out infinite;
}

/* Providers Grid & Section - Perfectly Centered and Responsive */
.section-padding {
  padding: 100px 0;
}

.section-bg-light {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.filter-tab {
  padding: 12px 26px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab:hover {
  background: var(--bg-surface);
  border-color: var(--text-main);
  color: var(--text-main);
}

.filter-tab.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

/* Provider Cards Grid - Centered auto-fit for symmetry */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.provider-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.provider-card:hover {
  border-color: var(--att-blue);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-5px);
}

.provider-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.provider-logo-wrap {
  height: 48px;
  max-width: 160px;
  display: flex;
  align-items: center;
}

.provider-logo-wrap svg {
  max-height: 100%;
  max-width: 100%;
}

.provider-popular-pill {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.provider-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.35;
}

.provider-specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.spec-item h5 {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.spec-item p {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.spec-item p.price-highlight {
  color: var(--verizon-red);
  font-size: 1.4rem;
}

.provider-features-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.provider-features-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.provider-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  font-weight: 900;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-ideal {
  background: #F8FAFC;
  border-left: 3px solid var(--xyzies-orange);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 600;
}

.provider-card-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 12px;
}

/* Lifestyle Experience Section (#experience) - Centered auto-fit grid */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 32px;
  width: 100%;
}

.lifestyle-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.lifestyle-img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.lifestyle-card:hover .lifestyle-img {
  transform: scale(1.05);
}

.lifestyle-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.lifestyle-badge {
  display: inline-block;
  background: #FFF0F1;
  color: var(--verizon-red);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.lifestyle-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.lifestyle-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.lifestyle-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.perk-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Speed Calculator (#matcher) Sliders & Polish */
.custom-range-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #E2E8F0;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  -webkit-appearance: none;
  transition: background 0.2s ease;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0F172A;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--verizon-red);
}

/* Why Choose Us & XYZies Partnership Banner */
.partnership-banner {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 32px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin: 40px auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.partnership-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 92, 1, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.partnership-title {
  font-size: 2.4rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.partnership-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 28px;
  line-height: 1.6;
}

.partnership-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F8FAFC;
  font-weight: 700;
  font-size: 0.95rem;
}

.check-item span {
  color: var(--xyzies-orange);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Footer - Clean Executive Flagship Footer */
.footer {
  background: #031E49;
  color: #F8FAFC;
  padding: 80px 0 40px 0;
  border-top: 4px solid #0066FF;
}

#btn-toggle-providers:hover {
  background: #031E49 !important;
  color: #FFFFFF !important;
  border-color: #031E49 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(3, 30, 73, 0.25) !important;
}

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

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: #64748B;
  font-size: 0.88rem;
}

/* Modal - Clean Storefront Quote Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #F1F5F9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #E2E8F0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--verizon-red);
  background: #FFFFFF;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .partnership-banner {
    grid-template-columns: 1fr;
    padding: 48px 32px;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #mobile-toggle {
    display: block !important;
    font-size: 1.6rem;
    color: var(--text-main);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 24px 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 8px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  .nav-link.active::after {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .providers-grid {
    grid-template-columns: 1fr;
  }
  .provider-specs-row {
    grid-template-columns: 1fr;
  }
  .provider-card-actions {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
