/* ==========================================================================
   Components — Happy Care Home Plus
   ========================================================================== */

/* ==========================================================================
   Buttons
   Gold is reserved for the single primary action on a screen so that it always
   means "act here." Every button clears the 44px WCAG 2.2 target floor.
   ========================================================================== */

.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: var(--white);
  --btn-bd: var(--navy-700);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-6);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  /* Labels are short by design; wrapping one mid-phrase reads as broken. */
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

/* Primary — gold on ink. Contrast is 9.4:1. */
.btn--primary {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--navy-900);
  --btn-bd: var(--gold-500);
}
.btn--primary:hover {
  --btn-bg: var(--gold-600);
  --btn-bd: var(--gold-600);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  --btn-bd: var(--navy-100);
}
.btn--ghost:hover {
  --btn-bg: var(--navy-050);
  --btn-bd: var(--navy-500);
  --btn-fg: var(--navy-800);
}

/* For use on dark or photographic backgrounds. */
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-bd: var(--white);
  --btn-fg: var(--white);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
}
.btn--block { width: 100%; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Text link with a moving arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  /* Vertical padding rather than a height, so the target clears 44px without
     the link box detaching from the text baseline around it. */
  padding-block: var(--sp-2);
  min-height: var(--tap-min);
  font-weight: 650;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--navy-700);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header + navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(253, 249, 242, 0.88);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  min-height: var(--tap-min);
  /* Without this the lockup is a shrinkable flex item and "Home Plus" breaks
     onto its own line as soon as the nav needs room. */
  flex: none;
  text-decoration: none;
  color: var(--navy-800);
}
.brand img {
  width: auto;
  height: clamp(2.5rem, 6vw, 3.25rem);
}
/* Shown from 22rem (352px) rather than 26rem: a 390px iPhone is the single most
   common width here, and hiding the business name on it left the header
   anonymous. The lockup measures ~230px, so it fits comfortably. */
.brand__text { display: none; }
@media (min-width: 22rem) {
  .brand__text { display: block; }
}
.brand__name {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
}
.brand__sub {
  display: block;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--teal-700);
}

/* --- Desktop nav ------------------------------------------------------- */
.nav { display: none; }
@media (min-width: 62rem) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
}

.nav__link {
  position: relative;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav__link:hover {
  background: var(--navy-050);
  color: var(--navy-800);
}
.nav__link[aria-current="page"] { color: var(--navy-800); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.header__actions {
  display: none;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 62rem) {
  .header__actions { display: flex; }
}

.header__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--navy-800);
}
.header__phone span {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.header__phone strong {
  font-size: var(--fs-base);
  font-weight: 700;
  white-space: nowrap;
}

/* --- Mobile toggle ---------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  cursor: pointer;
}
@media (min-width: 62rem) { .nav-toggle { display: none; } }

.nav-toggle__bars {
  position: relative;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform var(--dur) var(--ease-out);
}
.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); }

/* --- Mobile drawer ---------------------------------------------------- */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--gutter) var(--sp-10);
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
@media (min-width: 62rem) { .drawer { display: none; } }

.drawer__link {
  display: block;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-800);
}
.drawer__link[aria-current="page"] { color: var(--teal-700); }
.drawer__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* ==========================================================================
   Sticky mobile call bar
   The fastest path to a phone call, which is how most placements actually start.
   ========================================================================== */

.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-callbar);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-800);
  border-top: 1px solid var(--navy-600);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 62rem) { .call-bar { display: none; } }

.call-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 3.5rem;
  padding: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 650;
  text-decoration: none;
  color: var(--white);
}
.call-bar__item + .call-bar__item { border-left: 1px solid var(--navy-600); }
.call-bar__item svg { width: 1.15rem; height: 1.15rem; }
.call-bar__item--accent { background: var(--gold-500); color: var(--navy-900); }

/* Clear the fixed bar so it never covers footer content. */
@media (max-width: 61.99rem) {
  .site-footer { padding-bottom: 5rem; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card > * { max-width: none; }

.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--teal-100);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--teal-050);
  color: var(--teal-700);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card__icon--gold { background: var(--gold-100); color: var(--gold-700); }
.card__icon--navy { background: var(--navy-050); color: var(--navy-700); }

.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

/* Whole-card click target without nesting interactive elements. */
.card--link { position: relative; }
.card--link .card__stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ==========================================================================
   Stat tiles
   ========================================================================== */

.stat {
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 650;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--navy-700);
}
.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  padding: var(--sp-4) 0;
  list-style: none;
  margin: 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
}
.trust svg {
  width: 1.05rem; height: 1.05rem;
  flex: none;
  color: var(--teal-600);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--teal-700);
}
/* An inline SVG with no intrinsic size stretches to fill a flex line box, so
   every icon inside a badge needs explicit dimensions. */
