/*
 * Petfluencers Theme — Reusable Components
 * Buttons, pills, inputs, eyebrow, category badges. Page-specific styles live in pages.css.
 */

/* ───────────────────────── Eyebrow / label ───────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}

/* ───────────────────────── Buttons (system) ───────────────────────── */
.btn,
.btn-primary,
.btn-secondary,
.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-align: center;
  transition: transform var(--duration-fast),
              box-shadow var(--duration-fast),
              background var(--duration-fast),
              color var(--duration-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(237, 124, 43, .45);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-secondary-light {
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .6);
}
.btn-secondary-light:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Solid white button — for use on a brand-colored band. */
.btn-on-brand {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.btn-on-brand:hover {
  background: #fff;
  color: var(--brand);
  transform: translateY(-1px);
}

.btn-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brand);
}

/* ───────────────────────── Pill (chip / tag) ───────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.pill:hover {
  border-color: var(--ink);
}
.pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ───────────────────────── Inputs ───────────────────────── */
.pf-input,
.pf-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.pf-input:focus,
.pf-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(237, 124, 43, .15);
}

.pf-textarea {
  min-height: 140px;
  resize: vertical;
}

.pf-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.pf-field-error {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--error);
}

.pf-input.has-error,
.pf-textarea.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(209, 69, 69, .12);
}

/* ───────────────────────── Category badge ───────────────────────── */
.pf-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--muted);
}

.pf-category-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.pf-category-badge--nano       { background: var(--cat-nano); }
.pf-category-badge--micro      { background: var(--cat-micro); }
.pf-category-badge--macro      { background: var(--cat-macro); }
.pf-category-badge--influencer { background: var(--cat-influencer); }
.pf-category-badge--celebrity  { background: var(--cat-celebrity); }

/* ─────────────────────── Engagement-level badge (CHR-61) ─────────────────────── */
.pf-engagement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--muted);
}
.pf-engagement-badge--low        { background: var(--muted); }
.pf-engagement-badge--good       { background: var(--cat-nano); }
.pf-engagement-badge--very-good  { background: var(--cat-micro); }
.pf-engagement-badge--excellent  { background: var(--cat-influencer); }
.pf-engagement-badge--viral      { background: var(--brand); }

/* ───────────────────────── Generic card surface ───────────────────────── */
.pf-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

/* ───────────────────────── Reveal-on-scroll (used by scroll-reveal.js) ─── */
.pf-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-in-out),
              transform 600ms var(--ease-in-out);
}
.pf-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────────────────── WhatsApp FAB (CHR-50) ────────────────────── */
.pf-whatsapp-fab {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  right: 16px;
  z-index: var(--z-fab);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  transition: transform var(--duration-fast);
}
.pf-whatsapp-fab:hover,
.pf-whatsapp-fab:focus-visible {
  transform: scale(1.08);
  color: #fff;
}
.pf-whatsapp-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .pf-whatsapp-fab { transition: none; }
}

/* ───────────────────────── Paw stickers (hero, 404) ─────────────────── */
.pf-paw {
  position: absolute;
  pointer-events: none;
  color: var(--brand);
}
.pf-paw svg { width: 100%; height: 100%; display: block; }

/* ───────────────────────── Brands marquee (CHR-48) ──────────────────── */
/* Brands band: fixed white in BOTH light and dark mode (client request —
   multi-color brand logos need a white backdrop), so no theme variables here. */
.pf-brands {
  background: #ffffff;
  color: #13335B;
  padding: var(--space-7) 0;
  overflow: hidden;
}

.pf-brands__head {
  margin-bottom: var(--space-5);
}
.pf-brands__head .eyebrow {
  color: #ED7C2B; /* fixed: white band in both themes */
}
.pf-brands__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: var(--ls-h2);
  line-height: 1;
  color: #13335B; /* fixed: white band in both themes */
}

/* Marquee viewport — masked so items fade in/out at the edges. */
.pf-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pf-marquee + .pf-marquee {
  margin-top: 8px;
}

