:root {
  --red: #BF392B;
  --red-dark: #A52E22;
  --cream: #FFF5DF;
  --ink: #2A0403;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--cream); }
body { min-width: 320px; overflow-x: hidden; font-family: 'Courier Prime', monospace; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
::selection { background: var(--red); color: var(--cream); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; }
input, textarea { width: 100%; max-width: 100%; border: 0; box-sizing: border-box; }
input::placeholder, textarea::placeholder { color: rgba(255,245,223,0.5); font-weight: 700; }
input:focus, textarea:focus { outline: none; background: rgba(255,245,223,0.17); }

@keyframes rfSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rfBob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes rfFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rfPop { 0% { opacity: 0; transform: scale(0.82); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rfPageIn { from { opacity: 0; } to { opacity: 1; } }

.site-shell { min-height: 100vh; background: var(--ink); color: var(--cream); overflow-x: hidden; animation: rfPageIn 0.5s ease both; }
h1, h2, h3, p { margin-top: 0; }

.home-hero-intro { padding: clamp(14rem, 20vw, 18.75rem) clamp(20px, 6vw, 120px); display: flex; justify-content: center; }
.home-hero-intro h1 { margin: 0; max-width: 1448px; font-family: 'Arima Madurai', sans-serif; font-weight: 900; font-size: clamp(46px, 4.75vw, 82px); line-height: 1.05; text-align: center; color: var(--cream); text-wrap: balance; animation: rfFadeUp 1s 0.1s both; }
.home-hero-intro span { letter-spacing: 0.04em; }

.hero-image-section { position: relative; }
.hero-frame { padding: 0 6vw; will-change: padding; }
.hero-clip { position: relative; width: 100%; height: 88vh; min-height: 540px; overflow: hidden; border-radius: 32px; background: var(--ink); will-change: border-radius; }
.hero-img { position: absolute; inset: 0; background-image: linear-gradient(rgba(42,4,3,0.05), rgba(42,4,3,0.08)), url('../assets/hero.png'); background-size: cover; background-repeat: no-repeat; background-position: center 45%; transform: scale(1.18); will-change: transform; }

.scroll-badge { position: absolute; left: calc(50% - 73px); top: -73px; width: 146px; height: 146px; z-index: 5; cursor: pointer; background: transparent; color: var(--cream); padding: 0; }
.scroll-badge-text { position: absolute; inset: 0; animation: rfSpin 14s linear infinite; }
.scroll-badge text { font-family: 'Courier Prime', monospace; font-size: 13px; letter-spacing: 2px; fill: var(--cream); }
.scroll-badge tspan { fill: var(--red); }
.scroll-badge-core { position: absolute; left: calc(50% - 42px); top: calc(50% - 42px); width: 84px; height: 84px; border-radius: 999px; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.scroll-badge-core svg { animation: rfBob 2.2s ease-in-out infinite; }

.cream-section { background: var(--cream); color: var(--ink); padding: 120px clamp(24px, 7vw, 140px); display: flex; flex-direction: column; align-items: center; gap: 48px; }
.cream-section h2, .gallery-section h2 { margin: 0; max-width: 1448px; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: clamp(38px, 3.9vw, 72px); line-height: 1.1; text-align: center; text-wrap: balance; }
.intro-copy { max-width: 920px; display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 24px; text-align: center; color: var(--ink); }
.intro-copy p { margin: 0; }

.gallery-section { background: var(--ink); padding: 120px 0; display: flex; flex-direction: column; gap: 48px; }
.gallery-section h2 { color: var(--cream); padding: 0 clamp(24px, 7vw, 140px); }
.rf-gallery { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; padding: 44px 0; }
.rf-card { flex: 0 0 auto; width: clamp(165px, 14.5vw, 252px); background: var(--cream); border-radius: 14px; box-shadow: 0 12px 34px -8px rgba(0,0,0,0.5); padding: 12px 12px 0; margin: 0 -20px; display: flex; flex-direction: column; cursor: pointer; position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s, z-index 0s; }
.rf-gallery .rf-card:nth-child(1) { transform: rotate(-6deg) translateY(10px); }
.rf-gallery .rf-card:nth-child(2) { transform: rotate(4deg) translateY(-7px); }
.rf-gallery .rf-card:nth-child(3) { transform: rotate(-3deg) translateY(5px); }
.rf-gallery .rf-card:nth-child(4) { transform: rotate(5deg) translateY(-9px); }
.rf-gallery .rf-card:nth-child(5) { transform: rotate(-5deg) translateY(7px); }
.rf-gallery .rf-card:nth-child(6) { transform: rotate(6deg) translateY(-4px); }
.rf-card:hover { transform: translateY(-16px) !important; box-shadow: 0 28px 56px -12px rgba(0,0,0,0.58); z-index: 20; }
.rf-card-img { height: clamp(200px, 18vw, 312px); border-radius: 8px; background-size: cover; background-position: center; background-color: #7a211b; }
.rf-card-label { padding: 16px 6px 18px; text-align: center; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.rf-dots { display: none; justify-content: center; align-items: center; gap: 8px; padding: 10px 0 6px; }
.rf-dot { width: 7px; height: 7px; border-radius: 999px; cursor: pointer; transition: background 0.3s, transform 0.3s; flex-shrink: 0; background: rgba(255,245,223,0.22); }
.rf-dot.is-active { background: var(--cream); transform: scale(1.5); }
.center-action { display: flex; justify-content: center; }

.rf-btn, .rf-order-card-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--red); color: #fff; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 18px; padding: 14px 46px; cursor: pointer; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, background 0.2s; }
.rf-order-card-btn { padding: 12px 40px; width: 100%; }
.rf-btn::after, .rf-order-card-btn::after { content: ''; position: absolute; top: -10%; left: -80%; width: 55%; height: 120%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-18deg); transition: left 0s; pointer-events: none; }
.rf-btn:hover, .rf-order-card-btn:hover { background: var(--red-dark); transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 44px -8px rgba(191,57,43,0.6); }
.rf-btn:hover::after, .rf-order-card-btn:hover::after { left: 140%; transition: left 0.52s ease; }
.rf-btn:active, .rf-order-card-btn:active { transform: translateY(2px) scale(0.95); }

.rf-order-section { background: var(--cream); color: var(--ink); padding: 120px clamp(24px, 7vw, 140px); display: flex; justify-content: center; }
.rf-order-row { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(520px, 1.1fr); gap: 48px; max-width: 1448px; width: 100%; align-items: center; }
.rf-order-copy { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.rf-order-copy h2 { margin: 0; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: clamp(38px, 3.9vw, 72px); line-height: 1.18; color: var(--ink); text-wrap: balance; }
.rf-order-copy p { margin: 0; max-width: 486px; font-size: 16px; line-height: 24px; color: var(--ink); }
.rf-order-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; width: 100%; min-width: 0; }
.rf-order-card { border-radius: 20px; background: var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; width: 100%; color: var(--cream); }
.rf-order-card-img { height: 280px; border-radius: 8px; background-size: cover; background-position: center; background-color: #7a211b; }
.order-online-img { background-image: linear-gradient(rgba(42,4,3,0.08), rgba(42,4,3,0.08)), url('../assets/order-online.png'); }
.app-img { background-image: linear-gradient(rgba(42,4,3,0.08), rgba(42,4,3,0.08)), url('../assets/app.png'); }
.rf-order-card h3 { margin: 0; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.1; }
.rf-order-card p { margin: 0; font-size: 16px; line-height: 24px; }

.page-hero { padding: clamp(100px, 18vw, 260px) clamp(20px, 6vw, 120px) clamp(60px, 8vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.page-hero h1 { margin: 0; font-family: 'Arima Madurai', sans-serif; font-weight: 900; font-size: clamp(46px, 4.75vw, 82px); line-height: 1.05; color: var(--cream); animation: rfFadeUp 1s 0.1s both; }
.page-hero p { margin: 0; max-width: 1200px; font-family: 'Arima Madurai', sans-serif; font-weight: 500; font-size: clamp(20px, 1.85vw, 32px); line-height: 1.25; color: var(--cream); text-wrap: balance; animation: rfFadeUp 1s 0.28s both; }
.tabs-bar { position: relative; z-index: 40; background: var(--ink); border-top: 1px solid rgba(255,245,223,0.1); border-bottom: 1px solid rgba(255,245,223,0.1); display: flex; gap: 32px; justify-content: safe center; align-items: center; padding: 24px clamp(24px, 7vw, 140px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar, .subs-scroll::-webkit-scrollbar { display: none; }
.tab-btn { background: transparent; color: rgba(255,245,223,0.6); border-bottom: 2px solid transparent; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; cursor: pointer; padding: 2px 2px 8px; transition: color 0.25s, border-color 0.25s; }
.tab-btn:hover, .tab-btn.is-active { color: var(--cream); }
.tab-btn.is-active { border-color: var(--red); }
.menu-section { background: var(--cream); color: var(--ink); padding: 0 clamp(24px, 7vw, 140px) 110px; }
.subs-scroll { display: flex; gap: 16px; justify-content: center; padding: 32px 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sub-btn { border-radius: 999px; padding: 8px 18px; font-family: 'Arima Madurai', sans-serif; font-size: 16px; white-space: nowrap; flex: 0 0 auto; cursor: pointer; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(42,4,3,0.18); transition: background 0.25s, color 0.25s, transform 0.2s; }
.sub-btn.is-active { background: var(--red); color: var(--cream); box-shadow: none; }
.sub-btn:hover { transform: translateY(-2px); }
.menu-list-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.menu-note { display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; border-radius: 999px; background: var(--red); padding: 8px 20px; color: #fff; font-size: 16px; line-height: 24px; animation: rfFadeUp 0.5s both; }
.menu-note[hidden] { display: none; }
.menu-list { display: flex; flex-direction: column; gap: 24px; }
.rf-menu-item { border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(42,4,3,0.12); position: relative; background: var(--cream); overflow: hidden; animation: rfFadeUp 0.45s both; }
.rf-menu-item-inner { display: flex; align-items: stretch; min-height: 110px; }
.rf-menu-item-img { width: 118px; flex: 0 0 118px; margin: 10px 0 10px 10px; border-radius: 12px; background-size: cover; background-position: center; background-color: #7a211b; }
.rf-menu-item-body { flex: 1; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-content: center; min-width: 0; }
.rf-menu-item-title { font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 21px; color: var(--ink); min-width: 0; }
.rf-menu-item-desc { grid-column: 1 / -1; font-size: 16px; line-height: 24px; color: var(--ink); opacity: 0.7; }
.rf-menu-item-price { grid-column: 2; grid-row: 1; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 21px; color: var(--red); white-space: nowrap; }

.contact-section { background: var(--cream); color: var(--ink); padding: clamp(48px, 7vw, 100px) clamp(20px, 6vw, 120px); width: 100%; }
.contact-grid { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.contact-form { background: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; color: var(--cream); }
.contact-form label { display: flex; flex-direction: column; gap: 10px; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 18px; }
.contact-form label:nth-child(4), .contact-form button { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { border-radius: 16px; background: rgba(255,245,223,0.11); color: var(--cream); padding: 16px 18px; font-family: 'Courier Prime', monospace; font-size: 16px; line-height: 22px; resize: vertical; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card { border-radius: 20px; background: var(--ink); color: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 112px; animation: rfFadeUp 0.7s both; }
.contact-card span { font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 20px; color: var(--red); }
.contact-card strong { font-size: 16px; line-height: 24px; font-weight: 400; }

.site-footer { background: var(--ink); padding: 80px clamp(24px, 7vw, 140px) 0; }
.footer-grid { max-width: 1448px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h3 { margin: 0; font-family: 'Arima Madurai', sans-serif; font-weight: 700; font-size: 21px; color: var(--cream); }
.footer-col p, .footer-col a, .footer-col div { margin: 0; font-size: 16px; line-height: 22px; color: var(--cream); opacity: 0.8; }
.footer-col a { transition: color 0.25s, opacity 0.25s, transform 0.25s; }
.footer-col a:hover { color: var(--red); opacity: 1; transform: translateX(6px); }
.footer-hours strong { color: var(--red); font-weight: 400; opacity: 1; }
.footer-bottom { max-width: 1448px; margin: 64px auto 0; border-top: 1px solid rgba(255,245,223,0.12); padding: 28px 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { margin: 0; font-size: 16px; color: var(--cream); opacity: 0.6; }
.footer-legal { display: flex; gap: 24px; }

#rf-burger-fixed { position: fixed; top: 32px; left: 0; right: 0; z-index: 9999; display: flex; justify-content: center; pointer-events: none; }
.rf-burger-inner { width: 80px; height: 80px; pointer-events: auto; border-radius: 24px; background: var(--red); cursor: pointer; position: relative; overflow: hidden; transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, box-shadow 0.3s ease; }
.rf-burger-inner:hover { transform: translateY(-3px) scale(1.08); background: var(--red-dark); box-shadow: 0 14px 32px -8px rgba(191,57,43,0.6); }
.rf-burger-shine { position: absolute; top: -10%; left: -80%; width: 55%; height: 120%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: skewX(-18deg); transition: left 0s; pointer-events: none; z-index: 2; }
.rf-burger-inner:hover .rf-burger-shine { left: 140%; transition: left 0.52s ease; }
.rf-bar { position: absolute; left: 24px; top: 38.75px; width: 32px; height: 2.5px; border-radius: 2px; background: var(--cream); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.rf-bar:first-of-type { transform: translateY(-5px); }
.rf-bar:last-of-type { transform: translateY(5px); }
body.nav-open .rf-bar:first-of-type { transform: rotate(45deg); }
body.nav-open .rf-bar:last-of-type { transform: rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; z-index: 70; background: var(--red); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(14px, 2.6vh, 28px); clip-path: inset(0 0 100% 0); transition: clip-path 0.65s cubic-bezier(0.77,0,0.18,1); pointer-events: none; }
body.nav-open .nav-overlay { clip-path: inset(0 0 0 0); pointer-events: auto; }
.nav-overlay a:not(.social-link) { font-family: 'Arima Madurai', sans-serif; font-weight: 900; font-size: clamp(40px, 5.2vw, 74px); line-height: 1.15; color: var(--cream); cursor: pointer; opacity: 0; transform: translateY(36px); transition: opacity 0.25s, transform 0.25s, color 0.25s; }
body.nav-open .nav-overlay a:not(.social-link) { opacity: 1; transform: none; transition: opacity 0.55s, transform 0.55s cubic-bezier(0.22,1,0.36,1), color 0.25s; }
body.nav-open .nav-overlay a:nth-child(2) { transition-delay: 0.07s; }
body.nav-open .nav-overlay a:nth-child(3) { transition-delay: 0.14s; }
.nav-overlay a:not(.social-link):hover { color: var(--ink); transform: translateX(12px); }
.social-links { position: absolute; left: 0; right: 0; bottom: clamp(32px, 5vh, 56px); display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; opacity: 0; transition: opacity 0.5s 0.5s; }
body.nav-open .social-links { opacity: 1; }
.social-link { font-size: 18px; color: var(--cream); border-bottom: 1px solid rgba(255,245,223,0.4); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.social-link:hover { color: var(--ink); border-color: var(--ink); }

.back-top { position: fixed; bottom: 32px; right: 32px; z-index: 85; width: 52px; height: 52px; border-radius: 999px; background: var(--red); color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1), background 0.25s; }
.back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: #962115; transform: scale(1.1); }
.toast { position: fixed; left: 50%; bottom: 36px; z-index: 95; transform: translate(-50%, 26px); opacity: 0; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s; pointer-events: none; background: var(--ink); color: var(--cream); border: 1px solid rgba(255,245,223,0.25); border-radius: 999px; padding: 12px 26px; font-size: 15px; box-shadow: 0 14px 40px rgba(0,0,0,0.4); white-space: nowrap; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.wipe { position: fixed; inset: 0; z-index: 10000; background: var(--red); transform: translateY(100%); pointer-events: none; transition: transform 0.55s cubic-bezier(0.77,0,0.18,1); }
.wipe.enter { transform: translateY(0); }
.wipe.leave { transform: translateY(0); }

[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(7px); will-change: opacity, transform, filter; transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.85s cubic-bezier(0.22,1,0.36,1), filter 0.9s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; filter: blur(0); }

@media (max-width: 860px) {
  .home-hero-intro { padding-top: clamp(14rem, 38vw, 18.75rem); padding-bottom: clamp(14rem, 38vw, 18.75rem); }
  .hero-frame { width: 100vw; margin-left: calc(50% - 50vw); padding: 0; }
  .hero-clip { aspect-ratio: auto; height: calc((100vw * 941 / 1672) + 100px); min-height: 0; border-radius: 0; }
  .hero-img { background-size: cover; background-position: center center; }
  .cream-section, .gallery-section, .rf-order-section { padding-top: 84px; padding-bottom: 84px; }
  .rf-gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 40px 16px 20px; gap: 4px; }
  .rf-card { width: 82vw; max-width: 340px; flex: 0 0 82vw; margin: 0; scroll-snap-align: center; transform: none !important; }
  .rf-card:hover { transform: none !important; box-shadow: 0 12px 34px -8px rgba(0,0,0,0.5); z-index: auto; }
  .rf-dots { display: flex; }
  .rf-order-row { grid-template-columns: 1fr; gap: 32px; max-width: 560px; }
  .rf-order-copy { text-align: center; align-items: center; opacity: 1; transform: none; }
  .rf-order-copy p { max-width: 540px; }
  .rf-order-actions { justify-content: center; }
  .rf-order-cards { grid-template-columns: 1fr; gap: 20px; }
  .rf-order-card-img { height: 220px; }
  .tabs-bar { justify-content: flex-start; }
  .subs-scroll { padding: 20px 16px; justify-content: flex-start; margin-left: -24px; margin-right: -24px; }
  .rf-menu-item-inner { flex-direction: column; min-height: 0; }
  .rf-menu-item-img { width: 100%; height: 220px; flex: none; margin: 0; border-radius: 20px 20px 0 0; }
  .rf-menu-item-body { display: flex; flex-direction: column; padding: 18px; gap: 10px; }
  .rf-menu-item-price { display: block; margin-top: 2px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; border-radius: 20px; }
  .social-links { flex-direction: column; align-items: center; gap: 12px; bottom: 30px; }
  #rf-burger-fixed { top: 16px; }
  .rf-burger-inner { width: 60px; height: 60px; border-radius: 18px; }
  .rf-bar { left: 16px; top: 28.75px; width: 28px; }
  .back-top { right: 18px; bottom: 18px; }
}
