@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color System */
  --bg-primary: #07080a;
  --bg-secondary: #0f1115;
  --bg-tertiary: #171a21;
  --accent-orange: #ff5100;
  --accent-orange-hover: #ff6a20;
  --accent-orange-glow: rgba(255, 81, 0, 0.35);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism Details */
  --glass-bg: rgba(15, 17, 21, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 81, 0, 0.25);
  --glass-blur: 16px;
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Spacing system */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 81, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Utility Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(7, 8, 10, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--accent-orange);
  -webkit-text-fill-color: initial;
}

.nav-menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-orange);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .nav-cta { display: flex; }
  .mobile-toggle { display: none; }
}

/* Mobile Sidebar Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: var(--space-xxl);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(20%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(7, 8, 10, 0.8) 0%,
    rgba(7, 8, 10, 0.95) 50%,
    var(--bg-primary) 100%
  ),
  linear-gradient(
    to right,
    rgba(7, 8, 10, 0.9) 0%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 81, 0, 0.1);
  border: 1px solid rgba(255, 81, 0, 0.3);
  color: var(--accent-orange);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 81, 0, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 81, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 81, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 81, 0, 0);
  }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #fff 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-orange) 30%, #ff8c50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
  border: 1px solid var(--accent-orange);
  box-shadow: 0 4px 20px var(--accent-orange-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  box-shadow: 0 6px 24px rgba(255, 81, 0, 0.5);
  transform: translateY(-2px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-30deg);
  transition: none;
}

.btn-primary:hover::after {
  left: 150%;
  transition: left 0.7s ease-in-out;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.15rem;
}

/* Features Grid */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xxl);
}

@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-feature-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-feature-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
}

.hero-feature-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header Styling */
.section {
  padding: var(--space-xxl) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-head {
  max-width: 600px;
  margin-bottom: var(--space-xxl);
}

.section-subtitle {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
}

/* Glass Cards & Services */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 81, 0, 0.08);
  border: 1px solid rgba(255, 81, 0, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--accent-orange);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* How It Works List */
.step-list {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: var(--space-xxl);
}

.step-card::after {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(255, 81, 0, 0.15);
  transition: var(--transition-smooth);
}

.step-card:hover::after {
  color: var(--accent-orange);
}

/* Estimator Widget & ZIP checker */
.widget-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .widget-panel {
    grid-template-columns: 1.5fr 1fr;
  }
}

.estimator-card {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.15);
  background: var(--bg-secondary);
}

/* Custom Checkbox / Radio buttons */
.service-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .service-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-option-item {
  position: relative;
}

.service-option-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.service-option-label {
  display: block;
  padding: 0.75rem var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  user-select: none;
}

.service-option-input:checked + .service-option-label {
  border-color: var(--accent-orange);
  background: rgba(255, 81, 0, 0.08);
  color: #fff;
}

/* Quote Calculator Display */
.estimator-result {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
}

.estimator-result::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,81,0,0.3) 0%, transparent 50%, rgba(0,240,255,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.estimate-val-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.estimate-price-range {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin: var(--space-sm) 0;
  line-height: 1;
}

.estimate-details-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.estimate-details-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.estimate-details-list li::before {
  content: "✓";
  color: var(--accent-orange);
  font-weight: bold;
}

.zip-card {
  padding: var(--space-lg);
}

.zip-status {
  margin-top: var(--space-sm);
  padding: 0.75rem var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.zip-status.success {
  display: flex;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
}

.zip-status.fail {
  display: flex;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* Service Area Zip Tool Overlay styling */
.zip-check-row {
  display: flex;
  gap: var(--space-xs);
}

.zip-check-row input {
  flex: 1;
}

/* Testimonial Slider styling */
.review-card {
  padding: var(--space-lg);
}

.review-stars {
  color: var(--accent-orange);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
}

.review-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Contact Info styling */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--accent-orange);
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-item-lbl {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-item-val {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer Section */
.footer {
  background-color: #040507;
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xxl) 0 var(--space-lg);
  font-size: 0.9rem;
}

.footer-brand {
  margin-bottom: var(--space-xl);
}

.footer-desc {
  max-width: 320px;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
}

.footer-links-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #fff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-orange);
  padding-left: 2px;
}

.footer-bottom {
  margin-top: var(--space-xxl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-domains {
  margin-top: 0.5rem;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.footer-domain-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Fade-in Scroll Animations support */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
