/* ============================================================
   VUK PINBALL PARLOR — STYLES
   Depends on: tokens.css
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

/* ---------- Body ---------- */
body {
  background-color: var(--mahogany);
  background-image:
    url('../images/global-bg-texture.png'),
    radial-gradient(ellipse at 20% 0%, rgba(138,62,26,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(200,165,52,0.10) 0%, transparent 50%);
  background-blend-mode: overlay, normal, normal;
  background-size: cover, auto, auto;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl); }
@media (max-width: 720px) { .container { padding: 0 var(--space-lg); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ivory); letter-spacing: var(--tracking-normal); }
.display { font-family: var(--font-display); }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--copper-bright);
  border: 1px solid var(--copper-mid);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  background: rgba(160,80,30,0.12);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(200,165,52,0.4);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--parchment);
  opacity: 0.88;
  max-width: 640px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.section-intro { max-width: 760px; margin-bottom: var(--space-xl); }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--copper), var(--gold), transparent);
  margin: var(--space-xl) 0;
  position: relative;
}
.divider::before {
  content: '◆';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--mahogany);
  color: var(--gold);
  font-size: 14px;
  padding: 0 12px;
  letter-spacing: 2px;
}
.divider-graphic {
  display: block;
  width: 100vw;
  max-width: none;
  margin: var(--space-sm) calc(50% - 50vw);
  opacity: 0.85;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
@media (max-width: 720px) { .nav-container { padding: 0 var(--space-lg); } }

.nav-brand { display: flex; align-items: center; }
.nav-logo  { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: var(--space-lg); }

.nav-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--parchment);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  border-bottom-color: var(--copper);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,4,1,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
body.nav-open .nav-overlay {
  transform: translateY(0);
  pointer-events: all;
}
body.nav-open { overflow: hidden; }

.nav-overlay-brand { display: flex; justify-content: center; margin-bottom: var(--space-xl); }
.nav-overlay-logo  { height: 48px; width: auto; display: block; }

.nav-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
  transition: color 0.2s ease;
}
.nav-close:hover { color: var(--gold-light); }

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.nav-overlay-links .nav-link {
  font-size: 18px;
  letter-spacing: var(--tracking-wider);
  padding: 4px 0;
  border-bottom-width: 1px;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links  { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--copper-bright) 0%, var(--copper) 50%, var(--rust) 100%);
  color: var(--ivory);
  box-shadow: var(--shadow-copper);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dark);
}
.btn-ghost:hover { background: rgba(200,165,52,0.08); border-color: var(--gold); }
.btn-steel {
  background: linear-gradient(135deg, var(--steel) 0%, var(--gunmetal) 100%);
  color: var(--steel-pale);
  box-shadow: var(--shadow-steel);
  border-color: var(--steel-light);
}
.btn-pill { border-radius: var(--radius-pill); padding: 14px 36px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 32%, var(--tobacco) 0%, var(--rosewood) 46%, var(--mahogany) 82%);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.95;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(160,80,30,0.30) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11,4,1,0.65) 0%, rgba(22,8,4,0.85) 100%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 32px; z-index: 2;
  border: 1px solid rgba(200,165,52,0.18);
  pointer-events: none;
}
.hero-corner { position: absolute; width: 60px; height: 60px; pointer-events: none; z-index: 3; }
.hero-corner--tl { top: 32px;    left: 32px;  border-top:    2px solid var(--gold); border-left:  2px solid var(--gold); }
.hero-corner--tr { top: 32px;    right: 32px; border-top:    2px solid var(--gold); border-right: 2px solid var(--gold); }
.hero-corner--bl { bottom: 32px; left: 32px;  border-bottom: 2px solid var(--gold); border-left:  2px solid var(--gold); }
.hero-corner--br { bottom: 32px; right: 32px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.hero-inner { position: relative; z-index: 4; max-width: 900px; }
.hero-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto var(--space-lg);
  opacity: 0.8;
  filter: drop-shadow(0 4px 24px rgba(200,165,52,0.3));
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: var(--space-md);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 88px);
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 4px 24px rgba(200,165,52,0.45), 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.85;
  margin-bottom: var(--space-xl);
}
.hero-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

.hero-short { min-height: 40vh; padding: var(--space-2xl) var(--space-xl) var(--space-xl); }
.hero-short .hero-title { font-size: clamp(36px, 5.5vw, 64px); }

@media (max-width: 720px) {
  .hero:not(.hero-short) { padding: var(--space-2xl) var(--space-lg); }
  .hero-title { text-wrap: wrap; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--space-2xl) 0; position: relative; }
