/* Spartan Overhead Door, LLC - Red & Black Theme */
:root {
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-light: #EF4444;
  --black: #0A0A0A;
  --dark: #141414;
  --darker: #1F1F1F;
  --gray: #2A2A2A;
  --light-gray: #E5E5E5;
  --white: #FFFFFF;
  --text: #F5F5F5;
  --text-muted: #A3A3A3;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.red { color: var(--red); }
.bg-red { background: var(--red); }
.bg-dark { background: var(--dark); }
.bg-darker { background: var(--darker); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

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

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.25);
}

.header-top {
  background: #111;
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.55rem 0;
  text-align: center;
}

.header-top a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Call button in top bar - red button, white text */
.header-top .call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.header-top .call-btn:hover {
  background: var(--red-dark);
  color: #fff !important;
  transform: scale(1.04);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

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

.logo-text .tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  color: var(--text);
}

.nav a:hover,
.nav a.active {
  color: var(--red);
  background: rgba(220, 38, 38, 0.1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

.phone-link:hover { color: var(--red); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 50%, rgba(185,28,28,0.35) 100%),
              url('../images/hero.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--red);
  color: var(--red-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat {
  text-align: left;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--darker);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.service-card a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Areas / Locations */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.area-item {
  background: var(--darker);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 500;
  transition: var(--transition);
}

.area-item:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.08);
}

.area-item.home {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.12);
}

.area-item .state {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Why Us / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner p {
  margin-bottom: 1.75rem;
  opacity: 0.95;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.cta-banner .btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--darker);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.stars {
  color: #FBBF24;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-card p {
  font-style: italic;
  color: var(--light-gray);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.reviewer-info strong {
  display: block;
  font-size: 0.95rem;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

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

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

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.5rem 1rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item a:hover {
  color: var(--red);
}

.contact-form {
  background: var(--darker);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Footer */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text .brand {
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: var(--red);
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 2000;
  padding: 1.5rem 1.75rem;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
  display: flex;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.mobile-nav a {
  display: block;
  padding: 0.95rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.mobile-nav .btn {
  white-space: nowrap;
  margin-top: 1.5rem;
  text-align: center;
  justify-content: center;
}

.mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav, .header-cta {
    display: none; /* hide phone + button on mobile so they don't stack */
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-top {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
  .header-top .serving-text {
    display: none; /* hide long text on very small screens */
  }
  .header-top .call-btn {
    font-size: 1rem;
    padding: 0.45rem 1.4rem;
  }
  .logo img {
    height: 44px;
  }
  .logo-text .brand {
    font-size: 1.05rem;
  }
  .logo-text .tag {
    font-size: 0.65rem;
  }
  .hero {
    min-height: 70vh;
  }
  .hero-stats {
    gap: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2rem 0;
}

/* Service detail page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.service-detail ul {
  margin: 1.25rem 0;
}

.service-detail ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--light-gray);
}

.service-detail ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}