/*
Theme Name:  Anath Finery
Theme URI:   https://anathfinery.com
Author:      Anath Finery Ltd
Description: Bespoke private office theme for Anath Finery. All content editable via Appearance → Customise.
Version:     1.1.0

License:     Private
Text Domain: anath-finery
*/

/* ─── RESET ─────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* clip prevents horizontal scroll without creating a scroll container (keeps position:sticky working) */
}

:root {
  --ink: #0e1a10;
  --forest: #1a3020;
  --forest-mid: #243d2a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --cream: #f0ede6;
  --stone: #dcd9d2;
  --mid-grey: #9a9690;
  --dark-grey: #5a5752;
  --gold: #b8933a;
  --text: #2c2a27;
  --footer-bg: #1c3422;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip; /* Fix for position: sticky breakages */
}

/* ─── CONTAINER ─────────────────────────── */
.af-container {
  max-width: 1280px;
  margin: 0 auto !important;
  padding-left: 60px;
  padding-right: 60px;
  width: 100%;
  box-sizing: border-box;
}


@media (max-width: 1024px) {
  .af-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .af-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .af-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}


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

a {
  text-decoration: none;
}

/* ─── BUTTONS ────────────────────────────── */
.af-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
  text-decoration: none !important;
  padding: 14px 40px;
}

.af-btn-light {
  background: var(--white);
  color: var(--ink);
}

.af-btn-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.af-btn-green {
  background: var(--forest);
  color: var(--white);
}

.af-btn-green:hover {
  background: var(--forest-mid);
  color: var(--white);
}

.af-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 13px 36px;
}

.af-btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* ─── AGE GATE ──────────────────────────── */
#af-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 26, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}

#af-age-gate.af-active {
  display: flex;
}

#af-age-gate.af-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.af-gate-box {
  max-width: 440px;
  width: 90%;
  padding: 60px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.af-gate-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.af-gate-box h2 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 14px;
}

.af-gate-box p {
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .05em;
  color: var(--mid-grey);
  margin-bottom: 36px;
}

.af-gate-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.af-gate-selects select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  padding: 11px 14px;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color .25s;
}

.af-gate-selects select:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.af-gate-selects select option {
  background: var(--ink);
}

#af-age-error {
  display: none;
  color: #c0392b;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  margin-top: -10px;
}

.af-gate-footer {
  margin-top: 24px;
  font-size: 9px;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

/* ─── COOKIE BANNER ─────────────────────── */
#af-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8888;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: transform .5s ease;
}

#af-cookie.af-hidden {
  transform: translateY(100%);
}

#af-cookie p {
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--mid-grey);
  line-height: 1.7;
}

#af-cookie button {
  white-space: nowrap;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .3em;
  padding: 9px 22px;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color .25s;
}

#af-cookie button:hover {
  border-color: var(--white);
}

/* ─── NAVIGATION ────────────────────────── */
#af-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9001;
  height: 72px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 26, 16, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.af-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.af-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .38em;
  color: var(--white);
  text-transform: uppercase;
}

.af-brand-sub {
  font-size: 7px;
  letter-spacing: .38em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
  font-family: 'Cinzel', serif;
}

#af-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
}

#af-nav ul li a {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 20px;
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s;
  margin-top: 2px;
}

#af-nav ul li a:hover,
#af-nav ul li.current-menu-item>a {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.af-login-btn {
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 0 0 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: color .2s;
}

.af-login-btn:hover {
  color: var(--gold);
}

.af-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  gap: 5px;
}

.af-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease,
              width     0.32s ease;
  transform-origin: center;
  pointer-events: none;
}

.af-menu-toggle[aria-expanded="true"] .af-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.af-menu-toggle[aria-expanded="true"] .af-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.af-menu-toggle[aria-expanded="true"] .af-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.af-sub-btn {
  display: none;
}

/* ─── SUBMENUS ───────────────────────────── */
#af-nav ul li {
  position: relative;
}

#af-nav ul li.menu-item-has-children>a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  margin-bottom: 1px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

#af-nav ul li.menu-item-has-children.af-sub-open>a::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

#af-nav ul li .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  list-style: none;
  background: var(--ink);
  border-top: 2px solid var(--gold);
  border-left: 1px solid rgba(255, 255, 255, .07);
  border-right: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  z-index: 200;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

/* Dropdowns open on click only (via .af-sub-open), not hover */

#af-nav ul li .sub-menu li a {
  display: block;
  height: auto;
  padding: 11px 20px;
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, .05);
  white-space: nowrap;
}

#af-nav ul li .sub-menu li:first-child>a {
  border-top: none;
}

/* ─── HERO ──────────────────────────────── */
.af-hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  background: #0a3d1a;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}


.af-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .08) 60%, rgba(0, 0, 0, .4) 100%),
    repeating-linear-gradient(-45deg, transparent 0 40px, rgba(255, 255, 255, .012) 40px 41px);
}

.af-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  z-index: 2;
}

.af-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}

.af-hero-video {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.3;
  will-change: transform;
  transition: transform 0.08s ease-out;
  pointer-events: none;
}

.af-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 100px;
  max-width: 860px;
  animation: afFadeUp 1s ease forwards;
  opacity: 0;
}

@keyframes afFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.af-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.af-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.af-hero-sub {
  font-weight: 300;
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 48px;
}

.af-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.af-hero-cta .af-btn {
  min-width: 260px;
  text-align: center;
}

.af-hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.af-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 100px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

.af-scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: .5;
}

/* ─── STATS TICKER — overlaid on hero ──── */
.af-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  background: rgba(10, 20, 12, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* fade edges */
.af-stats::before,
.af-stats::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.af-stats::before {
  left: 0;
  background: linear-gradient(to right, rgba(10,20,12,0.65), transparent);
}
.af-stats::after {
  right: 0;
  background: linear-gradient(to left, rgba(10,20,12,0.65), transparent);
}

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

.af-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-rtl 80s linear infinite;
}