.section-dark     { background: var(--void); }
.section-rosewood { background: var(--rosewood); }
.section-steel {
  background: linear-gradient(135deg, var(--gunmetal) 0%, #1E2E38 100%);
  border-top: 1px solid rgba(168,194,204,0.15);
  border-bottom: 1px solid rgba(168,194,204,0.15);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-lg); }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Local Hero Cards ---- */
.local-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
@media (max-width: 1100px) {
  .local-hero-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .local-hero-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .local-hero-grid { grid-template-columns: 1fr; }
}
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,165,52,0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-card:hover { border-color: rgba(200,165,52,0.45); transform: translateY(-2px); }
.hero-card-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: rgba(0,0,0,0.3);
}
.hero-card-machine {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: var(--space-xs);
}
.hero-card-score {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: var(--space-xs);
}
.hero-card-player {
  font-size: 13px;
  color: var(--parchment);
  opacity: 0.65;
}

/* ============================================================
   FRAMES
   ============================================================ */
.frame {
  background: linear-gradient(180deg, var(--rosewood) 0%, var(--mahogany) 100%);
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(200,165,52,0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.frame:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-deep), var(--shadow-gold); }
.frame-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}
.frame-body  { color: var(--parchment); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-md); }
.frame-image { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-md); }

/* ============================================================
   MACHINE CARDS
   ============================================================ */
.machine-card {
  background: linear-gradient(180deg, var(--rosewood), var(--void));
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.machine-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.machine-card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.machine-card-body  { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.machine-card-title {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--gold-light); margin-bottom: var(--space-sm);
}
.machine-card-meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--copper-bright);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.machine-card-desc { font-size: 14px; color: var(--parchment); opacity: 0.85; }

/* ============================================================
   MAP
   ============================================================ */
.map-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--copper-mid);
  box-shadow: var(--shadow-deep);
  margin-bottom: var(--space-xl);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 720px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard-placeholder {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}
.leaderboard-icon {
  font-size: 56px;
  color: var(--copper-mid);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}
.leaderboard-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-normal);
  color: var(--parchment-dk);
  opacity: 0.7;
  text-transform: uppercase;
}

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}
.calendar-month {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.calendar-nav {
  font-size: 20px;
  color: var(--copper-bright);
  padding: 8px 16px;
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.calendar-nav:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(200,165,52,0.08); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-xl);
}
.calendar-dow {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--copper-bright);
  padding: 8px 4px;
  background: rgba(160,80,30,0.12);
}
.calendar-cell {
  min-height: 80px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,165,52,0.08);
}
.calendar-cell--empty   { background: transparent; border-color: transparent; }
.calendar-cell--today   { background: rgba(200,165,52,0.10); border-color: var(--copper-mid); }
.calendar-cell--has-events { background: rgba(160,80,30,0.15); border-color: rgba(200,165,52,0.2); }

.calendar-day {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--parchment);
  margin-bottom: 4px;
}
.calendar-cell--today .calendar-day { color: var(--gold-light); font-weight: 700; }

.calendar-event {
  display: block;
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--copper);
  padding: 2px 5px;
  border-radius: 2px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease;
}
.calendar-event:hover { background: var(--copper-bright); }

/* Event detail cards — shown via CSS :target */
.event-card {
  display: none;
  scroll-margin-top: calc(var(--header-height) + var(--space-lg));
}
.event-card:target { display: block; }
.event-card-inner {
  background: linear-gradient(135deg, var(--rosewood) 0%, var(--mahogany) 100%);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-gold);
  margin-bottom: var(--space-xl);
}
.event-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}
.event-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper-bright);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
}
.event-card-desc { color: var(--parchment); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-md); }
.event-card-close {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  font-size: 18px;
  color: var(--parchment);
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.event-card-close:hover { color: var(--gold-light); }

@media (max-width: 600px) {
  .calendar-cell  { min-height: 56px; padding: 4px; }
  .calendar-dow   { font-size: 9px; letter-spacing: 0; padding: 6px 2px; }
  .calendar-day   { font-size: 11px; }
  .calendar-event { font-size: 8px; }
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.location-address {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--copper-bright);
  letter-spacing: var(--tracking-normal);
  margin: var(--space-sm) 0 var(--space-lg);
  line-height: 1.7;
  font-style: normal;
}
.directions-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.directions-row input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(223,192,144,0.08);
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.directions-row input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(223,192,144,0.14);
}
.directions-row input::placeholder { color: var(--parchment-dk); opacity: 0.6; }