/* The moving track. Holds the brand list twice → translateX(-50%) loops seamlessly. */
.pf-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: pf-marquee var(--marquee-duration, 42s) linear infinite;
}
.pf-marquee__track--reverse {
  animation-direction: reverse;
}

/* Calm, elegant brake: the marquee pauses while hovered so names are readable. */
.pf-marquee:hover .pf-marquee__track {
  animation-play-state: paused;
}

@keyframes pf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pf-marquee__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  color: #13335B; /* fixed: the band is always white */
}
.pf-marquee__item--lg {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.6;
}
.pf-marquee__item--sm {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  opacity: 0.45;
}

/* Items carrying a logo render at full strength — the text lines are
   dimmed by design, but a multi-color logo must not look washed out. */
.pf-marquee__item--lg:has(.pf-marquee__logo),
.pf-marquee__item--sm:has(.pf-marquee__logo) {
  opacity: 1;
}

/* Linked brand: inherit the marquee look, subtle lift on hover. */
.pf-marquee__link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.pf-marquee__link:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.pf-marquee__link:hover .pf-marquee__logo {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Brand logo inside the marquee: white chip so any logo color reads on
   the navy band. Height tracks the text size of each line. */
.pf-marquee__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e4e7ec; /* defines the chip on the white band */
  border-radius: 12px;
  padding: 8px 16px;
  box-sizing: content-box;
}
.pf-marquee__item--sm .pf-marquee__logo {
  height: 36px;
  max-width: 170px;
  padding: 6px 12px;
  border-radius: 10px;
}

/* Orange dot separator between brand names. */
.pf-marquee__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ED7C2B;
  margin: 0 36px;
  flex-shrink: 0;
}
.pf-marquee__item--sm .pf-marquee__dot {
  width: 6px;
  height: 6px;
  margin: 0 28px;
  background: #13335B;
  opacity: 0.4;
}

/* Reduced motion: hold the marquee still. */
@media (prefers-reduced-motion: reduce) {
  .pf-marquee__track { animation: none; }
}

/* ───────────────────────── TalentQuickView (bottom sheet) ───────────── */
.pf-quickview {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 20, 40, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 0;
  transition: background var(--duration-mid) var(--ease-out),
              backdrop-filter var(--duration-mid) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out);
}
.pf-quickview.is-open {
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  opacity: 1;
}

.pf-quickview__sheet {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  padding: 14px var(--space-5) calc(var(--space-7) + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--duration-mid) var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.pf-quickview.is-open .pf-quickview__sheet {
  transform: translateY(0);
}
.pf-quickview.is-closing .pf-quickview__sheet {
  transition-duration: 220ms;
  transform: translateY(100%);
}

.pf-quickview__grip {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
  margin: 0 auto var(--space-4);
}

.pf-quickview__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.pf-quickview__close:hover { background: var(--ink); color: var(--bg); }
.pf-quickview__close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pf-quickview__head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-4);
}
.pf-quickview__photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--brand-soft);
}
.pf-quickview__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-quickview__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-light));
}

.pf-quickview__id { min-width: 0; }
.pf-quickview__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: var(--ls-h3);
  line-height: 1.1;
  color: var(--ink);
}
.pf-quickview__meta {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.pf-quickview__handle {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.pf-quickview__bio {
  margin: 0 0 var(--space-5);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  max-height: 7.5em;
  overflow: hidden;
}

.pf-quickview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.pf-quickview__stat {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-quickview__stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.pf-quickview__stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: var(--ls-h3);
  line-height: 1.05;
  color: var(--ink);
}
.pf-quickview__stat-sub {
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

.pf-quickview__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.pf-quickview__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
}
.pf-quickview__channel-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  color: var(--muted);
}
.pf-quickview__channel-value {
  font-weight: 700;
  color: var(--ink);
}
.pf-quickview__channel--instagram .pf-quickview__channel-label { color: var(--cat-celebrity); }
.pf-quickview__channel--tiktok .pf-quickview__channel-label    { color: var(--ink); }

.pf-quickview__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pf-quickview__actions .btn-primary {
  flex: 1;
  min-width: 0;
}

.pf-quickview__error,
.pf-quickview__loading {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.pf-quickview__error { color: var(--error); }

body.is-quickview-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .pf-quickview,
  .pf-quickview__sheet,
  .pf-quickview.is-closing .pf-quickview__sheet {
    transition-duration: 0.01ms;
  }
}

/* ───────────────────────── TalentCard (polaroid) ───────────────────────── */
.pf-talent-card {
  position: relative;
  display: block;
  background: var(--surface);
  padding: 10px 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--rotation, 0deg));
  transition: transform var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
  will-change: transform;
}
.pf-talent-card:hover,
.pf-talent-card:focus-within {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pf-talent-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.pf-talent-card__link:hover { color: inherit; }

.pf-talent-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--brand-soft);
}
.pf-talent-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-talent-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-light));
}

