/* ============================================
   HOLES & FLATS — Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;1,9..144,400&family=DM+Sans:ital,wght@0,400;0,500;1,400&family=Tenor+Sans&display=swap');

/* --- Custom Properties --- */
:root {
  --midnight:    #0D1A0F;
  --emerald:     #1B6B3A;
  --gold:        #C9973A;
  --gold-bright: #F0C040;
  --teal:        #1A6B6B;
  --blue:        #1A4F8B;
  --cream:       #F5F0E8;
  --dark-cacao:  #3D2314;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sub:     'Tenor Sans', 'Helvetica Neue', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --size-display: clamp(3.5rem, 10vw, 10rem);
  --size-h2:      clamp(2.5rem, 6vw, 5rem);
  --size-h3:      clamp(1.5rem, 3vw, 2rem);
  --size-sub:     clamp(1rem, 2vw, 1.35rem);
  --size-body:    clamp(0.95rem, 1.2vw, 1.1rem);
  --size-small:   clamp(0.8rem, 1vw, 0.9rem);

  --section-pad:  clamp(4rem, 10vh, 8rem);
  --content-max:  1200px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

/* --- Utilities --- */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--midnight);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Section entrance animations --- */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================
   SECTION 1: Hero
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--size-display);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.hero-amp {
  color: var(--gold);
}

.hero-tagline {
  position: relative;
  z-index: 2;
  margin-top: clamp(1rem, 2vh, 2rem);
  text-align: center;
}

.hero-tagline-line1 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline-line2 {
  display: block;
  font-family: var(--font-sub);
  font-size: var(--size-sub);
  color: var(--cream);
  opacity: 0.75;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-location {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.1em;
  z-index: 5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SECTION 2: The Hours
   ============================================ */

#hours {
  position: relative;
  background: var(--emerald);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad) 2rem;
  overflow: hidden;
}

/* Plants — asymmetric peek through foliage */
.hours-plant {
  position: absolute;
  pointer-events: none;
}

.hours-plant--left {
  bottom: 0;
  left: -2vw;
  height: 65vh;
  width: auto;
  -webkit-mask-image: linear-gradient(to top right, black 30%, transparent 75%);
  mask-image: linear-gradient(to top right, black 30%, transparent 75%);
}

.hours-plant--right {
  top: -2vh;
  right: -2vw;
  height: 50vh;
  width: auto;
  -webkit-mask-image: linear-gradient(to bottom left, black 30%, transparent 75%);
  mask-image: linear-gradient(to bottom left, black 30%, transparent 75%);
}

/* Content */
.hours-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hours-line--1 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hours-line--2 {
  font-family: var(--font-sub);
  font-size: var(--size-sub);
  color: var(--cream);
  margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
  letter-spacing: 0.03em;
}

.hours-line--3 {
  font-family: var(--font-sub);
  font-size: var(--size-sub);
  color: var(--cream);
  margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
  letter-spacing: 0.03em;
}

.hours-line--4 {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--size-small);
  color: var(--cream);
  opacity: 0.7;
  margin-top: clamp(0.75rem, 1.5vh, 1rem);
}

/* Gold accent rule */
.hours-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: clamp(2rem, 4vh, 3rem);
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hours-plant--left {
    height: 35vh;
    opacity: 0.5;
  }
  .hours-plant--right {
    height: 25vh;
    opacity: 0.4;
  }
}

/* ============================================
   SECTION 3: Story
   ============================================ */

#story {
  position: relative;
  background: var(--cream);
  padding: clamp(8rem, 18vh, 14rem) 2rem;
  overflow: hidden;
}

.story-content {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.story-heading {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.story-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--midnight);
  opacity: 0.85;
  line-height: 1.85;
  margin-top: clamp(2.5rem, 5vh, 4rem);
}

.story-body p + p {
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
}

/* Story food image — right half, overlapping */
.story-food {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(400px, 48vw, 680px);
  height: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  .story-content {
    max-width: 100%;
  }

  .story-food {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 400px;
    margin: clamp(2rem, 4vh, 3rem) auto 0;
  }
}

/* ============================================
   SECTION 4: Menu
   ============================================ */

#menu {
  position: relative;
  background: var(--midnight);
  padding: var(--section-pad) 2rem;
}

.menu-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.menu-heading {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
  letter-spacing: 0.02em;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: clamp(0.5rem, 1vh, 1rem);
}

