/* ==========================================================================
   Nest Prime Guide — main stylesheet
   Column layout uses the Bootstrap grid (bootstrap-grid.min.css, loaded first).
   1 Tokens · 2 Base · 3 Header · 4 Buttons · 5 Hero · 6 Finder
   7 Service explorer & cards · 8 Sections · 9 Blog · 10 Forms · 11 Footer
   12 Responsive · 13 Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --cobalt-900: #0e1f44;
  --cobalt-800: #15306a;
  --cobalt-700: #1b3f88;
  --cobalt-600: #1f4fa0;
  --cobalt-200: #c7d5ef;
  --cobalt-100: #e3ebf8;
  --cobalt-50: #f3f6fc;
  --pear-700: #962a57;
  --pear-600: #b8336a;
  --pear-100: #f8e3ec;
  --gold-400: #f1c453;
  --white: #ffffff;
  --ink: #1b2540;
  --muted: #56607a;
  --line: #d8dfec;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --success: #17653a;
  --success-bg: #e3f3e8;

  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-h3: 1.45rem;
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 3.8vw, 4.6rem);

  --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --header-h: 150px;
  --measure: 68ch;
  --shadow: 0 24px 50px -30px rgba(14, 31, 68, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Talavera-inspired tile motif (inline SVG, no external request) */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231f4fa0' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M32 6c6 10 16 14 26 26-10 12-20 16-26 26-6-10-16-14-26-26 10-12 20-16 26-26z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
  --tile-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='2'%3E%3Cpath d='M32 6c6 10 16 14 26 26-10 12-20 16-26 26-6-10-16-14-26-26 10-12 20-16 26-26z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--cobalt-900); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 var(--s-4); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 var(--s-4); }
