/* ───────────────────────────────────────────
   Infinity Coffee Shop — Styles
   Palette: Burgundy #7B2D3B · Blush #F5E6E0
           Dark #1A1A1A · Warm Gray #6B6565
─────────────────────────────────────────── */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-deep: #5E1F2C;
  --blush: #F5E6E0;
  --blush-light: #FBF4F1;
  --cream: #FDF8F6;
  --dark: #1A1A1A;
  --dark-soft: #2C2426;
  --gray: #6B6565;
  --gray-light: #9E9696;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SECTION EYEBROW ─── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-eyebrow--light {
  color: var(--blush);
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 24px;
}

.section-title--light {
  color: var(--white);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ───────────────────────────────────────────
   NAV
─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 400;
}

.nav__logo-icon {
  color: var(--burgundy);
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  position: relative;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: var(--transition);
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--white);
}

.nav__menu a:hover::after,
.nav__menu a:focus-visible::after {
  width: 100%;
}

.nav__cta {
  background: var(--burgundy) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--burgundy-deep) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ───────────────────────────────────────────
   HERO
─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 26, 26, 0.82) 0%,
    rgba(94, 31, 44, 0.72) 50%,
    rgba(26, 26, 26, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 120px 24px 80px;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ───────────────────────────────────────────
   ABOUT
─────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--cream);
}

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

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 6/7;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__text p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(123, 45, 59, 0.12);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ───────────────────────────────────────────
   MENU
─────────────────────────────────────────── */
.menu {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
}

.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--blush), var(--burgundy));
}

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

.menu__header .section-eyebrow {
  color: var(--blush);
}

.menu__header .section-title {
  color: var(--white);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.menu-card {
  background: var(--dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(123, 45, 59, 0.3);
}

.menu-card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card__img img {
  transform: scale(1.06);
}

.menu-card__body {
  padding: 32px;
}

.menu-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.menu-card__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ───────────────────────────────────────────
   GALLERY
─────────────────────────────────────────── */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}

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

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--wide {
  grid-column: span 7;
  aspect-ratio: 16/10;
}

.gallery__item:not(.gallery__item--wide) {
  grid-column: span 5;
  aspect-ratio: 1;
}

/* ───────────────────────────────────────────
   VISIT
─────────────────────────────────────────── */
.visit {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.visit__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.visit__details {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.visit__details a {
  color: var(--blush);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.visit__details a:hover {
  color: var(--white);
}

.visit__icon {
  flex-shrink: 0;
}

.visit__hours-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 16px;
}

.visit__hours-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visit__hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visit__hours-list li span:last-child {
  color: var(--white);
  font-weight: 500;
}

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

.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ───────────────────────────────────────────
   CTA BANNER
─────────────────────────────────────────── */
.cta-banner {
  padding: 100px 0;
  background: var(--burgundy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 230, 224, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta-banner__sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ───────────────────────────────────────────
   FOOTER
─────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo-icon {
  color: var(--burgundy);
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer__links-title,
.footer__hours-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links ul,
.footer__hours ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--blush);
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__hours li span:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ───────────────────────────────────────────
   SCROLL REVEAL (progressive enhancement)
─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ───────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }

  .visit__grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .menu__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide,
  .gallery__item:not(.gallery__item--wide) {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .visit__grid {
    grid-template-columns: 1fr;
  }

  .visit__map {
    min-height: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__menu a {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav__menu a:hover {
    color: var(--white);
  }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav__overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .hero__content {
    padding: 100px 24px 60px;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .about,
  .menu,
  .gallery,
  .visit {
    padding: 80px 0;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide,
  .gallery__item:not(.gallery__item--wide) {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .visit__cta-group {
    flex-direction: column;
  }

  .visit__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}
