:root {
  --navy: #0d1f3c;
  --navy-dark: #081527;
  --red: #a5262b;
  --red-dark: #841e22;
  --cream: #f5f2ec;
  --ink: #1c1c1c;
  --muted: #5a5f66;
  --border: #e2e2e2;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}

.nav-brand { margin-right: 1.25rem; }
.nav-brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  border-color: var(--red);
}

.nav-emergency {
  background: var(--red);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 700 !important;
  border-bottom: none !important;
}
.nav-emergency:hover { background: var(--red-dark); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 0.5rem 0;
  display: none;
  list-style: none;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.dropdown-menu li a:hover { background: var(--cream); color: var(--red); }

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    border-top: 1px solid var(--border);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { display: flex; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-emergency { margin: 1rem 1.5rem; text-align: center; justify-content: center; }
  .dropdown-menu { position: static; box-shadow: none; border: none; display: block; padding-left: 1rem; }
  .dropdown-menu li a { padding: 0.7rem 1.5rem; }
  .nav-toggle { display: block; }
}

/* Hero (home page, photo background) */
.hero-photo {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--navy) center/cover no-repeat;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,31,60,0.88) 0%, rgba(13,31,60,0.72) 60%, rgba(13,31,60,0.85) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; text-align: center; padding: 4rem 1.5rem; margin: 0 auto; }
.hero-photo h1 { color: #fff; font-size: 2.6rem; line-height: 1.2; margin-bottom: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-photo p.lead { color: #dfe4ec; font-size: 1.1rem; max-width: 620px; margin: 0 auto 1.75rem; }
.hero-photo .badge { margin: 0 auto 1rem; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-emergency { background: var(--red); color: #fff; }
.btn-emergency:hover { background: var(--red-dark); }

.btn-schedule { background: #fff; color: var(--navy); border-color: #fff; }
.btn-schedule:hover { background: var(--cream); }

.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

/* Badge */
.badge-pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Page hero (inner pages, no photo) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.page-hero .wrap { max-width: 760px; }
.page-hero h1 { font-size: 2.1rem; margin-bottom: 1rem; }
.page-hero p.lead { color: #dfe4ec; margin-bottom: 1.75rem; }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: #faf9f6; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { display: block; color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.75rem; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); }

/* Signs / secondary list */
.signs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 700px) { .signs-list { grid-template-columns: 1fr; } }
.signs-list li {
  list-style: none;
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
}
.signs-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* County paragraph */
.county-para {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

/* Card grid (service category cards) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 780px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  background: #fff;
}
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.card a.link { color: var(--red); font-weight: 700; font-size: 0.9rem; }

/* Service link grid (used on landing pages to list sub-pages) */
.service-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .service-link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-link-grid { grid-template-columns: 1fr; } }
.service-link-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.service-link-card:hover { border-color: var(--red); transform: translateY(-2px); }
.service-link-card h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-link-card p { color: var(--muted); font-size: 0.9rem; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 1rem; }
.why-item .mark {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.why-item h4 { color: var(--navy); margin-bottom: 0.3rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* Counties pill list */
.county-list { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.county-pill {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.55rem 1.2rem; font-weight: 700; color: var(--navy); font-size: 0.9rem;
}
.county-pill:hover { border-color: var(--red); color: var(--red); }

/* Callout */
.callout {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.callout h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.callout p { color: #dfe4ec; }

/* Trust bar */
.trust-bar {
  background: var(--cream);
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Forms */
form.contact-form { display: grid; gap: 1.1rem; max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.35rem; display: block; }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border);
  border-radius: 6px; font-size: 1rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; }

/* Placeholder notices */
.todo-note {
  background: #fdf1e7; border: 1px dashed var(--red); border-radius: 8px;
  padding: 0.9rem 1.1rem; font-size: 0.9rem; color: #7a2a12; margin-bottom: 1.25rem;
}

/* Bio / photo */
.bio-layout { display: flex; gap: 2.5rem; align-items: flex-start; }
@media (max-width: 780px) { .bio-layout { flex-direction: column; } }
.bio-photo { flex: 0 0 320px; }
.bio-photo img { border-radius: 10px; border: 1px solid var(--border); }
.photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; border: 2px dashed var(--red); border-radius: 10px;
  background: #fdf1e7; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #7a2a12; font-size: 0.9rem; padding: 1.5rem;
}
.bio-copy { flex: 1; }
.bio-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.bio-copy h3 { color: var(--navy); margin-bottom: 0.4rem; margin-top: 1.5rem; }
.bio-copy h3:first-child { margin-top: 0; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #cfd4db; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; margin-bottom: 0.9rem; font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--red); }
.footer-brand img { height: 40px; margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; font-size: 0.85rem; text-align: center; color: #8b93a0; }
