/* ==================================================================
   OLIVE KITCHEN / styles.css
   TABLE OF CONTENTS
   01. Olive palette and reset
   02. Fixed restaurant navigation
   03. Stacked scroll pages
   04. Welcome page and food collage
   05. Menu category pages and dish cards
   06. Progress rail and motion
   07. Responsive layouts
   ================================================================== */

/* 01. OLIVE PALETTE AND RESET
   Edit these colors to change the restaurant's visual identity.
   ================================================================== */
:root {
  --olive-950: #171c15;
  --olive-900: #20271c;
  --olive-800: #303a27;
  --olive-700: #4c5939;
  --olive-600: #68734c;
  --olive-300: #bdc2a0;
  --cream: #f4f0e5;
  --paper: #fbf9f4;
  --sand: #e8dfcc;
  --clay: #b7774f;
  --ink: #20241e;
  --muted: #74766b;
  --line: #d9d5c9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--olive-950); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--olive-950); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

/* 02. FIXED RESTAURANT NAVIGATION
   ================================================================== */
.site-header { position: fixed; top: 14px; left: 22px; right: 22px; z-index: 30; min-height: 54px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 0 20px; border: 1px solid #ffffff20; border-radius: 7px; color: #f8f6ef; background: #11150fcc; box-shadow: 0 8px 30px #0002; backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .045em; white-space: nowrap; }
.wordmark span { color: #c4b57c; font-size: 25px; line-height: 0; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.main-nav a { position: relative; padding-block: 6px; color: #dbddd2; font-size: 10px; letter-spacing: .045em; white-space: nowrap; transition: color .2s; }
.main-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; background: #c4b57c; content: ""; transition: transform .22s; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-note { color: #c4c8b6; font-size: 8px; letter-spacing: .11em; white-space: nowrap; }
.header-note span { margin-left: 7px; color: #d1c28a; font-size: 12px; }

/* 03. STACKED SCROLL PAGES
   Every section is a full viewport panel. The next panel slides over it.
   ================================================================== */
.menu-story { padding: 78px 0 12vh; }
.menu-slide { position: sticky; top: calc(76px + var(--stack-offset, 0px)); z-index: var(--slide); width: min(1600px, calc(100% - 44px)); height: calc(100svh - 104px - var(--stack-offset, 0px)); min-height: 610px; margin: 0 auto 11vh; overflow: hidden; border: 1px solid #ffffff1c; border-radius: 8px; box-shadow: 0 18px 80px #05070555; scroll-snap-align: start; transform: scale(.97); transform-origin: top center; }
.slide-index { position: absolute; right: 23px; bottom: 19px; z-index: 5; color: currentColor; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.slide-index i { color: currentColor; font-size: 9px; font-style: normal; opacity: .55; }
.category-slide { display: grid; grid-template-columns: minmax(220px, .73fr) minmax(0, 2fr); align-items: center; gap: clamp(24px, 4vw, 68px); padding: clamp(34px, 5.5vw, 86px); }

/* 04. WELCOME PAGE AND FOOD COLLAGE
   ================================================================== */
.hero-slide { isolation: isolate; display: flex; align-items: center; color: #f8f5e9; background: var(--olive-900); }
.hero-slide::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #171c15 0%, #171c15f5 28%, #171c1566 63%, #171c1533 100%); content: ""; }
.hero-photo { position: absolute; overflow: hidden; border: 1px solid #d5c79650; border-radius: 3px; box-shadow: 0 20px 65px #0608068a; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-one { top: 10%; right: 8%; width: 43%; height: 67%; transform: rotate(2deg); }
.hero-photo-two { right: 36%; bottom: 9%; width: 27%; height: 42%; transform: rotate(-5deg); }
.hero-photo-three { right: 4%; bottom: 7%; width: 24%; height: 34%; transform: rotate(5deg); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #171c1590, transparent 24%, transparent 76%, #171c1570); }
.hero-content { position: relative; z-index: 2; width: min(610px, 58%); margin-left: clamp(34px, 8vw, 125px); padding: 22px 0 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: #c9cbb9; font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.olive-mark { color: #d6c98d; font-size: 16px; }
.hero-content h1 { margin: 0; font-family: var(--serif); font-size: clamp(78px, 12vw, 172px); font-weight: 400; letter-spacing: -.075em; line-height: .76; }
.hero-content h1 em { color: #d3c796; font-weight: 400; }
.hero-copy { margin: 30px 0 28px; color: #eeece1; font-family: var(--serif); font-size: clamp(15px, 1.55vw, 21px); line-height: 1.65; }
.hero-copy span { display: inline-block; margin-top: 3px; color: #c8cbb8; font-family: var(--sans); font-size: 13px; }
.round-link { width: 174px; min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 7px 0 15px; border: 1px solid #eee9d790; border-radius: 30px; color: #f5f1e4; font-size: 8px; font-weight: 700; letter-spacing: .1em; transition: color .2s, background .2s; }
.round-link:hover { color: var(--olive-950); background: var(--cream); }
.round-link b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--olive-950); background: #d5c994; font-size: 14px; }
.hero-footer { position: absolute; right: 32px; bottom: 23px; left: 32px; z-index: 2; display: flex; justify-content: space-between; color: #e2dfcead; font-size: 8px; letter-spacing: .14em; }

/* 05. MENU CATEGORY PAGES AND DISH CARDS
   ================================================================== */
.starters-slide { color: var(--ink); background: var(--cream); }
.salads-slide { color: #253021; background: #e4e8d9; }
.grill-slide { color: #f5f0e4; background: #333c2b; }
.pasta-slide { color: #3e2e25; background: #dfc6aa; }
.desserts-slide { color: #302e26; background: #f0eadf; }
.section-intro { max-width: 370px; }
.section-intro .eyebrow { margin-bottom: 17px; color: var(--olive-600); }
.grill-slide .section-intro .eyebrow { color: #d3c993; }
.pasta-slide .section-intro .eyebrow { color: #825536; }
.section-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 86px); font-weight: 400; letter-spacing: -.065em; line-height: .88; }
.section-intro h2 em { color: var(--olive-600); font-weight: 400; }
.grill-slide .section-intro h2 em { color: #d4c994; }
.pasta-slide .section-intro h2 em { color: #9a5c34; }
.arabic-line { margin: 20px 0 7px; color: var(--olive-700); font-family: var(--serif); font-size: 16px; }
.grill-slide .arabic-line { color: #d8d4b6; }
.pasta-slide .arabic-line { color: #875738; }
.section-copy { max-width: 310px; margin: 13px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.grill-slide .section-copy { color: #cbd0c0; }
.pasta-slide .section-copy { color: #6e5540; }
.text-link { display: inline-flex; align-items: center; gap: 13px; color: var(--olive-700); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.text-link span { font-size: 14px; transition: transform .2s; }
.text-link:hover span { transform: translateY(4px); }
.grill-slide .text-link { color: #e4d6a0; }
.pasta-slide .text-link { color: #744a2e; }
.dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(10px, 1.5vw, 23px); }
.dish-card { min-width: 0; overflow: hidden; border: 1px solid #5b583f38; border-radius: 4px; background: var(--paper); box-shadow: 0 13px 40px #21231916; transition: transform .35s, box-shadow .35s, border-color .3s; }
.dish-card:hover { transform: translateY(-5px); border-color: var(--olive-600); box-shadow: 0 22px 48px #21231926; }
.dish-card > img { width: 100%; height: clamp(180px, 28vh, 285px); object-fit: cover; background: #d8d2c2; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.dish-card:hover > img { transform: scale(1.045); }
.dish-info { padding: 15px clamp(11px, 1.4vw, 20px) 18px; }
.dish-number { display: block; margin-bottom: 9px; color: #8b8b7b; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.dish-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dish-title h3 { margin: 0; font-family: var(--serif); font-size: clamp(14px, 1.35vw, 19px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.dish-title strong { flex: 0 0 auto; color: var(--olive-700); font-size: 9px; font-weight: 750; white-space: nowrap; }
.dish-info p { min-height: 37px; margin: 8px 0 0; color: #77776d; font-size: 9px; line-height: 1.55; }
.grill-slide .dish-card { border-color: #d0d2bd36; color: var(--ink); }
.pasta-slide .dish-card { border-color: #72513429; }
.grill-slide .dish-card:hover, .pasta-slide .dish-card:hover { border-color: var(--olive-600); }
.slide-footer { position: absolute; right: 35px; bottom: 23px; left: 35px; display: flex; align-items: center; justify-content: space-between; color: #76786d; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.slide-footer a { color: var(--olive-700); }

/* 06. CLICKABLE PAGE BARS, OVERVIEW, AND MOTION
   ================================================================== */
.page-nav { position: fixed; top: 50%; right: 20px; z-index: 35; display: grid; justify-items: end; gap: 12px; transform: translateY(-50%); color: #e8e4d7; }
.page-nav-label { min-width: 62px; text-align: right; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.page-bars { display: grid; justify-items: end; gap: 8px; }
.page-bar { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 5px; background: #ffffff63; cursor: pointer; transition: width .25s ease, background .25s ease, opacity .25s ease; }
.page-bar:hover, .page-bar.is-active { width: 38px; background: #d6c98d; }
.page-bar:focus-visible { outline: 2px solid #f4f0e5; outline-offset: 4px; }
.overview-slide { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(80px, 10vh, 120px) clamp(28px, 8vw, 125px) 50px; color: #f4f0e5; background: radial-gradient(ellipse at 50% 45%, #303a27 0%, #20271c 45%, #171c15 100%); }
.overview-slide[hidden] { display: none !important; }
.overview-heading { width: min(100%, 1160px); display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 auto; }
.overview-heading .eyebrow { margin-bottom: 12px; }
.overview-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 66px); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
.overview-heading h2 em { color: #d3c796; font-weight: 400; }
.overview-return { display: inline-flex; align-items: center; gap: 18px; padding: 13px 0; border: 0; border-bottom: 1px solid #d6c98d88; color: #f4f0e5; background: transparent; font-size: 9px; font-weight: 700; letter-spacing: .13em; cursor: pointer; }
.overview-return span { color: #d6c98d; font-size: 15px; }
.overview-grid { width: min(100%, 1160px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin: 8px auto; }
.overview-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #ffffff26; border-radius: 5px; text-align: left; color: #f4f0e5; background: #11150f; box-shadow: 0 16px 40px #0003; cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.overview-card:hover, .overview-card:focus-visible { transform: translateY(-5px); border-color: #d6c98d; box-shadow: 0 22px 46px #0005; outline: none; }
.overview-preview { position: relative; aspect-ratio: 2.1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #e7e1d2; }
.overview-preview-home { justify-content: flex-start; padding: 7%; background-image: linear-gradient(90deg, #171c15ee, #171c1590 56%, #171c1530), var(--preview-image); background-position: center; background-size: cover; }
.overview-brand { max-width: 55%; color: #f8f5e9; font-family: var(--serif); font-size: clamp(18px, 2.3vw, 31px); line-height: .9; }
.overview-mini-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.overview-mini-grid img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.overview-mini-title { position: absolute; left: 7%; bottom: 8%; max-width: 70%; padding: 5px 8px; border-radius: 2px; color: #293022; background: #fbf9f4e8; font-family: var(--serif); font-size: clamp(11px, 1.3vw, 17px); }
.overview-caption { min-height: 38px; display: flex; align-items: center; gap: 11px; padding: 0 13px; }
.overview-caption > span { color: #d6c98d; font-size: 8px; letter-spacing: .1em; }
.overview-caption strong { min-width: 0; overflow: hidden; color: #f4f0e5; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.overview-caption b { margin-left: auto; color: #d6c98d; font-size: 13px; }
.overview-hint { margin: 0 auto; color: #d0d1c3a8; font-size: 8px; letter-spacing: .16em; text-align: center; }
.overview-hint span { padding: 0 7px; color: #d6c98d; }
.scroll-cue { position: fixed; right: 50%; bottom: 17px; z-index: 26; display: flex; align-items: center; gap: 10px; transform: translateX(50%); color: #e9e5d8bd; font-size: 8px; letter-spacing: .14em; pointer-events: none; transition: opacity .3s; }
.scroll-cue b { font-size: 15px; animation: nudge-down 1.4s ease-in-out infinite; }
.scroll-cue.is-hidden { opacity: 0; }
.reveal { transform: translateY(22px); opacity: 0; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in-view { transform: translateY(0); opacity: 1; }
.dish-card:nth-child(2) { transition-delay: .08s; }
.dish-card:nth-child(3) { transition-delay: .16s; }
@keyframes nudge-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* 07. RESPONSIVE LAYOUTS
   ================================================================== */
@media (min-width: 1500px) {
  .site-header { top: 20px; left: 30px; right: 30px; min-height: 62px; padding-inline: 25px; }
  .wordmark { font-size: 21px; }
  .main-nav a { font-size: 11px; }
  .menu-story { padding-top: 98px; }
  .menu-slide { top: calc(92px + var(--stack-offset, 0px)); width: min(1760px, calc(100% - 60px)); height: calc(100svh - 125px - var(--stack-offset, 0px)); min-height: 700px; }
  .hero-content { margin-left: 9vw; }
  .dish-card > img { height: clamp(240px, 34vh, 390px); }
  .dish-info { padding: 20px 22px 22px; }
  .dish-title h3 { font-size: 22px; }
  .dish-info p { font-size: 11px; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr; gap: 18px; }
  .header-note { display: none; }
  .main-nav { justify-content: flex-end; gap: clamp(12px, 2vw, 24px); }
  .category-slide { grid-template-columns: minmax(190px, .65fr) minmax(0, 2fr); gap: 22px; padding: 40px; }
  .section-intro h2 { font-size: clamp(48px, 6vw, 72px); }
  .dish-card > img { height: clamp(160px, 25vh, 235px); }
  .dish-info { padding: 12px; }
  .dish-info p { font-size: 8px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .menu-slide { min-height: 0; }
  .category-slide { gap: 20px; padding: clamp(20px, 2.5vw, 34px); }
  .section-intro h2 { font-size: clamp(40px, 4.2vw, 58px); }
  .section-copy { margin: 10px 0 15px; line-height: 1.55; }
  .dish-card > img { height: clamp(125px, 19vh, 170px); }
  .dish-info { padding: 11px; }
  .dish-info p { min-height: 30px; font-size: 8px; }
}

@media (max-width: 760px) {
  .menu-story { touch-action: pan-x pinch-zoom; }
  .site-header { top: 10px; left: 10px; right: 10px; min-height: 49px; gap: 10px; padding: 0 12px; background: #11150fee; backdrop-filter: none; }
  .wordmark { font-size: 15px; }
  .main-nav { justify-content: flex-end; gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 8px; }
  .menu-story { padding: 67px 0 12vh; }
  .menu-slide { position: sticky; top: calc(67px + var(--stack-offset, 0px)); width: calc(100% - 50px); height: calc(100svh - 90px - var(--stack-offset, 0px)); min-height: 0; margin: 0 0 10vh 8px; border-radius: 6px; box-shadow: 0 8px 24px #05070545; transform: scale(.985); }
  .hero-slide { height: calc(100svh - 90px); min-height: 0; }
  .hero-content { width: 76%; margin-left: 8%; }
  .hero-content h1 { font-size: clamp(72px, 16vw, 112px); }
  .hero-photo-one { top: 12%; right: -7%; width: 62%; height: 52%; opacity: .82; }
  .hero-photo-two { right: 35%; bottom: 8%; width: 35%; height: 34%; }
  .hero-photo-three { right: 2%; bottom: 9%; width: 31%; height: 27%; }
  .hero-photo { box-shadow: 0 8px 24px #06080670; }
  .hero-slide::before { background: linear-gradient(90deg, #171c15f9 0%, #171c15de 35%, #171c1550 100%); }
  .hero-footer { right: 15px; bottom: 16px; left: 15px; font-size: 6px; }
  .category-slide { display: grid; grid-template-columns: minmax(88px, .78fr) minmax(0, 1.22fr); align-items: center; gap: 10px; padding: 12px; }
  .section-intro { max-width: none; margin-bottom: 0; }
  .section-intro .eyebrow { margin-bottom: 7px; font-size: 7px; letter-spacing: .12em; }
  .section-intro h2 { font-size: clamp(31px, 8.5vw, 46px); }
  .arabic-line { margin: 9px 0 4px; font-size: 12px; }
  .section-copy { max-width: 430px; margin: 8px 0 12px; font-size: 9px; line-height: 1.5; }
  .text-link { gap: 5px; font-size: 6px; letter-spacing: .08em; }
  .dish-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; overflow: visible; padding: 0; }
  .dish-card { scroll-snap-align: none; box-shadow: 0 5px 14px #21231912; transition: border-color .2s ease; }
  .dish-card > img { height: clamp(64px, 11vh, 92px); transition: none; }
  .dish-number { display: none; }
  .dish-info { padding: 5px 7px 7px; }
  .dish-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .dish-title h3 { font-size: 10px; line-height: 1.15; }
  .dish-title strong { font-size: 8px; }
  .dish-info p { min-height: 0; margin-top: 4px; font-size: 7px; line-height: 1.3; }
  .slide-index { right: 17px; bottom: 14px; font-size: 9px; }
  .page-nav { right: 9px; gap: 8px; }
  .page-nav-label { min-width: 55px; font-size: 7px; }
  .page-bars { gap: 7px; }
  .page-bar { width: 17px; height: 3px; }
  .page-bar:hover, .page-bar.is-active { width: 29px; }
  .overview-slide { min-height: 100svh; gap: 18px; padding: 80px 20px 35px; }
  .overview-heading { align-items: flex-start; }
  .overview-heading h2 { font-size: clamp(34px, 9vw, 48px); }
  .overview-heading .eyebrow { font-size: 7px; }
  .overview-return { gap: 8px; margin-top: 24px; font-size: 7px; white-space: nowrap; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .overview-caption { min-height: 32px; gap: 7px; padding: 0 8px; }
  .overview-caption strong { font-size: 8px; }
  .overview-caption > span { font-size: 7px; }
  .overview-hint { max-width: 90%; font-size: 7px; line-height: 1.7; }
  .scroll-cue { bottom: 8px; font-size: 7px; }
  .slide-footer { right: 20px; bottom: 17px; left: 20px; font-size: 6px; }
}

@media (max-width: 760px) and (hover: none) {
  .dish-card:hover { transform: none; box-shadow: 0 5px 14px #21231912; }
  .dish-card:hover > img { transform: none; }
}

@media (max-width: 450px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr); }
  .main-nav { justify-content: flex-start; gap: 13px; }
  .main-nav a { font-size: 7px; }
  .menu-slide { top: calc(65px + var(--stack-offset, 0px)); width: calc(100% - 50px); height: calc(100svh - 88px - var(--stack-offset, 0px)); margin-left: 8px; }
  .menu-story { padding-top: 65px; }
  .hero-slide { height: calc(100svh - 88px); }
  .hero-content { width: 87%; }
  .hero-content .eyebrow { font-size: 7px; }
  .hero-copy { font-size: 14px; }
  .category-slide { grid-template-columns: minmax(78px, .72fr) minmax(0, 1.28fr); gap: 8px; padding: 9px; }
  .section-intro h2 { font-size: clamp(29px, 8.3vw, 38px); }
  .dish-grid { gap: 6px; }
  .dish-card > img { height: clamp(60px, 10.5vh, 82px); }
  .dish-info { padding: 4px 6px 6px; }
  .dish-title h3 { font-size: 9px; }
  .dish-title strong { font-size: 8px; }
  .dish-info p { font-size: 7px; line-height: 1.3; }
  .slide-footer span:nth-child(2) { display: none; }
  .page-nav { right: 6px; }
  .overview-slide { padding-inline: 13px; }
  .overview-heading { gap: 8px; }
  .overview-return { font-size: 6px; }
  .overview-caption { gap: 5px; padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
