/* ========== 麻将胡了·CN官网 全站共享样式 ========== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- CSS Variables ---------- */
:root {
  --emerald: #0B6E4F;
  --royal-gold: #D4AF37;
  --china-red: #E63946;
  --ink-jade: #064E3B;
  --ivory: #FDFBF7;
  --slate: #4A5568;
  --ink: #1A202C;
  --mist: #E6F4F1;
  --charcoal: #2D3748;
  --gold-gradient: linear-gradient(90deg, #F0E68C, #D4AF37);

  --font-heading: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --header-width: 300px;
  --mobile-header-height: 64px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 8px rgba(26, 32, 44, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 32, 44, 0.1);
  --shadow-emerald: 0 8px 32px rgba(11, 110, 79, 0.18);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 20px;
  background: var(--ivory);
  color: var(--ink-jade);
  border: 2px solid var(--royal-gold);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.25s, transform 0.25s;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Main Content Layout ---------- */
#main-content {
  margin-left: var(--header-width);
  min-height: 100vh;
  background: var(--ivory);
}

/* ---------- Container ---------- */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-width);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 90%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(230, 57, 70, 0.06) 0%, transparent 35%),
    linear-gradient(165deg, var(--emerald) 0%, var(--ink-jade) 100%);
  z-index: 1000;
  box-shadow: 2px 0 24px rgba(6, 78, 59, 0.3);
}

.site-header::before {
  content: '胡';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 140px;
  color: rgba(253, 251, 247, 0.035);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--royal-gold) 50%, transparent 100%);
}

.header-brand-row {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: opacity 0.3s;
}

.brand-lockup:hover {
  opacity: 0.88;
}

.brand-lockup:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 64px;
  background: linear-gradient(145deg, var(--ivory) 0%, #f0ead6 100%);
  border: 2px solid var(--royal-gold);
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 3px rgba(0, 0, 0, 0.08);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--china-red);
  text-shadow: 0 1px 2px rgba(230, 57, 70, 0.2);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ivory);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(253, 251, 247, 0.65);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ---------- Site Nav ---------- */
.site-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

.site-nav::-webkit-scrollbar {
  width: 4px;
}

.site-nav::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item + .nav-item {
  margin-top: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(253, 251, 247, 0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold-gradient);
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ivory);
  background: rgba(253, 251, 247, 0.06);
  padding-left: 20px;
  outline: none;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-link[aria-current="page"] {
  color: var(--royal-gold);
  background: rgba(212, 175, 55, 0.12);
  font-weight: 600;
}

.nav-link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
}

/* ---------- Header Utility ---------- */
.header-utility {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.utility-caption {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.45);
  margin-bottom: var(--space-sm);
}

.utility-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  margin-top: 8px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.07);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.utility-link:hover,
.utility-link:focus-visible {
  border-color: var(--royal-gold);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
  outline: none;
}

.utility-link-text {
  letter-spacing: 0.02em;
}

.utility-link-arrow {
  color: var(--royal-gold);
  transition: transform 0.3s ease;
}

.utility-link:hover .utility-link-arrow,
.utility-link:focus-visible .utility-link-arrow {
  transform: translateX(4px);
}

/* ---------- Nav Toggle (mobile) ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--royal-gold);
  outline: none;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: var(--ivory);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 13px;
}

/* ---------- Site Footer ---------- */
.site-footer {
  margin-left: var(--header-width);
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    linear-gradient(175deg, var(--emerald) 0%, var(--ink-jade) 85%);
  color: rgba(253, 251, 247, 0.75);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-gold), #F0E68C, var(--royal-gold));
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) clamp(20px, 4vw, 48px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 54px;
  background: linear-gradient(145deg, var(--ivory), #f0ead6);
  border: 1.5px solid var(--royal-gold);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--china-red);
  flex-shrink: 0;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--ivory);
  line-height: 1.3;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(253, 251, 247, 0.55);
  letter-spacing: 0.03em;
}

.footer-intro {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(253, 251, 247, 0.6);
  max-width: 320px;
}

.footer-col-heading {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 8px;
}

.footer-col-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 6px;
}

.footer-nav-list a {
  display: inline-block;
  color: rgba(253, 251, 247, 0.65);
  font-size: 14px;
  padding: 3px 0;
  transition: color 0.3s, padding-left 0.3s;
  position: relative;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--ivory);
  padding-left: 8px;
  outline: none;
}

.footer-nav-list a:hover::before,
.footer-nav-list a:focus-visible::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--gold-gradient);
}

.footer-nav-list a[aria-current="page"] {
  color: var(--royal-gold);
  font-weight: 600;
}

.footer-contact-line {
  font-size: 14px;
  color: rgba(253, 251, 247, 0.7);
  line-height: 1.9;
}

