/* Self-hosted Source Sans 3 (SIL OFL) - no third-party font requests */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ===== Design tokens: brand colours sampled from the business card ===== */
:root {
  --color-navy: #134568;        /* main typography, primary buttons */
  --color-navy-hover: #0d3350;
  --color-blue: #4c95cb;        /* medium blue: accents, focus, hover */
  --color-blue-light: #bee2f8;  /* light blue */
  --color-blue-pale: #eef6fc;   /* very pale blue section background */
  --color-bg: #ffffff;
  --color-text: #134568;
  --color-muted: #4a647c;
  --color-border: #cfe3f2;
  --font-body: "Source Sans 3", "Segoe UI", "Myriad Pro", Frutiger, Candara, "Helvetica Neue", Arial, sans-serif;
  --page-width: 1080px;
  --page-margin: 20px;
  --section-space: 48px;
  --radius: 6px;
  --art: url("images/light-blue-geometric-background.jpg");
}
@media (min-width: 768px) { :root { --page-margin: 32px; --section-space: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; font-size: 1.0625rem; overflow-wrap: break-word; }
img, table, input, textarea { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: .02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 var(--page-margin); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 0; }

/* Supplied background artwork: used only on hero, contact title area and closing CTA */
.section--art, .page-title.page-title--art { background: #fff var(--art) center 82% / cover no-repeat; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); border: 1px solid var(--color-navy); font: inherit; font-weight: 600; letter-spacing: .02em; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--color-navy); color: #fff; }
.btn--primary:hover { background: var(--color-navy-hover); border-color: var(--color-navy-hover); }
.btn--secondary { background: #fff; color: var(--color-navy); border-color: var(--color-blue); }
.btn--secondary:hover { background: var(--color-blue-pale); border-color: var(--color-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; letter-spacing: .12em; font-size: 1.2rem; color: var(--color-navy); }
.brand__tagline { font-size: .85rem; letter-spacing: .04em; color: var(--color-muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; font-size: .98rem; letter-spacing: .02em; }
.site-nav a:hover { border-bottom-color: var(--color-blue-light); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--color-navy); font-weight: 600; }
.site-nav a.nav-cta { padding: 8px 18px; border: 1px solid var(--color-navy); border-radius: var(--radius); font-weight: 600; }
.site-nav a.nav-cta:hover { background: var(--color-navy); color: #fff; }
.site-nav a.nav-cta[aria-current="page"] { background: var(--color-navy); color: #fff; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-navy); margin: 4px 0; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 50; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--page-margin) 16px; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--color-border); color: var(--color-navy); }
  .site-nav li:last-child { margin-top: 12px; }
  .site-nav a.nav-cta { text-align: center; border: 1px solid var(--color-navy); }
}

/* Page title */
.page-title { padding: 44px 0 40px; background: var(--color-blue-pale); border-bottom: 1px solid var(--color-border); }
.page-title--art { padding: 56px 0 170px; border-bottom: 0; }
.page-title__intro { max-width: 60ch; color: var(--color-muted); font-size: 1.15rem; margin: .75em 0 0; }
@media (min-width: 768px) { .page-title { padding: 64px 0 52px; } .page-title--art { padding: 72px 0 240px; } }

/* Hero (home) */
.hero { padding: 56px 0 200px; }
.hero h1 { margin-bottom: .1em; font-size: clamp(2.1rem, 5vw, 3rem); }
.hero__title { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; letter-spacing: .04em; margin-bottom: .5em; }
.hero__areas { color: var(--color-muted); letter-spacing: .04em; margin-bottom: 1.25em; }
.hero__text { max-width: 52ch; font-size: 1.15rem; margin-bottom: 1.75em; }
@media (min-width: 768px) { .hero { padding: 96px 0 300px; } }

/* Sections */
.section { padding: var(--section-space) 0 0; }
main > .section:last-child { padding-bottom: var(--section-space); }
.section--pale { background: var(--color-blue-pale); padding: var(--section-space) 0; }
.section:has(+ .section--pale), .section:has(+ .section--art) { padding-bottom: var(--section-space); }
.section--divided { margin-top: var(--section-space); border-top: 1px solid var(--color-border); }
.section__intro { color: var(--color-muted); max-width: 60ch; }

/* Insurance rows (shared by Home, Business Insurance, assist list) */
.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.row__title { margin: 0; color: var(--color-navy); font-size: 1.15rem; }
.row__body p { margin: 0; color: var(--color-muted); }
.row__body p + p, .row__examples { margin-top: .75em; }
.row__label { font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--color-navy) !important; margin-bottom: 4px !important; }
.row__examples ul { margin: 0; padding-left: 1.2em; color: var(--color-muted); }
.row__note { font-size: 1rem; }
@media (min-width: 768px) { .row { grid-template-columns: 17rem 1fr; gap: 32px; } }
.text-link { margin: 24px 0 0; font-weight: 600; letter-spacing: .02em; }
.text-link a { text-decoration: none; border-bottom: 2px solid var(--color-blue); padding-bottom: 2px; }
.text-link a:hover { border-bottom-color: var(--color-navy); }
.bullets { margin: 0 0 1.25em; padding-left: 1.2em; color: var(--color-muted); }
.bullets li { margin-bottom: .35em; }
.section-note { max-width: 60ch; }

/* Panel (renewals & claims) */
.panel { max-width: 60ch; }
.panel__meta { color: var(--color-muted); font-weight: 600; letter-spacing: .04em; }

/* CTA (sits on the artwork, no box) */
.section.section--cta { padding-top: 56px; padding-bottom: 120px; }
.cta { max-width: 60ch; }
.cta p { color: var(--color-muted); }
@media (min-width: 768px) { .section--cta { padding-top: 72px; padding-bottom: 180px; } }
main > .section--cta:last-child { padding-bottom: 120px; }
@media (min-width: 768px) { main > .section--cta:last-child { padding-bottom: 180px; } }

/* Signature (supplied JH mark) */
.signature { display: block; height: auto; }
.about-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
.signature--about { width: 170px; }
.signature--contact { width: 120px; margin: 0 0 12px -4px; }
@media (min-width: 860px) { .about-layout { grid-template-columns: 1fr auto; gap: 80px; align-items: start; } .signature--about { width: 260px; margin-top: 12px; } }

/* Prose (about) */
.prose { max-width: 60ch; font-size: 1.15rem; }
.prose__name { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 0; }
.prose__role { color: var(--color-muted); letter-spacing: .04em; margin-bottom: 1.5em; }

/* Recognition table (years grouped) */
.recognition { width: 100%; border-collapse: collapse; }
.recognition th, .recognition td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.recognition thead th { font-size: .85rem; letter-spacing: .08em; text-transform: none; color: var(--color-muted); border-bottom: 2px solid var(--color-navy); font-weight: 600; }
.recognition tbody th { white-space: nowrap; width: 90px; font-weight: 600; color: var(--color-navy); }
@media (max-width: 640px) {
  .recognition, .recognition tbody, .recognition tr, .recognition td, .recognition tbody th { display: block; width: 100%; }
  .recognition thead { position: absolute; left: -9999px; }
  .recognition tbody { padding: 16px 0 6px; border-bottom: 1px solid var(--color-border); }
  .recognition tbody th { border: 0; padding: 0 0 4px; font-size: 1.3rem; letter-spacing: .02em; }
  .recognition tr { padding: 10px 0; border-top: 1px solid var(--color-border); }
  .recognition tr:first-child { border-top: 0; padding-top: 0; }
  .recognition td { border: 0; padding: 3px 0; }
  .recognition td::before { content: attr(data-label); display: block; font-size: .8rem; letter-spacing: .06em; color: var(--color-muted); font-weight: 400; }
}

/* Contact */
.contact-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1.4fr; gap: 72px; } }
.contact-details p { margin: 0 0 .15em; }
.contact-details__name { font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.contact-details__area { font-weight: 600; letter-spacing: .03em; margin-bottom: 1.25em !important; }
.contact-details__label { margin-top: 1.25em !important; color: var(--color-muted); }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.icon-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--color-navy); display: inline-flex; align-items: center; justify-content: center; }
.icon-dot svg { width: 22px; height: 22px; }

/* Contact enquiry form (Zoho CRM webform; presentation only, the Zoho markup and script are untouched) */
.contact-main { min-width: 0; }
#crmWebToEntityForm { max-width: 36rem; margin: 0 0 40px; color: var(--color-text); }
#crmWebToEntityForm .zcwf_row { margin: 0 0 6px; }
#crmWebToEntityForm .zcwf_row:has(#captchaField5217143000032314919) { margin-bottom: 20px; }
#crmWebToEntityForm .zcwf_col_lab { margin: 0 0 3px; line-height: 1.35; font-weight: 600; letter-spacing: .02em; color: var(--color-navy); }
#crmWebToEntityForm .zcwf_col_lab:empty, #crmWebToEntityForm .zcwf_col_help:empty { display: none; }
#crmWebToEntityForm .zcwf_col_fld { position: relative; }
#crmWebToEntityForm label { cursor: pointer; }
#crmWebToEntityForm .zcwf_req { color: var(--color-navy); margin-left: 2px; }
#crmWebToEntityForm input[type="text"], #crmWebToEntityForm select, #crmWebToEntityForm textarea { display: block; width: 100%; padding: 10px 14px; font: inherit; color: var(--color-text); background: #fff; border: 1px solid var(--color-muted); border-radius: var(--radius); }
#crmWebToEntityForm input[type="text"]:hover, #crmWebToEntityForm select:hover, #crmWebToEntityForm textarea:hover { border-color: var(--color-navy); }
#crmWebToEntityForm input[type="text"]:focus-visible, #crmWebToEntityForm select:focus-visible, #crmWebToEntityForm textarea:focus-visible { border-color: var(--color-navy); }
#crmWebToEntityForm textarea { min-height: 80px; resize: vertical; }
#crmWebToEntityForm select { cursor: pointer; }
#crmWebToEntityForm #captchaField5217143000032314919 { max-width: 14rem; }
#crmWebToEntityForm #captchaErr5217143000032314919 { position: absolute; top: 100%; left: 0; margin-top: 2px; font-size: .9rem; line-height: 1.2; font-weight: 600; color: var(--color-navy); }
#crmWebToEntityForm [id^="imgid"] { display: block; max-width: 100%; height: auto; margin: 0 0 2px; border: 1px solid var(--color-border); border-radius: var(--radius); }
#crmWebToEntityForm .zcwf_col_fld > a { display: inline-block; padding: 2px 0; line-height: 1.4; font-size: .95rem; font-weight: 600; color: var(--color-navy); text-underline-offset: 3px; }
#crmWebToEntityForm .formsubmit { appearance: none; -webkit-appearance: none; }
#crmWebToEntityForm .formsubmit:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 480px) { #crmWebToEntityForm .formsubmit { width: 100%; } }
/* Zoho success splash message: kept as a fixed toast, restyled in site colours */
.wf_customMessageBox { position: fixed; top: 20px; left: 50%; transform: translate(-50%, 0); z-index: 11000; display: flex; align-items: center; max-width: min(90%, 30rem); width: max-content; padding: 16px 22px; background: #fff; color: var(--color-navy); border: 1px solid var(--color-navy); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(19, 69, 104, .15); font-size: 1rem; line-height: 1.5; word-break: break-word; }
.wf_customCircle { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-blue-pale); padding: 40px 0; }
.site-footer__inner { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; } .site-footer__contact { text-align: right; } }
.site-footer p { margin: 0 0 .25em; }
.site-footer__name { font-weight: 700; letter-spacing: .12em; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: 32px; }
.site-footer .site-footer__legal p { margin: 0 0 .15em; font-size: .8125rem; font-weight: 400; line-height: 1.5; color: var(--color-muted); }

