/* ============================================
   PRIME GARAGE DOOR SERVICES
   Mobile-First Production Stylesheet
   ============================================ */

:root {
  --primary-red: #E31E24;
  --dark: #0f0f0f;
  --dark-grey: #1a1a1a;
  --white: #ffffff;
  --light-grey: #f5f5f5;
  --text-grey: #555555;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky CTA */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1001;
}

.top-bar a {
  color: var(--primary-red);
  font-weight: 700;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--dark);
}

.brand-sub {
  font-size: 11px;
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  transition: right 0.35s ease;
  z-index: 1001;
  padding: 80px 30px 30px;
}

.main-nav.active {
  right: 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-red);
}

.header-cta {
  display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 50px 15px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227,30,36,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.emergency-tag {
  display: inline-block;
  background: rgba(227, 30, 36, 0.15);
  color: var(--primary-red);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(227, 30, 36, 0.3);
}

.hero h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 24px;
  line-height: 1.6;
}

.benefit-list {
  list-style: none;
  margin-bottom: 32px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #e0e0e0;
}

.benefit-list .check {
  color: var(--primary-red);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* Form Card */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-top: 4px solid var(--primary-red);
}

.form-card h3 {
  color: var(--dark);
  font-size: 20px;
  margin-bottom: 18px;
  text-align: center;
}

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

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form-card textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-submit:hover {
  background: #c41a20;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6f4ea;
  color: #1e8e3e;
}

.form-status.error {
  display: block;
  background: #fce8e8;
  color: #c5221f;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section {
  padding: 60px 15px;
}

.section-alt {
  background: var(--light-grey);
}

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

.section-label {
  display: inline-block;
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-grey);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* ============================================
   STATS / FEATURES
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-red);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 0.5px;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(227, 30, 36, 0.2);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  color: var(--primary-red);
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-grey);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-grey);
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.bullet-list {
  list-style: none;
  margin-top: 20px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.bullet-list .bullet {
  color: var(--primary-red);
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark-grey);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--white);
}

.gallery-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-red);
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stars {
  color: #f1c40f;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-grey);
  margin-bottom: 24px;
  line-height: 1.6;
}

.info-item {
  background: var(--white);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow);
}

.info-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
  font-size: 14px;
}

.info-item a {
  color: var(--primary-red);
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 15px 20px;
}

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

.footer-col h3 {
  color: var(--primary-red);
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  color: #aaaaaa;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #777;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-red);
  z-index: 999;
  display: flex;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 16px;
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* ============================================
   DESKTOP BREAKPOINT (768px+)
   ============================================ */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .section {
    padding: 80px 30px;
  }

  .header-inner {
    padding: 16px 30px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-overlay {
    display: none !important;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 28px;
  }

  .main-nav a {
    border-bottom: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    position: relative;
  }

  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 100%;
  }

  .header-cta {
    display: inline-flex;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
  }

  .header-cta:hover {
    background: #c41a20;
  }

  .hero {
    padding: 80px 30px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

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

  .mobile-sticky-cta {
    display: none;
  }
}

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 56px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}