/* ══════════════════════════════════════════════════
   TBL DIGITAL — Restaurants Page CSS
══════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────── */
.rest-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
  padding: 140px 48px 100px;
}

.rest-hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.rest-hero-noise {
  position: absolute; inset: 0; z-index: 1; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.rest-hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(201,168,232,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,232,.03) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* Floating restaurant images */
.rest-hero-media { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rest-hero-img {
  position: absolute;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s var(--e);
}
.rest-hero-img.loaded { opacity: 1; }
.rest-img-1 { width: 200px; height: 260px; top: 10%; left: 2%; animation: hmgFloat 14s ease-in-out infinite; }
.rest-img-2 { width: 170px; height: 220px; top: 15%; right: 3%; animation: hmgFloat 11s ease-in-out infinite; animation-delay: -4s; }
.rest-img-3 { width: 155px; height: 200px; bottom: 15%; left: 4%; animation: hmgFloat 16s ease-in-out infinite; animation-delay: -8s; }
.rest-img-4 { width: 145px; height: 190px; bottom: 12%; right: 5%; animation: hmgFloat 12s ease-in-out infinite; animation-delay: -2s; }

.rest-bg-word {
  position: absolute; bottom: -50px; left: 0; right: 0; text-align: center;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(80px, 14vw, 220px);
  color: rgba(201,168,232,.03); pointer-events: none; user-select: none;
  letter-spacing: -.03em; z-index: 1; white-space: nowrap;
}

.rest-hero-inner {
  position: relative; z-index: 3;
  text-align: center; max-width: 1000px; width: 100%;
}

.rest-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(201,168,232,.08); border: 1px solid rgba(201,168,232,.2);
  backdrop-filter: blur(20px); padding: 9px 22px; border-radius: 100px;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 48px;
  opacity: 0; transform: translateY(20px);
  animation: abFadeUp .8s .2s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-eyebrow-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #e8a8c9;
  animation: bPulse 2s infinite; flex-shrink: 0;
}

.rest-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 11vw, 150px);
  line-height: .88; letter-spacing: .01em; margin-bottom: 30px;
}

.rest-hl { display: block; overflow: hidden; }

.rest-hl-1 {
  color: rgba(255,255,255,.94);
  opacity: 0; transform: translateY(100%);
  animation: abSlideUp 1s .35s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-hl-grad {
  background: linear-gradient(135deg, #ffe8c0 0%, #e8a8c9 30%, #c9a8e8 60%, #e8a8c9 80%, #ffe8c0 100%);
  background-size: 400% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: abSlideUpFade 1s .52s cubic-bezier(.16,1,.3,1) forwards, lavendorShimmer 4s 1.5s ease-in-out infinite alternate;
  opacity: 0;
}

.rest-hl-3 {
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.65);
  opacity: 0; transform: translateY(100%);
  animation: abSlideUp 1s .68s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-hero-sub {
  font-size: 18px; line-height: 1.8; color: rgba(255,255,255,.52);
  max-width: 600px; margin: 0 auto 40px; font-weight: 300;
  opacity: 0; transform: translateY(20px);
  animation: abFadeUp .9s .85s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-hero-actions {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 52px;
  opacity: 0; animation: abFadeUp .9s 1s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-hero-stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: abFadeUp .9s 1.15s cubic-bezier(.16,1,.3,1) forwards;
}

.rest-hs-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 24px; border-radius: 100px;
  background: rgba(201,168,232,.07); border: 1px solid rgba(201,168,232,.17);
  backdrop-filter: blur(20px); transition: transform .35s var(--e), background .3s;
}
.rest-hs-pill:hover { transform: translateY(-6px) scale(1.05); background: rgba(201,168,232,.15); }
.rest-hs-pill strong { font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); line-height: 1; }
.rest-hs-pill span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 3px; }

.rest-hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
  opacity: 0; animation: abFadeUp .9s 1.4s var(--e) forwards;
}
.rest-scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, rgba(201,168,232,.6), transparent); animation: scrollLinePulse 2.2s ease-in-out infinite; }
.rest-hero-scroll span { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.25); }