/* SEO stage additions (no visual identity changes) */
.recognition-note { margin-top: 24px; }
.section-note a, .row__body a { text-underline-offset: 3px; }

/* Direct contact links */
.contact-link { display: inline-block; padding: 6px 0; margin: -6px 0; font-weight: 600; color: var(--color-navy); text-underline-offset: 3px; }

/* Page transition: native cross-document View Transition (CSS only, no script, no delay).
   Subtle right-to-left movement: the old page drifts 6px left and eases back slightly in opacity while
   the new page fades in from 7px to the right. The old page is never faded out completely and stays
   underneath until the new page covers it, so the screen never goes blank. The header does not move; it cross-fades in place so an open mobile menu fades away.
   Browsers without support navigate normally. Skipped for visitors who prefer reduced motion. */
:root { color-scheme: light; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition { background-color: var(--color-bg); }
  ::view-transition-group(root) { animation-duration: 300ms; animation-timing-function: ease-in-out; }
  ::view-transition-group(site-header) { animation: none; }
  ::view-transition-old(root) { animation: vt-out-fade 300ms linear both, vt-out-move 300ms ease-in-out both; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: vt-in-fade 300ms cubic-bezier(.15, .85, .35, 1) both, vt-in-move 300ms ease-in-out both; mix-blend-mode: normal; }
  ::view-transition-old(site-header) { animation: vt-out-quick 160ms ease-in-out both; }
  ::view-transition-new(site-header) { animation: vt-in-fade 160ms ease-in-out both; }
}
@keyframes vt-out-fade { 0%, 50% { opacity: 1; } 100% { opacity: 0.8; } }
@keyframes vt-out-move { to { transform: translateX(-6px); } }
@keyframes vt-out-quick { to { opacity: 0; } }
@keyframes vt-in-fade { from { opacity: 0; } }
@keyframes vt-in-move { from { transform: translateX(7px); } }