.af-stat {
  text-align: center;
  flex-shrink: 0;
  padding: 22px 52px;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.af-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.af-stat-lbl {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ─── SHARED SECTION ────────────────────── */
.af-section {
  padding: 100px 0;
}


.af-sec-label {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.af-sec-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.af-sec-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 14px;
}

.af-sec-sub {
  font-size: 13px;
  line-height: 1.85;
  color: var(--dark-grey);
  max-width: 500px;
}

/* ─── PILLARS ───────────────────────────── */
.af-pillars-wrap {
  background: var(--white);
}

/* Switch from shared outer border to individual card borders + gap so cards can lift independently */
.af-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.af-pillar {
  padding: 0;
  border: 1px solid var(--stone);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.af-pillar:last-child {
  border-right: 1px solid var(--stone);
}

.af-pillar:hover {
  border-color: rgba(184, 147, 58, 0.7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(184, 147, 58, 0.12);
  transform: translateY(-10px);
}

/* Wrap text content so it can lift independently, matching .af-gateway-body */
.af-pillar-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-pillar:hover .af-pillar-body {
  transform: translateY(-3px);
}

/* ── IMAGE BOX — exact gateway-media treatment ── */
.af-pillar-img {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: transparent;
  flex-shrink: 0;
}

.af-pillar-img img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.af-pillar:hover .af-pillar-img img {
  transform: scale(1.13);
  filter: brightness(1.08) contrast(1.03);
}

/* Gold sweep line at bottom of image on hover */
.af-pillar-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.af-pillar:hover .af-pillar-img::after {
  width: 100%;
}

/* Shimmer sweep across image on hover */
.af-pillar-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left 0s;
  z-index: 1;
  pointer-events: none;
}

.af-pillar:hover .af-pillar-img::before {
  left: 160%;
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-pillar-num {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.af-pillar-num::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--stone);
}

.af-pillar-icon {
  font-size: 26px;
  margin-bottom: 20px;
  display: block;
}

.af-pillar h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 14px;
}

.af-pillar p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--dark-grey);
}

/* ── Reset <a> so the whole card link doesn't inherit underline/colour ── */
a.af-pillar {
  text-decoration: none;
  color: inherit;
}

a.af-pillar,
a.af-pillar h3,
a.af-pillar p,
a.af-pillar span,
a.af-pillar div {
  text-decoration: none !important;
}

/* ── Overlay — matches .af-gateway-overlay exactly ── */
.af-pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 3;
}

.af-pillar:hover .af-pillar-overlay {
  opacity: 1;
}

.af-pillar-overlay-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-pillar:hover .af-pillar-overlay-inner {
  transform: translateY(0);
}

.af-pillar-over-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.af-pillar-over-arrow {
  font-size: 22px;
  color: var(--white);
  font-weight: 300;
  display: inline-block;
  transition: transform 0.3s ease;
}

.af-pillar:hover .af-pillar-over-arrow {
  transform: translateX(5px);
}

/* ── Bottom CTA link in body ── */
.af-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  transition: gap .25s;
}

.af-pillar-link::after {
  content: '→';
  font-size: 12px;
}

.af-pillar:hover .af-pillar-link {
  gap: 13px;
}

/* ─── ABOUT BAND (DARK) ─────────────────── */
.af-about {
  background: var(--ink);
}

.af-about-content {
  padding: 60px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}


.af-about-img {
  align-self: center;
}

.af-about-quote {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--white);
  padding-left: 28px;
  position: relative;
}

.af-about-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.af-about-copy .af-sec-label {
  color: var(--gold);
}

.af-about-copy .af-sec-title {
  color: var(--white);
}

.af-about-copy .af-sec-sub {
  color: var(--mid-grey);
  max-width: 100%;
}

/* ─── QUOTE DIVIDER (WHITE) ─────────────── */
.af-quote-divider {
  background: var(--white);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.af-quote-divider-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px calc(60px + 28px);
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--ink);
  position: relative;
}

.af-quote-divider-inner::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 80px;
  bottom: 80px;
  width: 2px;
  background: var(--gold);
}

/* ─── WHY BAND ──────────────────────────── */
.af-why {
  background: var(--cream);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.af-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--stone);
  margin-top: 56px;
}

.af-why-card {
  padding: 0;
  border-right: 1px solid var(--stone);
  transition: background .25s;
  overflow: hidden;
}

.af-why-img {
  position: relative;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
}

.af-why-img img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-why-card:hover .af-why-img img {
  transform: scale(1.06);
}

.af-why-card-body {
  padding: 40px 40px;
}

.af-why-card:last-child {
  border-right: none;
}

.af-why-card:hover {
  background: var(--white);
}

.af-why-num {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.af-why-num::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--stone);
}

.af-why-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--forest);
  margin-bottom: 12px;
}

.af-why-card p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--dark-grey);
}

/* ─── CONTACT ───────────────────────────── */
.af-contact {
  background: var(--white);
  border-top: 1px solid var(--stone);
}

.af-contact-inner {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 100px;
  align-items: start;
}


.af-contact-pts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.af-contact-pt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dark-grey);
}

.af-contact-pt::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Contact Form 7 overrides */
.af-contact .wpcf7 {
  width: 100%;
}

.af-contact .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.af-contact .wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--dark-grey);
}

.af-contact .wpcf7 input[type="text"],
.af-contact .wpcf7 input[type="email"],
.af-contact .wpcf7 input[type="tel"],
.af-contact .wpcf7 select,
.af-contact .wpcf7 textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--stone);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s;
  appearance: none;
}

.af-contact .wpcf7 input:focus,
.af-contact .wpcf7 select:focus,
.af-contact .wpcf7 textarea:focus {
  border-color: var(--forest);
}

