/* css/style.css — Queenie's Mayflower */

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  /* Brand colours */
  --maroon: #4A0E0E;
  --rust: #8B3A1A;
  --burnt-orange: #D4722C;
  --sand: #E8D5B7;
  --sand-light: #F5EDE0;
  --red: #D42B2B;
  --black: #0A0A0A;
  --white: #F5F5F3;

  /* Neutral greys */
  --grey-100: #FAFAF8;
  --grey-200: #F0EDE8;
  --grey-400: #B0A89E;
  --grey-600: #6B6560;

  /* Dark theme */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-elevated: #1A1A1A;
  --text-primary: #F5F5F3;
  --text-secondary: #A0A0A0;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --nav-h: 72px;
  --max-w: 1100px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Animation */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.6s;
  --stagger: 100ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
.slabel {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 10px;
}

.stitle {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--sand {
  background: var(--bg-secondary);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section--sand .section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  display: inline-block;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: box-shadow 0.3s var(--ease);
}

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

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav__logo .ap {
  color: var(--red);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav__links a {
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}

.nav__hamburger span:nth-child(1) { top: 0; }
.nav__hamburger span:nth-child(2) { top: 9px; }
.nav__hamburger span:nth-child(3) { top: 18px; }

.nav__hamburger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 105;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__cta {
    display: none;
  }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
  background: url('../images/cooking5.png') center/cover no-repeat;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 100%),
              linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero__title,
.hero__tagline,
.hero__btns,
.hero__scroll {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  position: relative;
  animation: heroIn 0.8s var(--ease) both;
}

.hero__title .ap {
  color: var(--red);
}

.hero__title-line2 {
  display: block;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: var(--burnt-orange);
  margin-top: 4px;
  animation: heroIn 0.8s var(--ease) 0.15s both;
}

.hero__tagline {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-secondary);
  margin-top: 20px;
  letter-spacing: 0.01em;
  animation: heroIn 0.8s var(--ease) 0.3s both;
}

.hero__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  animation: heroIn 0.8s var(--ease) 0.45s both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__scroll {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: heroIn 0.8s var(--ease) 0.6s both;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.4);
  margin: 8px auto 0;
  opacity: 0.4;
  animation: scrollPulse 2s ease-in-out infinite;
}

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

.hero .btn--outline {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.hero .btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* ═══════════════════════════════════════
   INFO BAR
   ═══════════════════════════════════════ */
.info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.info-bar__item {
  padding: 28px 24px;
  text-align: center;
  transition: background 0.3s;
}

.info-bar__item:hover {
  background: var(--bg-elevated);
}

.info-bar__item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.info-bar__icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  color: var(--burnt-orange);
}

.info-bar__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.info-bar__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .info-bar {
    grid-template-columns: 1fr;
  }

  .info-bar__item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.65;
}

.about__highlight {
  font-weight: 700;
  color: var(--text-primary);
  font-style: italic;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--burnt-orange);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
  display: block;
}

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

/* ═══════════════════════════════════════
   HERITAGE (Our Story)
   ═══════════════════════════════════════ */
.heritage {
  background: var(--bg-secondary);
  padding: 80px 24px;
}

.heritage__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.heritage__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.65;
}

.heritage__photo {
  border-radius: var(--radius-lg);
  height: 440px;
  overflow: hidden;
}

.heritage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.05);
  transition: transform 0.5s var(--ease);
}

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

@media (max-width: 768px) {
  .heritage__inner {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   PHOTO ROW
   ═══════════════════════════════════════ */
.photos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.photo-card {
  perspective: 800px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.photo-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s var(--ease);
  will-change: transform;
  filter: contrast(1.05);
}

.photo-card:hover .photo-card__img {
  transform: scale(1.03);
}

.photo-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  border-radius: 0 0 14px 14px;
}

@media (max-width: 768px) {
  .photos-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   MENU / ORDER
   ═══════════════════════════════════════ */
.menu-sec {
  text-align: center;
}

.menu-sec__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.iframe-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.iframe-wrap iframe {
  display: block;
}

.menu-sec__note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

.menu-sec__note a {
  color: var(--burnt-orange);
  font-weight: 500;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .iframe-wrap iframe {
    min-height: 500px !important;
  }
}

/* ═══════════════════════════════════════
   DELIVERY INFO
   ═══════════════════════════════════════ */
.delivery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.delivery__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.delivery__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.delivery__card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.delivery__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .delivery__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--maroon);
  padding: 48px 24px 24px;
  color: var(--sand);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
}

.footer__logo .ap {
  color: var(--red);
}

.footer__tag {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-top: 4px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 10px;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer a {
  color: var(--burnt-orange);
  transition: opacity 0.25s;
}

.footer a:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(232, 213, 183, 0.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.75rem;
  opacity: 0.25;
  text-align: center;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 400px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   CHAT (Phase 2 — Coming Soon placeholder)
   ═══════════════════════════════════════ */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--burnt-orange);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: transform 0.3s var(--ease), background 0.3s;
  box-shadow: 0 4px 16px rgba(212, 114, 44, 0.3);
}

.chat-fab:hover {
  transform: scale(1.08);
  background: var(--rust);
}

.chat-fab svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 370px;
  background: var(--bg-elevated);
  border-radius: 18px;
  overflow: hidden;
  z-index: 200;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: none;
}

.chat-panel.open {
  display: block;
  animation: chatIn 0.4s var(--ease) both;
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.chat-hdr {
  background: var(--maroon);
  padding: 16px 20px;
  color: var(--white);
}

.chat-hdr__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.chat-hdr__sub {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 2px;
}

.chat-body {
  padding: 32px 24px;
}

.chat-coming-soon {
  text-align: center;
}

.chat-coming-soon h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.chat-coming-soon p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 92px;
  }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

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

/* Stagger children: info-bar items, food icons, delivery cards */
.info-bar .reveal:nth-child(2) { transition-delay: var(--stagger); }
.info-bar .reveal:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }


.delivery__grid .reveal:nth-child(2) { transition-delay: var(--stagger); }
.delivery__grid .reveal:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.delivery__grid .reveal:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }

/* Reduced motion: skip animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__title,
  .hero__title-line2,
  .hero__tagline,
  .hero__btns,
  .hero__scroll {
    animation: none;
  }

  .hero__scroll-line {
    animation: none;
  }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--burnt-orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--burnt-orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}
