/* Diggers Inn & Shafts Pub — shared styles
   Design system: "The Gilded Depth" (Industrial Luxury)
   Mobile-first */

:root {
  --surface: #131313;
  --surface-bright: #3a3939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --on-surface: #e5e2e1;
  --on-surface-variant: #d1c5ab;
  --outline: #9a9078;
  --outline-variant: #4e4632;
  --primary: #ffe397;
  --primary-strong: #f4c300;
  --on-primary: #3d2f00;
  --error: #ffb4ab;
  --on-background: #e5e2e1;
  --background: #131313;
  --white: #ffffff;
  --black: #111111;

  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;

  --s-xs: 4px;
  --s-sm: 12px;
  --s-base: 8px;
  --s-md: 24px;
  --s-lg: 48px;
  --s-xl: 80px;
  --s-gutter: 24px;
  --m-mobile: 16px;
  --m-desktop: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::selection { background: var(--primary-strong); color: var(--black); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary-strong); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

/* ---------- typography (mobile defaults) ---------- */
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.h-xl { font-size: 38px; }
.h-lg { font-size: 30px; }
.h-md { font-size: 24px; line-height: 1.2; }
.h-sm { font-size: 20px; line-height: 1.3; }
.body-lg { font-size: 16px; }
.body-md { font-size: 15px; }
.label-lg { font-family: 'Hanken Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.label-md { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

@media (min-width: 768px) {
  .h-xl { font-size: 64px; }
  .h-lg { font-size: 48px; }
  .h-md { font-size: 32px; }
  .h-sm { font-size: 24px; }
  .body-lg { font-size: 18px; }
  .body-md { font-size: 16px; }
  .label-lg { font-size: 14px; }
  .label-md { font-size: 12px; }
}

/* ---------- layout helpers (mobile-first) ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--m-mobile); }
@media (min-width: 768px) { .container { padding: 0 var(--m-desktop); } }

.section { padding: var(--s-lg) 0; }
@media (min-width: 768px) { .section { padding: var(--s-xl) 0; } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s-md); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-gutter); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-gutter); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-gutter); }
}

.text-primary { color: var(--primary); }
.text-variant { color: var(--on-surface-variant); }
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }

/* ---------- nav (mobile-first) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--m-mobile);
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}
@media (min-width: 768px) { .nav { padding: 14px var(--m-desktop); } }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Anton', sans-serif; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}
@media (min-width: 768px) { .nav-brand { font-size: 22px; gap: 12px; } }

.nav-brand img { width: 40px; height: 40px; }
@media (min-width: 768px) { .nav-brand img { width: 48px; height: 48px; } }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-text small {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 8px;
  letter-spacing: 0.18em; color: var(--on-surface-variant);
  font-weight: 600; margin-top: 3px;
}
@media (min-width: 768px) {
  .nav-brand-text small { font-size: 9px; letter-spacing: 0.2em; }
}

.nav-links { display: none; align-items: center; gap: var(--s-gutter); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-surface);
  transition: color .2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--primary-strong);
  color: var(--on-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 18px;
  transition: all .2s;
  border-bottom: none;
}
@media (min-width: 768px) { .nav-cta { padding: 12px 20px; } }
.nav-cta:hover { background: var(--white); color: var(--black); }

.menu-toggle { display: flex; align-items: center; justify-content: center; padding: 8px; color: var(--primary); min-width: 44px; min-height: 44px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: var(--surface-container-lowest);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Anton', sans-serif; font-size: 32px; text-transform: uppercase; color: var(--on-surface); transition: color .2s; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .close {
  position: absolute; top: 20px; right: 20px;
  color: var(--primary); font-size: 36px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- buttons (mobile-first) ---------- */
.btn {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 24px;
  transition: all .2s;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}
@media (min-width: 768px) {
  .btn { font-size: 14px; padding: 16px 32px; }
}
.btn-primary { background: var(--primary-strong); color: var(--on-primary); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-secondary { background: transparent; color: var(--on-surface); border: 2px solid var(--primary-strong); }
.btn-secondary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-block { display: block; width: 100%; }

/* ---------- footer (mobile-first) ---------- */
.footer {
  background: var(--surface-container-lowest);
  border-top: 4px solid var(--primary-strong);
  padding: 48px var(--m-mobile) 24px;
  color: var(--on-surface-variant);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-strong) 20%, var(--primary-strong) 80%, transparent);
}
@media (min-width: 768px) { .footer { padding: 64px var(--m-desktop) 32px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
}

.footer-brand-block { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand-text {
  font-family: 'Anton', sans-serif; font-size: 24px;
  color: var(--primary); text-transform: uppercase; line-height: 1.05;
}
.footer-brand-text small {
  display: block;
  font-size: 11px; color: var(--on-surface-variant);
  letter-spacing: 0.2em; margin-top: 4px;
  font-family: 'Hanken Grotesk', sans-serif;
}
.footer-tagline { font-size: 14px; line-height: 1.6; margin: 0; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }

.footer h5 {
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline-variant);
}
.footer a { display: block; padding: 6px 0; color: var(--on-surface-variant); transition: color .2s; font-size: 14px; }
.footer a:hover { color: var(--primary); }
.footer p { margin: 0; font-size: 14px; line-height: 1.7; }

.footer-col-block { display: flex; flex-direction: column; gap: 4px; }

.footer-bottom {
  border-top: 1px solid var(--outline-variant);
  margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 12px;
  color: var(--outline);
  letter-spacing: 0.05em;
}
@media (min-width: 768px) { .footer-bottom { margin-top: 48px; padding-top: 32px; } }

.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--primary-strong);
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.social:hover { background: var(--primary-strong); color: var(--on-primary); }
.socials { display: flex; gap: 12px; margin-top: 12px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  padding: 20px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
@media (min-width: 768px) { .card { padding: var(--s-md); } }
.card:hover { border-color: var(--primary-strong); }
.card-beam {
  background: var(--surface-container-low);
  padding: 20px;
  border-left: 4px solid var(--primary-strong);
  position: relative;
  transition: transform .2s;
}
@media (min-width: 768px) { .card-beam { padding: var(--s-md); } }
.card-beam:hover { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-strong);
  text-align: center;
}
@media (min-width: 768px) { .hero { min-height: 80vh; } }

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,19,19,0.4) 0%, rgba(19,19,19,0.9) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
  padding: 48px var(--m-mobile);
}
@media (min-width: 768px) { .hero-content { padding: var(--s-lg) var(--m-desktop); } }