.af-contact .wpcf7 textarea {
  resize: vertical;
  min-height: 100px;
}

.af-contact .wpcf7-submit {
  background: var(--forest);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  border: none;
  padding: 14px 48px;
  cursor: pointer;
  transition: background .25s;
  align-self: flex-start;
}

.af-contact .wpcf7-submit:hover {
  background: var(--forest-mid);
}

.af-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── CONTACT FORM FIELDS ─────────────────── */
.af-contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.af-contact-form p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.af-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 7.5px !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  color: var(--dark-grey) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: default !important;
}

.af-field input,
.af-field select,
.af-field textarea,
.wpcf7-form-control:not(.wpcf7-submit),
.ff-el-form-control {
  background: var(--off-white) !important;
  border: 1px solid var(--stone) !important;
  color: var(--text) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  padding: 12px 14px !important;
  outline: none !important;
  transition: all 0.25s ease;
  appearance: none !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.af-field input:focus,
.af-field select:focus,
.af-field textarea:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus,
.ff-el-form-control:focus {
  border-color: var(--forest) !important;
  background: var(--white) !important;
}

.af-field select,
select.wpcf7-form-control,
.ff-el-form-control[type="select"] {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239a9690' stroke-width='1' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 32px !important;
}

.af-field select option {
  background: var(--white);
}

.af-field textarea,
textarea.wpcf7-form-control,
textarea.ff-el-form-control {
  resize: vertical;
  min-height: 100px !important;
}

/* CF7 & Fluent Submit Button */
.wpcf7-submit,
.ff-btn-submit {
  display: inline-block !important;
  background: var(--forest) !important;
  color: var(--white) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border: none !important;
  padding: 14px 40px !important;
  transition: all 0.25s ease !important;
  width: auto !important;
  margin-top: 10px !important;
}

.wpcf7-submit:hover {
  background: var(--forest-mid) !important;
}

/* CF7 Spinner / Messages */
.wpcf7-spinner {
  position: absolute;
  margin: 0 0 0 10px !important;
}

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 16px !important;
  font-size: 11px !important;
  border: 1px solid transparent !important;
  font-family: 'Montserrat', sans-serif !important;
}

.wpcf7-not-valid-tip {
  font-size: 10px !important;
  color: #c0392b !important;
  margin-top: 5px !important;
  letter-spacing: 0.02em !important;
}

/* ─── FOOTER ────────────────────────────── */
#af-footer {
  background: var(--footer-bg) !important;
  border-top: 1px solid rgba(255, 255, 255, .07);
  width: 100%;
}

/* Main row: brand left, nav right */
.af-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 64px 0 64px;
  gap: 60px;
}

/* Brand — logo | gold line | text info */
.af-footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.af-footer-logo-link {
  display: block;
  flex-shrink: 0;
  opacity: .9;
  transition: opacity .3s ease;
}

.af-footer-logo-link:hover {
  opacity: 1;
}

.af-footer-logo {
  height: 160px;
  width: auto;
  display: block;
}

.af-footer-brand-divider {
  width: 1px;
  height: 140px;
  background: var(--gold);
  opacity: .5;
  margin: 0 32px;
  flex-shrink: 0;
}

.af-footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  padding-right: .38em;
}

.af-footer-brand-address {
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .35);
  line-height: 1.9;
}

.af-footer-brand-office {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
  margin-bottom: 8px;
  padding-right: .4em;
}

.af-footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
}

.af-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: opacity .25s ease;
}

.af-footer-social-link:hover {
  opacity: 1;
}

/* Nav columns — pushed to the right */
.af-footer-nav-group {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  padding-top: 0;
}

.af-footer-col {
  min-width: 150px;
}

.af-footer-col-title {
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
  padding-right: .46em;
}

.af-footer-col ul,
.af-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-footer-col ul li,
.af-footer-menu li {
  margin-bottom: 12px;
}

.af-footer-col ul li a,
.af-footer-menu li a {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .38);
  text-decoration: none;
  transition: color .22s ease;
  position: relative;
}

.af-footer-col ul li a::after,
.af-footer-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  opacity: .5;
  transition: width .25s ease;
}

.af-footer-col ul li a:hover,
.af-footer-menu li a:hover {
  color: rgba(255, 255, 255, .82);
}

.af-footer-col ul li a:hover::after,
.af-footer-menu li a:hover::after {
  width: 100%;
}

/* Bottom bar — split edge to edge */
.af-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 22px 0;
}

.af-footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .2);
  line-height: 1.7;
}

.af-footer-copy strong {
  color: rgba(255, 255, 255, .32);
  font-weight: 400;
}

.af-footer-copy-right {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── EDITOR / BLOCK STYLES ─────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.entry-content p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--dark-grey);
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.entry-content li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark-grey);
}

/* WordPress core ships .wp-block-html { overflow: auto } which wraps the
   calculator in a scroll container, creating a second scrollbar. Override it. */
.wp-block-html {
  overflow: visible;
}

.wp-block-image {
  margin-bottom: 24px;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 24px;
}

.alignright {
  float: right;
  margin-left: 24px;
}

