/* Insure Choices site styles. Brand settings live in :root; re-skin a client by changing these. */
:root {
  --ink: #262d35;
  --slate: #4b535c;
  --red: #e4574b;
  --red-deep: #c8443a;
  --blush: #f4d6cc;
  --paper: #f5f6f8;
  --white: #ffffff;
  --line: #dde1e6;
  --muted: #5d6670;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: clamp(16px, 2.4vw, 40px);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 18px/1.55 var(--body); color: var(--ink); background: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Header shared by every page */
.top { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 46px; height: 46px; }
.logo b { display: block; font: 700 22px/1 var(--display); letter-spacing: -0.01em; }
.logo small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.top-info { margin-left: auto; display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.top-info span b { color: var(--ink); font-weight: 700; }
.call {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white); text-decoration: none;
  font: 700 18px/1 var(--body); padding: 14px 20px; border-radius: 999px;
  transition: background .25s;
}
.call:hover { background: var(--red-deep); }
.call svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.call:hover svg { transform: rotate(-14deg) scale(1.1); }
.call.red { background: var(--red); }
.call.red:hover { background: var(--red-deep); }
.ghost {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); background: var(--white);
  color: var(--ink); text-decoration: none; cursor: pointer;
  font: 700 18px/1 var(--body); padding: 13px 20px; border-radius: 999px;
}
.ghost:hover { border-color: var(--slate); }
.mobile-call { display: none; }

/* ---------- Inner pages ---------- */
.inner .shell { max-width: 1240px; margin: 0 auto; padding: 16px var(--gutter) 0; }

.hero {
  margin-top: 16px; border-radius: 28px; color: var(--white); position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink) url("img/office-lot.webp") center 40% / cover no-repeat;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px;
  padding: clamp(28px, 5vw, 56px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(38,45,53,.94) 0%, rgba(38,45,53,.82) 48%, rgba(38,45,53,.45) 100%);
}
.crumbs { font-size: 15px; opacity: .85; margin-bottom: 14px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.hero h1 { font: 700 clamp(32px, 4.2vw, 54px)/1.05 var(--display); letter-spacing: -0.025em; max-width: 18ch; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; margin-top: 14px; color: rgba(255,255,255,.88); }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.hero .ghost:hover { border-color: var(--white); }

/* The three agents as a small version of the logo */
.trio { position: relative; width: 190px; height: 170px; flex: none; }
.trio img {
  position: absolute; width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--ring), 0 18px 30px -12px rgba(0,0,0,.6);
}
.trio .n { left: 4px;  top: 6px;  --ring: var(--red); }
.trio .t { left: 88px; top: 6px;  --ring: var(--slate); }
.trio .m { left: 46px; top: 68px; --ring: var(--blush); }
.trio-cap { font-size: 14px; text-align: center; margin-top: 12px; color: rgba(255,255,255,.85); }

