/* ============================================================
   TK BRAND - visual layer
   OWNER: Antigravity / Gemini (templates + visual)
   ------------------------------------------------------------
   Integration BASELINE from Claude (M1): full-bleed hero, overlay scrim,
   buttons, section rhythm, and the immersive header overlay. Gemini expands
   this into the full agency look. Use --tk-* tokens only (no raw hex), keep
   image dimensions explicit (no CLS), and ship mobile fallbacks.
   ============================================================ */

:root {
  --tk-yelp: #E00707;
}

/* Immersive header overlay: transparent over the hero, solid once scrolled.
   NOTE: confirm the Shoptimizer header selectors against the live DOM at M4. */
body.tk-brand-immersive #masthead,
body.tk-brand-immersive .site-header {
  position: absolute; left: 0; right: 0; top: 0; z-index: 20;
  background: transparent !important; box-shadow: none !important;
  transition: background .3s ease, box-shadow .3s ease;
}
body.tk-brand-immersive.tk-scrolled #masthead,
body.tk-brand-immersive.tk-scrolled .site-header {
  position: fixed; background: var(--white) !important; box-shadow: var(--sh-md) !important;
}

/* Brand page base */
body.tk-brand-immersive { font-family: var(--font-sans); color: var(--ink-800); }
.tk-section { padding: var(--tk-section-y) var(--tk-gutter); }
.tk-section__inner { max-width: var(--tk-maxw); margin: 0 auto; }
.tk-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05; color: var(--ink-900); margin: 0 0 .5em;
}

/* Hero */
.tk-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--white); background: var(--ink-900);
}
.tk-hero__media { position: absolute; inset: 0; z-index: 0; }
.tk-hero__media img, .tk-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,0.2) 0%, rgba(20,17,15,0.85) 100%);
}
.tk-hero__overlay { position: relative; z-index: 1; text-align: center; max-width: 1000px; padding: 0 var(--tk-gutter); margin-top: 60px; }
body.tk-brand-immersive .tk-hero__headline, body.tk-brand-immersive .tk-hero__sub, body.tk-brand-immersive .tk-dish__name { color: var(--white) !important; }

.tk-hero__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 10vw, 110px);
  line-height: 1.02; margin: 0 0 .3em; text-wrap: balance;
}
.tk-hero__sub { font-size: clamp(18px, 2.5vw, 24px); opacity: .95; margin: 0 auto 1.6em; max-width: 42ch; text-wrap: balance;}
.tk-hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Credibility Strip */
.tk-credibility-strip {
  background: var(--ink-900); color: var(--white);
  padding: 16px var(--tk-gutter); text-align: center;
  border-bottom: 1px solid var(--ink-800);
}
.tk-credibility-strip__inner {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.tk-credibility-strip__icon { color: var(--tk-yelp); display: inline-flex; }

/* Buttons */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--r-md);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 48px; /* mobile tap target */
}
@media (prefers-reduced-motion: reduce) {
  .tk-btn, .tk-dish img, .tk-package, .tk-gallery-item img { transition: none !important; transform: none !important; }
  .tk-dish:hover img, .tk-gallery-item:hover img { transform: none !important; }
  .tk-btn--primary:hover { transform: none !important; }
}
.tk-btn--primary { background: var(--tk-red); color: var(--white); box-shadow: var(--sh-md); }
.tk-btn--primary:hover { background: var(--tk-red-hover); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.tk-btn--ghost {
  background: rgba(255,255,255,.15); color: var(--white);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.5);
}
.tk-btn--ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.tk-btn:focus-visible, a:focus-visible { outline: 2px solid var(--tk-red); outline-offset: 2px; }
.tk-icon { display: inline-block; vertical-align: middle; }
img { color: transparent; } /* Hides broken image icon */

/* Pillars */
.tk-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; text-align: center; }
.tk-pillar__icon { 
  display: inline-flex; align-items: center; justify-content: center; 
  width: 72px; height: 72px; border-radius: 50%; 
  background: var(--tk-red-tint); color: var(--tk-red); 
  margin-bottom: 24px; box-shadow: var(--sh-sm);
}
.tk-pillar__title { font-family: var(--font-display); font-size: 28px; color: var(--ink-900); margin: 0 0 16px; }
.tk-pillar__copy { color: var(--ink-600); line-height: 1.6; font-size: 17px; margin: 0; }

/* Dishes */
.tk-dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.tk-dish { 
  position: relative; border-radius: var(--r-xl); overflow: hidden; 
  background: var(--ink-100); box-shadow: var(--sh-md);
  isolation: isolate; 
}
.tk-dish img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .5s cubic-bezier(0.25, 1, 0.5, 1); }
.tk-dish:hover img { transform: scale(1.08); }
.tk-dish__info { 
  position: absolute; inset: 0; 
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; 
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 60%); 
}
.tk-dish__name { font-family: var(--font-display); font-size: 28px; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Catering Teaser */
.tk-home-catering-teaser { 
  background: var(--tk-amber) url('/wp-content/plugins/tk-brand/assets/img/spices.webp') center/cover;
  position: relative;
  color: var(--white); text-align: center; padding: 120px var(--tk-gutter); 
}
.tk-home-catering-teaser::before {
  content: ""; position: absolute; inset: 0; background: rgba(20, 17, 15, 0.7);
}
.tk-home-catering-teaser .tk-section__inner { position: relative; z-index: 1; }
.tk-home-catering-teaser .tk-section__title { color: var(--white); }
.tk-home-catering-teaser p { font-size: 22px; max-width: 640px; margin: 0 auto 40px; opacity: 0.95; line-height: 1.5; }

/* Reviews */
.tk-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; }
.tk-review { 
  background: var(--white); padding: 40px; border-radius: var(--r-xl); 
  box-shadow: var(--sh-lg); border: 1px solid var(--ink-100);
}
.tk-review__stars { color: var(--tk-amber); margin-bottom: 20px; display: flex; gap: 4px; }
.tk-review__text { font-size: 18px; line-height: 1.6; color: var(--ink-800); margin-bottom: 24px; font-style: italic; }
.tk-review__author { font-weight: 700; color: var(--ink-900); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-review__author span { color: var(--tk-red); margin-right: 4px; }
.tk-yelp-badge { 
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tk-yelp); color: var(--white); 
  padding: 10px 20px; border-radius: var(--r-md); 
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 32px; box-shadow: var(--sh-md); 
}