/* ─── REVEAL ────────────────────────────── */
@keyframes af-reveal-soft {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.976);
  }
  55% {
    opacity: 0.83;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes af-reveal-gentle-left {
  0% {
    opacity: 0;
    transform: translateX(-22px) scale(0.977);
  }
  55% {
    opacity: 0.84;
    transform: translateX(6px) scale(1.003);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes af-reveal-gentle-right {
  0% {
    opacity: 0;
    transform: translateX(22px) scale(0.977);
  }
  55% {
    opacity: 0.84;
    transform: translateX(-6px) scale(1.003);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes af-reveal-gentle-up {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.978);
  }
  55% {
    opacity: 0.85;
    transform: translateY(-3px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes af-reveal-gentle-down {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.978);
  }
  55% {
    opacity: 0.85;
    transform: translateY(3px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.af-reveal,
.af-reveal-left,
.af-reveal-right,
.af-reveal-up,
.af-reveal-down,
.af-reveal-scale {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.af-reveal.af-visible,
.af-reveal-left.af-visible,
.af-reveal-right.af-visible,
.af-reveal-up.af-visible,
.af-reveal-down.af-visible,
.af-reveal-scale.af-visible {
  animation: none !important;
  box-shadow: none !important;
}

.af-rs-tier-card {
  perspective: 1100px;
}

.af-rs-tier-card:hover .af-rs-tier-inner {
  transform: translateZ(7px) scale(1.02) rotateY(1deg);
  box-shadow: 0 28px 58px rgba(0,0,0,0.28);
}

.af-d1 {
  transition-delay: 0.1s;
}

.af-d2 {
  transition-delay: 0.2s;
}

.af-d3 {
  transition-delay: 0.3s;
}


.af-d3 {
  transition-delay: 0.3s;
}

.af-d4 {
  transition-delay: 0.4s;
}

.af-d5 {
  transition-delay: 0.5s;
}

/* ── PAGE CONTENT TYPOGRAPHY ─────────────── */
.af-page-content {
  font-size: 13px;
  line-height: 1.9;
  color: var(--dark-grey);
}

.af-page-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: .04em;
}

.af-page-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin: 36px 0 12px;
  letter-spacing: .04em;
}

.af-page-content p {
  margin-bottom: 20px;
}

.af-page-content ul,
.af-page-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.af-page-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.af-page-content a {
  color: var(--forest);
  text-decoration: underline;
}

.af-page-content a:hover {
  color: var(--gold);
}

.af-page-content strong {
  font-weight: 500;
  color: var(--ink);
}

.af-page-content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--forest);
  line-height: 1.7;
}

.af-page-content img {
  max-width: 100%;
  margin: 32px 0;
}

/* ─── LOGO ───────────────────────────────── */
.af-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.wp-block-site-logo img,
.custom-logo {
  max-width: none !important;
  width: auto !important;
  height: 64px !important;
}

/* ─── CLIENT SIDE NOTICE ─────────────────── */
.af-side-notice {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 9999;
  width: 320px;
  max-width: calc(100% - 48px);
  pointer-events: none;
  /* Slide entirely off the right edge when hidden — keeps blur composited */
  transform: translateX(calc(100% + 48px));
  transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.af-side-notice.af-active {
  transform: translateX(0);
  pointer-events: auto;
}

.af-side-notice-card {
  position: relative;
  background: rgba(14, 26, 16, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(184, 147, 58, 0.3);
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

/* .af-side-notice.af-active .af-side-notice-card — no overrides needed */

.af-side-notice-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.af-side-notice-body p {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.af-side-notice-close {
  background: none;
  border: none;
  border-top: 1px solid rgba(184, 147, 58, 0.2);
  width: 100%;
  padding-top: 16px;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}

.af-side-notice-close:hover {
  color: var(--white);
}

.af-side-notice-link {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.af-side-notice-link:last-of-type {
  margin-bottom: 24px;
}

.af-side-notice-link:hover {
  color: var(--white);
}

/* ─── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--forest);
}

/* ─── SCREEN READER ──────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
════════════════════════════════════════════ */
@media (max-width:1024px) {
  #af-header {
    padding: 0 30px;
  }

  /* ── Show hamburger, hide inline login ── */
  .af-menu-toggle {
    display: flex;
  }

  .af-login-btn {
    display: none;
  }

  /* ── Nav panel: fixed overlay, hidden by default ── */
  #af-nav {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    max-height: calc(100svh - 72px - env(safe-area-inset-top));
    background: #0e1a10;
    border-bottom: 1px solid rgba(184, 147, 58, 0.18);
    z-index: 800;
    padding: 0;
    overflow: hidden;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity    0.3s  ease,
      visibility 0s    linear 0.3s;
  }

  /* Inner scroll container so overflow doesn't break backdrop-filter on iOS */
  #af-nav > ul {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100svh - 72px - env(safe-area-inset-top));
  }

  #af-nav.af-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 6px 0 32px;
    transition:
      opacity    0.3s  ease,
      visibility 0s    linear 0s;
  }

  /* ── Nav list: vertical stack ── */
  #af-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  /* ── Nav links ── */
  #af-nav ul li a {
    height: auto;
    padding: 17px 32px;
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  #af-nav ul li a:hover,
  #af-nav ul li a:active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom-color: transparent;
  }

  #af-nav ul li.current-menu-item > a {
    color: var(--gold);
    border-bottom-color: transparent;
  }

  #af-nav ul > li:first-child > a {
    border-top: none;
  }

  /* ── Parent item chevron ── */
  #af-nav ul li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid rgba(184, 147, 58, 0.65);
    border-bottom: 1.5px solid rgba(184, 147, 58, 0.65);
    transform: rotate(45deg);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: auto;
    margin-bottom: 0;
  }

  #af-nav ul li.menu-item-has-children.af-sub-open > a::after {
    transform: rotate(-135deg);
  }

  /* ── Submenus: static, height driven by JS ── */
  #af-nav ul li .sub-menu {
    position: static;
    display: block;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition:
      max-height  0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity     0.28s ease,
      visibility  0s    linear 0.35s;
  }

  #af-nav ul li.af-sub-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height  0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity     0.28s ease,
      visibility  0s    linear 0s;
    /* max-height set by JS to scrollHeight for exact fit */
  }

  /* ── Submenu items ── */
  #af-nav ul li .sub-menu li a {
    padding: 14px 32px 14px 48px;
    font-size: 8.5px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    white-space: normal;
    justify-content: flex-start;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
  }

  #af-nav ul li .sub-menu li:first-child > a {
    border-top: none;
  }

  #af-nav ul li .sub-menu li a:hover,
  #af-nav ul li .sub-menu li a:active {
    color: var(--gold);
    background-color: rgba(184, 147, 58, 0.06);
    padding-left: 52px;
  }

  .af-hero-content {
    padding: 0 60px;
  }

  .af-section,
  .af-about-content,
  .af-contact-inner {
    padding: 80px 30px;
  }

  .af-quote-divider-inner {
    padding: 60px calc(30px + 28px);
  }

  .af-quote-divider-inner::before {
    left: 30px;
    top: 60px;
    bottom: 60px;
  }

  .af-footer-inner {
    padding: 60px 0 56px;
    gap: 40px;
  }

  .af-footer-nav-group {
    gap: 48px;
  }

}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
════════════════════════════════════════════ */
@media (max-width:768px) {

  /* ── Footer: stack on mobile ── */
  .af-footer-inner {
    flex-direction: column;
    align-items: center;
    padding: 48px 0 44px;
    gap: 44px;
  }

  .af-footer-brand {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .af-footer-logo {
    height: 120px;
  }

  .af-footer-brand-divider {
    width: 48px;
    height: 1px;
    margin: 20px 0;
  }

  .af-footer-brand-info {
    align-items: center;
    text-align: center;
  }

  .af-footer-brand-name,
  .af-footer-brand-office {
    text-align: center;
  }

  .af-footer-brand-address {
    text-align: center;
  }

  .af-footer-social {
    justify-content: center;
  }

  .af-footer-nav-group {
    width: 100%;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }

  .af-footer-col {
    min-width: 120px;
  }

  .af-footer-copy {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .af-footer-copy-right {
    white-space: normal;
  }

  /* ── Header: phone safe-area padding ── */
  #af-header {
    padding-top: env(safe-area-inset-top);
    padding-left:  max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    height: calc(72px + env(safe-area-inset-top));
  }

  /* ── Phone-specific nav refinements ── */
  #af-nav ul li a {
    padding: 15px 20px;
    font-size: 9px;
    letter-spacing: 0.19em;
  }

  #af-nav ul li .sub-menu li a {
    padding: 13px 20px 13px 36px;
    font-size: 8px;
  }

  #af-nav ul li .sub-menu li a:hover,
  #af-nav ul li .sub-menu li a:active {
    padding-left: 40px;
  }

  /* ── Hero ── */
  .af-hero {
    min-height: 90vh;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .af-hero-content {
    padding: 0 24px;
    max-width: 100%;
  }

  .af-hero-content h1 {
    font-size: clamp(26px, 7vw, 38px);
  }

  .af-hero-sub {
    font-size: 10px;
    letter-spacing: .12em;
    margin-bottom: 32px;
  }

  .af-hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .af-hero-cta .af-btn {
    text-align: center;
    padding: 14px 24px;
    width: 100%;
  }

  .af-hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .af-scroll-hint {
    display: none;
  }

  /* ── Stats ticker ── */
  .af-stat {
    padding: 20px 36px;
  }

  .af-stat-num {
    font-size: 18px;
  }

  /* ── Sections ── */
  .af-section {
    padding: 60px 20px;
  }

  .af-sec-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .af-sec-sub {
    max-width: 100%;
    font-size: 12px;
  }

  /* ── Pillars ── */
  .af-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .af-pillar {
    transform: none !important;
  }

  .af-pillar-body {
    padding: 28px 24px;
  }

  /* ── About ── */
  .af-about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 20px 60px;
  }

  .af-about-quote {
    font-size: clamp(16px, 4.5vw, 22px);
    padding-left: 20px;
  }

  .af-quote-divider-inner {
    padding: 48px calc(20px + 20px);
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .af-quote-divider-inner::before {
    left: 20px;
    top: 48px;
    bottom: 48px;
  }

  /* ── Why ── */
  .af-why-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .af-why-card {
    border-right: none;
    border-bottom: 1px solid var(--stone);
    padding: 0;
  }

  .af-why-card-body {
    padding: 28px 24px;
  }

  .af-why-card:last-child {
    border-bottom: none;
  }

  /* ── Contact ── */
  .af-contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .af-contact-pts {
    margin-top: 20px;
  }

  .af-form-row {
    grid-template-columns: 1fr;
  }

  .af-contact .wpcf7-submit,
  .af-contact-form .af-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  /* ── Cookie ── */
  #af-cookie {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ── Portal notice ── */
  #af-portal-notice {
    right: 12px;
    left: 12px;
    max-width: none;
    top: 80px;
  }

  /* ── Page content ── */
  .af-page-content+aside {
    display: none;
  }

  .af-page-content h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .af-page-content h3 {
    font-size: 16px;
  }
}

