/* Sowerbys® — official site stylesheet */
:root {
  --navy-900: #0b1f38;
  --navy-800: #0f2a4a;
  --navy-700: #16375f;
  --navy-100: #e6edf6;
  --teal-700: #0b6b74;
  --teal-600: #0e7c86;
  --teal-100: #e3f3f4;
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --line: #d9e0ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 56, .06), 0 8px 24px rgba(11, 31, 56, .06);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: clamp(.875rem, .85rem + .1vw, .9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + .35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + .7vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.6rem + 1.3vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.75rem + 1.9vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: var(--step-4); letter-spacing: -.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { font-weight: 650; }

.tm { font-size: .7em; line-height: 0; margin-left: .03em; font-weight: 400; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy-900); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #dbe4f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { display: inline-block; font-size: var(--step--1); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .9rem; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--navy-800); color: var(--white); }
.btn--ghost { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--ghost:hover { background: var(--navy-800); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--teal-100); color: var(--navy-900); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn svg, .ext-icon { width: 1em; height: 1em; flex: none; display: inline-block; }
.ext-icon { margin-left: .3em; vertical-align: -.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Header – navy with the white Sowerbys™ logo */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header :focus-visible { outline-color: #7fd3da; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; color: var(--white); padding: .4rem 0; }
.brand svg { width: 170px; height: auto; }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: .5rem .85rem; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: .25rem; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .7rem; color: #dbe4f0; text-decoration: none; font-weight: 550; font-size: .98rem; border-radius: 8px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.primary-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #7fd3da; }
.primary-nav .nav-cta { margin-left: .5rem; }
.primary-nav .nav-cta a { background: #7fd3da; color: var(--navy-900); border-radius: 999px; padding-inline: 1.1rem; font-weight: 650; }
.primary-nav .nav-cta a:hover { background: var(--white); color: var(--navy-900); }
.has-sub { display: flex; align-items: center; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; margin-left: -.4rem; background: none; border: 0; color: #dbe4f0; cursor: pointer; border-radius: 8px; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 330px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; }
.submenu a { display: flex; width: 100%; font-weight: 500; color: var(--ink); }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--teal-700); background: var(--bg-soft); box-shadow: none; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .submenu.is-open { display: block; }
.js .has-sub:hover .submenu { display: block; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100vh - 76px); overflow-y: auto; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { width: 100%; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 48px; margin: 0; }
  .submenu { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; background: transparent; }
  .submenu a { color: #dbe4f0; }
  .submenu a:hover, .submenu a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
  .has-sub:hover .submenu, .js .has-sub:hover .submenu { display: none; }
  .submenu.is-open, .js .has-sub:hover .submenu.is-open { display: block; }
  html:not(.js) .submenu { display: block; }
  .primary-nav .nav-cta { margin: .75rem 0 0; border: 0; }
  .primary-nav .nav-cta a { justify-content: center; }
  html:not(.js) .primary-nav { position: static; box-shadow: none; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #123a63 100%); color: #d6e0ee; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("/assets/img/pattern-grid.svg") center / 56px 56px repeat; opacity: .5; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero .eyebrow { color: #7fd3da; }
.hero h1 { color: var(--white); }
.hero .lead { color: #d6e0ee; }
.hero-note { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.25rem; padding: .85rem 1rem; border-left: 3px solid #7fd3da; background: rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--step--1); color: #e6edf6; max-width: 620px; margin-bottom: 1.25rem; }
.hero-note svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: #7fd3da; }
.hero h1 { font-size: clamp(2rem, 1.6rem + 1.9vw, 3rem); }
.hero-art { justify-self: center; width: 100%; max-width: 480px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { max-width: 260px; } }

/* Page header */
.page-header { position: relative; background: var(--navy-900); color: #d6e0ee; overflow: hidden; }
.page-header::after { content: ""; position: absolute; inset: 0; background: url("/assets/img/pattern-grid.svg") center / 56px 56px repeat; opacity: .45; pointer-events: none; }
.page-header .container { position: relative; z-index: 1; padding-block: 2.25rem clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.page-header h1 { color: var(--white); max-width: 900px; }
.page-header .lead { color: #d6e0ee; max-width: 780px; margin-bottom: 0; }
.page-header .eyebrow { color: #7fd3da; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--step--1); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: #7f93ad; }
.breadcrumb a { color: #c4d2e4; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #b9c6d8; }
.card--link h3 a { color: var(--navy-900); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card--link h3 a:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--teal-600); outline-offset: 3px; }
.card .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 650; color: var(--teal-700); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-100); color: var(--teal-700); margin-bottom: 1.1rem; }
.icon-badge svg { width: 28px; height: 28px; }
.section--navy .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.section--navy .card p { color: #c9d5e5; }
.section--navy .icon-badge { background: rgba(127,211,218,.14); color: #7fd3da; }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0; padding: 1.35rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem 2rem; }
.trust-strip li { display: flex; align-items: center; gap: .65rem; margin: 0; font-weight: 600; color: var(--navy-800); font-size: .98rem; }
.trust-strip svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.5rem; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .95rem; font-weight: 700; color: var(--teal-700); letter-spacing: .06em; margin-bottom: .6rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--teal-100) url("/assets/img/check.svg") center / .8rem no-repeat; }

.term-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.term-list li { margin: 0; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: var(--radius); padding: 1.2rem 1.35rem; }
.term-list h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.term-list p { margin: 0; color: var(--ink-soft); }

.notice { display: flex; gap: .9rem; align-items: flex-start; background: var(--navy-100); border: 1px solid #c8d6e8; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 2rem; color: var(--navy-900); }
.notice svg { width: 24px; height: 24px; flex: none; color: var(--navy-700); margin-top: .1rem; }
.notice p { margin: 0; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ol, .prose ul { padding-left: 1.4em; }
.legal-meta { font-size: var(--step--1); color: var(--ink-soft); background: var(--bg-soft); border-radius: var(--radius); padding: .75rem 1rem; display: inline-block; margin-bottom: 1.5rem; }
.legal ol.clauses { counter-reset: clause; list-style: none; padding: 0; }
.legal ol.clauses > li { counter-increment: clause; margin-bottom: 1.75rem; }
.legal ol.clauses > li > h2 { font-size: var(--step-1); margin: 0 0 .6rem; }
.legal ol.clauses > li > h2::before { content: counter(clause) ". "; color: var(--teal-700); }
.legal ol.sub { counter-reset: sub; list-style: none; padding: 0; }
.legal ol.sub > li { counter-increment: sub; position: relative; padding-left: 2.6rem; }
.legal ol.sub > li::before { content: counters(clause, ".") "." counter(sub); position: absolute; left: 0; color: var(--ink-soft); font-size: .95em; }
.legal dl dt { font-weight: 650; color: var(--navy-900); }
.legal dl dd { margin: 0 0 .9rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.35rem; font-weight: 650; color: var(--navy-900); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.25rem; height: 1.25rem; background: url("/assets/img/plus.svg") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.35rem 1.2rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 2.5rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--teal-700), var(--navy-800)); color: #e6f2f4; border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--white); font-size: var(--step-2); margin-bottom: .5rem; }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.sitemap-list { columns: 2 280px; column-gap: 3rem; }
.sitemap-list h2 { font-size: var(--step-1); break-after: avoid; }
.sitemap-list ul { break-inside: avoid; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c4d2e4; font-size: .97rem; }
.site-footer a { color: #dfe8f3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand svg { width: 180px; color: var(--white); margin-bottom: 1rem; }
.footer-brand p { margin-bottom: .6rem; }
.footer-brand .official { color: #7fd3da; font-weight: 650; }
.site-footer h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.75rem 2.25rem; font-size: .9rem; color: #a9bbd1; }
.footer-bottom p { margin-bottom: .5rem; max-width: 980px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.error-page { text-align: center; padding-block: 5rem; }
.error-page .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 750; color: var(--teal-600); line-height: 1; margin-bottom: 1rem; }
.error-page .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  .page-header, .hero { background: none; color: #000; }
  .page-header h1, .hero h1 { color: #000; }
}
.footer-bottom a { text-decoration: underline; text-underline-offset: .18em; }
.brand-name { white-space: nowrap; }
