@import url('https://fonts.googleapis.com/css2?family=Rokkitt:wght@400;600;700;800&family=Josefin+Sans:wght@300;400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');

/* ==========================================================================
   1970s Hi-Fi Design Tokens
   ========================================================================== */
:root {
  /* Palette: warm walnut cabinet, matte amp-dial orange, aged sleeve paper */
  --color-cream:        #F1E4C6; /* aged record-sleeve cream (page bg) */
  --color-paper:         #FAF2DF; /* lighter card / surface paper */
  --color-walnut:        #4B3322; /* deep cabinet walnut */
  --color-walnut-light:  #8C6239; /* veneer highlight / borders */
  --color-orange:        #C8601E; /* matte vintage amp-dial orange */
  --color-orange-dark:   #A14E16; /* pressed / hover state */
  --color-charcoal:      #241F1A; /* heavy text, record-black */
  --color-brass:         #A9824A; /* brass hardware, fine dividers */
  --color-neon:          #FF6A3D; /* neon sign glow */
  --color-neon-soft:     #FFB088;

  --font-display: 'Rokkitt', serif;
  --font-main: 'Josefin Sans', sans-serif;
  --font-mono: 'Courier Prime', monospace;

  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 6rem;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 28px rgba(36, 31, 26, 0.14);
  --shadow-hover: 0 16px 38px rgba(36, 31, 26, 0.22);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--color-cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(200, 96, 30, 0.07), transparent 45%),
    radial-gradient(circle at 92% 78%, rgba(75, 51, 34, 0.08), transparent 45%);
  color: var(--color-charcoal);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  font-size: 1.05rem;
}

/* subtle woodgrain-style texture, not a filter on photos */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    178deg,
    rgba(75, 51, 34, 0.5) 0px,
    rgba(75, 51, 34, 0.5) 1px,
    transparent 1px,
    transparent 5px
  );
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 3px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--color-walnut);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1.5rem; font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange-dark);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--spacing-lg) 0; }
.section-sm { padding: var(--spacing-md) 0; }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  background-color: var(--color-walnut);
  color: var(--color-paper);
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  border: 2px solid var(--color-walnut);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 20px rgba(36, 31, 26, 0.22);
  transform: translateY(0);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn:hover {
  background-color: var(--color-walnut-light);
  border-color: var(--color-walnut-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(36, 31, 26, 0.26);
}
.btn-gold {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-paper);
}
.btn-gold:hover {
  background-color: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
}