/* ─── COLLECTION PAGE COMPONENTS ────────── */

.af-page-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.25;
}

.af-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--dark-grey);
  margin-bottom: 48px;
}

.af-hr {
  border: none;
  border-top: 1px solid var(--stone);
  margin: 56px 0;
}

.af-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin: 40px 0;
}

.af-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.af-bullet {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.af-bullet-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  margin-top: 6px;
}

.af-bullet-title {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.af-bullet-body {
  font-size: 12px;
  line-height: 1.85;
  color: var(--dark-grey);
}

.af-collection-stats {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--stone);
  background: var(--off-white);
  margin: 48px 0;
}

.af-collection-stats .af-stat {
  flex: 1;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--stone);
}

.af-collection-stats .af-stat:last-child {
  border-right: none;
}

.af-collection-stats .af-stat-num {
  color: var(--ink);
}

.af-collection-stats .af-stat-lbl {
  color: var(--mid-grey);
}

.af-stat-sub {
  display: block;
  font-size: 14px;
  letter-spacing: .2em;
  margin-top: 2px;
}

.af-timeline {
  background: var(--off-white);
  border: 1px solid var(--stone);
  padding: 48px 40px;
  margin: 48px 0;
}

.af-timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 6px;
}

.af-timeline-sub {
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: .04em;
  margin-bottom: 40px;
}