.hero-logo {
  width: 120px; height: 120px;
  display: block;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 24px rgba(244, 195, 0, 0.35));
}
@media (min-width: 768px) { .hero-logo { width: 160px; height: 160px; margin-bottom: 32px; } }

.hero-eyebrow {
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
@media (min-width: 768px) { .hero-eyebrow { font-size: 12px; letter-spacing: 0.3em; margin-bottom: var(--s-md); } }

.hero h1 { color: var(--primary); margin-bottom: 16px; }
.hero p { color: var(--on-surface-variant); max-width: 600px; margin: 0 auto; font-size: 16px; }
@media (min-width: 768px) { .hero p { font-size: 18px; } }

.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
@media (min-width: 768px) { .hero-cta { gap: var(--s-md); margin-top: var(--s-lg); } }

/* ---------- page hero (smaller) ---------- */
.page-hero {
  position: relative;
  height: 240px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-strong);
  text-align: center;
  background: var(--surface-container-lowest);
}
@media (min-width: 768px) { .page-hero { height: 320px; } }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,19,19,0.4) 0%, rgba(19,19,19,0.95) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding: 0 var(--m-mobile); }
.page-hero h1 { color: var(--primary); }
.page-hero p { color: var(--on-surface-variant); margin-top: 12px; font-size: 15px; }
@media (min-width: 768px) { .page-hero p { font-size: 18px; } }

.page-hero-logo {
  width: 80px; height: 80px;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 20px rgba(244, 195, 0, 0.4));
}
@media (min-width: 768px) { .page-hero-logo { width: 100px; height: 100px; margin-bottom: 20px; } }

/* ---------- form fields ---------- */
.field { display: block; margin-bottom: 20px; }
@media (min-width: 768px) { .field { margin-bottom: var(--s-md); } }
.field label {
  display: block; color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .field label { font-size: 12px; } }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface-container-high);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 16px;
  color: var(--on-surface);
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  border-radius: var(--r);
  transition: border-color .2s;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-strong);
}
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; gap: var(--s-md); } }

/* ---------- accordion (menu) ---------- */
.accordion-item {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  margin-bottom: 12px;
}
.accordion-trigger {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 18px 20px;
  text-align: left;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background .2s;
  min-height: 56px;
}
@media (min-width: 768px) {
  .accordion-trigger { font-size: 24px; padding: var(--s-md); }
}
.accordion-trigger:hover { background: var(--surface-container); }
.accordion-item.open .chevron { transform: rotate(180deg); }
.chevron { color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  border-top: 1px solid rgba(244,195,0,0.3);
}
.accordion-item.open .accordion-content { max-height: 5000px; }
.accordion-body {
  padding: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .accordion-body { padding: var(--s-md); gap: var(--s-gutter); grid-template-columns: 1fr 1fr; }
}