.pf-talent-card__quickview {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(20, 40, 80, .18);
  z-index: 2;
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.pf-talent-card:hover .pf-talent-card__quickview {
  transform: scale(1.08);
}
.pf-talent-card__quickview:hover {
  background: var(--brand);
  color: #fff;
}
.pf-talent-card__quickview:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.pf-talent-card__footer {
  padding: 12px 4px 2px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.pf-talent-card__id {
  min-width: 0;
}
.pf-talent-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pf-talent-card__meta {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
}

.pf-talent-card__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 2px;
}
.pf-talent-card__social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.pf-talent-card__social:hover,
.pf-talent-card__social:focus-visible {
  color: var(--brand);
}
.pf-talent-card__social svg {
  flex-shrink: 0;
}
.pf-talent-card__social-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.pf-talent-card[hidden] { display: none !important; }

/* Honor reduced motion: no rotation, no lift. */
@media (prefers-reduced-motion: reduce) {
  .pf-talent-card { transform: none; }
  .pf-talent-card:hover,
  .pf-talent-card:focus-within { transform: none; }
}

/* ───────────────────────── Top navigation ───────────────────────── */
.pf-topnav {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.pf-topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 80px;
  padding-block: 12px;
}

.pf-topnav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: opacity var(--duration-fast);
}
.pf-topnav__brand:hover { opacity: 0.85; color: var(--ink); }

.pf-topnav__brand img {
  height: 48px;
  width: auto;
  aspect-ratio: 1117 / 704;
  flex-shrink: 0;
  display: block;
  transition: height var(--duration-fast);
}

/* Dark mode: the navy logo would vanish on the dark-blue header —
   swap to an all-white rendering for contrast. */
[data-theme="dark"] .pf-topnav__brand img {
  filter: brightness(0) invert(1);
}

/* QuickView '+' button separation in dark mode:
   avoid blending into the polaroid surface by using the contrasting background, adding a border and deeper shadow. */
[data-theme="dark"] .pf-talent-card__quickview {
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  border: 1px solid var(--line);
}

/* QuickView bottom sheet close button separation in dark mode. */
[data-theme="dark"] .pf-quickview__close {
  border: 1px solid var(--line);
}

/* Desktop nav — hidden on mobile, revealed >= 768px */
.pf-topnav__nav {
  display: none;
}

.pf-topnav__cta {
  display: none;
}

/* Dark-mode toggle */
.pf-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.pf-theme-toggle:hover { color: var(--brand); }
.pf-theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.pf-theme-toggle__moon { display: none; }
[data-theme="dark"] .pf-theme-toggle__sun  { display: none; }
[data-theme="dark"] .pf-theme-toggle__moon { display: block; }

/* Hamburger button (mobile) */
.pf-topnav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  flex-shrink: 0;
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.pf-topnav__menu-btn:hover {
  background: var(--ink);
  transform: scale(1.05);
}
.pf-topnav__menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.pf-topnav__menu-btn-lines {
  position: relative;
  width: 18px;
  height: 12px;
}
.pf-topnav__menu-btn-lines::before,
.pf-topnav__menu-btn-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-mid) var(--ease-out),
              top var(--duration-mid) var(--ease-out);
}
.pf-topnav__menu-btn-lines::before { top: 2px; }
.pf-topnav__menu-btn-lines::after  { top: 8px; }