.body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; }
.article { max-width: 68ch; }
.article > p:first-child { margin-top: 0; }
.article h2 { font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -0.015em; margin: 40px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 12px 0; }
.article a { color: var(--red-deep); text-underline-offset: 3px; }
.article ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.article ul li { position: relative; padding-left: 28px; }
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); box-shadow: 14px 0 0 -3px var(--blush);
}
.article ol { padding-left: 24px; margin: 14px 0; display: grid; gap: 8px; }
.article .card {
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--blush);
  border-radius: 16px; padding: 18px 22px; margin: 24px 0;
}
.article table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0; }
.article td, .article th { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.article tr:first-child td, .article tr:first-child th { border-top: 0; }
.article td:first-child { font-weight: 700; white-space: nowrap; }

/* FAQ: tap a question to open it */
.faq { display: grid; gap: 10px; margin: 16px 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font: 700 18px/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--slate); border-bottom: 2.5px solid var(--slate);
  transform: rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details[open] { border-color: var(--slate); }
.faq .a { padding: 0 20px 18px; color: var(--muted); }
.faq details[open] .a { animation: unfold .35s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

/* Side card stays in view while reading */
.aside { align-self: start; position: sticky; top: 20px; display: grid; gap: 16px; }
.talk { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 30px 60px -44px rgba(38,45,53,.5); }
.talk h2 { font: 700 21px/1.2 var(--display); }
.talk .faces { display: flex; }
.talk .faces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white); }
.talk .faces img + img { margin-left: -12px; }
.talk p { color: var(--muted); font-size: 16px; }
.talk .call { justify-content: center; }
.talk .ghost { justify-content: center; }
.talk .visit { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.others { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; }
.others h2 { font: 700 17px/1.2 var(--display); margin-bottom: 8px; }
.others ul { list-style: none; padding: 0; display: grid; }
.others a { display: block; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.others li:first-child a { border-top: 0; }
.others a:hover { color: var(--red-deep); }
.others a[aria-current] { font-weight: 700; color: var(--red-deep); }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* One load moment on inner pages: the trio gathers */
.js .trio img { opacity: 0; }
.js.go .trio img { animation: gather .9s cubic-bezier(.2,.8,.2,1) both; }
.js.go .trio .t { animation-delay: .1s; }
.js.go .trio .m { animation-delay: .2s; }
.trio .n { --fx: -30px; --fy: -20px; } .trio .t { --fx: 30px; --fy: -20px; } .trio .m { --fx: 0; --fy: 30px; }
@keyframes gather { from { opacity: 0; translate: var(--fx) var(--fy); scale: .7; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (max-width: 980px) {
  .top-info { display: none; }
  .top .call { margin-left: auto; padding: 12px 16px; font-size: 16px; }
  .top .call span { display: none; }
  .inner { padding-bottom: 88px; }
  .hero { grid-template-columns: 1fr; }
  .trio-wrap { display: none; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .mobile-call {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
    justify-content: center; padding: 18px; font-size: 19px;
    box-shadow: 0 14px 30px -10px rgba(38,45,53,.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .trio img { opacity: 1; }
}

/* In-page booking form (open enrollment page); posts through book-form.js */
.article .book { background: var(--ink); color: var(--white); border-radius: 22px; padding: 26px; margin: 28px 0; scroll-margin-top: 16px; }
.article .book h2 { margin: 0 0 6px; color: var(--white); }
.article .book > p { color: rgba(255,255,255,.85); margin: 0 0 16px; }
.article .book form { display: grid; gap: 12px; }
.article .book .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article .book label.fl { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.article .book input:not([type=checkbox]), .article .book select {
  font: 400 18px var(--body); width: 100%; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--white); color: var(--ink);
}
.article .book input:focus, .article .book select:focus { outline: none; border-color: var(--red); }
.article .book .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.85); }
.article .book .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.article .book .consent a, .article .book .ok a { color: var(--white); }
.article .book button { justify-self: start; font: 700 18px/1 var(--body); padding: 15px 24px; border: 0; border-radius: 999px; background: var(--red); color: var(--white); cursor: pointer; }
.article .book button:disabled { opacity: .5; cursor: not-allowed; }
.article .book .err { color: #ffd9d3; margin: 0; }
.article .book .hp { position: absolute; left: -9999px; }
.article .book .small { font-size: 14px; margin: 0; color: rgba(255,255,255,.7); }

/* Client reviews quoted on a page */
.article .revs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.article .revs figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.article .revs .stars { color: var(--red); letter-spacing: 3px; }
.article .revs blockquote { margin: 0; font: 700 19px/1.35 var(--display); }
.article .revs figcaption { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .article .book .two, .article .revs { grid-template-columns: 1fr; } }

/* Town pages: the plan count as one bold number */
.article .stat {
  display: flex; align-items: center; gap: 20px; margin: 22px 0; padding: 22px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
}
.article .stat b { font: 700 clamp(48px, 6vw, 72px)/1 var(--display); color: var(--red); letter-spacing: -0.03em; }
.article .stat span { font: 700 clamp(18px, 1.8vw, 22px)/1.3 var(--display); max-width: 30ch; }
