/* === 920 Garage Door Repair — Stylesheet === */

:root {
  --primary: #c9411e;
  --primary-dark: #a83418;
  --secondary: #1a2634;
  --accent: #f0a500;
  --dark: #111;
  --gray-900: #1a1a2e;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #bbb;
  --gray-100: #f5f5f5;
  --white: #fff;
  --green: #2e7d32;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--gray-700); font-size: 1rem; line-height: 1.75; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* Emergency Banner */
.emergency-banner {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.emergency-banner a { color: var(--accent); font-weight: 700; }

/* Header — fixed, white background */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 12px 24px;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.logo a { color: var(--secondary); }
.logo span { color: var(--primary); }
.logo small {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a,
.nav-dropdown > a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: color 0.2s;
}
.main-nav > a:hover,
.nav-dropdown > a:hover,
.main-nav > a.active { color: var(--primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.6rem; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--gray-100); opacity: 1; }

/* Header phone */
.header-phone {
  display: flex;
  align-items: center;
}
.header-phone a {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(232, 117, 10, 0.5), 0 0 24px rgba(232, 117, 10, 0.25);
  transition: text-shadow 0.2s;
}
.header-phone a:hover {
  text-shadow: 0 0 18px rgba(232, 117, 10, 0.7), 0 0 36px rgba(232, 117, 10, 0.4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--secondary);
  padding: 4px;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    padding: 8px 0;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-dropdown-menu { position: static; box-shadow: none; padding-left: 16px; background: var(--gray-100); min-width: auto; }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(26,38,52,0.88) 0%, rgba(13,20,30,0.94) 100%),
              url('/assets/images/hero-garage-door.jpg') center/cover no-repeat;
  color: var(--white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero .container { max-width: 900px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero Split (text + map side by side) */
.hero-split {
  min-height: auto;
  padding: 60px 0;
}
.hero-split .container { max-width: 1400px; }
@media (max-width: 900px) {
  .hero-split .container { gap: 30px; }
  .hero-split .hero-text,
  .hero-split .hero-map {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  .hero-split .hero-text { text-align: center; }
  .hero-split .hero-cta { justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); opacity: 1; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--secondary); opacity: 1; }
.btn-dark { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-dark:hover { background: transparent; color: var(--secondary); opacity: 1; }
.btn-lg { padding: 16px 40px; font-size: 0.85rem; }

/* Sections */
section { padding: 70px 0; }
.bg-light, section:nth-child(even) { background: var(--gray-100); }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.service-card h3 a { color: var(--secondary); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--white);
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-2px); }
.why-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.why-card h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.why-card p { color: var(--gray-500); font-size: 0.85rem; }

/* Service area */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 768px) {
  .service-area-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .service-area-grid { grid-template-columns: 1fr; }
}
.service-area-item {
  display: block;
  padding: 6px 4px;
  background: var(--white);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.service-area-item:hover { border-color: var(--secondary); opacity: 1; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial { background: var(--white); padding: 30px 24px; }
.testimonial .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial p { color: var(--gray-700); font-style: italic; font-size: 0.92rem; }
.testimonial .author {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
  font-style: normal;
}

/* CTA section */
section.cta-section {
  background: #c9411e;
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.cta-section h2 { color: var(--white); text-transform: uppercase; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--secondary); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--secondary);
  color: var(--white);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col p a {
  display: inline;
  padding: 0;
}
.footer-col a:hover { color: var(--white); opacity: 1; }
.footer-col p { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white);
  padding: 36px;
  max-width: 540px;
  width: 92%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}
.modal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.modal-box .subtitle { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 22px; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}
.form-group textarea { min-height: 75px; resize: vertical; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-submit:hover { background: transparent; color: var(--secondary); }
.form-disclaimer { text-align: center; font-size: 0.73rem; color: var(--gray-500); margin-top: 10px; }

/* Spinner & success */
.modal-spinner, .form-success { display: none; text-align: center; padding: 30px; }
.modal-spinner.active, .form-success.active { display: block; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* Content pages */
.content-page { padding: 50px 0; }
.content-page h1 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.content-page h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}
.content-page a:not(.btn):not(.service-area-item) { color: var(--primary); text-decoration: underline; font-weight: 600; }

/* Inline CTA */
.cta-inline {
  background: var(--primary);
  color: var(--white);
  padding: 22px;
  text-align: center;
  margin: 28px 0;
}
.cta-inline p {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Hero fallback if no background image loads */
.hero { background-color: var(--secondary); }