/* =========================================
   midnight Towing - Global Stylesheet
   ========================================= */

:root {
  /* Brand Colors */
  --primary-navy: #0f172a;
  --secondary-navy: #1e293b;
  --accent-red: #d90429;
  --accent-amber: #ffb703;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #ffffff;
  --text-muted: #94a3b8;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Borders */
  --border-radius: 8px;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-navy);
}

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

.section { padding: 70px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary-navy); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--text-light); }

.section-title {
  font-size: 34px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--accent-red);
  color: var(--text-light);
  border-color: var(--accent-red);
}
.btn-primary:hover { background: #b30320; border-color: #b30320; }
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}
.btn-outline:hover { background: var(--text-light); color: var(--primary-navy); }
.btn-amber {
  background: var(--accent-amber);
  color: var(--primary-navy);
  border-color: var(--accent-amber);
}
.btn-amber:hover { opacity: .9; }

/* ===== Header ===== */
.site-header {
  background: var(--primary-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  row-gap: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 56px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-light);
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.logo-text span { display: block; font-size: 11px; color: var(--accent-amber); letter-spacing: 1px; }

.main-nav ul { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; row-gap: 8px; }
.main-nav a {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-amber); }

.main-nav .caret { font-style: normal; font-size: 10px; margin-left: 4px; display: inline-block; }

/* ===== Dropdowns (desktop) ===== */
.has-dropdown { position: relative; }
.mega-dropdown, .simple-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  z-index: 1100;
  padding: 22px;
}
.has-dropdown:hover .mega-dropdown,
.has-dropdown:hover .simple-dropdown,
.has-dropdown.open .mega-dropdown,
.has-dropdown.open .simple-dropdown {
  display: flex;
}
.mega-dropdown {
  min-width: 640px;
  gap: 30px;
}
.mega-col { flex: 1; min-width: 180px; }
.mega-col h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.mega-col a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--primary-navy);
  font-weight: 500;
}
.mega-col a:hover { color: var(--accent-red); }

.simple-dropdown {
  flex-direction: column;
  min-width: 300px;
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  border-radius: 6px;
}
.dropdown-item:hover { background: var(--bg-light); }
.dropdown-item strong { color: var(--primary-navy); font-size: 14px; }
.dropdown-item span { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.dropdown-cta {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: var(--accent-red) !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.header-cta { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}
.header-phone svg { fill: var(--accent-amber); flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--primary-navy); flex-direction: column; padding: 10px 20px 20px; display: none; max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid rgba(255,255,255,0.1); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }

  /* Dropdowns become inline accordions on mobile */
  .mega-dropdown, .simple-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 14px;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 10px;
  }
  .has-dropdown.open .mega-dropdown,
  .has-dropdown.open .simple-dropdown {
    display: flex;
  }
  .mega-dropdown { gap: 16px; }
  .mega-col h4 { color: var(--text-muted); border-bottom-color: rgba(255,255,255,0.15); }
  .mega-col a { color: var(--text-light); padding: 6px 0; }
  .dropdown-item strong { color: var(--text-light); }
  .dropdown-item:hover { background: rgba(255,255,255,0.06); }
  .has-dropdown > a { display: flex; justify-content: space-between; align-items: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.55) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-amber);
  color: var(--primary-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--text-light);
  font-size: 52px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* ===== Quote Form (matches approved design) ===== */
.quote-form-container {
  background: rgba(15, 23, 42, 0.85);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.08);
}
.quote-form-container h2 {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.form-subtitle {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.form-field { margin-bottom: 12px; }
.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}
.form-field input:focus { outline: 2px solid var(--accent-amber); }
.btn-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--accent-red);
  border: 2px solid var(--accent-red);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 14px;
}
.btn-submit:hover { background: transparent; color: var(--accent-red); }
.form-note { color: var(--text-muted); font-size: 12px; margin-top: 10px; text-align: center; }
.form-success { background: #14532d; color: #fff; padding: 14px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; }
.form-error { background: var(--accent-red); color: #fff; padding: 14px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; }

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 20px;
}
.service-card {
  background: var(--secondary-navy);
  border-radius: var(--border-radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
  border-top: 3px solid var(--accent-amber);
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  width: 54px; height: 54px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { fill: #fff; width: 26px; height: 26px; }
.service-card h3 { color: var(--text-light); font-size: 19px; margin-bottom: 10px; text-transform: uppercase; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.service-card a { color: var(--accent-amber); font-weight: 700; font-size: 13px; text-transform: uppercase; }

/* ===== Cards (Light) ===== */
.card-light {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-light img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { color: #475569; font-size: 14px; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-link { color: var(--accent-red); font-weight: 700; font-size: 13px; text-transform: uppercase; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }

/* ===== Sitemap page ===== */
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { margin-bottom: 8px; font-size: 14px; }
.sitemap-list.mb-links { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.sitemap-list.mb-links li { margin-bottom: 0; }

/* ===== About Section ===== */
.about-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-flex img { border-radius: var(--border-radius); box-shadow: var(--shadow-card); }
.stats-row { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-box .num { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--accent-red); }
.stat-box .label { font-size: 12px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
@media (max-width: 900px) { .about-flex { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--primary-navy); color: var(--text-muted); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--text-light); font-size: 16px; margin-bottom: 16px; text-transform: uppercase; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 14px; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Floating Buttons ===== */
.floating-contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.whatsapp { background-color: #25D366; }
.float-btn.phone { background-color: #D90429; }

/* ===== Inner Page Header ===== */
.page-header {
  background: var(--primary-navy);
  padding: 60px 0 40px;
  text-align: center;
}
.page-header h1 { color: var(--text-light); font-size: 36px; text-transform: uppercase; }
.breadcrumb { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.breadcrumb a { color: var(--accent-amber); }

/* ===== Forms (Contact) ===== */
.simple-form input, .simple-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 14px;
}
.simple-form textarea { min-height: 140px; resize: vertical; }
.simple-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--primary-navy); text-transform: uppercase; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.article-content { line-height: 1.9; font-size: 16px; }
.article-content h2, .article-content h3 { margin: 26px 0 12px; }
.article-content p { margin-bottom: 16px; color: #334155; }
.article-content img { border-radius: var(--border-radius); margin: 20px 0; }

.placeholder-box {
  background: repeating-linear-gradient(45deg, #1e293b, #1e293b 10px, #263449 10px, #263449 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 13px;
}

/* ===== Service Areas ===== */
.area-region-block { margin-bottom: 40px; }
.area-region-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.area-region-icon {
  width: 46px; height: 46px; border-radius: var(--border-radius);
  background: #fee2e2; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.area-region-title { font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.area-count-badge {
  background: #fee2e2; color: var(--accent-red);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.area-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--border-radius);
  padding: 16px 18px; font-weight: 700; color: var(--primary-navy);
  transition: all 0.2s ease;
}
.area-card:hover { border-color: var(--accent-red); box-shadow: var(--shadow-card); }
.area-arrow { color: var(--accent-red); }
.area-star { color: var(--accent-amber); margin-right: 6px; }
