/* ============================================
   GROOVEHAUS — Vintage Vinyl Record Store
   style.css
   ============================================ */

/* ---- Custom Properties ---- */
:root {
  --color-black:      #0e0a02;
  --color-dark:       #1a1008;
  --color-dark-mid:   #2d1a05;
  --color-wood:       #3d2508;
  --color-amber:      #c8881a;
  --color-amber-dark: #b8780a;
  --color-amber-light:#e8a83a;
  --color-orange:     #c8541a;
  --color-cream:      #f5ead4;
  --color-cream-dark: #e8d8b8;
  --color-text:       #2d1a05;
  --color-text-light: #6b4a20;
  --color-muted:      #9a7840;

  --font-display:  'Righteous', sans-serif;
  --font-heading:  'Archivo Black', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-serif:    'Libre Baskerville', serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 24px rgba(14, 10, 2, 0.18);
  --shadow-hover: 0 12px 40px rgba(14, 10, 2, 0.3);

  --transition-base: 0.25s ease;
  --transition-slow: 0.5s ease;

  --max-width: 1280px;
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.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;
}

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-base), color var(--transition-base),
              border-color var(--transition-base), transform var(--transition-base),
              box-shadow var(--transition-base);
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-black);
  border-color: var(--color-amber);
}
.btn-primary:hover {
  background: var(--color-amber-light);
  border-color: var(--color-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 136, 26, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(245, 234, 212, 0.5);
}
.btn-ghost:hover {
  background: rgba(245, 234, 212, 0.1);
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay {
  transition-delay: 0.18s;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.site-header.scrolled {
  background: rgba(26, 16, 8, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(14, 10, 2, 0.4);
  border-bottom: 1px solid rgba(200, 136, 26, 0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-base);
}
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(245, 234, 212, 0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-base);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--color-amber);
  transition: right var(--transition-base);
}
.nav-link:hover { color: var(--color-cream); }
.nav-link:hover::after { right: 0; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-cream);
  padding: 4px;
  line-height: 0;
}
.close-icon { display: none; }

/* Mobile nav open state */
.nav-open .hamburger-icon { display: none; }
.nav-open .close-icon    { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a02 0%, #2d1a05 30%, #c8881a 100%);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(200, 84, 26, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 136, 26, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.hero-title-accent { color: var(--color-amber); }

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-amber-light);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245, 234, 212, 0.75);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.turntable-svg {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 60px rgba(14, 10, 2, 0.6));
  animation: turntable-float 6s ease-in-out infinite;
}

@keyframes turntable-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-divider svg { width: 100%; height: auto; }

/* ============================================
   COLLECTION
   ============================================ */
