/* =========================================================
   Premier Hail USA - Core Stylesheet
   Brand: professional, clean, national, modern (Tesla / Progressive / State Farm feel)
   Mobile-first, fast loading, no external dependencies.
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #0e2a47;          /* primary deep navy */
  --navy-900: #0a1f36;      /* darker navy */
  --blue: #1f6feb;          /* trust/action blue */
  --blue-600: #1a5fce;      /* hover */
  --sky: #eaf2fd;           /* light tint */
  --ink: #16202b;           /* body text */
  --slate-500: #5b6b7d;     /* muted text */
  --line: #e2e8f0;          /* borders */
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --gold: #f4b400;          /* accent for stars/warranty, used sparingly */
  --green: #1f9d55;         /* positive checks */
  --max: 1140px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(14,42,71,.08);
  --shadow: 0 10px 30px rgba(14,42,71,.10);
  --shadow-lg: 0 20px 50px rgba(14,42,71,.16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3 { color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--slate-500); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1.02rem; padding: 15px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-align: center; line-height: 1;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-call { background: #fff; color: var(--navy); border-color: #fff; }
.btn-call:hover { color: var(--navy); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1340px; }
.nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.15rem; flex: 0 0 auto; margin-right: 8px; }
.brand img { height: 40px; width: auto; }
.brand .brand-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 10px;
  font-weight: 800; letter-spacing: .02em; font-size: .95rem;
}
.nav-links { display: none; align-items: center; gap: 20px; flex: 1; justify-content: center; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.footer-areas a { text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: 0 0 auto; }
.nav-phone { display: none; font-weight: 800; color: var(--navy); white-space: nowrap; }
.nav-phone:hover { color: var(--blue); }
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 0; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 20px; color: var(--navy); font-weight: 600; }
.mobile-menu .btn { margin: 10px 20px; }

@media (min-width: 1240px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,31,54,.78), rgba(14,42,71,.88)),
    /* PLACEHOLDER IMAGE: replace url() below with hero photo (clean shot of a vehicle / technician) */
    #0e2a47 url("../images/hero.jpg") center/cover no-repeat;
}
.hero-inner { padding: 84px 0 72px; max-width: 760px; }
.hero-kicker {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 800;
  letter-spacing: .14em; font-size: .82rem; padding: 8px 16px; border-radius: 999px;
  margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 { color: #fff; }
.hero p { color: #dce8f6; font-size: 1.2rem; margin: 18px 0 12px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #cfe0f3; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { flex: none; }

/* ---------- Location callout bar ---------- */
.locbar { background: var(--sky); border-bottom: 1px solid var(--line); }
.locbar .container {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 14px 20px; justify-content: center; text-align: center;
}
.locbar strong { color: var(--navy); font-size: 1.02rem; letter-spacing: .01em; }
.locbar span { color: var(--slate-500); font-size: .9rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; }
.trustbar .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; padding: 34px 0; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
}
.trust-item h4 { color: #fff; font-size: 1rem; margin-bottom: 2px; }
.trust-item p { color: #b9cae0; font-size: .88rem; line-height: 1.4; }
@media (min-width: 900px) {
  .trustbar .grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.stat { text-align: center; padding: 16px; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat .lbl { color: var(--slate-500); font-weight: 600; margin-top: 8px; font-size: .95rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4,1fr); } }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.step .n {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sky); color: var(--blue);
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate-500); font-size: .98rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Feature / Why us cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sky);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-500); font-size: .97rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split (PDR explainer, insurance) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.split .media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--sky); min-height: 280px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.split .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split ul { list-style: none; margin-top: 18px; }
.split li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink); }
.split li svg { flex: none; margin-top: 3px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse .media { order: 2; } }