/* Image Placeholders */
.img-placeholder {
  background-color: var(--color-walnut-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-placeholder img,
.img-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform var(--transition-spring);
}
.card:hover .img-placeholder img,
.card:hover .img-placeholder video { transform: scale(1.045); }

/* ==========================================================================
   Vinyl Loading Screen (signature moment)
   ========================================================================== */
.vinyl-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms ease, visibility 700ms ease;
}
.vinyl-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-rig {
  position: relative;
  width: 230px;
  height: 230px;
}
.loader-platter {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, #2c241d 0 40%, #1c1612 41% 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.loader-record {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(241, 228, 198, 0.05) 0 2px, transparent 2px 5px),
    radial-gradient(circle, #161210 0 18%, #0e0c0a 19% 100%);
  animation: loaderSpin 1.8s linear infinite;
  box-shadow: 0 0 0 1px rgba(241,228,198,0.04) inset;
}
.loader-record::after {
  content: '';
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(20,16,13,0.6) inset;
}
.loader-record::before {
  content: '';
  position: absolute;
  inset: 47%;
  border-radius: 50%;
  background: var(--color-charcoal);
}
.loader-tonearm {
  position: absolute;
  top: -30px;
  right: -60px;
  width: 12px;
  height: 150px;
  transform-origin: top center;
  /* positive rotation = arm tip swings RIGHT (away from record) = resting/lifted */
  transform: rotate(22deg);
  transition: transform 1s cubic-bezier(0.3, 0, 0.2, 1);
  animation: armDrop 1.4s 0.5s cubic-bezier(0.3, 0, 0.2, 1) both;
}
.loader-tonearm::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 26px; height: 26px;
  background: var(--color-brass);
  border-radius: 50%;
  transform: translateX(-50%);
}
.loader-tonearm::after {
  content: '';
  position: absolute;
  top: 12px; left: calc(50% - 3px);
  width: 6px; height: 132px;
  background: linear-gradient(180deg, var(--color-brass), #5b4a30);
  border-radius: 3px;
}
@keyframes armDrop {
  /* tip swings FROM right of record (positive = clockwise) TO outer groove (negative = counterclockwise) */
  from { transform: rotate(22deg); }
  to   { transform: rotate(-25deg); }
}
.vinyl-loader.is-lifted .loader-tonearm { animation: none; transform: rotate(22deg); }
.loader-label-wrapper {
  position: absolute;
  bottom: -52px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.loader-label {
  font-family: var(--font-mono);
  color: var(--color-cream);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.75;
}
.loader-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(241, 228, 198, 0.2);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
  flex-shrink: 0;
  opacity: 0.85;
}
@keyframes loaderSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================================================
   Top status bar + Neon Sign
   ========================================================================== */
.status-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1001;
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow: hidden; /* clips the scrolling marquee-content */
}
.marquee-track {
  padding: 0.45rem 0;
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
/* Span containing the address and the open/closed status; duplicated in JS so
   the loop is seamless (the track scrolls exactly one copy width). */
.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0 2rem;
}
.status-tagline {
  opacity: 0.75;
  letter-spacing: 0.03em;
}
.status-sep {
  opacity: 0.35;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.neon-sign { display: inline-flex; align-items: center; gap: 0.5rem; }
.neon-sign .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 8px var(--color-neon), 0 0 14px var(--color-neon);
}
.neon-sign.is-open .neon-text {
  color: var(--color-neon-soft);
  text-shadow: 0 0 6px var(--color-neon), 0 0 16px rgba(255,106,61,0.7), 0 0 28px rgba(255,106,61,0.45);
  animation: neonFlicker 3.4s infinite;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.neon-sign.is-closed .dot { background: var(--color-brass); box-shadow: none; }
.neon-sign.is-closed .neon-text { color: var(--color-cream); opacity: 0.8; }
@keyframes neonFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  95% { opacity: 0.9; }
  96% { opacity: 0.3; }
  97% { opacity: 1; }
}

/* ==========================================================================
   Navigation (record-icon, scroll-synced rotation)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 32px; left: 0; width: 100%;
  background-color: var(--color-cream);
  padding: 0.7rem 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(75, 51, 34, 0.12);
}
.navbar.scrolled {
  background-color: rgba(241, 228, 198, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(36,31,26,0.08);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-record {
  width: 46px; height: 46px;
  flex-shrink: 0;
  transform: rotate(0deg);
  will-change: transform;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-walnut);
  line-height: 1.1;
}
.logo-wordmark span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--color-orange-dark);
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-weight: 600; position: relative; color: var(--color-charcoal); }
.nav-links .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(36,31,26,0.12);
  transform: none;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background-color: var(--color-orange); transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span { width: 28px; height: 3px; background-color: var(--color-charcoal); transition: var(--transition); border-radius: 2px; }
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
    background-color: var(--color-walnut); flex-direction: column;
    justify-content: center; align-items: center; transition: var(--transition);
  }
  .nav-links li a.btn { display: inline-block; width: auto; padding: 0.9rem 1.6rem; font-size: 1.05rem; }
  .nav-links.active { left: 0; }
  .nav-links a { color: var(--color-cream); font-size: 1.7rem; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--color-cream); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--color-cream); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  height: 88vh;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-walnut); z-index: -2; }
.hero-bg .img-placeholder { border-radius: 0; min-height: 100%; height: 100%; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg img { animation: kenBurns 22s infinite alternate linear; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(36,31,26,0.78), rgba(36,31,26,0.55) 55%, rgba(36,31,26,0.82)); z-index: -1; }
.hero-content { color: var(--color-cream); text-align: center; max-width: 800px; margin: 0 auto; padding-top: 70px; }
.hero-content h1 { color: var(--color-cream); }
.hero-content p { color: rgba(241, 228, 198, 0.88); }

@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.14); } }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity var(--transition-spring), transform var(--transition-spring);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-paper);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 51, 34, 0.08);
  transition: transform var(--transition-spring), box-shadow var(--transition-spring);
  height: 100%;
  position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card .img-placeholder { height: 240px; margin-bottom: 1.5rem; }

/* ==========================================================================
   Stats (typewriter / mono numbers)
   ========================================================================== */
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-orange-dark);
}
.stat-block p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-walnut-light);
  margin-bottom: 0;
}