.collection {
  background: var(--color-cream);
  padding: 100px 0 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Records Grid */
.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Record Card */
.record-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.record-sleeve {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-dark);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.record-card:hover .record-sleeve {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.sleeve-front {
  position: absolute;
  inset: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.album-art {
  width: 100%;
  height: 100%;
}

.sleeve-record {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4%;
  z-index: 1;
}

.sleeve-record svg {
  width: 88%;
  height: 88%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover: slide sleeve out, spin record */
.record-card:hover .sleeve-front {
  transform: translateX(-55%);
}

.record-card:hover .sleeve-record svg {
  transform: rotate(180deg);
  animation: spin-record 3s linear infinite;
}

@keyframes spin-record {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Record info */
.record-info {
  padding: 16px 4px 0;
}

.record-genre {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.genre-jazz       { background: rgba(30, 80, 160, 0.12); color: #1e50a0; }
.genre-soul       { background: rgba(180, 60, 20, 0.12); color: #b43c14; }
.genre-funk       { background: rgba(40, 140, 40, 0.12); color: #287828; }
.genre-rock       { background: rgba(100, 20, 180, 0.12); color: #6414b4; }
.genre-electronic { background: rgba(0, 180, 220, 0.12); color: #007a9e; }
.genre-rnb        { background: rgba(100, 20, 140, 0.12); color: #64148c; }
.genre-blues      { background: rgba(20, 100, 40, 0.12); color: #146428; }
.genre-ambient    { background: rgba(180, 130, 20, 0.12); color: #8a6014; }

.record-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.record-artist {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-style: italic;
}

.record-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-amber-dark);
}

/* ============================================
   HOURS
   ============================================ */
.hours-section {
  background: var(--color-dark);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hours-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(200, 136, 26, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(200, 84, 26, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Marquee */
.hours-marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid rgba(200, 136, 26, 0.2);
  border-bottom: 1px solid rgba(200, 136, 26, 0.2);
  padding: 14px 0;
  margin-bottom: 64px;
}

.hours-marquee-top {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  text-transform: uppercase;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-dot { color: var(--color-orange); }

.hours-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hours-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-cream);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hours-address {
  color: rgba(245, 234, 212, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.address-icon-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(245, 234, 212, 0.75);
}

.address-icon-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-amber);
}

.hours-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-amber-light);
  line-height: 1.7;
  opacity: 0.85;
}

/* Hours Table */
.hours-table-wrapper {
  background: rgba(245, 234, 212, 0.04);
  border: 1px solid rgba(200, 136, 26, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(200, 136, 26, 0.1);
  transition: background var(--transition-base);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table tr:hover { background: rgba(200, 136, 26, 0.05); }

.hours-table td {
  padding: 14px 24px;
  font-size: 0.92rem;
  color: rgba(245, 234, 212, 0.75);
}

.hours-table .day {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-cream);
  letter-spacing: 0.02em;
}

.hours-table .closed { color: rgba(245, 234, 212, 0.3); }

.hours-table .highlight {
  color: var(--color-amber-light);
  font-weight: 500;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--color-cream-dark);
  padding: 100px 0;
  border-top: 1px solid rgba(45, 26, 5, 0.12);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.cassette-wrapper {
  flex-shrink: 0;
}

.cassette-svg {
  width: 240px;
  filter: drop-shadow(0 8px 24px rgba(14, 10, 2, 0.2));
  transition: transform var(--transition-slow);
}

.cassette-wrapper:hover .cassette-svg {
  transform: rotate(-4deg) scale(1.03);
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.newsletter-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--color-cream);
  border: 2px solid rgba(45, 26, 5, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-input::placeholder { color: var(--color-muted); }

.form-input:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 3px rgba(200, 136, 26, 0.15);
}

.form-btn {
  flex-shrink: 0;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.form-success {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #287828;
  margin-top: 8px;
  min-height: 1.4em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-black);
  padding: 64px 0 40px;
  border-top: 1px solid rgba(200, 136, 26, 0.15);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-cream);
  margin-bottom: 16px;
  transition: opacity var(--transition-base);
}
.footer-logo:hover { opacity: 0.8; }

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(245, 234, 212, 0.5);
  margin-bottom: 8px;
}

.footer-address {
  font-size: 0.82rem;
  color: rgba(245, 234, 212, 0.35);
  letter-spacing: 0.04em;
}

.footer-social-label,
.footer-nav-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(245, 234, 212, 0.6);
  transition: color var(--transition-base), gap var(--transition-base);
}
.social-link:hover {
  color: var(--color-amber-light);
  gap: 14px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(245, 234, 212, 0.6);
  transition: color var(--transition-base);
  position: relative;
}
.footer-nav a::before {
  content: '→ ';
  opacity: 0;
  transition: opacity var(--transition-base);
}
.footer-nav a:hover { color: var(--color-cream); }
.footer-nav a:hover::before { opacity: 1; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(200, 136, 26, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 234, 212, 0.3);
}

.footer-copy-sub {
  font-size: 0.8rem;
  color: rgba(200, 136, 26, 0.4);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .records-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .hero-content {
    gap: 32px;
  }

  .newsletter-inner {
    gap: 40px;
  }

  .cassette-svg { width: 200px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Nav */
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(26, 16, 8, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px;
    border-bottom: 1px solid rgba(200, 136, 26, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(200, 136, 26, 0.1);
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
  }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 60px;
  }

  .hero-sub { margin: 0 auto 32px; }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-illustration { order: -1; }

  .turntable-svg { max-width: 280px; }

  /* Collection */
  .collection { padding: 72px 0 80px; }

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

  /* Hours */
  .hours-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Newsletter */
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cassette-wrapper { display: flex; justify-content: center; }
  .cassette-svg { width: 220px; }

  .form-row {
    flex-direction: column;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .records-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-title { font-size: 3rem; }

  .btn {
    padding: 12px 22px;
    font-size: 0.82rem;
  }

  .container { padding: 0 16px; }
}

/* ---- Input shake animation ---- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.form-input.shake {
  animation: shake 0.4s ease;
  border-color: #c84020;
}

/* ---- Active nav link ---- */
.nav-link--active {
  color: var(--color-cream);
}
.nav-link--active::after {
  right: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .turntable-svg { animation: none; }
  .hours-marquee-top { animation: none; }

  .record-card:hover .sleeve-record svg {
    animation: none;
    transform: rotate(45deg);
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