.menu-item {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(154,144,120,0.15);
}
.menu-item:last-child { border-bottom: none; padding-bottom: 0; }

.menu-item-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.menu-item-name {
  color: var(--on-surface);
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em;
  line-height: 1.2;
}
@media (min-width: 768px) { .menu-item-name { font-size: 18px; } }
.menu-item-price {
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  white-space: nowrap; flex-shrink: 0;
}
@media (min-width: 768px) { .menu-item-price { font-size: 14px; } }
.menu-item-desc {
  color: var(--on-surface-variant);
  font-size: 13px; font-style: italic; line-height: 1.5;
}
@media (min-width: 768px) { .menu-item-desc { font-size: 14px; } }
.menu-item-note {
  color: var(--outline);
  font-size: 11px; margin-top: 4px;
  font-style: normal;
}
@media (min-width: 768px) { .menu-item-note { font-size: 12px; } }
.chip {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface-container-highest);
  color: var(--primary);
  border: 1px solid rgba(244,195,0,0.4);
  margin-right: 4px; margin-top: 4px;
}

/* ---------- search bar ---------- */
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--outline); pointer-events: none; width: 20px; height: 20px; }
.search-wrap input {
  width: 100%;
  background: var(--surface-container);
  border: 1px solid rgba(154,144,120,0.3);
  padding: 14px 16px 14px 48px;
  color: var(--on-surface);
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  border-radius: var(--r);
  min-height: 48px;
}
@media (min-width: 768px) { .search-wrap input { font-size: 16px; } }
.search-wrap input:focus { outline: none; border-color: var(--primary-strong); }
.search-wrap input::placeholder { color: var(--outline); }

/* ---------- timeline / about ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--primary-strong); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; background: var(--primary-strong); border: 3px solid var(--background); border-radius: 50%; }
@media (min-width: 768px) {
  .timeline { padding-left: 32px; }
  .timeline-item::before { left: -38px; width: 14px; height: 14px; }
  .timeline-item { padding-bottom: var(--s-lg); }
}
.timeline-year { color: var(--primary); font-family: 'Anton', sans-serif; font-size: 20px; margin-bottom: 4px; }
@media (min-width: 768px) { .timeline-year { font-size: 22px; } }
.timeline-text { color: var(--on-surface-variant); font-size: 15px; }
@media (min-width: 768px) { .timeline-text { font-size: 16px; } }

/* ---------- contact info block ---------- */
.info-block { padding: 20px; border-left: 4px solid var(--primary-strong); background: var(--surface-container-low); margin-bottom: 12px; }
@media (min-width: 768px) { .info-block { padding: var(--s-md); margin-bottom: var(--s-md); } }
.info-block .label { color: var(--primary); font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
@media (min-width: 768px) { .info-block .label { font-size: 12px; } }
.info-block .value { color: var(--on-surface); font-size: 16px; }
@media (min-width: 768px) { .info-block .value { font-size: 18px; } }
.info-block .value a:hover { color: var(--primary); }

/* ---------- hours ---------- */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(154,144,120,0.15); font-size: 14px; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:last-child { color: var(--primary); font-weight: 700; }

/* ---------- map placeholder ---------- */
.map-placeholder {
  width: 100%;
  min-height: 280px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .map-placeholder { min-height: 360px; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* reveal variants */
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .7s, transform .7s; }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s, transform .7s; }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.92); transition: opacity .7s, transform .7s; }
.reveal-zoom.in { opacity: 1; transform: scale(1); }