/* ==========================================================================
   Now Spinning widget
   ========================================================================== */
.now-spinning {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--color-walnut);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.ns-platter {
  position: relative;
  width: 96px; height: 96px;
  flex-shrink: 0;
}
.ns-record {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(241,228,198,0.06) 0 2px, transparent 2px 5px),
    radial-gradient(circle, #15110e 0 18%, #0c0a08 19% 100%);
  animation: nsSpin 4.5s linear infinite;
}
.ns-record::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: var(--color-orange); }
.ns-arm {
  position: absolute;
  top: -8px; right: -18px;
  width: 8px; height: 64px;
  background: linear-gradient(180deg, var(--color-brass), #5b4a30);
  border-radius: 3px;
  transform-origin: top center;
  transform: rotate(18deg);
}
.ns-arm::before { content: ''; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--color-brass); transform: translateX(-50%); }
@keyframes nsSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ns-text .eyebrow { color: var(--color-neon-soft); }
.ns-text h3 { color: var(--color-cream); margin-bottom: 0.2rem; }
.ns-text p { color: rgba(241,228,198,0.75); margin-bottom: 0; font-family: var(--font-mono); font-size: 0.9rem; }

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-banner { background-color: var(--color-orange); padding: var(--spacing-md) 0; text-align: center; }
.cta-banner h2 { color: var(--color-charcoal); margin-bottom: 1.2rem; }
.cta-banner p { color: rgba(36,31,26,0.82); }

.footer { background-color: var(--color-walnut); color: var(--color-cream); padding: var(--spacing-lg) 0 var(--spacing-sm); }
.footer h4 { color: var(--color-cream); margin-bottom: 1.4rem; font-size: 1.1rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.footer a { color: rgba(241,228,198,0.85); }
.footer a:hover { color: var(--color-orange); }
.footer-grid { margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo .logo-record { width: 38px; height: 38px; }
.footer-logo span { font-family: var(--font-display); font-weight: 700; color: var(--color-cream); font-size: 1.1rem; }
.footer p { color: rgba(241,228,198,0.75); }
.social-icons { display: flex; gap: 1rem; margin-top: 1.2rem; }
.social-icons a { display: flex; width: 38px; height: 38px; border-radius: 50%; background: rgba(241,228,198,0.1); align-items: center; justify-content: center; color: var(--color-cream); }
.social-icons a:hover { background: var(--color-orange); color: var(--color-charcoal); }
.social-icons a svg { width: 17px; height: 17px; }

.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; border-top: 1px solid rgba(241,228,198,0.2); padding-top: 1rem; font-family: var(--font-mono); font-size: 0.9rem; }
.footer .hours-grid strong { color: var(--color-orange); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(241,228,198,0.15); padding-top: 1.6rem; font-size: 0.85rem; }
.footer-bottom p { color: rgba(241,228,198,0.6); margin-bottom: 0; }
/* "Built by" credit button + contact card (a native <dialog>) */
.credit-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--color-cream); color: var(--color-charcoal);
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font-main); text-align: left;
  transition: background-color 200ms ease, transform 200ms ease;
}
.credit-btn:hover { background: #fff; transform: translateY(-1px); }
.credit-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-walnut); color: var(--color-cream);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.credit-text { display: flex; flex-direction: column; line-height: 1.1; }
.credit-by { font-size: 0.7rem; color: rgba(36,31,26,0.6); }
.credit-name { font-size: 0.92rem; font-weight: 700; }

/* The card lives inside .footer, so rules are scoped under .credit-card to
   beat the footer's cream text colours for p and a. */