.footer-contact-note {
  font-size: 12px;
  color: rgba(253, 251, 247, 0.45);
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(253, 251, 247, 0.1);
  padding-top: var(--space-sm);
  max-width: 260px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(253, 251, 247, 0.08);
  font-size: 12px;
  color: rgba(253, 251, 247, 0.4);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-copyright {
  letter-spacing: 0.04em;
}

.footer-icp {
  letter-spacing: 0.04em;
}

.footer-trust {
  letter-spacing: 0.02em;
  text-align: right;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: var(--space-lg);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(74, 85, 104, 0.45);
}

.breadcrumb a {
  color: var(--emerald);
  transition: color 0.3s;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--royal-gold);
  outline: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Section Heading ---------- */
.section-heading {
  margin-bottom: var(--space-2xl);
}

.section-heading__sub {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal-gold);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: 16px;
}

.section-heading__sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.section-heading__title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--ink-jade);
  border-color: var(--ink-jade);
  box-shadow: 0 4px 16px rgba(11, 110, 79, 0.3);
}

.btn--gold {
  background: linear-gradient(120deg, #F0E68C, var(--royal-gold));
  color: var(--ink);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn--gold:hover::after,
.btn--gold:focus-visible::after {
  left: 120%;
}

.btn--ghost {
  background: transparent;
  color: var(--emerald);
  border-color: rgba(11, 110, 79, 0.4);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--emerald);
  background: rgba(11, 110, 79, 0.06);
}

.btn--small {
  padding: 8px 18px;
  font-size: 13px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- Card ---------- */
.card {
  background: var(--ivory);
  border: 1px solid rgba(74, 85, 104, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: box-shadow 0.35s, border-color 0.35s, transform 0.35s;
}

.card:hover {
  box-shadow: var(--shadow-emerald);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.card--flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.card--outline {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: transparent;
  box-shadow: none;
}

/* ---------- Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--mist);
  color: var(--emerald);
  border: 1px solid rgba(11, 110, 79, 0.18);
}

.tag--gold {
  background: linear-gradient(120deg, #F0E68C, var(--royal-gold));
  color: var(--ink);
  border-color: transparent;
}

.tag--red {
  background: rgba(230, 57, 70, 0.08);
  color: var(--china-red);
  border-color: rgba(230, 57, 70, 0.2);
}

/* ---------- Stat Row ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.stat-item {
  flex: 1 1 160px;
  padding: var(--space-lg);
  border-left: 3px solid var(--royal-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), transparent);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--royal-gold);
}

.stat-label {
  font-size: 14px;
  color: var(--slate);
  margin-top: 4px;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
  margin: var(--space-xl) 0;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Media Frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, var(--mist), #d3ebe6);
  box-shadow: var(--shadow-sm);
}

.media-frame img,
.media-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.media-frame--tile {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--panorama {
  aspect-ratio: 16 / 7;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

/* ---------- Note Box ---------- */
.note-box {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--mist);
  border-left: 3px solid var(--emerald);
  font-size: 15px;
  color: var(--ink-jade);
  line-height: 1.8;
}

.note-box--warning {
  background: rgba(230, 57, 70, 0.06);
  border-left-color: var(--china-red);
  color: var(--china-red);
}

/* ---------- Reveal Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Filter Hidden State ---------- */
[data-filter-item][hidden] {
  display: none !important;
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
}

/* ---------- Mobile Breakpoint ---------- */
@media (max-width: 960px) {
  body {
    padding-top: var(--mobile-header-height);
  }

  #main-content {
    margin-left: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    box-shadow: 0 2px 12px rgba(6, 78, 59, 0.3);
    background:
      radial-gradient(circle at 90% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
      linear-gradient(135deg, var(--emerald) 0%, var(--ink-jade) 100%);
  }

  .site-header::before {
    display: none;
  }

  .site-header::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
  }

  .header-brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-header-height);
    padding: 0 var(--space-md);
  }

  .brand-lockup {
    gap: var(--space-sm);
  }

  .brand-tile {
    width: 34px;
    height: 46px;
    font-size: 20px;
    border-width: 1.5px;
    border-radius: 6px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--mobile-header-height));
    overflow-y: auto;
    padding: var(--space-lg);
    background: linear-gradient(180deg, var(--ink-jade) 0%, var(--emerald) 100%);
    border-bottom: 3px solid var(--royal-gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    flex: initial;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    margin-bottom: var(--space-lg);
  }

  .nav-item + .nav-item {
    margin-top: 2px;
  }

  .nav-link {
    font-size: 16px;
    padding: 13px 16px;
  }

  .header-utility {
    margin-top: 0;
    padding-top: var(--space-md);
  }

  .site-footer {
    margin-left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) clamp(20px, 4vw, 32px);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: var(--space-md) clamp(20px, 4vw, 32px);
  }

  .footer-trust {
    text-align: left;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .container,
  .container--narrow {
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding: var(--space-xl) 20px;
  }

  .footer-brand-col {
    padding-bottom: var(--space-sm);
  }

  .footer-intro {
    max-width: none;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: var(--space-lg);
  }

  .card {
    padding: var(--space-lg);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-link,
  .utility-link,
  .btn,
  .card {
    transition: none;
  }
}