/* ── MARQUEE ─────────────────────────────────── */
.rest-marquee-wrap {
  background: linear-gradient(90deg, #0d0b17, #131226);
  padding: 20px 0; overflow: hidden;
  border-top: 1px solid rgba(232,168,201,.07);
  border-bottom: 1px solid rgba(232,168,201,.07);
}
.rest-mq-track { display: flex; white-space: nowrap; animation: mRoll 30s linear infinite; }
.rest-mq-track span { display: inline-flex; align-items: center; gap: 18px; padding: 0 32px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .08em; color: rgba(232,168,201,.14); transition: color .3s; }
.rest-mq-track span:hover { color: rgba(255,255,255,.6); }
.rest-mq-track i { color: #e8a8c9; opacity: .6; font-style: normal; font-size: 11px; }

/* ── SHARED ──────────────────────────────────── */
.rest-eyebrow-tag {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(13,13,26,.38);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.rest-eyebrow-tag::before { content: ''; width: 24px; height: 1px; background: var(--pu-a); opacity: .6; }

.rest-section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(52px, 7vw, 96px);
  line-height: .88; letter-spacing: -.02em; color: var(--dark); margin-bottom: 16px;
}
.rest-section-title em { font-style: normal; color: var(--pu-a); }

.rest-section-sub { font-size: 17px; line-height: 1.75; color: rgba(13,13,26,.52); margin-bottom: 56px; max-width: 520px; }

/* ── JOURNEY / PHASES ────────────────────────── */
.rest-journey { padding: 140px 0 120px; background: var(--bg); }

.rest-journey-inner { max-width: 900px; margin: 0 auto; padding: 0 72px; }

.rest-phases { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }

.rest-phase {
  border-radius: 20px;
  border: 1px solid rgba(201,168,232,.14);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}

.rest-phase:hover {
  box-shadow: 0 20px 60px rgba(10,10,30,.08);
  transform: translateY(-2px);
}

.rest-phase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}

.rest-phase-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--phase-color);
  width: 52px;
  flex-shrink: 0;
  opacity: .7;
}

.rest-phase-titles { flex: 1; }

.rest-phase-sub {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--phase-color); display: block; margin-bottom: 4px;
}

.rest-phase-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: .04em;
  color: var(--dark); line-height: 1;
}

.rest-phase-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(201,168,232,.08); border: 1px solid rgba(201,168,232,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(13,13,26,.4); flex-shrink: 0;
  transition: all .3s var(--e);
}

.rest-phase.open .rest-phase-toggle {
  transform: rotate(180deg);
  background: var(--phase-color);
  color: #fff;
  border-color: var(--phase-color);
}

.rest-phase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.16,1,.3,1), padding .3s;
  padding: 0 28px;
}

.rest-phase.open .rest-phase-body {
  max-height: 500px;
  padding: 0 28px 28px;
}

.rest-phase-body p {
  font-size: 15px; line-height: 1.8; color: rgba(13,13,26,.58); margin-bottom: 18px;
}

.rest-phase-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rest-phase-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(13,13,26,.58); padding: 6px 0;
}

.rest-phase-list li::before {
  content: '✦';
  color: var(--phase-color);
  font-size: 9px;
  flex-shrink: 0;
}

/* ── RESTAURANT WORK GRID ────────────────────── */
.rest-work-section { padding: 140px 0 100px; background: var(--bg2); }

.rest-work-inner { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

.rest-work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.rest-work-item { border-radius: 20px; overflow: hidden; }
.rest-wi--hero  { grid-column: span 12; }
.rest-wi--half  { grid-column: span 6; }
.rest-wi--third { grid-column: span 4; }

.rest-wi-link { display: block; cursor: pointer; }

.rest-wi-media {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--dark2);
}
.rest-wi--hero  .rest-wi-media { aspect-ratio: 21/8; }
.rest-wi--half  .rest-wi-media { aspect-ratio: 16/10; }
.rest-wi--third .rest-wi-media { aspect-ratio: 4/3; }

.rest-wi-img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e); display: block; }
.rest-wi-placeholder { width: 100%; height: 100%; position: absolute; inset: 0; }
.rest-work-item:hover .rest-wi-img { transform: scale(1.06); }

.rest-wi-overlay {
  position: absolute; inset: 0; background: rgba(13,13,26,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s var(--e);
}
.rest-work-item:hover .rest-wi-overlay { opacity: 1; }

.rest-wi-cta {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 11px 22px; border-radius: 100px;
  transform: translateY(10px) scale(.92); transition: transform .4s var(--e);
}
.rest-work-item:hover .rest-wi-cta { transform: translateY(0) scale(1); }

.rest-wi-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 6px 14px; border-radius: 100px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transform: translateY(-3px); transition: transform .3s var(--e);
}
.rest-work-item:hover .rest-wi-badge { transform: translateY(-7px) scale(1.05); }

.rest-wi-featured-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  font-family: 'Space Mono', monospace; font-size: 10px; color: #fff; letter-spacing: .1em;
}

.rest-wi-info { padding: 18px 6px 8px; }
.rest-wi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rest-wi-year { font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(13,13,26,.3); }
.rest-wi-svcs { font-size: 11px; color: rgba(13,13,26,.35); letter-spacing: .04em; }
.rest-wi-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(22px, 2.5vw, 32px); color: var(--dark); margin-bottom: 4px; line-height: 1; transition: color .25s; }
.rest-work-item:hover .rest-wi-title { color: var(--pu-b); }
.rest-wi-client { font-size: 13px; color: rgba(13,13,26,.45); margin-bottom: 4px; }
.rest-wi-tagline { font-size: 12px; color: rgba(13,13,26,.32); font-style: italic; }

.rest-work-cta { text-align: center; }

