/* SVS Healthcare IT Solutions: website styles (v4)
   Navy for trust, clinical teal for action and highlights, Lora headings with Source Sans 3 text. */

@font-face { font-family: "Lora"; src: url("fonts/lora.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff") format("woff"); font-weight: 200 900; font-display: swap; }

:root {
  --navy: #0B2A4A;
  --navy-2: #133B63;
  --navy-3: #1D4C7A;
  --teal: #0B7C76;
  --teal-bright: #14B3A6;
  --teal-soft: #E4F4F2;
  --ink: #15222F;
  --slate: #4E5D6C;
  --line: #DCE3EA;
  --mist: #F3F6F9;
  --paper: #FFFFFF;
  --amber: #B7791F;
  --red: #C2413A;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 2px 8px rgba(11, 42, 74, .05);
  --shadow-lg: 0 2px 6px rgba(11, 42, 74, .06), 0 24px 48px -12px rgba(11, 42, 74, .22);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--teal-soft); }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0; letter-spacing: -.012em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.4rem); line-height: 1.18; }
h3 { font: 600 1.18rem/1.35 var(--sans); color: var(--navy); margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--slate); max-width: 52ch; }
.muted { color: var(--slate); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--teal-bright); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }

/* Buttons ----------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(11, 42, 74, .2); }
.btn-primary:hover { background: #096A65; color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: #C3CDD7; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ------------------------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(11, 42, 74, .18); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); } }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { position: relative; display: block; padding: 10px 14px; color: var(--slate); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: var(--r-sm); }
.site-nav ul a:hover { color: var(--navy); background: var(--mist); }
.site-nav ul a[aria-current="page"] { color: var(--navy); }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--teal-bright); border-radius: 2px; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid #C3CDD7; border-radius: var(--r-sm); background: #fff; font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle-bars { position: relative; }
.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); }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .brand img { width: 170px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11, 42, 74, .3); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 6px; font-size: 1.1rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .site-nav ul a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .site-nav ul a[aria-current="page"] { padding-left: 16px; }
}

/* Hero -------------------------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); background:
  radial-gradient(1200px 500px at 85% -10%, #E6F1F8 0%, transparent 60%), linear-gradient(#fff, #F7FAFC); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.assurances { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--slate); font-weight: 600; font-size: .95rem; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances .icon { color: var(--teal); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 18ch; } }

/* Product mock-up (illustration) */
.mock { position: relative; margin: 0; padding: 0 0 26px 26px; }
.mock::before { content: ""; position: absolute; inset: 30px -20px -10px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: 24px; transform: rotate(-2deg); opacity: .96; }
.mock-window { position: relative; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #D5DEE7; font-size: .86rem; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy); color: #fff; }
.mock-title { font-weight: 700; margin-right: 10px; }
.mock-tab { color: #A9BED2; font-weight: 600; padding: 4px 10px; border-radius: 5px; }
.mock-tab.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
.mock-body { padding: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stats div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mock-stats span { display: block; color: var(--slate); font-size: .78rem; font-weight: 600; }
.mock-stats strong { font: 600 1.35rem/1.2 var(--serif); color: var(--navy); }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; font-size: .74rem; color: var(--slate); font-weight: 600; padding: 7px 8px; background: var(--mist); }
.mock-table td { padding: 9px 8px; border-bottom: 1px solid #EEF2F6; white-space: nowrap; }
.mock-table td:first-child { font-variant-numeric: tabular-nums; color: var(--slate); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.pill-amber { background: #FBF0DC; color: #8A5A10; } .pill-green { background: #E2F4EA; color: #1C6B43; }
.pill-blue { background: #E3EEF9; color: #1E4F80; } .pill-grey { background: #EDF0F3; color: #4E5D6C; }
.mock-toast { position: absolute; right: -14px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mock-toast b { display: block; font-size: .92rem; color: var(--navy); }
.mock-toast small { color: var(--slate); font-size: .8rem; }
.mock-toast-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.mock figcaption { position: absolute; left: 30px; bottom: -6px; font-size: .78rem; color: #8494A4; }
@media (prefers-reduced-motion: no-preference) {
  .mock-toast { animation: toast .6s 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes toast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .mock { padding: 0 0 30px; }
  .mock::before { inset: 24px -12px -6px 12px; }
  .mock-tab:not(.is-active) { display: none; }
  .mock-table th:nth-child(3), .mock-table td:nth-child(3) { display: none; }
  .mock-toast { right: 8px; bottom: 22px; }
  .mock figcaption { position: static; margin-top: 30px; text-align: center; }
}

/* Who we serve */
.served { border-block: 1px solid var(--line); background: #fff; }
.served-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 26px 0; flex-wrap: wrap; }
.served-row p { margin: 0; color: var(--slate); font-weight: 600; }
.served ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.served li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.served .icon { color: var(--teal); }

/* Sections ---------------------------------------------------------------------------------------- */
.block { padding: clamp(64px, 8vw, 112px) 0; }
.block-mist { background: var(--mist); }
.section-intro { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-intro h2 { margin-bottom: 14px; }
.section-intro p { color: var(--slate); font-size: 1.12rem; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split h2 { margin-bottom: 16px; }
.split .btn { margin-top: 8px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); flex: none; }
.icon-tile-lg { width: 64px; height: 64px; border-radius: 14px; }

/* Product panels (home) */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-panel { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.product-panel:hover { border-color: #B9C7D4; box-shadow: var(--shadow-lg); }
.product-panel.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 56px; padding: 36px;
  background: linear-gradient(120deg, #fff 0%, #F2F9F8 100%); border-color: #BFDCD8; }
.product-panel.is-lead .ticks { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.product-panel.is-lead .pp-link { align-self: end; }
.pp-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pp-head h3 { font: 600 1.4rem/1.2 var(--serif); margin: 0; }
.pp-head p { margin: 2px 0 0; color: var(--slate); font-size: .95rem; font-weight: 600; }
.pp-text { color: var(--slate); }
.product-panel .ticks { margin: 4px 0 24px; }
.pp-link { margin-top: auto; font-weight: 700; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pp-link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s; }
.pp-link:hover { color: var(--navy); }
.pp-link:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; } .product-panel.is-lead { display: flex; padding: 28px; } .product-panel.is-lead .ticks { margin: 4px 0 24px; } }

/* Ticks */
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%; background: var(--teal-soft); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.28em + 4px); width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* LabPro journey: a real sequence, so it is numbered */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: none; }
.journey::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, #A9BCCD 0 6px, transparent 6px 12px); }
.journey li { position: relative; text-align: center; padding: 0 12px; }
.j-no { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  font: 600 1.1rem var(--serif); box-shadow: 0 0 0 6px var(--mist); margin-bottom: 16px; }
.journey li:last-child .j-no { background: var(--teal); }
.journey h3 { margin-bottom: 4px; }
.journey p { color: var(--slate); font-size: .96rem; margin: 0 auto; max-width: 20ch; }
@media (prefers-reduced-motion: no-preference) {
  .journey.is-playing .j-no { animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .22s); }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #A9BCCD 0 6px, transparent 6px 12px); }
  .journey li { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .j-no { grid-row: span 2; margin: 0; }
  .journey h3 { align-self: end; margin: 0; } .journey p { margin: 0; max-width: none; }
}

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.reasons .icon-tile { margin-bottom: 18px; }
.reasons p { color: var(--slate); margin: 0; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 32px; } }

/* Steps (numbered sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 1rem/1 var(--serif); color: var(--teal); margin-bottom: 12px; }
.steps p { color: var(--slate); margin: 0; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps-5 { grid-template-columns: 1fr; } }

/* Call to action */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 2px solid rgba(20, 179, 166, .35); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 22ch; margin-bottom: 12px; }
.cta p { color: #C6D5E3; margin: 0; max-width: 52ch; font-size: 1.1rem; }

/* Inner pages ------------------------------------------------------------------------------------- */
.page-head { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(900px 360px at 90% -20%, #E6F1F8 0%, transparent 65%), linear-gradient(#fff, #F7FAFC); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; margin-bottom: 18px; }
.page-head .lead { max-width: 60ch; margin: 0; }

.product-detail { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px 72px; padding: clamp(56px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.product-detail:last-child { border-bottom: 0; }
.pd-title { position: sticky; top: 120px; align-self: start; }
.pd-title .icon-tile { margin-bottom: 20px; }
.pd-title h2 { margin-bottom: 6px; }
.pd-title p { color: var(--slate); font-weight: 600; }
.pd-body .lead { max-width: 52ch; margin-bottom: 26px; color: var(--ink); }
.pd-body .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-bottom: 32px; }
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } .pd-title { position: static; } .pd-body .ticks { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.services div { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.services dt { font: 600 1.25rem/1.3 var(--serif); color: var(--navy); margin-bottom: 8px; }
.services dd { margin: 0; color: var(--slate); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.plan:nth-child(2) { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); }
.plan h2 { font-size: 1.75rem; margin-bottom: 4px; }
.plan .plan-how { font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.plan > p { color: var(--slate); }
.plan .btn { margin-top: auto; align-self: stretch; }
.note { margin-top: 36px; padding: 20px 24px; border-left: 4px solid var(--teal); background: var(--mist); color: var(--ink); border-radius: 0 var(--r) var(--r) 0; max-width: 84ch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.principles div { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.principles dt { font: 600 1.35rem/1.25 var(--serif); color: var(--navy); margin-bottom: 8px; }
.principles dd { margin: 0; color: var(--slate); }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.about-mark { padding: 40px; background: linear-gradient(140deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about-mark img { width: 76px; margin-bottom: 26px; }
.about-mark p { font: 600 1.6rem/1.3 var(--serif); margin: 0 0 12px; }
.about-mark span { color: #C6D5E3; }

.legal { max-width: 72ch; padding: clamp(40px, 5vw, 72px) 0; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.legal h2:first-child { margin-top: 0; }

/* Contact ----------------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-panel { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); scroll-margin-top: 110px; }
.form-panel h2 { margin-bottom: 8px; }
.form-intro { color: var(--slate); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .98rem; color: var(--navy); }
.field label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: .9rem; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #C9D3DC; border-radius: var(--r-sm); background: #fff;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 136px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FB0C0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field .error { display: none; color: #A3352F; font-size: .92rem; font-weight: 600; }
.field.has-error .error { display: block; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.form-foot p { margin: 0; font-size: .92rem; color: var(--slate); max-width: 44ch; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--r-sm); margin-bottom: 24px; font-weight: 600; }
.alert-error { background: #FCEDEC; color: #8E2A22; border-left: 4px solid var(--red); }
.sent h2 { margin-bottom: 10px; }
.sent .tick-big { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); position: relative; margin-bottom: 20px; }
.sent .tick-big::after { content: ""; position: absolute; left: 20px; top: 13px; width: 12px; height: 23px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .panel { padding: 28px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.contact-aside dl { margin: 0; display: grid; gap: 20px; }
.contact-aside dt { font-size: .9rem; color: #A9BED2; font-weight: 600; }
.contact-aside dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; }
.contact-aside dd a { color: #fff; }
.privacy-note { padding: 20px 22px; border-radius: var(--r); background: var(--mist); border-left: 4px solid var(--amber); font-size: .96rem; }
.privacy-note p { margin: 0; }

/* Footer ------------------------------------------------------------------------------------------ */
.site-footer { background: #071D33; color: #B8C7D6; padding: clamp(56px, 6vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 230px; margin-bottom: 20px; }
.footer-brand p { max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 700 1rem var(--sans); color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.footer-col a { color: #B8C7D6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .footer-cta { color: var(--teal-bright); font-weight: 700; margin-top: 6px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: 52px; padding-top: 22px; border-top: 1px solid #1B3550; font-size: .9rem; color: #8DA2B6; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px #071D33, 0 0 0 5px #fff; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media print { .site-header, .site-footer, .cta, .nav-toggle { display: none; } body { font-size: 11pt; } }
.link { font-weight: 700; }
.nav-toggle-label { line-height: 1; }
.site-nav .nav-cta { flex: none; }

/* Shared sign-in page (login.php) ---------------------------------------------------------------- */
.portal-body { background: var(--mist); min-height: 100vh; display: flex; flex-direction: column; }
.portal-top { background: #fff; border-bottom: 1px solid var(--line); }
.portal-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.portal-top .brand img { width: 180px; }
.portal-home { font-weight: 600; color: var(--slate); text-decoration: none; }
.portal-home:hover { color: var(--navy); text-decoration: underline; }
.portal { flex: 1; padding: clamp(40px, 6vw, 80px) 0; }
.portal-wrap { max-width: 880px; }
.portal-intro { margin-bottom: 32px; }
.portal-intro h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); margin-bottom: 12px; }
.portal-intro .lead { margin: 0; }
.portal-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; padding: clamp(24px, 4vw, 40px);
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.portal-main .icon-tile { margin-bottom: 18px; }
.portal-main h2 { font-size: 1.75rem; margin-bottom: 8px; }
.portal-main p { color: var(--slate); margin: 0; }
.portal-form { display: grid; gap: 16px; }
.portal-form .hint { font-weight: 400; color: var(--slate); }
.portal-sub { font: 700 1.05rem var(--sans); color: var(--navy); letter-spacing: 0; margin: 44px 0 14px; }
.portal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-option { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.portal-option:hover { border-color: #9FB0C0; box-shadow: var(--shadow-sm); color: var(--ink); }
.po-text { display: flex; flex-direction: column; gap: 2px; }
.po-text b { color: var(--navy); font-size: 1.08rem; }
.po-text span { color: var(--slate); font-size: .95rem; line-height: 1.45; }
.portal-option::after { content: ""; margin-left: auto; flex: none; width: 8px; height: 8px; border: solid var(--teal); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.portal-note { margin: 36px 0 0; color: var(--slate); }
.portal-foot { padding: 24px 0; color: #7A8898; font-size: .9rem; }
@media (max-width: 720px) { .portal-main, .portal-options { grid-template-columns: 1fr; } }

/* Sign-in link in the main menu */
.nav-signin { font-weight: 600; color: var(--navy); text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.nav-signin:hover { color: var(--teal); text-decoration: underline; }
