/* ==========================================================================
   Golden Grace Companionship — brand stylesheet
   Warm boutique companionship service. Palette + type drawn from the flyer:
   ivory/cream grounds, deep plum text, muted gold accents, sage + lavender.
   Single external stylesheet, no frameworks. Mobile-first.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Grounds */
  --ivory: #fbf7ee;
  --cream: #f5ecdd;
  --cream-deep: #efe3cd;
  --paper: #fffdf8;

  /* Plum / aubergine */
  --plum: #3e2b4e;
  --plum-deep: #2c1f39;
  --plum-soft: #5c4a6b;

  /* Gold — decorative vs. accessible text tone */
  --gold: #b8923e;        /* borders, hearts, rules (decorative) */
  --gold-text: #86641c;   /* AA-contrast accent text on ivory */
  --gold-glow: #e7d3a1;

  /* Botanicals */
  --sage: #7f9270;
  --sage-soft: #e6ebdd;
  --lavender: #a992c2;
  --lavender-soft: #efeaf5;

  /* Text */
  --ink: #35303b;
  --muted: #665f70;
  --on-plum: #f6efe2;
  --on-plum-muted: #d8cbdf;

  /* Feedback */
  --error: #9a2c2c;
  --error-bg: #fbeaea;
  --success: #3c6b45;
  --success-bg: #e8f1e6;

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  /* Rhythm */
  --container: 72rem;
  --measure: 40rem;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --gap: clamp(1.25rem, 3vw, 2rem);

  --shadow-soft: 0 12px 30px -18px rgba(62, 43, 78, 0.35);
  --shadow-card: 0 10px 24px -20px rgba(62, 43, 78, 0.45);
  --ring: 0 0 0 3px var(--ivory), 0 0 0 6px var(--gold);

  /* Heart glyph used for decorative separators */
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.2C.3 8.7 1.8 5.5 5 5.1c2-.2 3.4 1 4 2 0.6-1 2-2.2 4-2 3.2.4 4.7 3.6 3 6.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--plum);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.5rem);
}
h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--gold-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--plum);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessible visually-hidden helper */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--plum);
  color: var(--on-plum);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 1rem;
  color: var(--on-plum);
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--section-y);
}

/* Anchor targets land clear of the sticky header (~72px) on fragment nav. */
section[id],
[id].hero {
  scroll-margin-top: 5.5rem;
}
.section--cream {
  background: var(--cream);
}
.section--sage {
  background: var(--sage-soft);
}
.section--tight {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: var(--measure);
}

/* Decorative heart-branch divider */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gold);
  margin: 0.25rem 0 0;
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 12vw, 5rem);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.rule svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--plum);
  color: var(--on-plum);
  border-color: var(--plum);
}
.btn-primary:hover {
  background: var(--plum-deep);
  border-color: var(--plum-deep);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--plum);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--plum-deep);
}
.btn-ghost {
  background: var(--paper);
  color: var(--plum);
  border-color: var(--cream-deep);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--plum-deep);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-block {
  width: 100%;
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--plum);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers "COMPANIONSHIP" under "Golden Grace" */
  line-height: 1.08;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-align: center;
  white-space: nowrap;
  /* optical centering: offsets the trailing space from letter-spacing */
  padding-left: 0.2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.98rem;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--plum-deep);
  background: var(--cream);
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--cream-deep);
  border-radius: 10px;
  background: var(--paper);
  color: var(--plum);
  cursor: pointer;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}
.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 nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--cream-deep);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem clamp(1.15rem, 4vw, 2.5rem) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-nav a {
    font-size: 1.1rem;
    padding: 0.85rem 0.6rem;
    border-bottom: 1px solid var(--cream);
  }
  .header-cta .phone-reveal {
    display: none;
  }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(
      120% 90% at 100% 0%,
      var(--cream) 0%,
      transparent 55%
    ),
    var(--ivory);
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero-copy h1 {
  margin-bottom: 0.35em;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  color: var(--gold-text);
  margin-bottom: 0.9rem;
}
.hero-proposition {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: var(--muted);
  max-width: 34rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-meta svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  flex: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-figure {
  position: relative;
  justify-self: center;
  max-width: 30rem;
  width: 100%;
}
.hero-figure .portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.hero-figure .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-figure::after {
  /* soft gold frame accent */
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 14px);
  opacity: 0.45;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: -12px;
  bottom: 18px;
  background: var(--paper);
  color: var(--plum);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 15rem;
}
.hero-badge svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}
.hero-badge span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Cards / services ---------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 940px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card h3 {
  margin-bottom: 0.35rem;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ---- Values band --------------------------------------------------------- */
.values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  text-align: center;
}
.values li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  color: var(--plum);
  letter-spacing: 0.04em;
}
.values li:not(:last-child)::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--gold);
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
}
.values {
  padding: 0;
  margin: 0;
}

