/* Circle Bay Medical site styles */
:root {
  --navy: #00405F;
  --navy-2: #005881;
  --teal: #39B6BE;
  --teal-dark: #15727A;  /* 5.3:1 on panel, passes AA */
  --panel: #F3F9FC;
  --panel-2: #EAF2F6;
  --rule: #DCE6EC;
  --ink: #1B2B36;
  --ink-soft: #4A5D6A;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 64, 95, .06), 0 6px 18px rgba(0, 64, 95, .07);
  --max: 1140px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.panel { background: var(--panel); }
.section.navy { background: var(--navy); color: #E6F1F6; }
.section.navy h2, .section.navy h3 { color: var(--white); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }  /* ~75 characters per line */
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .75em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--panel-2); color: var(--navy-2); border-radius: 4px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 8px; padding: 13px 22px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #4CC4CB; color: var(--navy); }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-outline:hover { background: var(--navy-2); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 18px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header .wrap { max-width: 1320px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-2); border-bottom-color: var(--teal); }
.header-ctas { display: flex; gap: 10px; }
.header-ctas .btn { padding: 9px 14px; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.mobile-bar { display: none; }

@media (max-width: 1340px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .9rem; }
  .header-ctas .btn { padding: 8px 12px; font-size: .86rem; }
}
@media (max-width: 1200px) {
  .main-nav, .header-ctas { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .site-header.open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -4px 14px rgba(0,64,95,.08); }
  .mobile-bar .btn { flex: 1; padding: 12px 8px; font-size: .92rem; }
  body { padding-bottom: 76px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--panel) 0%, var(--white) 100%); padding: 72px 0 40px; }
.hero h1 { max-width: 17em; }
.hero .lede { margin-bottom: 1.2em; }
@media (max-width: 600px) { .hero { padding: 40px 0 28px; } .section { padding: 52px 0; } }
.page-hero { background: var(--panel); padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 22em; }

/* Forms strip */
.forms-strip { padding: 8px 0 56px; }
.forms-strip h2 { font-size: 1.45rem; margin-bottom: 16px; }
.forms-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: stretch; }
.form-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .form-tiles { grid-template-columns: 1fr 1fr; } .form-tile { font-size: .88rem; padding: 10px; } }
.form-tile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 58px; padding: 12px 14px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 8px; color: var(--navy); font-weight: 700; font-size: .95rem; line-height: 1.25; text-decoration: none; box-shadow: 0 1px 2px rgba(0,64,95,.05); transition: transform .12s, box-shadow .12s, border-color .12s; }
.form-tile:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--teal); color: var(--navy); }
.form-tile .tag { margin-left: 0; flex-shrink: 0; }
.form-tile.any { background: var(--navy); border-color: var(--navy); color: var(--white); grid-column: 1 / -1; justify-content: flex-start; font-weight: 600; }
.form-tile.any strong { margin-right: 6px; }
.form-tile.any:hover { color: var(--white); background: var(--navy-2); }
.mig-feature { display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: #E6F1F6; border-radius: var(--radius); padding: 22px; text-decoration: none; box-shadow: var(--shadow); }
.mig-feature h3 { color: var(--white); font-family: var(--serif); font-size: 1.5rem; margin-bottom: .4em; }
.mig-feature p { font-size: .98rem; margin-bottom: 1em; }
.mig-feature .go { color: var(--teal); font-weight: 700; }
.mig-feature:hover { background: var(--navy-2); color: #E6F1F6; }
@media (max-width: 960px) { .forms-layout { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust div { padding: 22px 18px; text-align: center; font-weight: 700; color: var(--navy); border-right: 1px solid var(--rule); }
.trust div:last-child { border-right: 0; }
.trust span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(0,64,95,.04); }
.card h3 { color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
a.card:hover { box-shadow: var(--shadow); border-color: var(--teal); color: var(--ink); }
a.card .go { color: var(--navy-2); font-weight: 700; font-size: .95rem; }
.door { padding: 32px; }
.door h3 { font-family: var(--serif); font-size: 1.45rem; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 22px 22px; position: relative; margin: 0; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.steps li strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
@media (max-width: 960px) { .steps, .steps.four { grid-template-columns: 1fr; } }

/* Lists */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* Prose pages */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.form-section { padding: 28px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.form-section:last-child { border-bottom: 0; }
.form-section h2 { font-size: 1.45rem; margin-bottom: .35em; }
.helps { background: var(--panel); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: .97rem; margin: .6em 0 0; }
.forms-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.forms-index a { display: inline-block; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--white); }
.forms-index a:hover { border-color: var(--teal); }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.aside { position: sticky; top: 100px; }
.callout { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.callout h3 { margin-bottom: .4em; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.faq-item h3 { font-size: 1.12rem; margin-bottom: .35em; color: var(--navy); }
.faq-item p { margin: 0; }

/* Region */
.region { border-top: 4px solid var(--teal); }

/* Refer page */
.form-embed { width: 100%; min-height: 1600px; border: 0; background: var(--white); }
.embed-card { padding: 8px; }

/* Final CTA */
.cta-band { background: var(--navy); color: #E6F1F6; text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band .btn-row { justify-content: center; }
.cta-band a.plain { color: #BFE7EA; }

/* Footer */
.site-footer { background: #0B2433; color: #B7C9D3; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #DCEAF0; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-block; padding: 11px 0; min-width: 44px; }
.footer-brand { font-family: var(--serif); color: var(--white); font-size: 1.3rem; margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 12px 16px; border-radius: 6px; }
/* Navy ring with a white halo stays visible on white, teal buttons and navy bands alike */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--white); }
.cta-band :focus-visible, .site-footer :focus-visible, .mig-feature:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 5px var(--navy); }

/* Heading kept at the right level for screen readers, styled like an h3 */
.as-h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin: 0 0 .5em; }
.faq-item .as-h3 { font-size: 1.12rem; margin-bottom: .35em; }