p, li { text-wrap: pretty; }
ul { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
a { color: var(--cobalt-600); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pear-600); }
:focus-visible { outline: 3px solid var(--pear-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cobalt-200); color: var(--cobalt-900); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--cobalt-900); color: #fff; padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: .75rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: 1220px; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.container-narrow { max-width: 860px; }
.section { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.section-tight { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.bg-tint { background: var(--cobalt-50); }
.bg-tile { background: var(--cobalt-50) var(--tile) repeat; }
.bg-cobalt { background: var(--cobalt-800) var(--tile-light) repeat; color: #d5def0; }
.bg-cobalt h2, .bg-cobalt h3 { color: #fff; }

.overline { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--pear-600); margin-bottom: var(--s-3); }
.overline::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--pear-600); transform: rotate(45deg); }
.bg-cobalt .overline { color: var(--gold-400); }
.bg-cobalt .overline::before { background: var(--gold-400); }
.section-title { max-width: 680px; margin-bottom: var(--s-7); }
.section-title p { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.bg-cobalt .section-title p { color: #c3cfe8; }
.section-title-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title-center .overline { justify-content: center; }
.lead { font-size: var(--fs-lg); color: var(--muted); }

.ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--cobalt-100); color: var(--cobalt-600); }
.ico svg { width: 24px; height: 24px; }
.ico-pear { background: var(--pear-100); color: var(--pear-600); }
.ico-gold { background: var(--gold-400); color: var(--cobalt-900); }

/* 3. Header (two tiers) --------------------------------------------------------- */
.site-header { background: var(--white); position: relative; z-index: 100; }
.header-top { display: flex; align-items: center; gap: var(--s-5); min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--cobalt-900); white-space: nowrap; flex-shrink: 0; }
.brand:hover { color: var(--cobalt-900); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.header-contact { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.header-contact li { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.header-contact .ico { width: 40px; height: 40px; }
.header-contact .ico svg { width: 18px; height: 18px; }
.header-contact small { display: block; color: var(--muted); font-size: .8rem; }
.header-contact a { color: var(--cobalt-900); font-weight: 700; text-decoration: none; }
.header-contact a:hover { color: var(--pear-600); }

.nav-bar { background: var(--cobalt-700) var(--tile-light) repeat; position: sticky; top: 0; z-index: 99; box-shadow: 0 10px 24px -20px rgba(14, 31, 68, .8); }
.nav-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 62px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 18px 16px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 8px; height: 8px; background: var(--gold-400); transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-link[aria-current="page"] { color: var(--gold-400); }
.nav-toggle { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cobalt-700); color: #fff; font: 700 1rem var(--font-body); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-extra { display: none; }

/* 4. Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-pear { background: var(--pear-600); color: #fff; }
.btn-pear:hover { background: var(--pear-700); color: #fff; }
.btn-cobalt { background: var(--cobalt-600); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-800); color: #fff; }
.btn-gold { background: var(--gold-400); color: var(--cobalt-900); }
.btn-gold:hover { background: #f5d47c; color: var(--cobalt-900); }
.btn-ghost { background: var(--white); color: var(--cobalt-800); border-color: var(--cobalt-200); }
.btn-ghost:hover { border-color: var(--cobalt-600); color: var(--cobalt-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: #fff; color: var(--cobalt-900); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row-center { justify-content: center; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--cobalt-600); }
.more-link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }

/* 5. Hero -------------------------------------------------------------------- */
.hero { background: var(--cobalt-50) var(--tile) repeat; padding-top: var(--s-8); padding-bottom: var(--s-8); text-align: center; }
.hero .overline { justify-content: center; }
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero h1 em { font-style: italic; color: var(--pear-600); }
.hero .lead { max-width: 54ch; margin: 0 auto var(--s-6); }
.photo-strip { margin-top: var(--s-7); display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--s-4); align-items: end; }
.photo-strip figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--cobalt-100); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .strip-side img { aspect-ratio: 3 / 4; }
.photo-strip .strip-main img { aspect-ratio: 16 / 10; }

.page-hero { background: var(--cobalt-800) var(--tile-light) repeat; color: #d5def0; padding-top: var(--s-7); padding-bottom: var(--s-8); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.7rem + 2.8vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { color: #c9d4ec; max-width: 60ch; margin: 0; }
.page-hero-photo { border-radius: var(--r-lg); overflow: hidden; border: 6px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); background: var(--cobalt-700); }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-sm); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: #b8c6e3; }
.breadcrumb li + li::before { content: "◆"; font-size: .6rem; margin-right: 8px; color: var(--gold-400); vertical-align: middle; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.article-head .breadcrumb ol { color: var(--muted); }
.article-head .breadcrumb a { color: var(--cobalt-600); }

/* 6. Priority finder ------------------------------------------------------------- */
.finder { background: var(--white); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: clamp(24px, 4vw, 48px); }
.finder fieldset { border: 0; margin: 0; padding: 0; }
.finder legend { font-family: var(--font-head); font-size: 1.5rem; color: var(--cobalt-900); margin-bottom: var(--s-4); }
.concerns { display: flex; flex-wrap: wrap; gap: 10px; }
.concern { position: relative; }
.concern input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.concern label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.concern label::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--cobalt-200); background: var(--white) center / 12px no-repeat; flex-shrink: 0; }
.concern label:hover { border-color: var(--cobalt-600); }
.concern input:checked + label { border-color: var(--cobalt-600); background: var(--cobalt-50); color: var(--cobalt-900); }
.concern input:checked + label::before { background-color: var(--cobalt-600); border-color: var(--cobalt-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.concern input:focus-visible + label { outline: 3px solid var(--pear-600); outline-offset: 3px; }
.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.finder-msg { margin: 0; color: var(--danger); font-weight: 700; }
.finder-msg:empty { display: none; }
.finder-results { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 2px dashed var(--cobalt-200); }
.finder-results[hidden] { display: none; }
.finder-results h3 { margin-bottom: var(--s-4); }
.match { display: flex; align-items: center; gap: var(--s-4); height: 100%; padding: var(--s-4); border-radius: var(--r-md); background: var(--cobalt-50); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.match:hover { border-color: var(--cobalt-600); color: var(--ink); }
.match strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; color: var(--cobalt-900); }
.match span.small { color: var(--muted); font-size: .95rem; }

/* 7. Service explorer (vertical tabs) & cards ---------------------------------- */
.explorer-tabs { display: grid; gap: 6px; }
.explorer-tab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--r-md); border: 2px solid transparent; background: transparent; font: 600 1.02rem/1.3 var(--font-body); color: var(--ink); cursor: pointer; }
.explorer-tab svg { width: 22px; height: 22px; color: var(--cobalt-600); flex-shrink: 0; }
.explorer-tab:hover { background: var(--white); }
.explorer-tab[aria-selected="true"] { background: var(--white); border-color: var(--cobalt-600); color: var(--cobalt-900); box-shadow: var(--shadow); }
.explorer-panel { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); height: 100%; }
.explorer-panel[hidden] { display: none; }
.explorer-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cobalt-100); }
.explorer-panel-body { padding: clamp(24px, 3vw, 36px); }
.explorer-panel h3 { font-size: 2rem; }
.explorer-panel p { color: var(--muted); }