.af-slider-wrap {
  position: relative;
  padding: 12px 0;
  margin-bottom: 12px;
}

.af-slider-track {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: var(--stone);
}

.af-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(to right, var(--gold), #d4af37);
  width: 0%;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  box-shadow: 0 0 10px rgba(184, 147, 58, 0.3);
}

.af-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.af-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 4px var(--forest), inset 0 0 0 5px var(--gold);
  transition: transform 0.2s ease;
}

.af-slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.af-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 4px var(--forest), inset 0 0 0 5px var(--gold);
  transition: transform 0.2s ease;
}

.af-slider:active::-moz-range-thumb {
  transform: scale(1.15);
}

.af-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-top: 8px;
}

.af-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  perspective: 1000px;
}

.af-cell {
  padding: 28px 24px;
  border: 1px solid var(--stone);
  background: var(--white);
  opacity: .5;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.af-cell:hover {
  opacity: 0.8;
  border-color: var(--mid-grey);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.af-cell.af-active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(184, 147, 58, 0.15);
  z-index: 5;
}

.af-cell.af-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.af-cell-stage {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 6px;
}

.af-cell-year {
  font-size: 10px;
  color: var(--dark-grey);
  margin-bottom: 12px;
  letter-spacing: .06em;
}

.af-cell-val {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 6px;
}

.af-cell-delta {
  font-size: 10px;
  color: var(--mid-grey);
  letter-spacing: .06em;
}

.af-cell-delta.af-up {
  color: #2a6e3a;
  font-weight: 500;
}

.af-cell-badge {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
}

.af-disclaimer {
  font-size: 10px;
  color: var(--mid-grey);
  line-height: 1.7;
  letter-spacing: .03em;
  margin-top: 28px;
  border-top: 1px solid var(--stone);
  padding-top: 16px;
}

.af-page-quote {
  border-left: 2px solid var(--gold);
  padding: 24px 32px;
  margin: 48px 0;
  background: var(--off-white);
  font-family: 'Cinzel', serif;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--forest);
}

.af-page-quote p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.af-crest-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0 48px;
}

.af-crest-line {
  flex: 1;
  height: 1px;
  background: var(--stone);
}

.af-crest-mark {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.af-tier-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 147, 58, .4);
  padding: 5px 14px;
}

/* ── Grading authorities ── */
.af-grading-authorities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.af-grading-authority {
  border: 1px solid var(--stone);
  padding: 36px;
  text-align: center;
  background: var(--off-white);
}

.af-grading-abbr {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.af-grading-name {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dark-grey);
}

/* ── Vault flip cards ── */
.af-vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.af-vault-card {
  position: relative;
  height: 320px;
  cursor: pointer;
  perspective: 1000px;
}

.af-vault-inner {
  position: absolute;
  inset: 0;
  transition: transform .55s ease;
  transform-style: preserve-3d;
}

.af-vault-card:hover .af-vault-inner,
.af-vault-card.af-flipped .af-vault-inner {
  transform: rotateY(180deg);
}

.af-vault-front,
.af-vault-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.af-vault-front {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .1);
  gap: 16px;
}

.af-vault-back {
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, .1);
  transform: rotateY(180deg);
}

.af-vault-coin-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  opacity: .85;
}

.af-vault-coin-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--white);
  text-align: center;
}

.af-vault-coin-hint {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
}

.af-vault-back-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 14px;
  text-align: center;
}

.af-vault-back-body {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}

/* ── Enquiry page ── */
.af-page-sub {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin: -18px 0 32px;
}

.af-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--stone);
  margin-top: 40px;
}

.af-channel {
  padding: 40px 32px;
  border-right: 1px solid var(--stone);
  background: var(--off-white);
}

.af-channel:last-child {
  border-right: none;
}

.af-channel-label {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.af-channel-value {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.af-channel-sub {
  font-size: 11px;
  line-height: 1.8;
  color: var(--dark-grey);
  letter-spacing: .03em;
}

.af-checkbox-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.af-checkbox-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--forest);
  cursor: pointer;
}

.af-checkbox-wrap label {
  font-size: 11px;
  line-height: 1.75;
  color: var(--dark-grey);
  cursor: pointer;
}

.af-form-security {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--off-white);
  border: 1px solid var(--stone);
  font-size: 10px;
  line-height: 1.75;
  color: var(--mid-grey);
  letter-spacing: .04em;
}

.af-form-security-mark {
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  margin-top: 1px;
}

.af-field-note {
  font-size: 10px;
  color: var(--mid-grey);
  letter-spacing: .04em;
  margin-bottom: 28px;
}

.af-required-mark {
  color: var(--gold);
}

/* ── COLLECTION GATEWAY CARDS ── */
.af-collection-gateway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 56px 0;
}

.af-gateway-card {
  position: relative;
  border: 1px solid var(--stone);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: inherit;
  display: flex !important;
  flex-direction: column;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: top;
  line-height: normal;
}

