/* Junebug Cafe — Greene, NY */
/* Theme: Warm/Fresh | Fonts: Playfair Display + Raleway */

:root {
  --bg: #faf8f3;
  --bg-alt: #f0ede6;
  --bg-dark: #2c1810;
  --text: #2c1810;
  --text-light: #6b5d52;
  --text-muted: #9a8e84;
  --accent: #d4a574;
  --accent-hover: #c4905e;
  --sage: #7a8b6a;
  --sage-light: #e8ece4;
  --cream: #faf8f3;
  --honey: #d4a574;
  --espresso: #2c1810;
  --heading-font: "Playfair Display", serif;
  --body-font: "Raleway", sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(44, 24, 16, 0.08);
  --shadow-hover: 0 8px 24px rgba(44, 24, 16, 0.12);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.overline {
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition:
    box-shadow var(--transition),
    padding var(--transition);
}

.nav.scrolled {
  padding: 0.65rem 2rem;
  box-shadow: 0 1px 8px rgba(44, 24, 16, 0.06);
}

.nav__brand {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--espresso);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

.nav__phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--espresso);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__phone svg {
  width: 16px;
  height: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--espresso);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #2c1810 0%, #4a3228 40%, #3d2b1f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(122, 139, 106, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 1.5rem;
}

.hero .overline {
  color: var(--honey);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
}

.hero__tagline {
  color: rgba(250, 248, 243, 0.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition);
}

.hero__cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bobble 2.5s ease-in-out infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
  stroke: rgba(250, 248, 243, 0.4);
}

@keyframes bobble {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── SECTIONS ── */
section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--cream);
}

.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--dark .overline {
  color: var(--honey);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section__header p {
  color: var(--text-light);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ── SPLIT SECTION ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.split--reverse {
  direction: rtl;
}
.split--reverse > * {
  direction: ltr;
}

.split__text {
  max-width: 520px;
}

.split__text h2 {
  margin-bottom: 1.25rem;
}

.split__text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.split__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.split__visual--gradient {
  background: linear-gradient(135deg, #3d2b1f 0%, #5a4235 50%, #4a3228 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__visual--sage {
  background: linear-gradient(135deg, var(--sage) 0%, #5e6f50 50%, #8a9b7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__visual svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* ── MENU PREVIEW ── */
.menu-preview {
  max-width: 1100px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.menu-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.menu-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.menu-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── REVIEWS ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background: rgba(250, 248, 243, 0.06);
  border: 1px solid rgba(250, 248, 243, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--honey);
}

.review-card p {
  font-style: italic;
  color: rgba(250, 248, 243, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--honey);
}

/* ── HOURS + MAP ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text-light);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  background: linear-gradient(145deg, #2c1810 0%, #3d2b1f 100%);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(250, 248, 243, 0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--honey);
  text-decoration: none;
  transition: color var(--transition);
}

.cta-phone:hover {
  color: var(--cream);
}

.cta-address {
  margin-top: 1rem;
  color: rgba(250, 248, 243, 0.5);
  font-size: 0.9rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--espresso);
  color: rgba(250, 248, 243, 0.6);
  padding: 3rem 2rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer__brand {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(250, 248, 243, 0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--honey);
}

.footer__bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
}

.footer__bottom a {
  color: rgba(250, 248, 243, 0.4);
}
.footer__bottom a:hover {
  color: var(--honey);
}

/* ── BTN ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--body-font);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── ABOUT PAGE ── */
.page-header {
  padding: clamp(8rem, 12vw, 10rem) 2rem clamp(3rem, 5vw, 4rem);
  text-align: center;
  background: var(--bg-alt);
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(212, 165, 116, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ── MENU PAGE ── */
.menu-section {
  max-width: 1000px;
  margin: 0 auto;
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
}

.menu-item__name {
  font-weight: 600;
  font-size: 1rem;
}

.menu-item__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.menu-item__price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 1rem;
}

.menu-note {
  background: var(--sage-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text-light);
}

.menu-note strong {
  color: var(--text);
}

/* ── GALLERY PAGE ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-item--placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.gallery-item:nth-child(1) {
  background: linear-gradient(135deg, #3d2b1f, #5a4235);
}
.gallery-item:nth-child(2) {
  background: linear-gradient(135deg, var(--sage), #5e6f50);
}
.gallery-item:nth-child(3) {
  background: linear-gradient(135deg, #d4a574, #c4905e);
}
.gallery-item:nth-child(4) {
  background: linear-gradient(135deg, #4a3228, #6b5d52);
}
.gallery-item:nth-child(5) {
  background: linear-gradient(135deg, #8a9b7a, var(--sage));
}
.gallery-item:nth-child(6) {
  background: linear-gradient(135deg, #c4905e, #3d2b1f);
}

.gallery-banner {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
}

.lightbox__close svg {
  width: 32px;
  height: 32px;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  padding: 1rem;
}

.lightbox__nav svg {
  width: 32px;
  height: 32px;
}
.lightbox__nav--prev {
  left: 1rem;
}
.lightbox__nav--next {
  right: 1rem;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-info a {
  color: var(--text);
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(44, 24, 16, 0.12);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--accent-hover);
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse {
    direction: ltr;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav__links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav__phone {
    display: none;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
