/* ===========================================================
   Intermed, Ltd — concept redesign
   Design tokens
=========================================================== */
:root{
  --ink: #26262b;
  --ink-soft: #55555f;
  --paper: #fafaf7;
  --card: #ffffff;
  --sage: #1e3a8a;       /* deep navy — headings, nav, dark sections */
  --sage-dark: #16295e;  /* darker navy — hover / deepest fills */
  --sage-tint: #e9ecf6;  /* light navy tint — alt section backgrounds */
  --brick: #e07a5f;      /* warm coral — accent, CTAs */
  --brick-dark: #c2624a;
  --gold: #e07a5f;
  --line: #e3ded2;
  --white: #ffffff;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--sage-dark);
}
h1{ font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; max-width: 62ch; }
.lede{ font-size: 1.15rem; color: var(--ink-soft); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--brick); color: var(--white); }
.btn-primary:hover{ background: var(--brick-dark); }
.btn-outline{ background: transparent; color: var(--sage-dark); border-color: var(--sage-dark); }
.btn-outline:hover{ background: var(--sage-tint); }
.btn-on-dark{ color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-on-dark:hover{ background: rgba(255,255,255,.12); }

/* ---------- header / nav ---------- */
header.site{
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--sage-dark);
}
.brand-mark{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sage); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand-since{ font-size: .7rem; color: var(--ink-soft); display: block; letter-spacing: .02em; }

nav.main-nav{ display: flex; align-items: center; gap: 26px; }
nav.main-nav a{
  text-decoration: none; font-size: .96rem; font-weight: 500;
  color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main-nav a.active, nav.main-nav a:hover{ border-color: var(--brick); color: var(--sage-dark); }
.nav-cta{ margin-left: 6px; }
#navToggle{
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 42px; height: 38px; cursor: pointer; font-size: 1.2rem; color: var(--sage-dark);
}

@media (max-width: 880px){
  #navToggle{ display: block; }
  nav.main-nav{
    position: fixed; inset: 66px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    padding: 0 28px;
  }
  nav.main-nav.open{ max-height: 420px; padding: 10px 28px 20px; }
  nav.main-nav a{ width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta{ margin: 12px 0 0; }
}

/* ---------- hero ---------- */
.hero{
  background: var(--sage-dark);
  color: var(--white);
  padding: 64px 0 76px;
}
.hero-grid{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-tag{
  font-size: .85rem; color: var(--gold); border-left: 3px solid var(--gold);
  padding-left: 10px; margin-bottom: 18px; display: inline-block;
}
.hero h1{ color: var(--white); }
.hero .lede{ color: rgba(255,255,255,.82); }
.hero-actions{ display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-photo{
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
}
.hero-photo img{ width: 100%; height: 320px; object-fit: cover; }
.hero-photo-cap{
  background: rgba(0,0,0,.35); color: rgba(255,255,255,.85);
  font-size: .82rem; padding: 8px 14px;
}
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo img{ height: 240px; }
}

/* ---------- generic sections ---------- */
section{ padding: 64px 0; }
.section-alt{ background: var(--sage-tint); }
.section-head{ max-width: 640px; margin-bottom: 34px; }
.section-head .eyebrow{ display:none; } /* no tracked-caps eyebrows */

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px;
}
.card h3{ margin-bottom: .4em; }
.card p{ color: var(--ink-soft); margin-bottom: 0; }

/* founding-year mark */
.est-mark{
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); color: var(--gold);
  font-size: 1rem; margin-bottom: 10px;
}
.est-mark b{ font-size: 1.5rem; color: var(--sage-dark); }