.svc-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s var(--ease); scroll-margin-top: 90px; }
.svc-card:hover { box-shadow: 0 0 0 1px var(--cobalt-200), var(--shadow); transform: translateY(-3px); }
.svc-card:target { box-shadow: 0 0 0 3px var(--pear-600), var(--shadow); }
.svc-card-photo { position: relative; background: var(--cobalt-100); }
.svc-card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-card-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--cobalt-600) var(--tile-light) repeat; background-size: 32px 32px; }
.svc-card-tag { position: absolute; top: var(--s-4); left: var(--s-4); background: var(--white); color: var(--pear-600); font-weight: 700; font-size: .875rem; padding: 6px 12px; border-radius: 999px; }
.svc-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-6); }
.svc-card h2, .svc-card h3 { font-size: 1.75rem; margin-bottom: var(--s-3); }
.svc-card p { color: var(--muted); }
.svc-card .card-note { font-size: .925rem; background: var(--pear-100); color: var(--pear-700); padding: 10px 14px; border-radius: var(--r-sm); }
.svc-card .btn { margin-top: auto; align-self: flex-start; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.chip-row a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.chip-row a:hover { background: #fff; color: var(--cobalt-900); }

/* 8. Sections ---------------------------------------------------------------- */
.pillar { height: 100%; text-align: center; padding: var(--s-6) var(--s-5); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg); }
.pillar .ico { margin: 0 auto var(--s-4); }
.pillar h3 { margin-bottom: var(--s-2); }
.pillar p { margin: 0; color: #c3cfe8; }

.journey { list-style: none; padding: 0; margin: 0; }
.journey-step { position: relative; height: 100%; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.journey-step .ico { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--pear-600); color: #fff; box-shadow: 0 0 0 6px var(--white); }
.journey-step h3 { margin: var(--s-4) 0 var(--s-2); font-size: 1.35rem; }
.journey-step p { margin: 0; color: var(--muted); }
.journey .col-lg-3 { padding-top: 26px; }

.faq-box { background: var(--white); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq-box details + details { border-top: 1px solid var(--line); }
.faq-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); font-family: var(--font-head); font-size: 1.3rem; color: var(--cobalt-900); line-height: 1.25; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary:hover { background: var(--cobalt-50); }
.faq-mark { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt-100); color: var(--cobalt-700); transition: transform .2s var(--ease), background-color .2s ease; }
.faq-mark svg { width: 16px; height: 16px; }
.faq-box details[open] .faq-mark { transform: rotate(45deg); background: var(--pear-600); color: #fff; }
.faq-box .faq-body { padding: 0 var(--s-6) var(--s-5); color: var(--muted); }
.faq-box .faq-body p { margin: 0; max-width: var(--measure); }

.subscribe-strip { background: var(--pear-600); color: #fbe4ee; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.subscribe-strip::before { content: ""; position: absolute; inset: 0; background: var(--tile-light) repeat; opacity: .7; pointer-events: none; }
.subscribe-strip > * { position: relative; }
.subscribe-strip h2 { color: #fff; margin-bottom: var(--s-3); }
.subscribe-strip p { margin: 0; color: #fbe4ee; }
.subscribe-strip a { color: #fff; }
.subscribe-strip .checkbox { color: #fff; }
.subscribe-strip .field-error { color: #fff; background: rgba(0, 0, 0, .2); padding: 2px 8px; border-radius: 4px; }
.subscribe-strip input[type="email"] { border-color: transparent; }
.subscribe-strip .form-alert { background: #fff; }
.inline-field { display: flex; gap: var(--s-3); align-items: flex-start; }
.inline-field .field { flex: 1; }

.cta-panel { background: var(--cobalt-900) var(--tile-light) repeat; color: #d5def0; border-radius: var(--r-lg); padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 64px); text-align: center; }
.cta-panel h2 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-panel p { color: #c3cfe8; max-width: 52ch; margin: 0 auto var(--s-6); }
.cta-panel .overline { color: var(--gold-400); justify-content: center; }
.cta-panel .overline::before { background: var(--gold-400); }

.callout { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--cobalt-50); border-left: 5px solid var(--cobalt-600); }
.callout svg { width: 22px; height: 22px; color: var(--cobalt-600); margin-top: 2px; }
.callout p { margin: 0; }

/* 9. Blog -------------------------------------------------------------------- */
.overlay-card { position: relative; display: block; height: 100%; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--cobalt-800); }
.overlay-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.overlay-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 31, 68, .05) 20%, rgba(14, 31, 68, .92) 100%); }
.overlay-card:hover img { transform: scale(1.04); }
.overlay-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-6); }
.overlay-card .pill { display: inline-block; background: var(--gold-400); color: var(--cobalt-900); font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; margin-bottom: var(--s-3); }
.overlay-card h2, .overlay-card h3 { color: #fff; font-size: 1.65rem; margin-bottom: var(--s-2); }
.overlay-card p { color: #dbe3f4; margin: 0 0 var(--s-3); }
.overlay-card .more-link { color: var(--gold-400); }
.overlay-card:hover { color: #fff; }
.overlay-card-lg { min-height: 480px; }
.overlay-card-lg h2, .overlay-card-lg h3 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); }

.article-head { background: var(--cobalt-50) var(--tile) repeat; padding-top: var(--s-7); padding-bottom: var(--s-7); }
.article-head h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); max-width: 20ch; }
.article-head .lead { max-width: 60ch; }
.article-head .pill { display: inline-block; background: var(--pear-600); color: #fff; font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; margin-bottom: var(--s-3); }
.byline { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.article-photo { border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--cobalt-100); }
.article-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-credit { font-size: .875rem; color: var(--muted); margin: var(--s-2) 0 0; }
.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.8; }
.prose h2 { font-size: 2rem; margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--pear-600); }
.sidebar { position: sticky; top: 90px; display: grid; gap: var(--s-5); }
.side-card { border-radius: var(--r-lg); padding: var(--s-5); background: var(--cobalt-50); }
.side-card h2 { font-size: 1.35rem; margin-bottom: var(--s-3); }
.side-card-dark { background: var(--cobalt-800) var(--tile-light) repeat; color: #d5def0; }
.side-card-dark h2 { color: #fff; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 600; line-height: 1.35; }
.toc a:hover { background: var(--white); color: var(--cobalt-700); }
.article-foot { max-width: var(--measure); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 2px dashed var(--cobalt-200); }
.copy-status { font-size: .95rem; color: var(--success); min-height: 1.4em; margin: var(--s-3) 0 0; }

/* 10. Forms -------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; color: var(--cobalt-900); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 400 1.0625rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-md); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 170px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fa0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
input:hover, select:hover, textarea:hover { border-color: var(--cobalt-200); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt-600); box-shadow: 0 0 0 4px rgba(31, 79, 160, .16); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .925rem; font-weight: 700; margin: 0; }
.field-error:empty { display: none; }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .975rem; }
.checkbox input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--cobalt-600); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-weight: 700; }
.form-alert svg { width: 22px; height: 22px; margin-top: 2px; }
.form-alert p { margin: 0; }
.form-alert[hidden] { display: none; }
.form-alert-error { background: var(--danger-bg); color: var(--danger); }
.form-alert-success { background: var(--success-bg); color: var(--success); }
.form-shell { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }

.contact-card { background: var(--cobalt-800) var(--tile-light) repeat; color: #d5def0; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.contact-card h2 { color: #fff; }
.contact-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.contact-rows li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; min-width: 0; }
.contact-rows li > div { min-width: 0; }
.contact-rows h3 { color: #fff; font-size: 1.25rem; margin: 2px 0 4px; }
.contact-rows p, .contact-rows address { margin: 0; font-style: normal; color: #d5def0; }
.contact-rows a { color: #fff; overflow-wrap: anywhere; }
.contact-rows .more-link { color: var(--gold-400); margin-top: 6px; }

.status-page { padding-top: var(--s-9); padding-bottom: var(--s-9); min-height: 60vh; display: grid; align-items: center; background: var(--cobalt-50) var(--tile) repeat; }

/* 11. Footer ----------------------------------------------------------------- */
.site-footer { background: var(--cobalt-900); color: #b8c6e3; padding-top: var(--s-8); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--pear-600) var(--tile-light) repeat; background-size: 28px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-col h2 { font-size: 1.35rem; color: var(--gold-400); margin-bottom: var(--s-4); }
.footer-col ul, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }
.footer-bottom { margin-top: var(--s-8); padding: var(--s-5) 0; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--pear-600); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s var(--ease), visibility .2s; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--pear-700); }

img.img-failed { background: var(--cobalt-100) var(--tile) repeat; object-position: -9999px -9999px; }
.tick-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.tick-list svg { width: 22px; height: 22px; color: var(--pear-600); margin-top: 2px; }

/* 12. Responsive (Bootstrap breakpoints) ---------------------------------------- */
@media (max-width: 1199.98px) {
  .header-contact .contact-email { display: none; }
}
@media (max-width: 991.98px) {
  .header-contact { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-bar { position: static; box-shadow: none; }
  .nav-bar-inner { min-height: 0; }
  .nav-bar .nav-cta { display: none; }
  .primary-nav { position: fixed; top: var(--nav-top, 84px); left: 0; right: 0; bottom: 0; z-index: 120; background: var(--cobalt-800) var(--tile-light) repeat; padding: var(--s-5) clamp(16px, 4vw, 40px) var(--s-7); overflow-y: auto; display: none; }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .nav-link { display: block; padding: 16px 4px; font-size: 1.15rem; }
  .nav-link::after { left: auto; right: 8px; bottom: 50%; transform: translateY(50%) rotate(45deg) scale(0); }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: translateY(50%) rotate(45deg) scale(1); }
  .mobile-extra { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
  .mobile-extra a.phone { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
  .mobile-extra a.phone svg { width: 18px; height: 18px; color: var(--gold-400); }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .strip-main { grid-column: 1 / -1; order: -1; }
  .photo-strip .strip-side img { aspect-ratio: 4 / 3; }
  .sidebar { position: static; }
  .explorer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  :root { --fs-base: 1rem; }
  .section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .section-tight { padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .header-top { min-height: 72px; }
  .brand-name { font-size: 1.35rem; }
  .brand img { width: 36px; height: 36px; }
  .nav-toggle-label { display: none; }
  .hero { text-align: left; }
  .hero .overline { justify-content: flex-start; }
  .hero h1, .hero .lead { margin-left: 0; }
  .hero .btn-row-center { justify-content: flex-start; }
  .photo-strip { gap: var(--s-2); }
  .photo-strip figure { border-width: 4px; }
  .explorer-tabs { grid-template-columns: 1fr; }
  .concern label { padding: 8px 14px; font-size: .95rem; }
  .inline-field { flex-direction: column; align-items: stretch; }
  .btn-row .btn { flex: 1 1 auto; }
  .faq-box summary { padding: var(--s-4) var(--s-5); font-size: 1.15rem; }
  .faq-box .faq-body { padding: 0 var(--s-5) var(--s-4); }
  .overlay-card { min-height: 340px; }
  .prose { font-size: 1.0625rem; }
  .back-to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 379.98px) {
  .brand-name { font-size: 1.15rem; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}

/* 13. Motion & print ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .nav-bar, .site-footer, .back-to-top, .subscribe-strip, .cta-panel, .sidebar, .finder { display: none !important; }
}

.on-dark { color: #c3cfe8; }
.journey-step-plain { padding-top: var(--s-5); }
.journey-step-plain .ico { position: static; transform: none; box-shadow: none; margin: 0 auto; }
@media (max-width: 991.98px) {
  .site-header { position: sticky; top: 0; box-shadow: 0 8px 20px -18px rgba(14, 31, 68, .6); }
}

/* Finder options as a two-column checklist of tiles */
.concerns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.concern label { display: flex; width: 100%; height: 100%; border-radius: var(--r-md); padding: 12px 16px; line-height: 1.35; }
@media (max-width: 575.98px) { .concerns { grid-template-columns: 1fr; } }