.menu-column-title {
  font-family: var(--font-sub);
  font-size: var(--size-sub);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 151, 58, 0.3);
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.menu-column-title--holes { grid-column: 1; }
.menu-column-title--flats { grid-column: 2; }
.menu-card--hole { grid-column: 1; }
.menu-card--flat { grid-column: 2; }

.menu-card {
  padding: clamp(1.25rem, 2vh, 1.75rem) 0;
  border-left: 2px solid rgba(201, 151, 58, 0.25);
  padding-left: clamp(1.25rem, 2vw, 2rem);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-card:hover {
  border-left-color: var(--gold-bright);
  background: rgba(201, 151, 58, 0.04);
}

.menu-card-name {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.menu-card:hover .menu-card-name {
  color: var(--gold-bright);
}

.menu-card-desc {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--cream);
  opacity: 0.75;
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* Mobile: single column — holes then flats */
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-column-title--holes { grid-column: 1; grid-row: 1; }
  .menu-card--hole { grid-column: 1; }
  .menu-column-title--flats { grid-column: 1; }
  .menu-card--flat { grid-column: 1; }
}

/* ============================================
   SECTION 5: The Vibe
   ============================================ */

#vibe {
  position: relative;
  background: var(--midnight);
  padding: var(--section-pad) 2rem;
  overflow: hidden;
}

#vibe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/textures/vibe-bg.webp') center / cover no-repeat;
  opacity: 0.55;
}

.vibe-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.vibe-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vh, 2rem);
}

/* Video */
.vibe-video {
  width: 100%;
  max-width: 640px;
}

.vibe-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(26, 107, 107, 0.25);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(26, 107, 107, 0.1);
}

/* Spotify mini bar */
.vibe-spotify {
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 58, 0.2);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(201, 151, 58, 0.08);
}

.vibe-spotify iframe {
  display: block;
  width: 100%;
  border-radius: 12px;
}

/* Caption */
.vibe-caption {
  font-family: var(--font-sub);
  font-size: var(--size-small);
  color: var(--cream);
  text-align: center;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  letter-spacing: 0.03em;
  opacity: 0.75;
}


/* ============================================
   SECTION 6: Email Capture
   ============================================ */

#email {
  position: relative;
  background: var(--midnight);
  padding: var(--section-pad) 2rem;
  overflow: hidden;
}

/* Email section top accent */
#email::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.email-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.email-heading {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.email-sub {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--cream);
  opacity: 0.75;
  margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
  line-height: 1.6;
}

/* Form */
.email-form {
  margin-top: clamp(2rem, 4vh, 3rem);
}

.email-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--cream);
  opacity: 0.75;
  text-align: left;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.email-field-group {
  display: flex;
  gap: 0;
}

.email-input {
  flex: 1;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(245, 240, 232, 0.3);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--size-body);
  outline: none;
  transition: border-color 0.3s ease;
}

.email-input::placeholder {
  color: var(--cream);
  opacity: 0.3;
}

.email-input:focus {
  border-bottom-color: var(--gold);
}

.email-button {
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--midnight);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-body);
  letter-spacing: 0.02em;
  transition: background 0.3s ease;
}

.email-button:hover {
  background: var(--gold-bright);
}

.email-button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.email-input:focus-visible {
  outline: none;
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 2px 0 0 var(--gold-bright);
}

/* Success state */
.form-success {
  font-family: var(--font-sub);
  font-size: var(--size-sub);
  color: var(--gold);
  margin-top: clamp(2rem, 4vh, 3rem);
  letter-spacing: 0.03em;
}

/* Noscript fallback */
.email-noscript {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--cream);
  opacity: 0.75;
  margin-top: 2rem;
}

.email-noscript a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email-noscript a:hover {
  color: var(--gold-bright);
}

@media (max-width: 768px) {
  .email-field-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .email-input {
    border-bottom: 2px solid rgba(245, 240, 232, 0.3);
  }

  .email-button {
    width: 100%;
  }
}

/* ============================================
   SECTION 7: Footer
   ============================================ */

#footer {
  background: var(--midnight);
  padding: clamp(3rem, 6vh, 5rem) 2rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--cream);
  opacity: 0.5;
}

.footer-email {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--gold);
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--gold-bright);
}

.footer-email:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.footer-midnight {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--size-small);
  color: var(--cream);
  opacity: 0.35;
  margin-top: clamp(2rem, 4vh, 3rem);
  line-height: 1.5;
}

/* --- 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;
  }

  .section-animate {
    opacity: 1;
    transform: none;
  }
}