.credit-card {
  margin: auto;
  width: min(360px, calc(100% - 32px));
  padding: 2.2rem 1.6rem 1.6rem;
  border: none; border-radius: var(--radius-lg);
  background: var(--color-paper); color: var(--color-charcoal);
  box-shadow: 0 24px 60px rgba(36,31,26,0.35);
  text-align: center; font-size: 1rem;
}
.credit-card[open] { animation: popIn 320ms cubic-bezier(0.3,1.4,0.4,1); }
.credit-card::backdrop { background: rgba(36,31,26,0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.credit-card .credit-avatar {
  width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-orange); color: var(--color-paper);
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 0 0 5px rgba(200,96,30,0.15);
}
.credit-card h3 { font-size: 1.6rem; margin-bottom: 0.25rem; color: var(--color-walnut); }
.credit-card .credit-role {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-orange-dark); margin-bottom: 1.4rem;
}
.credit-card .credit-links { display: grid; gap: 0.6rem; }
.credit-card .credit-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1rem; border-radius: var(--radius);
  background: var(--color-cream); border: 1px solid rgba(75,51,34,0.14);
  color: var(--color-walnut); font-weight: 600; text-align: left; overflow-wrap: anywhere;
  transition: border-color 200ms ease, transform 200ms ease;
}
.credit-card .credit-link:hover { color: var(--color-walnut); border-color: var(--color-orange); transform: translateY(-1px); }
.credit-card .credit-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-orange-dark); }
.credit-card .credit-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--color-walnut); cursor: pointer;
}
.credit-card .credit-close:hover { background: rgba(75,51,34,0.08); }
.credit-card .credit-close svg { width: 18px; height: 18px; }

/* Analog Crackle toggle (footer easter egg) */
.crackle-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.crackle-toggle .switch {
  position: relative;
  width: 50px; height: 26px;
  flex-shrink: 0;
}
.crackle-toggle .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.crackle-toggle .switch .track {
  position: absolute; inset: 0;
  background: rgba(241,228,198,0.15);
  border: 1px solid rgba(241,228,198,0.3);
  border-radius: 14px;
  transition: var(--transition);
}
.crackle-toggle .switch .knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-brass);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.crackle-toggle .switch input:checked + .track { background: rgba(200,96,30,0.45); border-color: var(--color-orange); }
.crackle-toggle .switch input:checked ~ .knob { transform: translateX(24px); background: var(--color-orange); }
.crackle-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(241,228,198,0.65); text-transform: uppercase; }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-layout { align-items: start; }
.contact-details { margin: 2rem 0 1.5rem; }
.contact-actions { display: grid; grid-template-columns: 1fr; gap: 0.8rem; max-width: 420px; }
.contact-cta {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.2rem; border-radius: var(--radius);
  border: 1px solid rgba(75,51,34,0.16);
  background: var(--color-paper);
  box-shadow: 0 6px 16px rgba(36,31,26,0.08);
  transition: transform 200ms ease, border-color 200ms ease;
}
.contact-cta:hover { transform: translateY(-2px); border-color: var(--color-orange); }
.contact-cta-label { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-walnut-light); display: block; }
.contact-cta-value { font-weight: 600; color: var(--color-walnut); display: block; }
.contact-cta svg { width: 18px; height: 18px; color: var(--color-orange-dark); flex-shrink: 0; }

/* Grouped social media element — Facebook + Instagram together */
.contact-social { justify-content: space-between; }
.contact-social-links { display: flex; gap: 0.55rem; flex-shrink: 0; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-walnut); color: var(--color-cream);
  transition: transform 200ms ease, background-color 200ms ease;
}
.social-btn:hover { background: var(--color-orange); transform: translateY(-2px); }
.contact-social .social-btn svg { width: 18px; height: 18px; color: currentColor; }
.contact-address { margin-top: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.contact-address svg { width: 18px; height: 18px; color: var(--color-orange-dark); }
.compact-hours { max-width: 420px; padding: 1.2rem 1.3rem; }
.compact-hours .hours-grid { color: var(--color-charcoal); border-top: 1px solid rgba(75,51,34,0.15); gap: 0.35rem 0.9rem; }
.compact-hours .hours-grid strong { color: var(--color-orange-dark); }

.map-container {
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  padding: 16px;
  box-shadow: var(--shadow);
}
.map-frame { border-radius: var(--radius); overflow: hidden; height: 400px; border: 5px solid var(--color-walnut-light); position: relative; }
.map-container .map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 768px) {
  .compact-hours, .contact-actions { max-width: 100%; }
  .map-frame { height: 300px; }
}

/* ==========================================================================
   Wishlist Page (forms)
   ========================================================================== */
