/* Local Pro Veterans — shared site styles */

:root {
  --navy: #0e2a52;
  --navy-dark: #081a37;
  --red: #c62430;
  --red-dark: #a11c26;
  --white: #ffffff;
  --off-white: #f4f6fa;
  --gray-700: #46526b;
  --gray-500: #7c8aa5;
  --border: #dfe4ee;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(14, 42, 82, 0.12);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  color: var(--navy-dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

a { color: inherit; }

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

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfd8ec;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .tagline { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--navy-dark);
}
.brand img { height: 56px; width: auto; }
.brand .brand-text .name {
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--navy-dark);
}
.brand .brand-text .name .accent { color: var(--red); }
.brand .brand-text .sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--red);
  border-color: var(--red);
}
/* The CTA button already covers this action, so hide the duplicate
   nav link on desktop; it comes back for mobile, where there's no
   separate button (see the 1180px breakpoint below). */
nav.main-nav a:last-child {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline:hover { background: var(--navy-dark); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.phone-link {
  font-weight: 700;
  color: var(--navy-dark);
  text-decoration: none;
  white-space: nowrap;
}
.phone-link .icon { margin-right: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #163a6e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 64px 0 90px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(198,36,48,0.08) 0 2px, transparent 2px 60px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198,36,48,0.16);
  border: 1px solid rgba(198,36,48,0.5);
  color: #ffd7da;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 .accent { color: #ff5f6b; }
.hero p.lede {
  color: #cfd8ec;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  color: #ff8b93;
  font-size: 1rem;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #e4e9f5;
  font-size: 0.98rem;
}
.hero-points li::before {
  content: "\2713";
  color: #ff5f6b;
  font-weight: 900;
  margin-top: 2px;
}
.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #aab8db;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- Hero logo showcase ---------- */
.hero-logo-panel {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(3, 12, 28, 0.35);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-panel img {
  width: 100%;
  max-width: 420px;
}

/* ---------- Lead form card ---------- */
.lead-card {
  background: #fff;
  color: var(--navy-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.lead-card h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.lead-card .lead-sub {
  color: var(--gray-700);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-dark);
}
.field .hint {
  font-size: 0.76rem;
  color: var(--gray-500);
  font-weight: 400;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--navy-dark);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-dark);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}
.checkbox-grid input { accent-color: var(--red); width: 16px; height: 16px; }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: var(--off-white);
  font-size: 0.85rem;
  color: var(--gray-700);
}
.file-drop input { margin-top: 8px; width: 100%; font-size: 0.85rem; }
#photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
#photo-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.consent-line {
  font-size: 0.76rem;
  color: var(--gray-500);
  margin: 10px 0 16px;
}
.hidden-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Field validation ---------- */
.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 2px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--red);
  background: #fff6f6;
}
.field.invalid .field-error { display: block; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--gray-700);
  margin: 12px 0 18px;
  cursor: pointer;
}
.consent-check input {
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
}
.consent-check .field-error { margin-top: 4px; }
.consent-check.invalid { color: var(--red); }
.consent-check.invalid input { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--off-white); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--gray-700); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(14,42,82,0.05);
}
.service-card .icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}
.service-card.red .icon-tile { background: var(--red); }
.service-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.service-card p { font-size: 0.85rem; color: var(--gray-700); margin: 0; }
.services-grid.compact .service-card h3 { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 0 10px;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--gray-700); font-size: 0.92rem; }

.cta-band {
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #cfd8ec; margin-bottom: 22px; }

/* ---------- Secondary page hero band (Contact, Get a Free Estimate) ---------- */
.page-hero {
  background: var(--navy-dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfd8ec; max-width: 60ch; margin: 0 auto; }

/* ---------- Homepage "who we are" strip ---------- */
.who-we-are p { color: var(--gray-700); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card h3 { color: var(--red); font-size: 1.05rem; }
.value-card p { color: var(--gray-700); font-size: 0.92rem; margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.badge-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.badge-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--gray-700);
}
.badge-list li::before {
  content: "\2605";
  color: var(--red);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.info-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-tile {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.info-list .label { font-weight: 700; font-size: 0.85rem; color: var(--navy-dark); }
.info-list .value { color: var(--gray-700); font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c4de;
  padding: 46px 0 26px;
  font-size: 0.9rem;
}
footer.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer .foot-brand img { height: 40px; }
footer .foot-brand span { font-family: 'Oswald', sans-serif; font-weight: 700; color: #fff; }
footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: #b9c4de; }
footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #8492b3;
  font-size: 0.8rem;
}

/* ---------- Trust strip (Get a Free Estimate page) ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.trust-strip .trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.trust-strip .icon-tile {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.trust-strip h4 { font-size: 0.95rem; margin-bottom: 2px; }
.trust-strip p { font-size: 0.85rem; color: var(--gray-700); margin: 0; }

/* ---------- Thank you page ---------- */
.thankyou {
  padding: 110px 0;
  text-align: center;
}
.thankyou .icon-tile {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--red);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 2rem;
}
.thankyou h1 { margin-bottom: 10px; }
.thankyou p { color: var(--gray-700); max-width: 50ch; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo-panel { max-width: 320px; margin: 0 auto; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .steps, .values-grid, .trust-strip { grid-template-columns: 1fr 1fr; }
  footer.site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .site-header .container { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { height: 40px; }
  .brand .brand-text { min-width: 0; white-space: nowrap; }
  .brand .brand-text .name { font-size: 0.95rem; }
  .brand .brand-text .sub,
  .brand .brand-text br { display: none; }
  .header-cta { display: none; }
  nav.main-nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; box-shadow: 0 12px 20px rgba(0,0,0,0.08); display: none; gap: 16px; z-index: 40; }
  nav.main-nav.open { display: flex; }
  nav.main-nav a:last-child { display: block; color: var(--red); }
  .nav-toggle { display: block; flex: none; }
}
@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .steps, .values-grid, .trust-strip { grid-template-columns: 1fr; }
  footer.site-footer .footer-top { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
}
