/* Section + component styles */

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px; /* touch target */
  padding: 0.85rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--color-brand-red);
  color: #fff;
  border: 1px solid var(--color-brand-red);
}
.btn--primary:hover { background: var(--color-brand-red-hover); border-color: var(--color-brand-red-hover); }

.btn--secondary {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
}
.btn--secondary:hover { background: var(--color-charcoal); color: #fff; }

/* Commit button — extra weight so it reads as "the final action," not a continue */
.btn--commit {
  box-shadow: 0 2px 10px rgba(233, 53, 46, 0.28);
}
.btn--commit:hover {
  box-shadow: 0 6px 18px rgba(233, 53, 46, 0.40);
  transform: translateY(-1px);
}
.btn--commit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(233, 53, 46, 0.30);
}

.section--dark .btn--secondary { color: #fff; border-color: #fff; }
.section--dark .btn--secondary:hover { background: #fff; color: var(--color-charcoal); }

/* ─── Hero — full-bleed image with overlaid copy ───────────── */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  background: #131313;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Mobile: gradient fades from bottom (where copy sits) up to clear */
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.7) 25%,
    rgba(15, 15, 15, 0.35) 55%,
    rgba(15, 15, 15, 0.05) 90%
  );
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__copy-inner {
  max-width: 32rem;
}

.hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero__headline {
  color: #fff;
  font-size: var(--fs-xxl);
  margin-bottom: var(--sp-5);
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero__subhead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42ch;
  margin-bottom: var(--sp-6);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
/* "Get started" — circle-engulf hover, mirrors the .custom-button .btn pattern on sea2skyliving.com */
.hero__scroll-cue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 200px;
  margin-top: var(--sp-2);
  margin-left: 15px; /* leave room for the circle that sits at left:-15px */
  padding: 0 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow: visible;
  isolation: isolate; /* contained stacking context for the pseudo-elements */
}
.hero__scroll-cue-label {
  position: relative;
  z-index: 1;
  transition: color .6s ease .3s;
}

/* Red circle — sits 15px outside the left edge */
.hero__scroll-cue::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -15px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  background: var(--color-brand-red);
  border-radius: 100%;
  transition: all .6s cubic-bezier(.615, 0, .07, 1);
}

/* Black line — emerges from the right side of the circle */
.hero__scroll-cue::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 15px;
  height: 2px;
  background: #000;
  transition: all .6s cubic-bezier(.615, 0, .07, 1);
}

/* Hover: circle stretches to a pill that wraps the entire button; line slides left */
.hero__scroll-cue:hover::before,
.hero__scroll-cue:focus-visible::before {
  width: calc(100% + 30px);
  border-radius: 60px;
}
.hero__scroll-cue:hover::after,
.hero__scroll-cue:focus-visible::after {
  width: 60px;
  transform: translateX(-45px);
}

/* Desktop: copy left-aligned and centered vertically; gradient fades left→right */
@media (min-width: 992px) {
  .hero {
    align-items: center;
    min-height: 86vh;
  }
  .hero__gradient {
    background: linear-gradient(
      to right,
      rgba(15, 15, 15, 0.85) 0%,
      rgba(15, 15, 15, 0.55) 30%,
      rgba(15, 15, 15, 0.2) 55%,
      rgba(15, 15, 15, 0) 75%
    );
  }
  .hero__image { object-position: center 30%; }
}

/* ─── Intent Router ────────────────────────────────────────── */
.router__head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--sp-7);
}
.router__head h2 { margin-bottom: var(--sp-3); }
.router__head p { color: var(--color-text-muted); font-size: var(--fs-md); margin: 0; }

/* Step reveal — form section slides in from the right after a tile is clicked */
.is-hidden-step { display: none; }
.is-revealing {
  animation: slide-in-right 520ms var(--ease-out) both;
}

/* Placeholder shown inside the form section before an intent tile is clicked */
.form-placeholder {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
}
.form-placeholder__lede {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-charcoal);
}
.form-placeholder__hint {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* "You chose Buyer — change" line at top of step 1 */
.intent-recap {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.intent-recap strong {
  color: var(--color-charcoal);
  font-weight: 600;
}
.intent-recap__change {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-brand-red);
  text-decoration: underline;
  cursor: pointer;
}
.intent-recap__change:hover { color: var(--color-brand-red-hover); }

/* Tile-level intent error — sits between the heading and the grid */
.intent-error {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-brand-red);
  background: #fff5f5;
  border-left: 3px solid var(--color-brand-red);
  border-radius: 4px;
  text-align: center;
}
@keyframes slide-in-right {
  0%   { opacity: 0; transform: translateX(56px); }
  100% { opacity: 1; transform: translateX(0); }
}

.intent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: var(--sp-5);
  background: var(--color-charcoal);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  color: #fff;
  overflow: hidden;
  isolation: isolate; /* contain stacking context so the image/overlay don't bleed */
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
  width: 100%;
}

