/* ABMC Mortgage Centre – public site styles */
:root {
  --ink: #14213D;
  --ink-2: #22335A;
  --sand: #C99A4E;
  --sand-deep: #A97A2F;
  --sand-tint: #F6EEDF;
  --harbour: #2F6F8F;
  --mist: #EEF2F4;
  --line: #D9E0E5;
  --text: #1C2430;
  --muted: #56627A;
  --white: #fff;
  --ok: #1E7B4E;
  --err: #B3261E;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 12px 32px -12px rgba(20,33,61,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbour); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--font-body); padding: .95rem 1.4rem; border-radius: var(--r-sm); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--accent { background: var(--sand); color: var(--ink); }
.btn--accent:hover { background: var(--sand-deep); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--block { width: 100%; }
.btn--call { background: var(--ink); color: #fff; padding: .7rem 1rem; font-size: .95rem; }
.btn--call:hover { background: var(--ink-2); color: #fff; }
.btn--call svg { width: 1rem; height: 1rem; }
.link-strong { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; }
.link-strong:hover { color: var(--harbour); }

/* utility bar */
.utility { background: var(--ink); color: #C7D0E0; font-size: .875rem; }
.utility__in { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.utility a { color: #fff; text-decoration: none; }
.utility__right { display: flex; gap: 1.5rem; }
@media (max-width: 760px) { .utility__in > span:first-child, .utility__lic { display: none; } .utility__in { justify-content: center; } }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font: 700 1.45rem/1 var(--font-head); letter-spacing: .02em; }
.brand__text small { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav a { display: block; padding: .6rem .7rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: var(--r-sm); }
.nav a:hover { color: var(--harbour); }
.nav > li > a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sand); border-radius: 0; }
.sub-toggle { background: none; border: 0; padding: .3rem; margin-left: -.5rem; color: var(--muted); cursor: pointer; display: flex; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub a { font-weight: 400; padding: .55rem .75rem; }
.sub a:hover { background: var(--mist); color: var(--ink); }
@media (min-width: 1241px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
}
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--mist); border: 0; border-radius: var(--r-sm); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0 0 0 auto; top: var(--hdr, 76px); width: min(100%, 420px); background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; border-left: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { transform: none; visibility: visible; }
  .nav { flex-direction: column; }
  .nav > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav > li > a { flex: 1; padding: .9rem .25rem; font-size: 1.05rem; }
  .nav > li > a[aria-current] { box-shadow: inset 3px 0 0 var(--sand); padding-left: .75rem; }
  .sub-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; margin: 0; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .5rem; width: 100%; display: none; min-width: 0; }
  .sub.open { display: block; }
  .site-nav .btn--call { margin-top: 1.25rem; padding: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* hero */
.hero { background: var(--ink); color: #DCE3EF; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -8%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(201,154,78,.25); box-shadow: 0 0 0 60px rgba(201,154,78,.04), 0 0 0 120px rgba(201,154,78,.03); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; max-width: 15ch; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.quick-calc { background: #fff; color: var(--text); border-radius: var(--r-md); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); border-top: 6px solid var(--sand); }
.quick-calc__title { font-size: 1.15rem; margin-bottom: .75rem; }
.quick-calc__result { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.quick-calc__amount { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quick-calc__per { color: var(--muted); }
.quick-calc__meta { margin: .4rem 0 .25rem; font-size: .95rem; }
.quick-calc__note { font-size: .82rem; color: var(--muted); margin: 0; }

/* fields */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.field__row { display: flex; justify-content: space-between; }
.field__row output { font-variant-numeric: tabular-nums; }
.field input:not([type=range]), .field select, .field textarea { font: 400 1rem/1.4 var(--font-body); color: var(--text); padding: .75rem .85rem; border: 1.5px solid #C3CCD6; border-radius: var(--r-sm); background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--harbour); outline: 3px solid rgba(47,111,143,.2); outline-offset: 0; }
.field--err input, .field--err textarea { border-color: var(--err); }
.field__err { color: var(--err); font-style: normal; font-weight: 400; font-size: .9rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
input[type=range] { width: 100%; accent-color: var(--sand-deep); height: 28px; }

/* lenders */
.lenders { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 2.5rem) 0; }
.lenders__in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.lenders__head { border-left: 4px solid var(--sand); padding-left: 1rem; }
.lenders__title { font: 600 1.35rem/1.2 var(--font-head); color: var(--ink); margin: 0 0 .45rem; letter-spacing: -.01em; }
.lenders__sub { margin: 0; font-size: .95rem; color: var(--muted); }
.lenders__sub strong { color: var(--sand-deep); }
.lenders__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 0; background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: inset -1px -1px 0 var(--line); }
.lenders__grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 60px; padding: .5rem .6rem; background: #fff; font: 600 1rem/1.2 var(--font-head); color: var(--ink-2); }
@media (max-width: 1100px) { .lenders__in { grid-template-columns: 1fr; gap: .9rem; } }
@media (max-width: 860px) { .lenders__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lenders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lenders__grid li { min-height: 52px; font-size: .95rem; } }

/* about band */
.about-band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.about-band__grid { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.about-band__year { display: flex; flex-direction: column; line-height: .85; }
.about-band__since { font: 600 1.1rem var(--font-head); color: var(--sand-deep); margin-bottom: .4rem; }
.about-band__num { font: 700 clamp(4.5rem, 3rem + 6vw, 8.5rem)/.85 var(--font-head); color: var(--ink); letter-spacing: -.05em; writing-mode: vertical-rl; transform: rotate(180deg); }
.about-band__copy .prose { max-width: 60ch; }
.ticks { list-style: none; margin: 0; padding: 1.5rem; background: var(--sand-tint); border-radius: var(--r-md); }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23C99A4E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
@media (max-width: 1000px) { .about-band__grid { grid-template-columns: 1fr; } .about-band__num { writing-mode: horizontal-tb; transform: none; } .about-band__year { flex-direction: row; align-items: baseline; gap: .75rem; } }

/* services */
.services { background: var(--mist); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.service-rows { display: grid; gap: 0; background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: inset -1px -1px 0 var(--line); }
.service-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 2rem; align-items: center; background: #fff; padding: 1.5rem; }
.service-row__media img { border-radius: var(--r-sm); aspect-ratio: 7/5; object-fit: cover; width: 100%; }
.service-row__title { font-size: 1.6rem; margin-bottom: .35rem; }
.service-row__title a { color: var(--ink); text-decoration: none; }
.service-row__title a:hover { color: var(--harbour); }
.service-row__body p { color: var(--muted); margin: 0; }
.service-row__links { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--sand); }
.service-row__links a { display: block; padding: .45rem 0 .45rem 1rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.service-row__links a:hover { color: var(--harbour); text-decoration: underline; }
@media (max-width: 900px) { .service-row { grid-template-columns: 140px 1fr; gap: 1rem 1.25rem; } .service-row__links { grid-column: 1 / -1; } }
@media (max-width: 520px) { .service-row { grid-template-columns: 1fr; } .service-row__media img { aspect-ratio: 16/8; } }

/* news */
.news { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.news-item { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.news-item time { font-size: .9rem; color: var(--muted); }
.news-item h3 { font-size: 1.35rem; margin: .35rem 0 .5rem; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--sand); }
.news-item p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .news__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* cta band */
.cta-band { background: var(--sand); color: var(--ink); }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); margin-bottom: .3rem; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band__phone { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1 var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cta-band__phone:hover { color: #fff; }
.cta-band .btn--accent { background: var(--ink); color: #fff; }
.cta-band .btn--accent:hover { background: var(--ink-2); }

/* footer */
.site-footer { background: #0F1A31; color: #B9C3D6; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer__name { font: 600 1.15rem var(--font-head); color: #fff; margin-bottom: .6rem; }
.site-footer__h { font: 600 1rem var(--font-head); color: #fff; margin-bottom: .8rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .45rem; }
.site-footer a { color: #E4E9F2; text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.badges img { background: #fff; border-radius: var(--r-sm); padding: .35rem; height: 62px; width: auto; }
.badges--inline { margin-top: 2rem; }
.badges--inline img { height: 80px; border: 1px solid var(--line); }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .875rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* page head */
.page-head { background: var(--ink); color: #DCE3EF; padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.page-head__title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 24ch; letter-spacing: -.02em; margin-bottom: .35em; }
.page-head__lead { font-size: 1.15rem; max-width: 60ch; margin: 0; }
.page-head__lead a { color: var(--sand); }
.page-head__meta { margin: 0; color: #B9C3D6; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; color: #9FAAC0; }
.crumbs a { color: #DCE3EF; }

/* listing */
.listing { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.listing-item { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.listing-item:first-child { padding-top: 0; }
.listing-item--noimg { grid-template-columns: 1fr; }
.listing-item__media img { border-radius: var(--r-sm); aspect-ratio: 7/5; object-fit: cover; width: 100%; }
.listing-item h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin-bottom: .4rem; }
.listing-item h2 a { color: var(--ink); text-decoration: none; }
.listing-item h2 a:hover { color: var(--harbour); }
.listing-item time { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.listing-item p { max-width: 65ch; color: var(--muted); }
@media (max-width: 680px) { .listing-item { grid-template-columns: 1fr; gap: 1rem; } }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.article__figure { float: right; margin: 0 0 1.25rem 2rem; max-width: 45%; }
.article__figure img { border-radius: var(--r-sm); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; margin-bottom: .4em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--sand-deep); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--sand); background: var(--sand-tint); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.aside { display: flex; flex-direction: column; gap: 1.25rem; }
.aside__box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; }
.aside__box ul { list-style: none; margin: 0; padding: 0; }
.aside__box li a { display: block; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.aside__box li:first-child a { border-top: 0; }
.aside__box li a:hover { color: var(--harbour); }
.aside__h { font-size: 1.1rem; margin-bottom: .6rem; }
.aside__box--ink { background: var(--ink); color: #DCE3EF; border-color: var(--ink); }
.aside__box--ink .aside__h { color: #fff; }
.aside__phone { display: block; font: 700 1.8rem/1 var(--font-head); color: #fff; text-decoration: none; margin: .25rem 0 1.1rem; }
.aside__phone:hover { color: var(--sand); }
.aside__tool { display: block; padding: 1.25rem 1.4rem; background: var(--sand-tint); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.aside__tool strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.aside__tool span { color: var(--muted); font-size: .95rem; }
.aside__tool:hover strong { text-decoration: underline; text-decoration-color: var(--sand); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .article__figure { float: none; margin: 0 0 1.5rem; max-width: 100%; } .article__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; } }

/* tools */
.tools { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tabs button { font: 600 1rem var(--font-body); padding: .75rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tool[hidden] { display: none; }
.tool__form { padding: clamp(1.4rem, 3vw, 2.25rem); }
.tool__desc { color: var(--muted); margin-bottom: 1.4rem; }
.tool__result { background: var(--ink); color: #DCE3EF; padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; }
.tool__big { display: flex; flex-direction: column; margin-bottom: 1.75rem; }
.tool__big span { font: 700 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--font-head); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tool__big small { font-size: 1rem; margin-top: .5rem; }
.tool__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; }
.tool__stats dt { font-size: .9rem; color: #9FAAC0; }
.tool__stats dd { margin: .2rem 0 0; font: 600 1.3rem var(--font-head); color: var(--sand); font-variant-numeric: tabular-nums; }
.disclaimer { font-size: .88rem; color: var(--muted); max-width: 90ch; margin-top: 1.5rem; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }

/* contact */
.contact { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact__name { font: 600 1.35rem var(--font-head); color: var(--ink); margin-bottom: .1rem; }
.contact__lic { color: var(--muted); }
.contact__list { margin: 1.5rem 0; }
.contact__list > div { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: .95rem; }
.contact__list dd { margin: 0; }
.contact__phone { font: 700 1.5rem/1.1 var(--font-head); color: var(--ink); text-decoration: none; }
.contact__map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__formwrap { background: var(--mist); border-radius: var(--r-md); padding: clamp(1.4rem, 3vw, 2.25rem); align-self: start; }
.contact-form__privacy { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; font-weight: 600; }
.notice--ok { background: #E3F3EA; color: var(--ok); border-left: 4px solid var(--ok); }
.notice--err { background: #FBE9E7; color: var(--err); border-left: 4px solid var(--err); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::after { display: none; }
}
@media (max-width: 420px) { .field-pair { grid-template-columns: 1fr; } .hero__actions .btn { width: 100%; } }

/* page header with photo */
.page-head__grid { display: block; }
.page-head--media { padding-bottom: 0; overflow: hidden; }
.page-head--media .page-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.page-head--media .page-head__text { padding-bottom: clamp(2.25rem, 5vw, 3.75rem); align-self: center; }
.page-head__figure { margin: 0; position: relative; align-self: end; }
.page-head__figure::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1px 1.25rem; background: var(--sand); border-radius: var(--r-md) var(--r-md) 0 0; }
.page-head__figure img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); }
@media (max-width: 860px) {
  .page-head--media .page-head__grid { grid-template-columns: 1fr; gap: 0; }
  .page-head--media .page-head__text { padding-bottom: 2rem; }
  .page-head__figure::before { inset: .75rem -.75rem -1px .75rem; }
  .page-head__figure img { aspect-ratio: 16 / 9; }
}

/* article text fills its column */
.article .prose { max-width: none; font-size: 1.08rem; line-height: 1.7; }
@media (min-width: 961px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }

/* faq */
.faq { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--mist); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 600 1.12rem/1.35 var(--font-head); color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%23A97A2F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid var(--line); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--harbour); }
.faq__item p { margin: 0 0 1.25rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* small-screen polish */
.contact__list dd, .site-footer a, .utility a { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tabs button { padding: .7rem .6rem; font-size: .92rem; }
  .contact__list > div { grid-template-columns: 64px 1fr; gap: .75rem; }
  .article .prose { font-size: 1.02rem; }
}
.nav > li > a, .brand__text, .btn--call { white-space: nowrap; }
