/* ============================================
   SAAQI — Café & Bar, Tribeca NYC
   Confident corporate · Terracotta + Sand
   ============================================ */

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

:root {
  --terracotta: #B85C38;
  --terracotta-dark: #9A4B2C;
  --terracotta-light: #D4845E;
  --sand: #F5EDE3;
  --sand-light: #FDF6EE;
  --sand-dark: #E8DDD0;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --warm-gray: #6B6560;
  --warm-gray-light: #9A9490;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: var(--space-sm);
}

/* --- SECTION UTILITIES --- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.text-accent {
  color: var(--terracotta);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 92, 56, 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(--charcoal);
  border-color: var(--white);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-dark);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(253, 246, 238, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 101;
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: var(--transition);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--charcoal);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  margin-left: var(--space-xs);
}
.nav__link--cta::after {
  display: none;
}
.nav__link--cta:hover {
  background: var(--terracotta-dark);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 101;
}
.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  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;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 26, 26, 0.35) 50%,
    rgba(26, 26, 26, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding-top: 72px;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero__headline-accent {
  color: var(--terracotta-light);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--space-xl) 0;
  background: var(--sand-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about__img-stack {
  position: relative;
}

.about__img-primary {
  width: 100%;
  height: 750px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about__img-secondary {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 6px solid var(--sand-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about__text {
  padding: var(--space-md) 0;
}

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

.about__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--sand-dark);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   MENU
   ============================================ */
.menu {
  padding: var(--space-xl) 0;
  background: var(--sand);
}

.menu__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.menu__lead {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.menu__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.menu__tab {
  padding: 0.625rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--warm-gray);
  background: transparent;
  border: 2px solid var(--sand-dark);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.menu__tab:hover {
  color: var(--charcoal);
  border-color: var(--terracotta-light);
}
.menu__tab.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.menu__panels {
  max-width: 900px;
  margin: 0 auto;
}

.menu__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.menu__category {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.menu__category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--sand);
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.menu__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--sand);
}
.menu__list li:last-child {
  border-bottom: none;
}

.menu__item-name {
  font-weight: 500;
  color: var(--charcoal);
  font-size: 0.9375rem;
}

.menu__item-desc {
  font-size: 0.8125rem;
  color: var(--warm-gray-light);
  white-space: nowrap;
}

/* ============================================
   SPACE
   ============================================ */
.space {
  padding: var(--space-xl) 0;
  background: var(--sand-light);
}

.space__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.space__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.space__gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.space__gallery-item--wide {
  grid-column: 1 / -1;
}

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

.space__gallery-item:hover img {
  transform: scale(1.03);
}

.space__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature {
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-md);
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.feature__desc {
  font-size: 0.9375rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: var(--space-xl) 0;
  background: var(--charcoal);
  color: var(--white);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.visit .section-heading {
  color: var(--white);
}

.visit__address {
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: var(--space-md) 0;
}

.visit__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--terracotta-light);
  transition: var(--transition);
}
.visit__phone:hover {
  color: var(--terracotta);
}

.visit__hours {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.visit__hours-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.visit__hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 450px;
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal-light);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__nav-title,
.footer__contact .footer__nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-sm);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__list a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}
.footer__list a:hover {
  color: var(--terracotta-light);
}

.footer__contact p {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.footer__contact a {
  color: var(--terracotta-light);
  transition: var(--transition);
}
.footer__contact a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about__grid {
    gap: var(--space-lg);
  }
  .about__img-primary {
    height: 560px;
  }
  .space__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: rgba(253, 246, 238, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav__menu.open {
    opacity: 1;
    visibility: visible;
  }
  .nav__list {
    flex-direction: column;
    gap: var(--space-md);
  }
  .nav__link {
    font-size: 1.25rem;
  }
  .nav__link--cta {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
  .nav__toggle {
    display: flex;
  }

  .hero__headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__img-primary {
    height: 480px;
  }
  .about__img-secondary {
    width: 200px;
    height: 150px;
    bottom: -20px;
    right: -10px;
  }
  .about__stats {
    gap: var(--space-md);
  }

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

  .space__gallery {
    grid-template-columns: 1fr;
  }
  .space__gallery-item--wide {
    grid-column: auto;
  }

  .visit__grid {
    grid-template-columns: 1fr;
  }
  .visit__map {
    min-height: 300px;
  }
  .visit__map iframe {
    min-height: 300px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .about__stats {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .menu__tabs {
    flex-wrap: wrap;
  }
}