.af-gateway-card:hover {
  border-color: rgba(184, 147, 58, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
  transform: translateY(-6px);
}

.af-gateway-media {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: transparent;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
}

/* Kill any WordPress wrappers inside the media box */
.af-gateway-media > *:not(img):not(.af-gateway-overlay) {
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Also kill paragraph wrappers WP sometimes adds around images */
.af-gateway-media > p {
  font-size: 0;
  line-height: 0;
}

.af-gateway-img-wrap {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.af-gateway-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  margin: 0 !important;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-gateway-card:hover .af-gateway-media img {
  transform: scale(1.08);
}

.af-gateway-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 28px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.af-gateway-card:hover .af-gateway-overlay {
  opacity: 1;
}

.af-gateway-overlay-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.af-gateway-card:hover .af-gateway-overlay-inner {
  transform: translateY(0);
}

.af-gateway-over-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.af-gateway-arrow {
  font-size: 22px;
  color: var(--white);
  font-weight: 300;
  display: inline-block;
  transition: transform 0.3s ease;
}

.af-gateway-card:hover .af-gateway-arrow {
  transform: translateX(5px);
}

.af-gateway-body {
  padding: 36px 32px;
  background: var(--white);
}

.af-gateway-label {
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.af-gateway-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.af-gateway-excerpt {
  font-size: 12px;
  line-height: 1.85;
  color: var(--dark-grey);
  margin-bottom: 20px;
}

.af-gateway-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stone);
}

.af-gateway-stats span {
  font-size: 11px;
  color: var(--mid-grey);
  line-height: 1.6;
}

.af-gateway-stats strong {
  color: var(--forest);
  font-weight: 500;
}

.af-gateway-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  transition: gap 0.25s;
  position: relative;
}

.af-gateway-cta::after {
  content: ' →';
  margin-left: 6px;
  transition: margin-left 0.25s;
}

.af-gateway-card:hover .af-gateway-cta::after {
  margin-left: 12px;
}

/* ── GATEWAY CARD: NO UNDERLINES ── */
.af-gateway-card,
.af-gateway-card h3,
.af-gateway-card p,
.af-gateway-card span,
.af-gateway-card div,
.af-gateway-card strong {
  text-decoration: none !important;
}

/* ── GATEWAY CARD: ENHANCED HOVER ── */
.af-gateway-card {
  transition: border-color 0.4s, box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.af-gateway-card:hover {
  border-color: rgba(184, 147, 58, 0.7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(184, 147, 58, 0.12);
  transform: translateY(-10px);
}
.af-gateway-media img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}
.af-gateway-card:hover .af-gateway-media img {
  transform: scale(1.13);
  filter: brightness(1.08) contrast(1.03);
}

/* Gold line sweep at bottom of image on hover */
.af-gateway-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}
.af-gateway-card:hover .af-gateway-media::after {
  width: 100%;
}

/* Body lifts subtly on hover */
.af-gateway-body {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.af-gateway-card:hover .af-gateway-body {
  transform: translateY(-3px);
}

/* Shimmer sweep across image */
.af-gateway-media::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left 0.0s;
  z-index: 1;
  pointer-events: none;
}
.af-gateway-card:hover .af-gateway-media::before {
  left: 160%;
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── OUTLINED GREEN BUTTON (for advisor CTA) ── */
.af-btn-forest-outline {
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
}
.af-btn-forest-outline:hover {
  background: var(--forest);
  color: var(--white);
}

/* ── COMPARISON TABLE ── */
.af-comparison-table {
  overflow-x: auto;
  margin: 40px 0;
  border: 1px solid var(--stone);
}

.af-comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.af-comparison-table thead {
  background: var(--off-white);
  border-bottom: 1px solid var(--stone);
}

.af-comparison-table th {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 20px 16px;
  text-align: left;
}

.af-comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--stone);
  font-size: 12px;
  line-height: 1.6;
  color: var(--dark-grey);
}

.af-comparison-table tr:last-child td {
  border-bottom: none;
}