.pf-topnav__menu-btn[aria-expanded="true"] .pf-topnav__menu-btn-lines::before {
  top: 5px;
  transform: rotate(45deg);
}
.pf-topnav__menu-btn[aria-expanded="true"] .pf-topnav__menu-btn-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* Overlay (mobile fullscreen menu) */
.pf-topnav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-overlay);
  padding: calc(var(--space-7) + env(safe-area-inset-top)) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out),
              visibility 0s linear var(--duration-mid);
}
.pf-topnav__overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out),
              visibility 0s linear 0s;
}

/* Overlay close button (top-right of overlay, matches hamburguesa position) */
.pf-topnav__overlay-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: var(--section-pad-x-mobile);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

/* Overlay menu items */
.pf-overlay-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pf-overlay-menu__item {
  border-bottom: 1px solid var(--line);
}

.pf-overlay-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--duration-fast), transform var(--duration-fast);
}
.pf-overlay-menu__link:hover,
.pf-overlay-menu__link:focus-visible {
  color: var(--brand);
  transform: translateX(4px);
}

.pf-overlay-menu__item.current-menu-item > .pf-overlay-menu__link {
  color: var(--brand);
}

.pf-overlay-menu__arrow {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--duration-fast), color var(--duration-fast);
}
.pf-overlay-menu__link:hover .pf-overlay-menu__arrow {
  color: var(--brand);
  transform: translateX(2px);
}

/* Overlay CTA at the bottom */
.pf-topnav__overlay-cta {
  margin-top: auto;
  padding-top: var(--space-6);
  /* Stack the two CTAs with breathing room — they were touching. */
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* Keep clear of the fixed WhatsApp FAB in the bottom-right corner. */
  padding-right: 64px;
}

/* Body scroll lock helper (toggled by JS) */
body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ───── Desktop nav (>= 768px) ───── */
@media (min-width: 768px) {
  .pf-topnav__inner { min-height: 92px; }

  .pf-topnav__brand img {
    height: 60px;
  }

  .pf-topnav__menu-btn { display: none; }

  .pf-topnav__nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }
  .pf-topnav__menu {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pf-topnav__menu .menu-item > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: background var(--duration-fast), color var(--duration-fast);
  }
  .pf-topnav__menu .menu-item > a:hover {
    background: var(--surface);
    color: var(--ink);
  }
  .pf-topnav__menu .current-menu-item > a {
    background: var(--ink);
    color: var(--bg);
  }

  .pf-topnav__cta { display: inline-flex; }

  /* Overlay never shows on desktop */
  .pf-topnav__overlay { display: none !important; }
}

/* ───────────────────────── Footer ───────────────────────── */
/* The footer is a permanent navy band in BOTH light and dark mode, so it
   uses fixed colors — not --ink/--bg, which flip in dark mode and would
   leave cream text on a cream background. */
.pf-footer {
  background: #13335B;
  color: #F6F3EE;
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
}

.pf-footer a {
  color: #F6F3EE;
}
.pf-footer a:hover { color: #FFB97A; }

.pf-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.pf-footer__brand img {
  height: 40px;
  width: auto;
  aspect-ratio: 1117 / 704;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.pf-footer__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(246, 243, 238, .7);
  letter-spacing: 0.02em;
}

.pf-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pf-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--space-3);
}

.pf-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pf-footer__list a {
  font-size: 15px;
  font-weight: 500;
}

.pf-footer__social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pf-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  transition: background var(--duration-fast), border-color var(--duration-fast),
    color var(--duration-fast), transform var(--duration-fast);
}
.pf-footer__social-btn:hover,
.pf-footer__social-btn:focus-visible {
  background: rgba(255, 255, 255, .08);
  border-color: var(--brand);
  color: var(--brand-light);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .pf-footer__social-btn:hover,
  .pf-footer__social-btn:focus-visible { transform: none; }
}

.pf-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  padding-top: var(--space-5);
  font-size: 13px;
  color: rgba(246, 243, 238, .65);
}

.pf-footer__credit {
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .pf-footer__cols {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-7);
  }
  .pf-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