/* Timeline */
.tk-timeline { list-style: none; padding: 0; margin: 64px 0 0; position: relative; }
.tk-timeline::before { content: ''; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--ink-200); }
.tk-timeline-step { position: relative; padding-left: 96px; margin-bottom: 80px; }
.tk-timeline-step::before { 
  content: ''; position: absolute; left: 24px; top: 6px; 
  width: 16px; height: 16px; border-radius: 50%; 
  background: var(--tk-red); border: 4px solid var(--white); box-shadow: var(--sh-sm); 
}
.tk-timeline-step__year { font-family: var(--font-display); font-size: 40px; color: var(--tk-red); margin: 0 0 12px; line-height: 1; }
.tk-timeline-step__title { font-size: 24px; font-weight: 700; color: var(--ink-900); margin: 0 0 16px; }
.tk-timeline-step__copy { color: var(--ink-600); line-height: 1.6; font-size: 18px; margin: 0; max-width: 600px; }

/* Values */
.tk-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; margin-top: 48px; }
.tk-value { text-align: left; }
.tk-value__img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--r-xl); margin-bottom: 32px; background: var(--ink-100); box-shadow: var(--sh-md); }
.tk-value__title { font-family: var(--font-display); font-size: 28px; color: var(--ink-900); margin: 0 0 16px; }
.tk-value__copy { color: var(--ink-600); line-height: 1.6; font-size: 17px; margin: 0; }

/* Team */
.tk-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; margin-top: 48px; }
.tk-team-member { text-align: center; }
.tk-team-member__img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 50%; margin-bottom: 24px; background: var(--ink-100); box-shadow: var(--sh-sm); }
.tk-team-member__name { font-size: 22px; font-weight: 700; color: var(--ink-900); margin: 0 0 6px; }
.tk-team-member__role { color: var(--tk-red); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }

/* Story CTA Block */
.tk-story-cta { background: var(--ink-900); color: var(--white); text-align: center; padding-top: 100px; padding-bottom: 100px; }
.tk-story-cta .tk-section__title { color: var(--white); margin-bottom: 32px; }

/* Packages */
.tk-packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; margin-top: 48px; align-items: start; }
.tk-package { 
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-xl); 
  padding: 48px; text-align: center; transition: box-shadow .3s ease, transform .3s ease; position: relative; 
}
.tk-package:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.tk-package__name { font-family: var(--font-display); font-size: 32px; color: var(--ink-900); margin: 0 0 16px; }
.tk-package__price { font-size: 36px; color: var(--tk-red); font-weight: 800; margin: 0 0 32px; }
.tk-package__price span { font-size: 18px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-package__features { list-style: none; padding: 0; margin: 0 0 40px; text-align: left; }
.tk-package__features li { margin-bottom: 16px; color: var(--ink-700); font-size: 17px; display: flex; align-items: flex-start; gap: 12px; }
.tk-package__features .tk-icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Process */
.tk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; text-align: center; margin-top: 64px; }
.tk-step__icon { 
  display: inline-flex; align-items: center; justify-content: center; 
  width: 80px; height: 80px; border-radius: 50%; background: var(--white); color: var(--tk-red); 
  border: 1px solid var(--ink-200); margin-bottom: 32px; box-shadow: var(--sh-sm);
}
.tk-step__title { font-family: var(--font-display); font-size: 28px; color: var(--ink-900); margin: 0 0 16px; }
.tk-step__copy { color: var(--ink-600); line-height: 1.6; font-size: 17px; margin: 0; }

/* Gallery */
.tk-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.tk-gallery-item { border-radius: var(--r-lg); overflow: hidden; background: var(--ink-100); isolation: isolate; }
.tk-gallery-item img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .5s cubic-bezier(0.25, 1, 0.5, 1); }
.tk-gallery-item:hover img { transform: scale(1.08); }

/* Inquiry CTA */
.tk-catering-inquiry { background: var(--tk-red-tint); padding-top: 100px; padding-bottom: 100px; text-align: center; }
.tk-catering-inquiry .tk-section__title { margin-bottom: 32px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  body.tk-brand-immersive .tk-hero__headline { font-size: clamp(40px, 12vw, 56px); }
  body.tk-brand-immersive .tk-hero__sub { font-size: 18px; }
  .tk-timeline { margin-top: 40px; }
  .tk-timeline::before { left: 15px; }
  .tk-timeline-step { padding-left: 56px; margin-bottom: 56px; }
  .tk-timeline-step::before { left: 8px; }
  .tk-package { padding: 32px 24px; }
}