/* ---------- Before / After ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2,1fr); } }
.ba {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
}
.ba .pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba .pair figure { position: relative; margin: 0; }
.ba .pair img { width: 100%; height: 220px; object-fit: cover; background: var(--sky); }
.ba .pair figcaption {
  position: absolute; left: 10px; top: 10px; background: rgba(14,42,71,.85); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px;
}
.ba .meta { padding: 14px 18px; color: var(--slate-500); font-size: .92rem; }

/* image placeholder helper */
.ph {
  width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center;
  color: #91a7c0; font-size: .85rem; font-weight: 600; text-align: center; padding: 16px;
  background: repeating-linear-gradient(45deg, #eef4fb, #eef4fb 12px, #e6eef8 12px, #e6eef8 24px);
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3,1fr); } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.quote .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.quote p { font-style: italic; color: var(--ink); }
.quote .who { margin-top: 14px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.quote .who span { display: block; font-weight: 500; color: var(--slate-500); font-size: .85rem; }

/* ---------- Lead form ---------- */
.lead-section { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; }
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.lead-copy h2 { color: #fff; }
.lead-copy p { color: #cfe0f3; margin-top: 14px; }
.lead-copy ul { list-style: none; margin-top: 22px; }
.lead-copy li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: #eaf2fd; }
.form-card {
  background: #fff; border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.form-card h3 { margin-bottom: 4px; }
.form-card .sub { color: var(--slate-500); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15);
}
.field .hint { color: var(--slate-500); font-size: .8rem; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .78rem; color: var(--slate-500); margin-top: 12px; text-align: center; }
.form-success {
  display: none; background: #ecfdf3; border: 1px solid #b6f0cf; color: #126c3e;
  border-radius: 12px; padding: 16px; font-weight: 600;
}
@media (min-width: 900px) { .lead-grid { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Partner / network CTA strip ---------- */
.strip { background: var(--sky); border-radius: var(--radius); padding: 34px; text-align: center; }
.strip h2 { margin-bottom: 8px; }
.strip p { color: var(--slate-500); max-width: 620px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c2d2e6; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c2d2e6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-brand p { color: #91a7c0; margin-top: 12px; max-width: 320px; font-size: .9rem; }
.footer-areas span {
  display: inline-block; background: rgba(255,255,255,.07); color: #d6e2f1; border-radius: 999px;
  padding: 5px 12px; font-size: .82rem; margin: 0 6px 8px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #7f93ab; font-size: .82rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

/* ---------- Floating mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 0;
  box-shadow: 0 -4px 20px rgba(14,42,71,.18);
}
.callbar a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 800; font-size: 1rem; }
.callbar .c1 { background: var(--blue); color: #fff; }
.callbar .c2 { background: #fff; color: var(--navy); }
@media (min-width: 900px) { .callbar { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 899px) { body { padding-bottom: 56px; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 60px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0f3; margin-top: 12px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 36px auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { flex: none; transition: transform .2s; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a div { padding: 0 22px 20px; color: var(--slate-500); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-card .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; }
.contact-card h4 { color: var(--navy); margin-bottom: 2px; }
.contact-card a, .contact-card p { color: var(--slate-500); }

/* ---------- Form validation + trust ---------- */
.field label .req { color: var(--blue); }
.field .optional { color: var(--slate-500); font-weight: 500; font-size: .82rem; }
.field.has-error input, .field.has-error textarea { border-color: #e24b4a; background: #fff7f7; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(226,75,74,.15); }
.field .err-msg { display: none; color: #c0322f; font-size: .8rem; margin-top: 5px; font-weight: 600; }
.field.has-error .err-msg { display: block; }
.field.has-error .hint { display: none; }
/* honeypot: hidden from humans, visible to bots */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; color: var(--slate-500); font-size: .82rem; font-weight: 600; text-align: center;
}
.form-trust svg { flex: none; }
.form-success .btn { margin-top: 14px; }
.form-success .call-row { margin-top: 12px; font-weight: 700; }
.form-success .call-row a { color: #0f6e56; }

/* ---------- Mobile sticky call bar (enhanced) ---------- */
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; }
.callbar svg { flex: none; }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none; }