.badge svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.badge--gold {
  background: var(--gold-100);
  border-color: var(--gold-200);
  color: var(--gold-700);
}
.badge--on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* ==========================================================================
   Comparison table
   The most persuasive block on the site: most families arrive comparing a Home
   Plus against a nursing home on the wrong axis entirely.
   ========================================================================== */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 44rem;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.compare th,
.compare td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--cream-200);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 650;
  color: var(--navy-800);
  border-bottom: 2px solid var(--border-strong);
}
.compare tbody th {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--ink-700);
  white-space: nowrap;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

/* Highlight the Happy Care column. */
.compare .is-us {
  background: var(--teal-050);
  font-weight: 600;
  color: var(--navy-900);
}
.compare thead .is-us {
  background: var(--teal-100);
  color: var(--navy-900);
}

.table-hint {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
@media (min-width: 48rem) { .table-hint { display: none; } }

/* ==========================================================================
   Timeline — a day at Happy Care
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 48rem) {
  .timeline { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--sp-5); }
}

.timeline li {
  position: relative;
  margin: 0;
  padding-top: var(--sp-6);
  border-top: 2px solid var(--navy-100);
}
.timeline li::before {
  content: "";
  position: absolute;
  top: -0.4375rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__time {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--teal-700);
}
.timeline__title {
  display: block;
  margin: var(--sp-2) 0 var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-900);
}
.timeline p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   Testimonial
   ========================================================================== */

.quote {
  margin: 0;
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.quote__text {
  margin: 0 0 var(--sp-6);
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.45;
  color: var(--navy-900);
}
.quote figcaption {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.quote figcaption strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--navy-800);
}

.stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
  color: var(--gold-600);
}
.stars svg { width: 1.1rem; height: 1.1rem; }

/* ==========================================================================
   Person card — staff portraits
   Lives here rather than in a page stylesheet because the About page team
   section uses it. Not currently used on the home page.
   ========================================================================== */

.person { text-align: center; }

.person__photo {
  overflow: hidden;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.person__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.person__name { font-size: var(--fs-lg); }
.person__role {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-700);
}

/* ==========================================================================
   Accordion — native <details>, no JS required
   ========================================================================== */

.faq { display: grid; gap: var(--sp-3); }

.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.faq details[open] {
  border-color: var(--teal-100);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--tap-min);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--cream-100); }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq__body {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
}
.faq__body > :first-child { margin-top: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: grid; gap: var(--sp-5); }

.field { display: grid; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--ink-700);
}
.field .req { color: var(--error); }

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-500); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}

.textarea { min-height: 7rem; resize: vertical; line-height: var(--lh-body); }

.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234e6375' stroke-width='2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 1rem;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
}
.field__error:empty { display: none; }

@media (min-width: 40rem) {
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}

/* Honeypot. Hidden from people, reachable by naive bots. Not display:none,
   because some bots skip those; positioned off-canvas and taken out of the
   accessibility tree instead. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Privacy notice on any form that could tempt someone to paste medical detail. */
.form-notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.form-notice svg {
  width: 1.2rem; height: 1.2rem;
  flex: none;
  color: var(--gold-700);
}
.form-notice p { max-width: none; }

.form-status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-weight: 600;
}
.form-status[data-state="success"] {
  background: #e7f4ed;
  border: 1px solid #b9dfc9;
  color: var(--success);
}
.form-status[data-state="error"] {
  background: #fdeceb;
  border: 1px solid #f5c2be;
  color: var(--error);
}
.form-status:empty { display: none; }

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */

.gallery {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-300);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__cap {
  position: absolute;
  inset: auto 0 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  background: linear-gradient(transparent, rgba(13, 40, 67, 0.85));
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
}

.lightbox {
  width: min(92vw, 68rem);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--navy-900);
  color: var(--text-invert);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(13, 40, 67, 0.88); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.lightbox__close {
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.14); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% 0%, var(--navy-800) 0%, var(--navy-900) 55%);
  color: var(--text-invert);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -55%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,154,144,0.30), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--text-invert-muted); }
.cta-band__inner { position: relative; z-index: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--text-invert-muted);
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--text-invert-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: var(--sp-10);
  padding-block: var(--sp-16) var(--sp-10);
}
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 68rem) {
  .footer__grid { grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr; }
}

.footer__title {
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--white);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: var(--sp-3); }

.footer__lockup {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.footer__lockup img { width: 3rem; height: 3rem; }
.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--white);
}
.footer__sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--teal-500);
}
.footer__brand p { max-width: 34ch; }

.footer__license {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
.footer__license strong { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--fs-xs);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__legal li { margin: 0; }

.social {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
}
.social li { margin: 0; }
.social a {
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.social a:hover { background: rgba(255,255,255,0.12); }
.social svg { width: 1.1rem; height: 1.1rem; }
