/* Melbourne Auto Glass Repair — Space Coast palette
   Primary: deep pine teal #0f3d3e | Accent: burnt coral #e8703a | BG alt: #f4f7f6 */

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2b2b;
  line-height: 1.65;
  background: #ffffff;
}

a { color: inherit; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f3d3e;
  border-bottom: 3px solid #e8703a;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav-logo span { color: #ffb08a; }

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d9ece9;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: #ffffff; }

.nav-links li { position: relative; }

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

/* Transparent hit-area bridge: keeps :hover alive while the pointer moves
   from the nav link down into the menu, instead of dropping through a gap. */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  padding-top: 14px;
  min-width: 270px;
  z-index: 200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu-list {
  list-style: none;
  background: #0f3d3e;
  border: 1px solid #1c5f5f;
  border-top: 3px solid #e8703a;
  padding: 8px 0;
}

.dropdown-menu-list li + li { border-top: 1px solid #1c5f5f; }

.dropdown-menu-list a {
  display: block;
  padding: 11px 20px;
  color: #d9ece9;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu-list a:hover {
  background: #14504f;
  color: #ffffff;
}

.nav-call {
  background: #e8703a;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---------- HERO ---------- */
.hero {
  background: #f4f7f6;
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: #e8f4f2;
  color: #0f3d3e;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0f3d3e;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #3a4a4a;
  margin-bottom: 24px;
  max-width: 54ch;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image img {
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 61, 62, 0.18);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: #e8703a;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #0f3d3e;
  border-color: #0f3d3e;
}

/* ---------- SECTIONS ---------- */
.section { padding: 60px 0; }
.section.alt { background: #f4f7f6; }

.section h2 {
  font-size: 1.9rem;
  color: #0f3d3e;
  margin-bottom: 22px;
}

.section h3 { font-size: 1.2rem; color: #0f3d3e; margin-bottom: 8px; }

.section p { margin-bottom: 16px; max-width: 74ch; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---------- TRIGGER LIST ---------- */
.trigger-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.trigger-list li {
  background: #ffffff;
  border-left: 4px solid #e8703a;
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section.alt .trigger-list li { background: #ffffff; }

/* ---------- STEPS ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 10px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f3d3e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- CARDS / SERVICE GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.card {
  background: #ffffff;
  border: 1px solid #e3ebea;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.card h3 { margin-bottom: 10px; }

.card a.card-link {
  display: inline-block;
  margin-top: 10px;
  color: #e8703a;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #ffffff;
  border: 1px solid #e3ebea;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.faq-item h3 { color: #0f3d3e; margin-bottom: 8px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: #0f3d3e;
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
}

.cta-banner h2 { color: #ffffff; margin-bottom: 14px; }
.cta-banner p { color: #cfe4e1; margin: 0 auto 24px; max-width: 60ch; }

/* ---------- SELF-QUALIFY ---------- */
.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

.qualify-box {
  padding: 22px;
  border-radius: 10px;
}

.qualify-yes { background: #e8f4f2; border: 1px solid #bfe0da; }
.qualify-no { background: #fdece4; border: 1px solid #f3c6ae; }

.qualify-box ul { padding-left: 20px; }
.qualify-box li { margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0a2a2b;
  color: #cfe4e1;
  padding: 44px 0 26px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 26px;
}

.footer-grid h4 { color: #ffffff; margin-bottom: 12px; font-size: 1rem; }

.site-footer a { text-decoration: none; color: #cfe4e1; }
.site-footer a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid #1c4849;
  padding-top: 18px;
  text-align: center;
  color: #8fb2af;
  font-size: 0.85rem;
}

/* ---------- CONTACT FORM ---------- */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f3d3e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cdd9d8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

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

/* ---------- PAGE HEADER (service pages / contact) ---------- */
.page-header {
  background: #0f3d3e;
  color: #ffffff;
  padding: 44px 0;
}

.page-header h1 { color: #ffffff; font-size: 2.1rem; }
.page-header p { color: #cfe4e1; margin-top: 10px; max-width: 60ch; }

/* ---------- VS TABLE ---------- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.vs-box {
  background: #ffffff;
  border: 1px solid #e3ebea;
  border-radius: 10px;
  padding: 22px;
}

.vs-box h3 { border-bottom: 2px solid #e8703a; padding-bottom: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .hero-grid, .two-col, .two-col.reverse, .qualify-grid, .vs-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}