.intent-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}
/* Portrait subjects — anchor the crop to the top so faces stay in frame */
.intent-card--portrait .intent-card__bg {
  object-position: center top;
}
.intent-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
  transition: background var(--dur-med) var(--ease-out);
}
.intent-card__label,
.intent-card__arrow {
  position: relative;
  z-index: 2;
}

.intent-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.intent-card:hover .intent-card__bg { transform: scale(1.04); }
.intent-card:hover .intent-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
}
.intent-card:active { transform: translateY(0); }

.intent-card[aria-pressed="true"] {
  border-color: var(--color-brand-red);
  box-shadow: 0 0 0 3px rgba(233, 53, 46, 0.18), var(--shadow-md);
}
.intent-card[aria-pressed="true"] .intent-card__overlay {
  background: linear-gradient(
    to top,
    rgba(233, 53, 46, 0.55) 0%,
    rgba(0, 0, 0, 0.65) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
}
.intent-card[aria-pressed="true"] .intent-card__arrow { color: #fff; }

.intent-card__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.intent-card__arrow {
  align-self: flex-end;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform var(--dur-med) var(--ease-out);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.intent-card:hover .intent-card__arrow { transform: translateX(4px); }

@media (min-width: 992px) {
  .intent-card { min-height: 260px; padding: var(--sp-6); }
}

/* ─── Form ─────────────────────────────────────────────────── */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.form-progress__track {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress__fill {
  height: 100%;
  width: 33.33%;
  background: var(--color-brand-red);
  transition: width var(--dur-med) var(--ease-out);
  border-radius: 999px;
}
.form-progress__label {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* "Draft saved" indicator — fades in briefly after each autosave */
.form-progress__saved {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.form-progress__saved::before {
  content: '✓ ';
  color: #2ea043;
  font-weight: 700;
}
.form-progress__saved.is-visible { opacity: 1; }

/* Step-2 branch fade — applied each time a branch is revealed */
.branch-fade-in {
  animation: branch-fade-in 220ms var(--ease-out) both;
}
@keyframes branch-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step { display: none; }
.form-step[data-active="true"] { display: block; }

.form-step__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.form-step__hint {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field__label {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}
.field__label .required { color: var(--color-brand-red); margin-left: 2px; }
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  min-height: 48px;
}
.field__textarea { min-height: 130px; resize: vertical; }
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--color-charcoal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.field__input[aria-invalid="true"],
.field__select[aria-invalid="true"] {
  border-color: var(--color-brand-red);
  box-shadow: 0 0 0 3px rgba(233, 53, 46, 0.12);
}

/* Phone field — fixed +1 country code prefix, grouped focus/error styling */
.field__phone-group {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field__phone-group:focus-within {
  border-color: var(--color-charcoal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.field__phone-group:has(.field__input[aria-invalid="true"]) {
  border-color: var(--color-brand-red);
  box-shadow: 0 0 0 3px rgba(233, 53, 46, 0.12);
}
.field__phone-prefix {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 150px;
  padding: 0 1.75rem 0 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  background-color: var(--color-surface-alt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23444' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px 6px;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  height: auto;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.field__phone-prefix:focus {
  outline: none;
  background-color: #fff;
}
@media (max-width: 640px) {
  .field__phone-prefix { width: 110px; padding-left: 0.65rem; padding-right: 1.4rem; }
}
.field__input--phone {
  flex: 1;
  border: 0;
  border-radius: 0;
  min-width: 0;
}
.field__input--phone:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.field__error {
  font-size: var(--fs-xs);
  color: var(--color-brand-red);
  min-height: 1.1em;
}

/* Single-select button group — used in Step 2 for "How should we reach out?" */
.button-group {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-4);
  min-width: 0; /* fieldset reset */
}
.button-group__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.button-option {
  position: relative;
  display: block;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  min-height: 48px;
}
.button-option:hover { border-color: var(--color-charcoal); }
.button-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.button-option__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  line-height: 1.3;
}
.button-option__hint {
  display: block;
  margin-top: var(--sp-2);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* Selected state — brand red border + soft red wash, matches focused input treatment */
.button-option:has(input:checked),
.button-option.is-selected {
  border-color: var(--color-brand-red);
  background: rgba(233, 53, 46, 0.04);
  box-shadow: 0 0 0 3px rgba(233, 53, 46, 0.12);
}
.button-option:has(input:checked) .button-option__label,
.button-option.is-selected .button-option__label {
  color: var(--color-brand-red);
}

/* Keyboard focus ring on the label (since the input is visually hidden) */
.button-option:focus-within {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 3px;
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
}
.form-actions__right { display: flex; gap: var(--sp-3); margin-left: auto; }

.submit-reassurance {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}
.submit-reassurance strong { color: var(--color-charcoal); font-weight: 700; }

.form-error-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: #fff5f5;
  border: 1px solid var(--color-brand-red);
  border-left: 4px solid var(--color-brand-red);
  border-radius: 6px;
}
.form-error-banner__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand-red);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
}
.form-error-banner__text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-charcoal);
  line-height: 1.5;
}
.form-error-banner__text a {
  color: var(--color-brand-red);
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.form-success[data-active="true"] { display: block; }
.form-success__icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--color-brand-red);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-5);
  font-size: 2rem;
}
.form-success__photo {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--sp-5);
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid var(--color-surface);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.form-success__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.form-success__lede {
  margin: var(--sp-3) auto 0;
  max-width: 32ch;
  font-size: var(--fs-md);
  color: var(--color-charcoal);
  line-height: 1.5;
}
.form-success__hint {
  margin: var(--sp-2) auto 0;
  max-width: 36ch;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.form-success__signoff {
  margin: var(--sp-5) 0 0;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* Sticky mobile action bar */
@media (max-width: 767px) {
  .form-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    margin-inline: calc(var(--sp-5) * -1);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    border-top: 1px solid var(--color-border);
    z-index: 5;
  }
  .form-progress { position: sticky; top: 0; background: #fff; z-index: 4; padding-block: var(--sp-3); }
}

/* ─── Newsletter ───────────────────────────────────────────── */
.newsletter {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.newsletter__head h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}
.newsletter__head p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}
.newsletter__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.newsletter__privacy {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.newsletter__success {
  display: none;
  font-size: var(--fs-md);
  color: var(--color-charcoal);
  padding: var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.newsletter__success[data-active="true"] { display: block; }

@media (min-width: 640px) {
  .newsletter__form {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
}

/* ─── Footer — three-column block above Rennie logo ───────── */
.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  text-align: center;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--color-brand-red); }

/* Contact area — scenic background + portrait column + three info columns */
.footer__contact {
  padding-block: clamp(3rem, 6vw, 5rem);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%),
    url('../img/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: start;
  justify-items: center;
}
@media (min-width: 768px) {
  .footer__cols {
    /* Portrait on the left, then three info columns. Portrait takes only as
       much width as the photo + caption need. */
    grid-template-columns: auto repeat(3, 1fr);
    gap: var(--sp-6);
    align-items: center;
  }
}

/* Rob's circular portrait */
.footer__col--portrait {
  text-align: center;
}
.footer__portrait {
  width: clamp(110px, 13vw, 160px);
  height: clamp(110px, 13vw, 160px);
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.footer__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* favors Rob's side of the dual headshot */
  display: block;
}
.footer__portrait-name {
  margin: var(--sp-3) 0 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: #fff;
}
.footer__portrait-role {
  margin: 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
.footer__col-icon {
  font-size: 1.6rem;
  color: var(--color-brand-red);
  margin-bottom: var(--sp-3);
}
.footer__col-title {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--sp-4);
}
.footer__col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__col-list li,
.footer__col-list a {
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* Plain white social glyphs — no red circle in this layout */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
}
.footer__social a {
  color: #fff;
  font-size: 1.25rem;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.footer__social a:hover { color: var(--color-brand-red); }

/* Rennie logo banner */
.footer__brand {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__rennie-logo {
  width: 200px;
  max-width: 60vw;
  height: auto;
  display: inline-block;
}


/* ─── Branch Lede (info branch intro line) ────────────────── */
.branch-lede {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-brand-red);
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.55;
}
.branch-lede strong {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--color-charcoal);
  font-size: var(--fs-md);
}

/* ─── Field Hint (helper text under an input) ─────────────── */
.field__hint {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── Inline button group (for compact Yes/No toggles) ───── */
.button-group--inline {
  margin-bottom: var(--sp-5);
}
.button-group__options--row {
  grid-template-columns: 1fr 1fr;
}

/* ─── Newsletter Checkbox (replaces standalone newsletter section) ─── */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.checkbox-field:hover { border-color: var(--color-charcoal); }
.checkbox-field input[type="checkbox"] {
  /* Native checkbox is hidden but stays in the DOM so :focus and form-state work */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
.checkbox-field__box {
  flex: 0 0 auto;
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-charcoal);
  border-radius: 4px;
  background: #fff;
  position: relative;
  margin-top: 2px;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.checkbox-field input:checked + .checkbox-field__box {
  background: var(--color-brand-red);
  border-color: var(--color-brand-red);
}
.checkbox-field input:checked + .checkbox-field__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-field input:focus-visible + .checkbox-field__box {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 2px;
}
.checkbox-field__text {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-text);
}
.checkbox-field__text strong {
  display: block;
  color: var(--color-charcoal);
  font-weight: 600;
  margin-bottom: 2px;
}
.checkbox-field__hint {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}