/* ============================================================
   FORMS
   ============================================================ */
.form-field { margin-bottom: var(--space-md); }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--copper-bright);
  margin-bottom: var(--space-sm);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(223,192,144,0.08);
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(223,192,144,0.14);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-card {
  background: linear-gradient(180deg, var(--rosewood) 0%, var(--mahogany) 100%);
  border: 1px solid var(--copper-mid);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-deep);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--patina-dark) 0%, var(--void) 35%, var(--patina-dark) 65%, var(--void) 100%);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(200,165,52,0.15);
  margin-top: var(--space-2xl);
}
.footer-inner { text-align: center; }
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(200,165,52,0.12);
  margin-bottom: var(--space-md);
}
.footer-brand-link { display: flex; justify-content: center; }
.footer-logo { height: 48px; width: auto; display: block; }
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-venue {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--copper-bright);
  transition: color 0.2s ease;
}
.footer-venue:hover { color: var(--gold-light); }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200,165,52,0.25);
  color: var(--parchment);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social:hover {
  color: var(--gold-light);
  border-color: var(--gold-mid);
  background: rgba(200,165,52,0.08);
}
.footer-bottom {
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: var(--chrome);
  font-family: var(--font-mono);
  padding-top: var(--space-sm);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-email-block {
  background: rgba(200,165,52,0.07);
  border: 1px solid rgba(200,165,52,0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}
.contact-email-label {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: var(--space-xs);
}
.contact-email-link {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--gold-light);
  transition: color 0.2s;
}
.contact-email-link:hover { color: var(--gold); }

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,165,52,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
@media (max-width: 720px) { .contact-form { padding: var(--space-lg); } }

.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: var(--space-sm);
}
.form-label .required { color: var(--copper-bright); margin-left: 2px; }
.form-input,
.form-textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(200,165,52,0.2);
  border-radius: var(--radius-md);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(200,165,52,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(240,226,192,0.35); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-hint {
  font-size: 12px;
  color: var(--parchment);
  opacity: 0.55;
  margin-top: var(--space-xs);
}
.form-file-wrap {
  border: 1px dashed rgba(200,165,52,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: border-color 0.2s;
}
.form-file-wrap:hover { border-color: rgba(200,165,52,0.5); }
.form-file {
  display: block;
  width: 100%;
  font-size: 14px;
  color: var(--parchment);
  cursor: pointer;
}
.form-submit { width: 100%; margin-top: var(--space-md); }

/* inline flash (inside page, not top-of-page banner) */
.inline-flash {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 15px;
  line-height: 1.5;
}
.inline-flash--ok  { background: rgba(106,175,149,0.14); border: 1px solid var(--verdigris); color: var(--cream); }
.inline-flash--err { background: rgba(139,62,26,0.22);   border: 1px solid var(--rust);      color: var(--cream); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-md);
  border-bottom: 1px solid;
  font-family: var(--font-body);
}
.flash--ok  { background: rgba(106,175,149,0.14); border-bottom-color: var(--verdigris); }
.flash--err { background: rgba(139,62,26,0.22);   border-bottom-color: var(--rust); }
.flash-inner { display: flex; align-items: center; gap: var(--space-md); }
.flash-icon {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
}
.flash--ok  .flash-icon { background: var(--verdigris); color: var(--void); }
.flash--err .flash-icon { background: var(--rust);      color: var(--ivory); }
.flash-text { flex: 1; color: var(--cream); font-size: 15px; line-height: 1.5; }
.flash-text strong { color: var(--gold-light); }
.flash-dismiss { flex: none; font-size: 24px; line-height: 1; color: var(--parchment); padding: 0 6px; }
.flash-dismiss:hover { color: var(--gold-light); }

/* ============================================================
   HONEYPOT
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}
.error-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 22vw, 220px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--copper-bright) 0%, var(--gold-light) 50%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(200,165,52,0.35));
  margin-bottom: var(--space-md);
}
.error-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: var(--tracking-wide);
  animation: tilt-pulse 1.6s ease-in-out infinite;
  margin-bottom: var(--space-lg);
}
@keyframes tilt-pulse {
  0%, 100% { color: var(--ivory); text-shadow: none; }
  50%       { color: var(--gold-light); text-shadow: 0 0 24px rgba(200,165,52,0.7); }
}
.error-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--parchment);
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}
.error-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.muted  { opacity: 0.7; }
