/* ==========================================================================
   GoldATM Global Styles
   Applied to all pages: PriceTicker, Nav, Footer, body defaults.
   Depends on goldatm-tokens.css for CSS custom properties.
   ========================================================================== */

/* ---------- Body defaults ---------- */
html,
body {
  background-color: var(--dark, #0D0D0D);
  overscroll-behavior-y: none;
}

body {
  color: var(--cream, #F5F0E8);
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
}

/* ==========================================================================
   PRICE TICKER
   ========================================================================== */
.goldatm-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  height: var(--ticker-height, 36px);
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid rgba(200, 168, 78, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Shift ticker below WP admin bar when logged in */
.admin-bar .goldatm-ticker {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.goldatm-ticker__inner {
  max-width: 1400px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.goldatm-ticker__group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goldatm-ticker__label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  font-weight: 400;
}

.goldatm-ticker__price {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream, #F5F0E8);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.goldatm-ticker__price--flash-up {
  color: var(--green, #4ADE80);
}

.goldatm-ticker__price--flash-down {
  color: var(--red, #F87171);
}

.goldatm-ticker__change {
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 3px;
}

.goldatm-ticker__change--up {
  color: var(--green, #4ADE80);
}

.goldatm-ticker__change--down {
  color: var(--red, #F87171);
}

.goldatm-ticker__arrow {
  font-size: 7px;
}

.goldatm-ticker__gb-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold, #C8A84E);
  font-variant-numeric: tabular-nums;
}

.goldatm-ticker__unit {
  font-size: 10px;
  color: rgba(245, 240, 232, 0.25);
}

.goldatm-ticker__divider {
  width: 1px;
  height: 16px;
  background: rgba(200, 168, 78, 0.15);
}

.goldatm-ticker__shop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #C8A84E);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  opacity: 0.7;
}

.goldatm-ticker__shop:hover {
  opacity: 1;
  color: var(--gold, #C8A84E);
  text-decoration: none;
}

/* Mobile ticker */
@media (max-width: 768px) {
  .goldatm-ticker__inner {
    padding: 0 16px;
    gap: 16px;
  }

  .goldatm-ticker__label {
    font-size: 9px;
  }

  .goldatm-ticker__price {
    font-size: 12px;
  }

  .goldatm-ticker__gb-price {
    font-size: 12px;
  }

  .goldatm-ticker__change {
    font-size: 9px;
  }

  .goldatm-ticker__arrow {
    font-size: 6px;
  }

  .goldatm-ticker__group {
    gap: 8px;
  }
}

/* ==========================================================================
   PUSH CONTENT DOWN FOR TICKER + NAV
   Using margin on the page wrapper instead of body padding prevents
   elastic overscroll from exposing a gap behind the fixed header.
   ========================================================================== */
.tm-page {
  margin-top: var(--header-total-height, 112px); /* ticker 36 + desktop nav 76 */
}

/* Mobile: ticker 36 + mobile nav 64 = 100 */
@media (max-width: 960px) {
  .tm-page {
    margin-top: 100px;
  }
}

/* ==========================================================================
   NAVBAR OVERRIDES (UIkit / YooTheme)
   ========================================================================== */

/* Push navbar down by ticker height */
.tm-header,
.tm-headerbar,
#tm-header {
  top: var(--ticker-height, 36px) !important;
}

/* Shift nav below admin bar + ticker when logged in */
.admin-bar .tm-header,
.admin-bar .tm-headerbar,
.admin-bar #tm-header {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--ticker-height, 36px)) !important;
}

/* Fixed header */
.tm-header {
  position: fixed !important;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-bottom-color 0.4s ease, backdrop-filter 0.4s ease, transform 0.3s ease;
}

/* Hide header on scroll-down, show on scroll-up */
.tm-header.header--hidden {
  transform: translateY(-100%);
}

/* Navbar container — always dark */
.uk-navbar-container,
.tm-header .uk-navbar-container {
  background: rgba(13, 13, 13, 0.96) !important;
  border-bottom: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

/* Navbar height */
.uk-navbar-container .uk-navbar {
  min-height: 76px;
}

/* Nav items */
.uk-navbar-nav > li > a {
  color: rgba(245, 240, 232, 0.6) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 12px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s !important;
  min-height: 76px;
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
  color: var(--gold, #C8A84E) !important;
}

/* Nav logo */
.uk-navbar-item .uk-logo img,
.uk-logo img {
  height: 28px;
  filter: brightness(1.1);
}

/* Shop link (separated with border) */
.uk-navbar-nav > li:last-child > a {
  color: var(--gold, #C8A84E) !important;
  font-weight: 500;
  border-left: 1px solid rgba(200, 168, 78, 0.2);
  padding-left: 32px !important;
  margin-left: 16px;
}

/* Dropdown menus */
.uk-navbar-dropdown {
  background: var(--charcoal, #1A1A1A) !important;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.uk-navbar-dropdown-nav > li > a {
  color: rgba(245, 240, 232, 0.6) !important;
  font-size: 13px;
}

.uk-navbar-dropdown-nav > li > a:hover,
.uk-navbar-dropdown-nav > li.uk-active > a {
  color: var(--gold, #C8A84E) !important;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 768px) {
  .uk-navbar-container .uk-navbar {
    min-height: 64px;
  }

  .uk-navbar-nav > li > a {
    min-height: 64px;
  }

  .uk-logo img {
    height: 22px;
  }
}

/* Mobile offcanvas / dialog — ID selector to override old LESS theme */
#tm-dialog-mobile.uk-offcanvas .uk-offcanvas-bar,
#tm-dialog-mobile.uk-dropbar,
.uk-offcanvas-bar,
.tm-header-mobile ~ .uk-offcanvas .uk-offcanvas-bar {
  background: rgba(13, 13, 13, 0.98) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px 24px;
}

/* Mobile nav links */
#tm-dialog-mobile .uk-nav > li > a,
.uk-offcanvas-bar .uk-nav > li > a {
  color: var(--cream, #F5F0E8) !important;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  font-weight: 300;
  padding: 18px 0;
  border-bottom: 1px solid rgba(200, 168, 78, 0.06);
  transition: color 0.3s;
}

#tm-dialog-mobile .uk-nav > li.uk-active > a,
#tm-dialog-mobile .uk-nav > li > a:hover,
.uk-offcanvas-bar .uk-nav > li.uk-active > a,
.uk-offcanvas-bar .uk-nav > li > a:hover {
  color: var(--gold, #C8A84E) !important;
}

/* Mobile hamburger */
.uk-navbar-toggle {
  color: var(--cream, #F5F0E8) !important;
}

.uk-navbar-toggle:hover {
  color: var(--gold, #C8A84E) !important;
}

/* ==========================================================================
   FOOTER OVERRIDES (UIkit / YooTheme)
   ========================================================================== */
.tm-footer,
footer.uk-section,
.uk-section-default + .uk-section-default.tm-footer,
footer {
  background: var(--dark, #0D0D0D) !important;
  border-top: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  padding: 80px 40px 40px;
}

/* Footer headings (column titles) */
.tm-footer h3,
.tm-footer h4,
.tm-footer .uk-h3,
.tm-footer .uk-h4,
footer h3,
footer h4 {
  font-size: 11px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #C8A84E) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-weight: 500;
  margin-bottom: 18px;
}

/* Footer body text */
.tm-footer p,
footer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
  font-weight: 300;
}

/* Footer links */
.tm-footer a,
footer a:not(.uk-button),
.tm-footer .uk-list a,
.tm-footer .uk-nav a {
  font-size: 13px;
  color: var(--text-dim, rgba(245, 240, 232, 0.35)) !important;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}

.tm-footer a:hover,
footer a:not(.uk-button):hover,
.tm-footer .uk-list a:hover,
.tm-footer .uk-nav a:hover {
  color: var(--cream, #F5F0E8) !important;
}

/* Footer logo */
.tm-footer .uk-logo img,
footer .uk-logo img {
  height: 24px;
  filter: brightness(1.1);
  margin-bottom: 20px;
}

/* Footer social icons */
.tm-footer .uk-icon-button,
footer .uk-icon-button {
  background: transparent !important;
  border: none !important;
  color: rgba(245, 240, 232, 0.3) !important;
  transition: color 0.3s;
}

.tm-footer .uk-icon-button:hover,
footer .uk-icon-button:hover {
  color: var(--gold, #C8A84E) !important;
}

.tm-footer .uk-iconnav > * > a,
footer .uk-iconnav > * > a {
  color: rgba(245, 240, 232, 0.3) !important;
  transition: color 0.3s;
}

.tm-footer .uk-iconnav > * > a:hover,
footer .uk-iconnav > * > a:hover {
  color: var(--gold, #C8A84E) !important;
}

/* Footer bottom bar */
.tm-footer .uk-section-default,
footer .footer-end {
  border-top: 1px solid rgba(200, 168, 78, 0.06);
  padding-top: 24px;
  margin-top: 64px;
}

.tm-footer .uk-text-small,
footer .uk-text-small,
.tm-footer .footer-end {
  font-size: 11px;
  color: rgba(245, 240, 232, 0.2);
}

.tm-footer .footer-end a,
footer .footer-end a {
  font-size: 11px !important;
  color: rgba(245, 240, 232, 0.2) !important;
}

.tm-footer .footer-end a:hover,
footer .footer-end a:hover {
  color: rgba(245, 240, 232, 0.4) !important;
}

/* Footer grid */
@media (max-width: 768px) {
  .tm-footer,
  footer.uk-section {
    padding: 60px 20px 32px;
  }
}

/* ==========================================================================
   TILE OVERRIDES — kill old green backgrounds
   ========================================================================== */
.uk-tile-default,
.uk-tile-muted,
.uk-tile-primary {
  background: var(--charcoal, #1A1A1A) !important;
  color: var(--cream, #F5F0E8);
}

/* ==========================================================================
   NEWSLETTER BAR (builder component — replaces old green bar)
   ========================================================================== */
.gold-atm-newsletter {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gold-atm-newsletter .gold-atm-newsletter-title {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif) !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--gold, #C8A84E) !important;
  font-weight: 500 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.gold-atm-newsletter .uk-input,
.gold-atm-newsletter input[type="email"] {
  background: var(--mid, #2A2A2A) !important;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1)) !important;
  border-radius: 4px !important;
  color: var(--cream, #F5F0E8) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.3s;
}

.gold-atm-newsletter .uk-input:focus,
.gold-atm-newsletter input[type="email"]:focus {
  border-color: var(--border-gold-hover, rgba(200, 168, 78, 0.3)) !important;
}

.gold-atm-newsletter .uk-input::placeholder,
.gold-atm-newsletter input[type="email"]::placeholder {
  color: var(--text-dim, rgba(245, 240, 232, 0.35)) !important;
}

.gold-atm-newsletter .uk-form-icon {
  color: var(--text-dim, rgba(245, 240, 232, 0.35)) !important;
}

/* Newsletter subscribe button — old YooTheme builder newsletter */
.gold-atm-newsletter .uk-button,
#bt-footer .uk-newsletter-form .uk-button,
#bt-footer .uk-form .uk-button {
  background: rgba(200, 168, 78, 0.1) !important;
  border: 1px solid var(--gold, #C8A84E) !important;
  border-radius: 4px !important;
  color: var(--gold, #C8A84E) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.gold-atm-newsletter .uk-button:hover,
#bt-footer .uk-newsletter-form .uk-button:hover,
#bt-footer .uk-form .uk-button:hover {
  background: var(--gold, #C8A84E) !important;
  color: var(--dark, #0D0D0D) !important;
}

/* YooTheme built-in newsletter form in footer */
#bt-footer .uk-newsletter .uk-input,
#bt-footer .el-newsletter .uk-input {
  background: var(--mid, #2A2A2A) !important;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1)) !important;
  border-radius: 4px !important;
  color: var(--cream, #F5F0E8) !important;
  font-size: 14px;
}

#bt-footer .uk-newsletter .uk-input::placeholder,
#bt-footer .el-newsletter .uk-input::placeholder {
  color: var(--text-dim, rgba(245, 240, 232, 0.35)) !important;
}

/* ==========================================================================
   SECTION OVERRIDES
   ========================================================================== */

/* Default sections — dark background */
.uk-section-default {
  background: var(--dark, #0D0D0D) !important;
  color: var(--cream, #F5F0E8);
}

/* Remove parent section padding on pages with custom content filters
   (homepage, about-goldbacks, partner) — they handle their own spacing. */
.tm-main.uk-section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Hide whitespace-only <p> tags injected by wpautop / YooTheme between
   our custom goldatm sections. These carry margins that create visible gaps.
   Scoped to containers that hold our section markup. */
.uk-margin-medium > p:not([class]):has(~ section[class*="goldatm-"]),
section[class*="goldatm-"] + p:not([class]) {
  display: none;
}

/* Alternating sections — charcoal */
.uk-section-muted {
  background: var(--charcoal, #1A1A1A) !important;
  color: var(--cream, #F5F0E8);
}

.uk-section-primary,
.uk-section-secondary {
  background: var(--charcoal, #1A1A1A) !important;
  color: var(--cream, #F5F0E8);
}

/* Kill green headerbar backgrounds from compiled LESS */
.tm-headerbar,
.tm-headerbar-top,
.tm-headerbar-bottom {
  background: transparent !important;
}

/* Section headings */
.uk-section h1,
.uk-section h2,
.uk-section h3 {
  color: var(--cream, #F5F0E8);
}

/* Text defaults on dark backgrounds */
.uk-section-default .uk-text-muted,
.uk-section-primary .uk-text-muted,
.uk-section-muted .uk-text-muted {
  color: var(--text-muted, rgba(245, 240, 232, 0.5)) !important;
}

/* Links */
a {
  color: var(--gold, #C8A84E);
  transition: color 0.3s;
}

a:hover {
  color: var(--gold-light, #D4B96A);
}

/* Buttons */
.uk-button-primary {
  background: var(--gold, #C8A84E) !important;
  color: var(--dark, #0D0D0D) !important;
  border: none;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.uk-button-primary:hover {
  background: var(--gold-light, #D4B96A) !important;
}

.uk-button-default {
  background: transparent !important;
  border: 1px solid rgba(245, 240, 232, 0.3) !important;
  color: var(--cream, #F5F0E8) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.uk-button-default:hover {
  border-color: var(--cream, #F5F0E8) !important;
}

/* ==========================================================================
   TYPOGRAPHY OVERRIDES
   ========================================================================== */
h1, h2, h3, .uk-h1, .uk-h2, .uk-h3 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 300;
  color: var(--cream, #F5F0E8);
}

h4, h5, h6, .uk-h4, .uk-h5, .uk-h6 {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  color: var(--cream, #F5F0E8);
}

p {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================================================
   NAV BUTTON OVERRIDE
   Ensure the last nav item (Shop) never gets UIkit button styling.
   ========================================================================== */
.uk-navbar-nav > li:last-child > a.uk-button,
.uk-navbar-nav > li:last-child > a[class*="uk-button"] {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  border-left: 1px solid rgba(200, 168, 78, 0.2) !important;
  padding: 0 0 0 32px !important;
  margin-left: 16px;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  box-shadow: none !important;
  outline: none !important;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* ---------- Shared section utilities ---------- */
.goldatm-section-label {
  display: block;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold, #C8A84E);
  font-weight: 400;
  margin-bottom: 24px;
}

.goldatm-section-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream, #F5F0E8);
  margin: 0 0 24px;
}

.goldatm-section-title em {
  font-style: italic;
  color: var(--gold, #C8A84E);
}

/* ---------- Buttons ---------- */
.goldatm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold, #C8A84E);
  color: var(--dark, #0D0D0D) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.goldatm-btn-primary:hover {
  background: var(--gold-light, #D4B96A);
  color: var(--dark, #0D0D0D) !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(200, 168, 78, 0.3);
}

.goldatm-btn-arrow {
  transition: transform 0.3s;
}

.goldatm-btn-primary:hover .goldatm-btn-arrow {
  transform: translateX(3px);
}

.goldatm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--cream, #F5F0E8) !important;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245, 240, 232, 0.3);
  cursor: pointer;
  transition: all 0.35s ease;
}

.goldatm-btn-secondary:hover {
  border-color: var(--cream, #F5F0E8);
  color: var(--cream, #F5F0E8) !important;
  text-decoration: none;
}

/* ---------- Sections ---------- */
.goldatm-section {
  padding: 120px 40px;
}

.goldatm-section--dark {
  background: var(--dark, #0D0D0D);
}

.goldatm-section--charcoal {
  background: var(--charcoal, #1A1A1A);
}

.goldatm-section--lg {
  padding: 140px 40px;
}

.goldatm-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.goldatm-section__inner--narrow {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.goldatm-section__header {
  text-align: center;
  margin-bottom: 56px;
}

.goldatm-section__footer {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Hero ---------- */
.goldatm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 168, 78, 0.08) 0%, transparent 60%),
    var(--dark, #0D0D0D);
}

/* Noise texture overlay */
.goldatm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative gold lines — removed, caused stray visual artifacts */

.goldatm-hero__inner {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.goldatm-hero h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream, #F5F0E8);
  margin: 0 0 28px;
}

.gold-gradient {
  background: linear-gradient(135deg, #D4B96A, #C8A84E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.goldatm-hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 300;
}

.goldatm-hero__ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Value Props ---------- */
.goldatm-value-props {
  background: var(--charcoal, #1A1A1A);
  border-top: 1px solid rgba(200, 168, 78, 0.1);
  border-bottom: 1px solid rgba(200, 168, 78, 0.1);
  padding: 56px 40px;
}

.goldatm-value-props__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.goldatm-value-props__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.goldatm-value-props__icon {
  width: 22px;
  height: 22px;
  color: var(--gold, #C8A84E);
  margin-bottom: 10px;
}

.goldatm-value-props__text {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
}

/* ---------- Split sections ---------- */
.goldatm-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.goldatm-split__content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  margin-bottom: 20px;
  font-weight: 300;
}

.goldatm-split__content .goldatm-section-title {
  margin-bottom: 32px;
}

.goldatm-split__content .goldatm-btn-secondary {
  margin-top: 20px;
}

.goldatm-split__img-wrapper {
  position: relative;
}

.goldatm-split__img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.goldatm-split__img-border {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(200, 168, 78, 0.1);
  pointer-events: none;
}

.goldatm-split__accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(200, 168, 78, 0.1);
}

/* ---------- The Machine ---------- */
.goldatm-machine-section {
  padding: 140px 40px;
  background: linear-gradient(180deg, rgba(200, 168, 78, 0.03) 0%, transparent 100%);
  border-top: 1px solid rgba(200, 168, 78, 0.06);
}

.goldatm-machine-section .goldatm-section__header {
  margin-bottom: 72px;
}

.goldatm-machine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.goldatm-machine__atm {
  background: var(--charcoal, #1A1A1A);
  border-radius: 4px 0 0 4px;
  border: 1px solid rgba(200, 168, 78, 0.1);
  border-right: none;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.goldatm-machine__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse at bottom, rgba(200, 168, 78, 0.1), transparent 70%);
  pointer-events: none;
}

.goldatm-machine__img {
  height: 95%;
  max-height: 560px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.goldatm-machine__steps {
  background: var(--mid, #2A2A2A);
  border-radius: 0 4px 4px 0;
  border: 1px solid rgba(200, 168, 78, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.goldatm-machine__step {
  padding: 24px 0;
  border-bottom: 1px solid rgba(200, 168, 78, 0.06);
  display: flex;
  gap: 20px;
}

.goldatm-machine__step:last-of-type {
  border-bottom: none;
}

.goldatm-machine__step-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #C8A84E);
  font-size: 14px;
  background: rgba(200, 168, 78, 0.04);
}

.goldatm-machine__step-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.goldatm-machine__step-num {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 13px;
  color: var(--gold, #C8A84E);
  opacity: 0.4;
}

.goldatm-machine__step h3 {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--cream, #F5F0E8);
}

.goldatm-machine__step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
  margin: 0;
  font-weight: 300;
}

.goldatm-machine__step-cta {
  margin-top: 28px;
}

/* ---------- Video ---------- */
.goldatm-video-section {
  padding: 0 40px;
  background: var(--dark, #0D0D0D);
}

.goldatm-video-section__header {
  text-align: center;
  padding: 100px 0 48px;
}

.goldatm-video {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(200, 168, 78, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 168, 78, 0.04);
  margin-bottom: 100px;
}

.goldatm-video__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--charcoal, #1A1A1A);
}

.goldatm-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Gold corner accents — only TL and BR per prototype */
.goldatm-video__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.3;
}

.goldatm-video__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--gold, #C8A84E);
  border-left: 2px solid var(--gold, #C8A84E);
  border-radius: 6px 0 0 0;
}

.goldatm-video__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--gold, #C8A84E);
  border-right: 2px solid var(--gold, #C8A84E);
  border-radius: 0 0 6px 0;
}

/* ---------- Stats ---------- */
.goldatm-stats {
  background: var(--charcoal, #1A1A1A);
  padding: 72px 40px;
  border-top: 1px solid rgba(200, 168, 78, 0.1);
  border-bottom: 1px solid rgba(200, 168, 78, 0.1);
}

.goldatm-stats__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.goldatm-stats__number {
  display: block;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--gold, #C8A84E);
  line-height: 1;
  margin-bottom: 8px;
}

.goldatm-stats__label {
  display: block;
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
}

/* ---------- Shop header ---------- */
.goldatm-shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 20px;
}

.goldatm-shop-header .goldatm-section-title {
  margin-bottom: 0;
}

/* ---------- Collection grid ---------- */
.goldatm-collection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.goldatm-collection__card {
  background: var(--mid, #2A2A2A);
  border-radius: 4px;
  border: 1px solid rgba(200, 168, 78, 0.1);
  text-decoration: none;
  color: var(--cream, #F5F0E8);
  display: block;
  overflow: hidden;
  transition: all 0.35s ease;
}

.goldatm-collection__card:hover {
  border-color: rgba(200, 168, 78, 0.3);
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--cream, #F5F0E8);
}

.goldatm-collection__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--charcoal, #1A1A1A);
}

.goldatm-collection__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.goldatm-collection__card:hover .goldatm-collection__img img {
  transform: scale(1.05);
}

.goldatm-collection__info {
  padding: 18px;
}

.goldatm-collection__name {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #F5F0E8);
  display: block;
  margin-bottom: 4px;
}

.goldatm-collection__price {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 13px;
  color: var(--gold, #C8A84E);
}

/* ---------- Partner CTA ---------- */
.goldatm-partner {
  border-top: 1px solid rgba(200, 168, 78, 0.06);
  background: linear-gradient(180deg, transparent, rgba(200, 168, 78, 0.03));
}

.goldatm-partner p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* ---------- Homepage responsive ---------- */
@media (max-width: 960px) {
  .goldatm-section {
    padding: 80px 20px;
  }

  .goldatm-section--lg {
    padding: 80px 20px;
  }

  .goldatm-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .goldatm-value-props__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .goldatm-collection {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .goldatm-stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .goldatm-hero {
    padding: 24px 20px 48px;
    min-height: auto;
  }

  .goldatm-hero h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .goldatm-hero__sub {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .goldatm-value-props {
    padding: 40px 20px;
  }

  .goldatm-stats {
    padding: 48px 20px;
  }

  /* Machine — stack on mobile */
  .goldatm-machine-section {
    padding: 80px 20px;
  }

  .goldatm-machine-section .goldatm-section__header {
    margin-bottom: 48px;
  }

  .goldatm-machine {
    grid-template-columns: 1fr;
  }

  .goldatm-machine__atm {
    border-radius: 4px 4px 0 0;
    border-right: 1px solid rgba(200, 168, 78, 0.1);
    border-bottom: none;
    min-height: 360px;
  }

  .goldatm-machine__steps {
    border-radius: 0 0 4px 4px;
    padding: 36px 24px;
  }

  /* Video — mobile */
  .goldatm-video-section {
    padding: 0 20px;
  }

  .goldatm-video-section__header {
    padding: 60px 0 36px;
  }

  .goldatm-video {
    margin-bottom: 60px;
  }

  /* Shop header — stack on mobile */
  .goldatm-shop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Split accent image — hide on mobile */
  .goldatm-split__accent {
    display: none;
  }
}

@media (max-width: 600px) {
  .goldatm-stats__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .goldatm-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .goldatm-hero__ctas .goldatm-btn-primary,
  .goldatm-hero__ctas .goldatm-btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .goldatm-stats__number {
    font-size: 36px;
  }
}

/* ---------- Accessibility Utilities ---------- */
.goldatm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