/* per-item stagger via CSS variable (set inline as style="--i:0|1|2…") */
.reveal[style*="--i"],
.reveal-left[style*="--i"],
.reveal-right[style*="--i"],
.reveal-zoom[style*="--i"] {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- keyframes ---------- */
@keyframes gold-pulse {
  0%, 100% { filter: drop-shadow(0 4px 24px rgba(244, 195, 0, 0.35)); }
  50%      { filter: drop-shadow(0 4px 32px rgba(244, 195, 0, 0.7)); }
}
@keyframes ken-burns {
  0%   { transform: scale(1.02) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1.5%, -1%); }
  100% { transform: scale(1.02) translate(0, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}
@keyframes underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes accordion-down {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 800px; opacity: 1; }
}
@keyframes nav-blur-in {
  from { background: transparent; backdrop-filter: blur(0); }
  to   { background: rgba(19,19,19,0.6); backdrop-filter: blur(12px); }
}
@keyframes mobile-menu-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ---------- hero animations ---------- */
.hero-bg img { animation: ken-burns 24s ease-in-out infinite; }
.hero-logo { animation: gold-pulse 4s ease-in-out infinite; }

.hero-eyebrow,
.hero-content h1,
.hero-content > p,
.hero-content .hero-cta,
.page-hero-logo,
.page-hero h1,
.page-hero p {
  animation: fade-up .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
.page-hero-logo { animation-delay: 0ms; }
.hero-logo      { animation-delay: 0ms; }
.hero-eyebrow   { animation-delay: 200ms; }
.hero-content h1 { animation-delay: 350ms; }
.hero-content > p { animation-delay: 500ms; }
.hero-content .hero-cta { animation-delay: 650ms; }
.page-hero h1   { animation-delay: 200ms; }
.page-hero p    { animation-delay: 380ms; }

/* ---------- nav animations ---------- */
.nav.scrolled { animation: nav-blur-in .4s forwards; }
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ---------- button shine ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.btn:hover::before { animation: shine .9s ease forwards; }
.btn { transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }

/* ---------- card hover lift ---------- */
.card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--primary-strong) inset;
}
.card-beam { transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.card-beam:hover { background: var(--surface-container); }

/* ---------- social icon hover ---------- */
.social { transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.social:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--primary-strong);
  color: var(--on-primary);
}

/* ---------- footer link hover (slide-in underline) ---------- */
.footer a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  transition: color .2s ease, transform .25s ease;
}
.footer a::before {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width .3s cubic-bezier(.2, .8, .2, 1);
}
.footer a:hover { color: var(--primary); transform: translateX(4px); }
.footer a:hover::before { width: 100%; }

/* ---------- section heading rule (decorative section-title bar) ---------- */
.section-title .rule { transform: scaleX(0); transform-origin: center; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.section-title.in .rule,
.reveal.in .section-title .rule { transform: scaleX(1); }

/* ---------- value-prop / signature card image float ---------- */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim:nth-child(2n) { animation-delay: -1.5s; }
.float-anim:nth-child(3n) { animation-delay: -3s; }

/* ---------- form field focus glow ---------- */
.field input,
.field select,
.field textarea {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 195, 0, 0.18);
  outline: none;
}

/* ---------- accordion chevron rotation ---------- */
.accordion-trigger { transition: background .2s ease; }
.accordion-trigger:hover { background: var(--surface-container); }

/* ---------- mobile menu open animation ---------- */
.mobile-menu { transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  opacity: 0;
  transform: translateX(16px);
  animation: fade-up .5s ease forwards;
}
.mobile-menu.open a:nth-child(1) { animation-delay: 80ms; }
.mobile-menu.open a:nth-child(2) { animation-delay: 140ms; }
.mobile-menu.open a:nth-child(3) { animation-delay: 200ms; }
.mobile-menu.open a:nth-child(4) { animation-delay: 260ms; }
.mobile-menu.open a:nth-child(5) { animation-delay: 320ms; }
.mobile-menu.open a:nth-child(6) { animation-delay: 380ms; }
.mobile-menu.open a:nth-child(7) { animation-delay: 440ms; }

/* ---------- spinner helper (for loading states) ---------- */
.spin { animation: spin-slow 1.2s linear infinite; }

/* ---------- decorative bar that grows on scroll into view ---------- */
.bar-grow {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.bar-grow.in { transform: scaleX(1); }

/* ---------- decorative section title ---------- */
.section-title { text-align: center; margin-bottom: 32px; }
@media (min-width: 768px) { .section-title { margin-bottom: var(--s-lg); } }
.section-title h2 { color: var(--primary); }
.section-title .eyebrow { color: var(--on-surface-variant); display: block; margin-bottom: 12px; }
.section-title .rule { width: 60px; height: 3px; background: var(--primary-strong); margin: 16px auto 0; }

/* small icon helpers */
.icon-sm { width: 18px; height: 18px; vertical-align: middle; }

/* prefers-reduced-motion */
@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; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
  .hero-logo { animation: none; }
  .nav.scrolled { animation: none; background: rgba(19,19,19,0.6); backdrop-filter: blur(12px); }
  .btn::before { display: none; }
  .footer a::before { display: none; }
  .bar-grow { transform: scaleX(1); }
  .section-title .rule { transform: scaleX(1); }
}

/* visually hidden (accessible labels) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
