/* ============================================
   JOES DRIVE INN — Custom Styles
   ============================================ */

/* --- Base & Utilities --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a11d1d;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #a11d1d;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #a11d1d;
  color: #fefcfb;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #c23030;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(161, 26, 26, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fefcfb;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 6px;
  border: 1.5px solid rgba(254, 252, 251, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(254, 252, 251, 0.08);
  border-color: rgba(254, 252, 251, 0.7);
  transform: translateY(-1px);
}

/* --- Form Inputs --- */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #2a1f1f;
  background: #ffffff;
  border: 1.5px solid #f5d5cc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: #c2303040;
}

.input:focus {
  border-color: #a11d1d;
  box-shadow: 0 0 0 3px rgba(161, 26, 26, 0.1);
}

/* --- Success Message --- */
.success-msg {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #166534;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Navigation --- */
.nav {
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(63, 8, 8, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a11d1d;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.menu-bar {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
  width: 24px;
}

.mobile-link {
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #a11d1d;
  padding-left: 8px;
}

/* --- Hero --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow .eyebrow-line {
  background: #f3a8a8;
  width: 36px;
  height: 2px;
}

.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3a8a8;
}

.hero-image {
  position: relative;
  min-height: 500px;
}

.hero-img-main {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-img-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-accent {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 220px;
  height: 165px;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #3f0808;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-img-accent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: #fefcfb;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-badge span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(254, 252, 251, 0.4);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(254, 252, 251, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Section Header --- */
.section-header {
  position: relative;
}

/* --- Menu Card --- */
.menu-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(63, 8, 8, 0.06);
  border: 1px solid rgba(161, 26, 26, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
  box-shadow: 0 12px 40px rgba(63, 8, 8, 0.12);
  transform: translateY(-2px);
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #fce7e7;
}

.menu-card-icon {
  width: 44px;
  height: 44px;
  background: #fdf2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a11d1d;
  flex-shrink: 0;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.menu-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid #fce7e7;
}

.menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-name {
  font-weight: 700;
  font-size: 1rem;
  color: #2a1f1f;
}

.menu-item-desc {
  font-size: 0.875rem;
  color: #6b5b5b;
  line-height: 1.5;
}

/* --- Menu Notice --- */
.menu-notice {
  border-radius: 10px;
  overflow: hidden;
}

.notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem 1.25rem;
  background: #fdf2f2;
  border: 1px solid #f9d0d0;
  border-radius: 10px;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 480px;
}

.about-img-large {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-img-large img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-small {
  position: absolute;
  bottom: -24px;
  right: 0;
  width: 200px;
  height: 168px;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #3f0808;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.about-img-small img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: 24px;
  right: -16px;
  background: #fefcfb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: badgePulse 3s ease-in-out infinite;
}

/* --- Gallery --- */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 16px rgba(63, 8, 8, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(63, 8, 8, 0.15);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* --- Contact Info --- */
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #fdf2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a11d1d;
  flex-shrink: 0;
}

/* --- Map --- */
.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(63, 8, 8, 0.1);
  border: 1px solid rgba(161, 26, 26, 0.1);
  min-height: 400px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
}

.directions-cta {
  margin-top: 1rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-img-main {
    height: 600px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about-img-large {
    height: 560px;
  }

  .map-wrapper iframe {
    height: 500px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-image {
    min-height: 400px;
  }

  .hero-img-main {
    height: 400px;
  }

  .hero-img-accent {
    width: 160px;
    height: 120px;
    left: -16px;
    bottom: -16px;
  }

  .hero-badge {
    width: 72px;
    height: 72px;
    right: -12px;
    top: -12px;
  }

  .hero-badge p {
    font-size: 1.25rem;
  }

  .about-images {
    min-height: 380px;
  }

  .about-img-large {
    height: 380px;
  }

  .about-img-small {
    width: 150px;
    height: 126px;
  }

  .about-experience-badge {
    right: -8px;
    top: 16px;
    padding: 0.75rem 1rem;
  }
}