.af-comparison-table strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width:768px) {
  .af-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .af-collection-gateway {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .af-cells {
    grid-template-columns: 1fr 1fr;
  }

  .af-timeline {
    padding: 32px 20px;
  }

  .af-collection-stats {
    flex-direction: column;
  }

  .af-collection-stats .af-stat {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }

  .af-collection-stats .af-stat:last-child {
    border-bottom: none;
  }

  .af-grading-authorities {
    grid-template-columns: 1fr 1fr;
  }

  .af-vault-grid {
    grid-template-columns: 1fr 1fr;
  }

  .af-vault-card {
    height: 280px;
  }

  .af-channels-grid {
    grid-template-columns: 1fr;
  }

  .af-channel {
    border-right: none;
    border-bottom: 1px solid var(--stone);
  }

  .af-channel:last-child {
    border-bottom: none;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES  (≤ 480px)
════════════════════════════════════════════ */
@media (max-width:480px) {

  /* ── Footer ── */
  .af-footer-inner {
    padding: 40px 0 36px;
    gap: 36px;
  }

  .af-footer-logo {
    height: 96px;
  }

  .af-footer-nav-group {
    gap: 32px;
  }

  .af-footer-col {
    min-width: 100px;
  }

  /* ── Age gate ── */
  .af-gate-box {
    padding: 36px 20px;
  }

  .af-gate-selects {
    grid-template-columns: 1fr;
  }

  .af-gate-box h2 {
    font-size: 17px;
    letter-spacing: .08em;
  }

  /* ── Header / logo ── */
  .af-logo-img {
    height: 48px;
  }

  .af-brand-name {
    font-size: 13px;
    letter-spacing: .25em;
  }

  /* ── Hero ── */
  .af-hero {
    min-height: 85vh;
    padding-bottom: 60px;
  }

  .af-hero-content {
    padding: 0 18px;
  }

  .af-hero-content h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .af-eyebrow {
    font-size: 7px;
    letter-spacing: .35em;
  }

  /* ── Stats ── */
  /* Note: width/min-width intentionally removed here — 100% breaks the
     infinite ticker animation. Override is in the MOBILE ENHANCEMENTS block. */
  .af-stat {
    border-right: none;
  }

  .af-stat:nth-child(odd) {
    border-right: none;
  }

  /* ── Sections ── */
  .af-section {
    padding: 48px 18px;
  }

  .af-about-content,
  .af-contact-inner {
    padding: 48px 18px;
  }

  /* ── Pillars / Why cards ── */
  .af-pillar-body,
  .af-why-card-body {
    padding: 24px 18px;
  }

  /* ── Buttons ── */
  .af-btn {
    padding: 13px 20px;
    font-size: 8px;
  }

  /* ── Collection page ── */
  .af-cells {
    grid-template-columns: 1fr;
  }

  .af-grading-authorities {
    grid-template-columns: 1fr;
  }

  .af-vault-grid {
    grid-template-columns: 1fr;
  }

  .af-vault-card {
    height: 260px;
  }
}

/* Fix WordPress paragraph margins inside enquiry form */
.af-contact-form p {
  margin: 0 !important;
  padding: 0 0 10px 0 !important;
}

.af-contact-form br {
  display: none !important;
}

.af-contact-form label,
.ff-el-is-label label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 7px;
  font-weight: 400;
}

/* ════════════════════════════════════════════
   MOBILE ENHANCEMENTS
   Touch UX · iOS safe areas · Form fixes
════════════════════════════════════════════ */

/* ─── TOUCH UX ───────────────────────────── */
/* Remove default tap flash and eliminate 300ms delay on interactive elements */
a,
button,
[type="submit"],
[type="button"],
.af-btn,
.af-pillar-link,
.af-side-notice-link,
.af-gateway-cta {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Minimum 44px touch target for cookie accept button */
#af-cookie button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── iOS SAFE AREA: HEADER ──────────────── */
/* Pushes header content below the status bar / dynamic island on notched iPhones */
#af-header {
  padding-top: env(safe-area-inset-top);
  height: calc(72px + env(safe-area-inset-top));
}

/* Hero must start below the taller header on notched devices */
.af-hero {
  margin-top: calc(72px + env(safe-area-inset-top));
}

/* Mobile nav drop-down starts right below the header */
#af-nav.af-open {
  top: calc(72px + env(safe-area-inset-top));
}

/* Side notice panel clears the header */
.af-side-notice {
  top: calc(92px + env(safe-area-inset-top));
}

/* ─── iOS SAFE AREA: BOTTOM UI ───────────── */
/* Cookie banner and footer bottom bar clear the iPhone home indicator */
#af-cookie {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}


/* ─── MOBILE (≤ 768px) ───────────────────── */
@media (max-width: 768px) {

  /* Preserve safe-area padding when the tablet/mobile rules reset padding shorthand */
  #af-header {
    padding-top: env(safe-area-inset-top);
    padding-left:  max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    height: calc(72px + env(safe-area-inset-top));
  }

  /* iOS: inputs with font-size < 16px trigger auto-zoom on focus — prevent that */
  input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Full-width submit buttons so they're easy to tap */
  .wpcf7-submit,
  .ff-btn-submit {
    width: 100% !important;
    text-align: center !important;
  }

  /* Prevent horizontal scroll bleed from translateX reveal animations */
  .af-about,
  .af-counsel,
  .af-pillars-wrap,
  .af-why,
  .af-contact,
  .af-quote-divider {
    overflow-x: hidden;
  }

  /* Reduce reveal slide distance on mobile — large translateX values cause bleed */
  .af-reveal-left:not(.af-visible)  { transform: translateX(-24px); }
  .af-reveal-right:not(.af-visible) { transform: translateX(24px); }

  /* On mobile the about/counsel sections stack vertically — reset horizontal shifts */
  .af-about .af-reveal-left:not(.af-visible),
  .af-about .af-reveal-right:not(.af-visible),
  .af-counsel .af-reveal-left:not(.af-visible),
  .af-counsel .af-reveal-right:not(.af-visible) {
    transform: translateY(20px);
  }
  .af-about .af-reveal-left.af-visible,
  .af-about .af-reveal-right.af-visible,
  .af-counsel .af-reveal-left.af-visible,
  .af-counsel .af-reveal-right.af-visible {
    transform: translateY(0);
  }

  /* Center the about image on mobile */
  .af-about-img {
    width: 100%;
    text-align: center;
  }
  .af-about-img img {
    width: 100%;
    display: block;
    margin: 0 auto;
  }
}

/* ─── SMALL PHONES (≤ 480px) ─────────────── */
@media (max-width: 480px) {

  /* Fix: the existing width:100% rule breaks the infinite ticker animation.
     Stats are flex children of a width:max-content container — auto is correct. */
  .af-stat {
    min-width: auto;
    width: auto;
    padding: 18px 28px;
  }

  /* Side padding for safe area in landscape */
  #af-header {
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* ─── DESKTOP: HOVER + CLICK SUBMENUS ─── */
/* Only applies above 1024px — mobile/tablet use JS-set max-height instead */
@media (min-width: 1025px) {
  /* Open on hover */
  #af-nav ul li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
  }

  /* Also open on click (JS adds .af-sub-open) */
  #af-nav ul li.af-sub-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
  }

  /* Keep parent chevron rotated while hovered */
  #af-nav ul li:hover > a::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
  }
}

/* ─── SMALL PHONES — SIDE NOTICE ────────── */
/* Slide notice up from bottom instead of in from right edge */
@media (max-width: 480px) {
  .af-side-notice {
    right: 0;
    left: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    top: auto;
    width: 100%;
    max-width: 100%;
    transform: translateY(calc(100% + 20px));
  }

  .af-side-notice.af-active {
    transform: translateY(0);
  }

  .af-side-notice-card {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 2px solid var(--gold);
    border-radius: 0;
  }
}

/* ─── REDUCED MOTION ─────────────────────── */
/* Respect OS-level "reduce motion" preference — disable all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}

/* ─── LANDSCAPE MOBILE ───────────────────── */
/* On phones rotated sideways viewport height is very small — keep hero usable */
@media (orientation: landscape) and (max-height: 500px) {
  .af-hero {
    min-height: 100vh; /* fallback for older browsers */
    min-height: 100svh; /* excludes browser chrome on modern browsers */
    padding-bottom: 70px;
    align-items: center;
  }

  .af-hero-content h1 {
    font-size: clamp(18px, 5vh, 26px);
  }

  .af-hero-sub {
    margin-bottom: 20px;
  }
}