/* ── WHY TBL ─────────────────────────────────── */
.rest-why-section {
  position: relative; background: var(--dark); padding: 140px 0; overflow: hidden;
}
.rest-why-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(201,168,232,.1), transparent 45%), radial-gradient(circle at 75% 65%, rgba(106,191,173,.07), transparent 40%);
}
.rest-why-inner { max-width: 1280px; margin: 0 auto; padding: 0 72px; position: relative; z-index: 2; }
.rest-why-section .rest-eyebrow-tag { color: rgba(201,168,232,.5); }
.rest-why-section .rest-eyebrow-tag::before { background: rgba(201,168,232,.4); }
.rest-why-section .rest-section-title { color: var(--bg); }

.rest-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px;
}

.rest-why-card {
  padding: 40px 34px;
  border-radius: 26px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,232,.1);
  position: relative; overflow: hidden;
  cursor: default;
  opacity: 0; transform: translateY(40px) scale(.96);
  transition: opacity .7s var(--e), transform .7s var(--e), background .3s;
}
.rest-why-card.rest-in { opacity: 1; transform: translateY(0) scale(1); }
.rest-why-card:hover { background: rgba(255,255,255,.07); transform: translateY(-8px) scale(1.01) !important; }

.rest-why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--why-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--e);
}
.rest-why-card:hover::before { transform: scaleX(1); }

.rest-why-icon { font-size: 30px; margin-bottom: 20px; display: block; transition: transform .3s var(--e); }
.rest-why-card:hover .rest-why-icon { transform: scale(1.2) rotate(8deg); }
.rest-why-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: .04em; color: var(--bg); margin-bottom: 12px; transition: color .25s; }
.rest-why-card:hover h3 { color: var(--why-accent); }
.rest-why-card p { font-size: 14px; line-height: 1.8; color: rgba(244,242,247,.42); }

/* ── SERVICES GRID ───────────────────────────── */
.rest-services-section { padding: 140px 0; background: var(--bg); }
.rest-services-inner { max-width: 1280px; margin: 0 auto; padding: 0 72px; }

.rest-svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px;
}

.rest-svc-card {
  padding: 36px 30px;
  border-radius: 22px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(201,168,232,.12);
  backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
  transition: all .35s var(--e);
  box-shadow: 0 8px 28px rgba(10,10,30,.04);
}
.rest-svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(10,10,30,.1);
  background: rgba(255,255,255,.88);
}
.rest-svc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,168,232,.06), transparent 60%);
  pointer-events: none;
}
.rest-svc-icon { font-size: 28px; margin-bottom: 16px; display: block; transition: transform .3s var(--e); }
.rest-svc-card:hover .rest-svc-icon { transform: scale(1.15) rotate(5deg); }
.rest-svc-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .04em; color: var(--dark); margin-bottom: 10px; }
.rest-svc-card p { font-size: 13px; line-height: 1.75; color: rgba(13,13,26,.52); }

/* ── CTA ─────────────────────────────────────── */
.rest-cta-section {
  position: relative; background: var(--dark); padding: 160px 48px;
  text-align: center; overflow: hidden;
}
.rest-cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.rest-cta-orb-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  top: -180px; left: -100px;
  background: radial-gradient(circle, rgba(232,168,201,.14), transparent 65%);
  animation: meshPulse 12s ease-in-out infinite;
}
.rest-cta-orb-2 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  bottom: -140px; right: -80px;
  background: radial-gradient(circle, rgba(201,168,232,.1), transparent 65%);
  animation: meshPulse 9s ease-in-out infinite; animation-delay: -4s;
}
.rest-cta-inner { position: relative; z-index: 2; }
.rest-cta-emoji { font-size: 56px; display: block; margin-bottom: 20px; animation: abFloat 6s ease-in-out infinite; }
.rest-cta-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(64px, 10vw, 130px); line-height: .88; color: var(--bg); margin-bottom: 20px; }
.rest-grad-text { background: var(--grad); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradAnim 5s ease-in-out infinite alternate; }
.rest-cta-inner p { font-size: 17px; color: rgba(244,242,247,.42); max-width: 440px; margin: 0 auto 44px; line-height: 1.75; }
.rest-cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.rest-cta-trust { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.rest-cta-trust span { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; color: rgba(244,242,247,.3); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .rest-why-grid, .rest-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rest-work-inner { padding: 0 24px; }
}
@media (max-width: 900px) {
  .rest-work-grid { grid-template-columns: 1fr; }
  .rest-wi--hero, .rest-wi--half, .rest-wi--third { grid-column: span 1; }
  .rest-journey-inner, .rest-why-inner, .rest-services-inner { padding-left: 24px; padding-right: 24px; }
  .rest-hero { padding: 120px 24px 80px; }
  .rest-img-1, .rest-img-2, .rest-img-3, .rest-img-4 { display: none; }
  .rest-phase-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rest-why-grid, .rest-svc-grid { grid-template-columns: 1fr; }
  .rest-hero-title { font-size: clamp(56px, 17vw, 90px); }
  .rest-cta-trust { flex-direction: column; gap: 10px; }
}