.wishlist-tabs {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.wishlist-tab-btn {
  background: var(--color-paper);
  border: 2px solid rgba(75,51,34,0.2);
  padding: 0.8rem 1.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-walnut);
  transition: var(--transition);
}
.wishlist-tab-btn.active, .wishlist-tab-btn:hover {
  background: var(--color-walnut);
  border-color: var(--color-walnut);
  color: var(--color-cream);
}
.wishlist-panel { display: none; }
.wishlist-panel.active { display: block; }

.form-card { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-walnut-light);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(75,51,34,0.25);
  border-radius: 8px;
  background: var(--color-cream);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: var(--color-paper);
  box-shadow: 0 0 0 3px rgba(200,96,30,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }

.dropzone {
  border: 2px dashed rgba(75,51,34,0.3);
  border-radius: 10px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  cursor: pointer;
  background: var(--color-cream);
  transition: var(--transition);
}
.dropzone.is-dragover { border-color: var(--color-orange); background: rgba(200,96,30,0.06); }
.dropzone input[type="file"] { display: none; }
.dropzone-icon { font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--color-orange-dark); }
.dropzone-hint { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-walnut-light); margin-bottom: 0; }
.dropzone-filelist { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-walnut); text-align: left; }
.dropzone-filelist li { padding: 0.2rem 0; }

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-walnut-light); margin-top: 0.8rem; margin-bottom: 0; text-align: center; }

.form-status { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-status.active { display: block; }
.form-status .check-badge {
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex; align-items: center; justify-content: center;
  animation: popIn 480ms cubic-bezier(0.3,1.4,0.4,1);
}
.form-status .check-badge svg { width: 34px; height: 34px; stroke: var(--color-paper); }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.form-status.is-error .check-badge { background: var(--color-walnut); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Image Carousel (Buy / Wishlist gallery)
   ========================================================================== */
.carousel { position: relative; max-width: 960px; margin: 0 auto; }
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--color-walnut);
  border: 1px solid rgba(75, 51, 34, 0.1);
}
.carousel-track {
  display: flex;
  transition: transform var(--transition-spring);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 3 / 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(36, 31, 26, 0.55);
  color: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms ease, transform 200ms ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.carousel-btn:hover { background: var(--color-orange); }
.carousel-btn:active { transform: translateY(-50%) scale(0.94); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 11px; height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(75, 51, 34, 0.25);
  transition: background-color 200ms ease, transform 200ms ease;
}
.carousel-dot:hover { background: rgba(75, 51, 34, 0.45); }
.carousel-dot.active { background: var(--color-orange); transform: scale(1.25); }

/* About page — storefront photo pairs with a caption, image kept fully visible */
.about-visit { align-items: center; }
.about-photo { aspect-ratio: 4 / 3; min-height: 0; }

@media (max-width: 600px) {
  .carousel-slide { aspect-ratio: 4 / 3; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* ==========================================================================
   Mobile-specific layout & feature overrides
   ========================================================================== */
@media (max-width: 768px) {

  /* overflow-x: hidden on <body> makes iOS/older mobile browsers treat
     position:fixed like position:absolute, so the announcement bar scrolls up
     into the middle of the page. overflow-x: clip hides the horizontal overflow
     WITHOUT creating a scroll container, keeping the bar locked to the viewport. */
  body { overflow-x: clip; }

  /* Announcement bar relocates to bottom of screen on mobile — permanently
     pinned as a floating bar at the very bottom. */
  .status-bar {
    top: auto;
    bottom: 0;
  }

  /* The hero clip is a 3-panel composite. On a portrait screen `cover` can let
     the seam/bleed from the left side video creep in, so zoom in slightly to
     isolate the middle panel. (.hero has overflow:hidden, so this just crops.) */
  .hero-video { transform: scale(1.35); }

  /* Navbar now starts at very top — no status bar above it */
  .navbar {
    top: 0;
  }

  /* Extra bottom clearance so fixed announcement bar never covers content */
  body {
    padding-bottom: 40px;
  }

  /* Fix hero/intro section horizontal edge-to-edge: .section's padding shorthand
     overwrites .container's side padding when both classes sit on the same element */
  .section.container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Services — "Request an Appraisal" buttons stack with breathing room */
  #booking .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