/* ---------- equipment / real photos strip ---------- */
.equip-strip{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.equip-card{ background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.equip-card img{ width: 100%; height: 190px; object-fit: cover; }
.equip-card figcaption{ padding: 14px 16px; }
.equip-card figcaption strong{ display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--sage-dark); }
.equip-card figcaption span{ font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 880px){ .equip-strip{ grid-template-columns: 1fr; } }

/* ---------- services list ---------- */
.service-group{ border-top: 1px solid var(--line); padding: 30px 0; }
.service-group:first-child{ border-top: none; padding-top: 0; }
.service-list{ list-style: none; margin: 18px 0 0; padding: 0; }
.service-list li{
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.service-list li:first-child{ border-top: none; }
.service-list .label{ font-weight: 600; }
.service-list .meta{ color: var(--ink-soft); font-size: .92rem; text-align: right; }

/* ---------- google rating summary ---------- */
.rating-summary{
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 28px; margin-bottom: 26px;
}
.rating-score{ text-align: center; }
.rating-score .num{ font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--sage); line-height: 1; }
.rating-stars{ color: var(--gold); font-size: 1.15rem; letter-spacing: 2px; margin: 4px 0; }
.rating-score .count{ font-size: .85rem; color: var(--ink-soft); }
.rating-source{ font-size: .78rem; color: var(--ink-soft); width: 100%; margin-top: 6px; }

/* ---------- testimonials scroller ---------- */
.testimonial-note{
  font-size: .85rem; color: var(--ink-soft); background: var(--sage-tint);
  border: 1px dashed var(--sage); border-radius: 6px; padding: 10px 14px; margin-bottom: 26px;
  max-width: 640px;
}
.t-scroller{
  display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.t-card{
  flex: 0 0 320px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px;
}
.t-card p{ font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); margin-bottom: 14px; }
.t-card .who{ font-size: .85rem; color: var(--ink-soft); }

/* ---------- map / contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block dt{ font-weight: 600; margin-top: 16px; }
.contact-block dd{ margin: 2px 0 0; color: var(--ink-soft); }
.map-frame{
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  min-height: 320px;
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }

form.contact-form{ display: grid; gap: 16px; max-width: 520px; }
form.contact-form label{ font-size: .88rem; font-weight: 600; display: block; margin-bottom: 5px; }
form.contact-form input, form.contact-form textarea{
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: .96rem; background: var(--white);
}
form.contact-form textarea{ min-height: 120px; resize: vertical; }
.form-status{ display: none; padding: 10px 14px; border-radius: 6px; font-size: .9rem; }
.form-status.show{ display: block; }
.form-status.warn{ background: #fff2d6; color: #6b4b00; }
.form-status.confirm{ background: #e3efe6; color: #1f5c34; }
.form-status.error{ background: #fdeceb; color: #8a2c20; }

/* ---------- blog ---------- */
.blog-list{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.blog-card{ background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.blog-card img{ width: 100%; height: 170px; object-fit: cover; }
.blog-card .body{ padding: 20px; }
.blog-card .date{ font-size: .82rem; color: var(--gold); font-weight: 600; }
.blog-card h3{ margin: 6px 0 8px; }
.blog-card p{ color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 880px){ .blog-list{ grid-template-columns: 1fr; } }
.blog-post-body{ max-width: 70ch; }
.blog-post-body h2{ margin-top: 1.2em; }

/* ---------- insurance list ---------- */
.insurance-list{
  columns: 2; column-gap: 28px; list-style: disc; padding-left: 20px;
  color: var(--ink-soft); margin: 0;
}
.insurance-list li{ margin-bottom: 8px; break-inside: avoid; }
@media (max-width: 880px){ .insurance-list{ columns: 1; } }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-top: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 4px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  color: var(--sage-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after{ content: '+'; font-size: 1.3rem; color: var(--brick); flex-shrink: 0; }
.faq-item.open .faq-q::after{ content: '\2212'; }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a{ max-height: 300px; }
.faq-a p{ padding: 0 4px 20px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- footer ---------- */
footer.site{ background: var(--sage-dark); color: rgba(255,255,255,.85); padding: 48px 0 28px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
footer.site h4{ color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: 10px; }
footer.site a{ text-decoration: none; color: rgba(255,255,255,.78); }
footer.site a:hover{ color: var(--white); }
footer.site .flinks{ display: grid; gap: 8px; }
.footer-base{ border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .8rem; color: rgba(255,255,255,.6); }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- concept disclaimer banner ---------- */
#concept-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink); color: #fff; font-size: .82rem;
  text-align: center; padding: 12px 16px;
}

/* ---------- cookie banner ---------- */
#cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: -200px; z-index: 90;
  max-width: 520px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: bottom .3s ease;
}
#cookie-banner.show{ bottom: 68px; }
#cookie-banner p{ font-size: .88rem; margin: 0 0 12px; color: var(--ink-soft); }
.cookie-actions{ display: flex; gap: 10px; }
.cookie-actions button{
  border: 1px solid var(--line); background: var(--white); border-radius: 6px;
  padding: 8px 14px; font-size: .86rem; cursor: pointer;
}
#cookieAccept{ background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- accessibility widget ---------- */
#a11y-toggle{
  position: fixed; right: 18px; bottom: 60px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sage-dark); color: #fff; border: none; cursor: pointer;
  font-size: 1.2rem; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
#a11y-panel{
  position: fixed; right: 18px; bottom: 114px; z-index: 95;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; width: 220px; display: none; box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
#a11y-panel.open{ display: block; }
#a11y-panel h4{ margin: 0 0 10px; font-size: .95rem; }
.a11y-row{ display: flex; gap: 8px; margin-bottom: 10px; }
.a11y-row button{ flex: 1; padding: 6px 0; border: 1px solid var(--line); background: var(--white); border-radius: 6px; cursor: pointer; }
.a11y-toggle-row{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .86rem; }
.a11y-toggle-row button{ width: 38px; height: 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); position: relative; cursor: pointer; }
.a11y-toggle-row button.on{ background: var(--sage); }
#a11y-reset{ width: 100%; padding: 7px 0; border: 1px solid var(--line); background: var(--white); border-radius: 6px; cursor: pointer; font-size: .85rem; margin-top: 4px; }

.a11y-fs-1{ font-size: 106%; }
.a11y-fs-2{ font-size: 114%; }
.a11y-fs-3{ font-size: 124%; }
.a11y-contrast{ filter: contrast(1.18) saturate(1.05); }
.a11y-underline a{ text-decoration: underline !important; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--brick); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
