:root {
  --blue: #1e6fd9;
  --blue-dark: #175bb3;
  --navy: #003b82;
  --teal: #1f9d7c;
  --teal-dark: #167a61;
  --light: #eef3fb;
  --gray: #52606d;
  --border: #e2e8f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fbfcfe;
  font-size: 18px;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
nav.main-nav a {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
nav.main-nav a.active { color: var(--blue); }

.btn-call {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(30,111,217,0.25);
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,111,217,0.35);
}
.btn-call:active { transform: translateY(0); }

.hero-cta .btn-call {
  padding: 14px 26px;
  font-size: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
}

#mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}
#mobile-menu a {
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
#mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--light), #fff);
  padding: 50px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero p.lead { font-size: 19px; color: #333; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-quickfacts .fact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-quickfacts .fact svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal-dark);
  fill: none;
  flex-shrink: 0;
}
.hero-quickfacts .fact span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.hero img.hero-photo {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  max-height: 420px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
section.alt { background: linear-gradient(135deg, var(--light), #f4f8fd); }
h2.section-title {
  color: var(--navy);
  font-size: 32px;
  margin: 0 0 10px;
}
p.section-sub { color: var(--gray); font-size: 18px; margin-bottom: 36px; max-width: 700px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,59,130,0.08); }
.card h3 { color: var(--navy); margin: 0 0 10px; font-size: 20px; }
.card img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 4/3; object-fit: cover; }

/* Round icon badge used in feature cards and category headers */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-badge svg { width: 24px; height: 24px; stroke: #fff; fill: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Service list category headers ---------- */
.svc-category {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-category:first-child { margin-top: 0; }
.svc-category svg { width: 18px; height: 18px; stroke: var(--teal-dark); fill: none; flex-shrink: 0; }

/* ---------- Star rating ---------- */
.star-rating {
  color: #f5a623;
  font-size: 22px;
  letter-spacing: 2px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.testimonial .stars { color: #f5a623; font-size: 18px; margin-bottom: 10px; }
.testimonial strong { display: block; margin-top: 12px; color: var(--navy); }

/* ---------- Tables ---------- */
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}
table.price-table th, table.price-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}
table.price-table th {
  background: var(--navy);
  color: #fff;
}
table.price-table tr:last-child td { border-bottom: none; }
table.price-table tbody tr {
  transition: background 0.12s ease;
}
table.price-table tbody tr:hover td {
  background: var(--light);
}

/* Price tables nested inside an accordion body need to look like a
   distinct sub-section, not blend into the surrounding text. */
details.svc .svc-body table.price-table {
  border: 2px solid var(--blue);
  box-shadow: 0 4px 14px rgba(30,111,217,0.18);
  margin: 10px 0 16px;
}
details.svc .svc-body table.price-table th {
  font-size: 15px;
}

/* ---------- Insurance chips ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Locations ---------- */
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.location-card h3 { color: var(--navy); margin: 0 0 8px; }
.location-card a.directions { font-weight: 700; }

/* ---------- Form ---------- */
form.lead-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
form.lead-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 13px 0 5px;
  color: var(--navy);
}
form.lead-form label:first-of-type { margin-top: 0; }
form.lead-form input,
form.lead-form select,
form.lead-form textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
form.lead-form button {
  margin-top: 18px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
form.lead-form button:hover { background: var(--blue-dark); }
form.lead-form button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: #0a7d32; }
.form-status.err { color: #b42318; }

/* ---------- Accordion (service details) ---------- */
details.svc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
details.svc summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
}
details.svc summary { transition: background 0.15s ease; }
details.svc summary:hover { background: var(--light); }
details.svc[open] .svc-body {
  animation: svcFadeIn 0.25s ease;
}
@keyframes svcFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
details.svc summary .svc-title {
  flex: 1 1 auto;
  min-width: 0;
}
details.svc summary::-webkit-details-marker { display: none; }
details.svc summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: var(--blue);
  margin-left: 12px;
  flex-shrink: 0;
}
details.svc[open] summary::after { content: "\2212"; }
details.svc summary .svc-sub {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray);
  flex: 0 0 240px;
  text-align: right;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 600px) {
  details.svc summary .svc-sub { flex-basis: 120px; font-size: 13px; }
}
details.svc .svc-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
details.svc .svc-body img.svc-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
details.svc .svc-body h4 {
  color: var(--navy);
  margin: 16px 0 6px;
  font-size: 17px;
}
details.svc .svc-body h4:first-child { margin-top: 0; }
details.svc .svc-body ul { margin: 6px 0; padding-left: 22px; }
details.svc .svc-body li { margin-bottom: 6px; }
details.svc .svc-price {
  display: inline-block;
  background: var(--light);
  color: var(--navy);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 4px 6px 4px 0;
  font-size: 15px;
}

/* ---------- Call/Text choice popover ---------- */
.calltext-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 220px;
}
.calltext-menu a {
  display: block;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.calltext-menu a:hover { background: var(--light); }
.calltext-menu a + a { border-top: 1px solid var(--border); }

/* ---------- Location card actions ---------- */
.location-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.btn-copy-address {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-copy-address:hover { background: var(--light); transform: translateY(-1px); }
.btn-copy-address.copied {
  background: #0a7d32;
  border-color: #0a7d32;
  color: #fff;
}

/* ---------- Map embeds ---------- */
.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #dbe6f6;
  padding: 48px 0 24px;
  margin-top: 40px;
}
footer.site-footer h4 { color: #fff; margin: 0 0 14px; }
footer.site-footer a { color: #dbe6f6; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-bottom {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: #9fb3d6;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  nav.main-nav { display: none; }
  .nav-wrap .btn-call { display: none; }
  .hamburger { display: block; }
  .nav-wrap { flex-wrap: nowrap; }
  .logo { font-size: 16px; }
  .logo svg { width: 26px; height: 26px; }
  .logo small { font-size: 10px; }
  #mobile-menu a.btn-call-mobile {
    background: var(--blue);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    margin-top: 8px;
    border-bottom: none;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: 4px; align-items: flex-start; font-size: 13px; }
}
