/* ---------- Colors: change these to restyle the whole site ---------- */
:root {
  --ink: #16212b;
  --muted: #5b6875;
  --brand: #1f3a52;
  --accent: #2f7d6d;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --line: #dde3e8;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--brand);
  color: #fff;
  padding: 72px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.headshot {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  flex: none;
  background: #e6ebef;
}
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a9c9e0;
}
h1 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 700; }
.tagline { margin: 12px 0 20px; font-size: 18px; color: #d6e2ec; max-width: 520px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.contact-list li, .contact-list a {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 16px;
}
.contact-list a:hover { text-decoration: underline; }
.license { color: #d6e2ec; font-size: 15px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font: 600 16px/1 inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.lead { margin: 0 0 32px; color: var(--muted); font-size: 17px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Form ---------- */
.quote-form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  font: 400 16px inherit;
  font-family: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent;
}
.quote-form .check {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 13px; color: var(--muted);
}
.quote-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.quote-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9c4cf; padding: 36px 0; font-size: 14px; }
.footer p { margin: 2px 0; }
.footer-name { color: #fff; font-weight: 600; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .15s;
}
.social a:hover { background: var(--accent); }
.social svg { width: 20px; height: 20px; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .hero { padding: 48px 0; }
  .hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .headshot { width: 170px; height: 170px; }
  .tagline { margin-left: auto; margin-right: auto; }
  .contact-list { justify-items: center; }
  .section { padding: 52px 0; }
  .row { grid-template-columns: 1fr; }
  .quote-form .btn { justify-self: stretch; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Commercial / Personal group headings */
.group-title { margin: 8px 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.grid + .group-title { margin-top: 40px; }

/* Email + phone shown as clear tap-to-contact buttons */
.contact-list a {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  transition: background .15s, border-color .15s;
}
.contact-list a:hover { background: rgba(255,255,255,.16); border-color: #fff; text-decoration: none; }
.license { color: #d6e2ec; font-size: 15px; }
.footer-link { text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: #fff; }

/* English & Spanish badge */
.lang-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* Hero: two equal halves, photo centered in the left half */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.headshot {
  justify-self: center;
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 1 / 1;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; justify-items: center; }
  .headshot { width: 200px; }
}

/* Top bar with logo */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Footer logo */
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-logo { width: 110px; height: auto; opacity: .95; }

@media (max-width: 720px) {
  .brand span { font-size: 15px; }
  .brand em { display: block; }
  .footer-brand { flex-direction: column; gap: 14px; }
}

/* ---------- Brand colors from the NH logo ---------- */
:root {
  --ink: #16243a;        /* body text */
  --muted: #4a596c;      /* slate, like "Insurance Agency" in logo */
  --brand: #182a45;      /* logo navy */
  --brand-deep: #0c1a30; /* darkest logo navy */
  --accent: #182a45;     /* buttons on light backgrounds */
  --silver: #c9ccd3;     /* logo swoosh */
  --silver-light: #eceef1;
  --bg-alt: #f2f3f6;
  --line: #d9dde3;
}
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); }
.eyebrow { color: var(--silver); }
.tagline, .license { color: #d3d8e0; }
.hero .btn {
  background: linear-gradient(180deg, #f1f2f4 0%, var(--silver) 100%);
  color: var(--brand-deep);
}
.lang-badge { background: var(--silver-light); color: var(--brand-deep); }
.btn:hover { filter: brightness(1.12); }
.group-title { color: var(--muted); }
.card { border-top: 3px solid var(--silver); }
.footer { background: var(--brand-deep); color: #aab3c0; }
.social a:hover { background: var(--silver); color: var(--brand-deep); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline-color: var(--brand); }

/* keep section headings clear of the sticky top bar */
section[id] { scroll-margin-top: 68px; }

/* English / Español switch */
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font: 600 13px/1 inherit; font-family: inherit; letter-spacing: .04em;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (max-width: 720px) {
  .topbar-actions { gap: 8px; }
  .lang-toggle button { padding: 7px 9px; }
  .btn-sm { padding: 9px 14px; }
}
@media (max-width: 380px) { .brand img { display: none; } }
@media (max-width: 720px) {
  .brand { gap: 8px; }
  .brand img { height: 32px; }
  .brand span { font-size: 13px; white-space: nowrap; }
}

/* Hero buttons */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.1) !important; filter: none; }

/* About */
.about { text-align: center; }
.about .lead { margin-bottom: 36px; font-size: 18px; color: var(--ink); }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.about-points strong { display: block; color: var(--brand); }
.about-points span { color: var(--muted); font-size: 15px; }
.about + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .hero-ctas { justify-content: center; }
  .about-points { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* Google reviews link */
.reviews-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--brand); font-weight: 600; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.reviews-link:hover { border-color: var(--brand); background: var(--bg-alt); }
.reviews-link .stars { color: #e0a800; letter-spacing: 1px; }

/* Reviews */
.reviews { background: var(--bg-alt); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.review .stars { color: #e0a800; letter-spacing: 2px; font-size: 18px; }
.review blockquote { margin: 10px 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.review figcaption { font-size: 14px; font-weight: 600; color: var(--brand); }
.review figcaption span { font-weight: 400; color: var(--muted); }
.reviews + .section.alt { background: #fff; }
.review-grid { align-items: start; }

/* Carriers */
.carriers { padding: 44px 0; border-top: 1px solid var(--line); text-align: center; }
.carriers .group-title { margin-top: 0; }
.carrier-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.carrier-list li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); font-weight: 600; font-size: 14px; }
.carrier-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Clickable coverage cards */
#coverage .card { cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
#coverage .card:hover, #coverage .card:focus-visible { border-color: var(--brand); box-shadow: 0 6px 18px rgba(12,26,48,.10); transform: translateY(-2px); outline: none; }
.card-cta { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand); opacity: .75; }
#coverage .card:hover .card-cta { opacity: 1; }

/* Reviews now sit between About and Coverage */
.reviews + .section { border-top: 0; }
.privacy { font-size: 13px; color: var(--ink); }
.reviews-link + .reviews-link { margin-left: 10px; }
@media (max-width: 720px) { .reviews-link + .reviews-link { margin-left: 0; margin-top: 10px; } }
/* Balanced review columns */
.review-grid { display: block; columns: 2 320px; column-gap: 20px; }
.review { break-inside: avoid; margin-bottom: 20px; }
/* Phone top bar: keep the quote button on one line */
.btn-sm { white-space: nowrap; }
@media (max-width: 440px) { .brand span { display: none; } .brand img { height: 36px; } }

/* ---------- Phone-only compact layout ---------- */
@media (max-width: 720px) {
  .hero { padding: 28px 0 36px; }
  .hero-inner { gap: 16px; }
  .headshot { width: 140px !important; border-width: 3px; }
  h1 { font-size: 32px; }
  .tagline { font-size: 16px; margin: 8px auto 14px; }
  .lang-badge { margin-bottom: 12px; }
  .contact-list { margin-bottom: 18px; gap: 6px; }

  #coverage .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #coverage .card { padding: 14px; }
  #coverage .card h3 { font-size: 14.5px; line-height: 1.3; }
  #coverage .card p { font-size: 13px; line-height: 1.45; }
  .card-cta { font-size: 13px; padding-top: 8px; }
}