/* ---- About --------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 820px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.about-figure {
  position: relative;
  max-width: 24rem;
  justify-self: center;
}
.about-figure img {
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about-figure::before {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at 70% 70%, var(--lavender-soft), transparent 70%);
  z-index: -1;
  border-radius: 50%;
}
.pending-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ---- Service area -------------------------------------------------------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 0;
}
.area-list li {
  list-style: none;
}
.area-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  color: var(--plum);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.area-pill svg {
  width: 15px;
  height: 15px;
  color: var(--sage);
}

/* ---- Info / pricing panel ------------------------------------------------ */
.panel {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.panel-split {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 780px) {
  .panel-split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Contact form -------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.form {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-card);
}
.field {
  margin-bottom: 1.15rem;
}
.field-row {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }
}
label {
  display: block;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.req {
  color: var(--error);
  font-weight: 700;
}
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1.5px solid var(--cream-deep);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 62, 0.2);
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(154, 44, 44, 0.14);
}
.field-error {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}
.field-error.show {
  display: block;
}

fieldset {
  border: 1px solid var(--cream-deep);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.15rem;
}
legend {
  font-weight: 600;
  color: var(--plum);
  padding: 0 0.4rem;
  font-size: 0.95rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
}
.check:last-child {
  margin-bottom: 0;
}
.check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 0.15rem;
  flex: none;
  accent-color: var(--plum);
}
.check label {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

/* Multi-select support checkboxes — two columns on wider screens */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
}
@media (min-width: 560px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.support-grid .check {
  margin-bottom: 0;
}

/* Honeypot — visually and programmatically hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.turnstile-holder {
  margin: 0.5rem 0 1.15rem;
  min-height: 65px;
}
.turnstile-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Form status region */
.form-status {
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.1rem;
  font-weight: 500;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.is-success {
  background: var(--success-bg);
  border: 1px solid #bcd6bd;
  color: var(--success);
  /* Slightly more prominence after a successful send (spacing only). */
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.3rem;
}
.form-status.is-error {
  background: var(--error-bg);
  border: 1px solid #e6c3c3;
  color: var(--error);
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Disclaimer ---------------------------------------------------------- */
.disclaimer {
  border: 1px solid var(--cream-deep);
  border-left: 4px solid var(--gold);
  background: var(--paper);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: var(--measure);
}
.disclaimer strong {
  color: var(--plum);
}

/* ---- Phone reveal -------------------------------------------------------- */
.phone-reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.phone-reveal .phone-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.copy-btn {
  border: none;
  background: transparent;
  color: var(--gold-text);
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  border-radius: 6px;
}
.copy-btn:hover {
  color: var(--plum);
}
.copy-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Prose (privacy / terms) -------------------------------------------- */
.prose {
  max-width: 46rem;
}
.prose h2 {
  margin-top: 2.25rem;
}
.prose h3 {
  margin-top: 1.6rem;
}
.prose ul {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--plum-deep);
  color: var(--on-plum-muted);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer .brand-name,
.site-footer h2,
.site-footer h3 {
  color: var(--on-plum);
}
.site-footer a {
  color: var(--on-plum-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--on-plum);
  margin-bottom: 0.9rem;
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--on-plum-muted);
  max-width: 28rem;
  margin-top: 1rem;
}
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

/* ---- Motion / entrance ---------------------------------------------------
   Reveal elements are visible by default. Only when JavaScript is available
   (the .js class is added synchronously in <head>) do they start hidden and
   animate in — so content is never trapped behind a script that fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Utilities ----------------------------------------------------------- */
.stack > * + * {
  margin-top: 1rem;
}
/* Ensure [hidden] always collapses (no stray gap when the notice is hidden) */
[hidden] {
  display: none !important;
}
/* Keep this label on one line at desktop; wraps naturally on small screens */
@media (min-width: 700px) {
  .nowrap-lg {
    white-space: nowrap;
  }
}
.mt-2 {
  margin-top: 2rem;
}
.text-center {
  text-align: center;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
