/*
Theme Name:   Osha Child
Theme URI:    https://oshathaiatl.com/
Description:  Child theme of Hello Elementor for Osha Thai Sushi Galleria. Brand colors, fonts, buttons, transparent header, intro, collage, mobile order bar and GSAP/Lenis motion.
Author:       Local For You
Template:     hello-elementor
Version:      1.0.0
Text Domain:  osha-child
*/

/* ==========================================================
   1. BRAND TOKENS — change colors here once (pick from logo)
   ========================================================== */
:root {
  --osha-ink:      #15110E;   /* dark background / text */
  --osha-ink-2:    #241C17;   /* dark card */
  --osha-cream:    #F6EFE4;   /* light background */
  --osha-paper:    #FFFBF5;
  --osha-primary:  #E0A33A;   /* saffron — main CTA (Order Online) */
  --osha-accent:   #D6456B;   /* lotus pink — italic emphasis */
  --osha-jade:     #1F8A70;   /* jade — tags / small accents */
  --osha-muted:    #8C7F73;
  --osha-line:     rgba(255,255,255,.18);

  --osha-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --osha-sans:  "Jost", "Inter", system-ui, -apple-system, sans-serif;

  --osha-radius: 2px;
  --osha-ease: cubic-bezier(.22,1,.36,1);
}

/* ==========================================================
   2. BASE + ACCENT
   Fonts, sizes and colours of headings, text and buttons are set
   inside each Elementor widget (edit them in the Style tab).
   CSS only adds what Elementor can't: italic accent + hover motion.
   ========================================================== */
html { scroll-behavior: auto; }
body { font-family: var(--osha-sans); background: var(--osha-paper); -webkit-font-smoothing: antialiased; }

/* Ivy-Asia style italic emphasis: wrap words in <em> inside a heading */
.elementor-heading-title em { font-style: italic; color: var(--osha-accent); }
.osha-on-dark .elementor-heading-title em { color: var(--osha-primary); }

/* Button hover lift (colours come from the widget's own Style tab) */
.elementor .osha-btn .elementor-button {
  transition: background .4s var(--osha-ease), color .4s var(--osha-ease), border-color .4s var(--osha-ease), transform .4s var(--osha-ease);
}
.elementor .osha-btn .elementor-button:hover { transform: translateY(-2px); }

/* ==========================================================
   4. HEADER (HFE) — transparent over hero, solid after scroll
   ========================================================== */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background .5s var(--osha-ease), box-shadow .5s var(--osha-ease), padding .5s var(--osha-ease);
}
body.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar #masthead { top: 46px; } }

/* Header background is set natively in Elementor (dark, so it is visible in the editor).
   On the live site it is transparent over the hero until the page is scrolled. */
.osha-header { transition: background .5s var(--osha-ease), padding .5s var(--osha-ease); }
body:not(.elementor-editor-active):not(.osha-scrolled) .osha-header { background: transparent !important; }
body.osha-scrolled .osha-header {
  background: rgba(21,17,14,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.osha-header .osha-logo img { max-height: 64px; width: auto; transition: max-height .5s var(--osha-ease); }
body.osha-scrolled .osha-header .osha-logo img { max-height: 48px; }

/* HFE navigation colors */
.osha-header .hfe-nav-menu a.hfe-menu-item,
.osha-header .hfe-nav-menu .menu-item a {
  color: #fff !important;
  font-family: var(--osha-sans);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.osha-header .hfe-nav-menu .menu-item a:hover,
.osha-header .hfe-nav-menu .current-menu-item > a { color: var(--osha-primary) !important; }
.osha-header .hfe-nav-menu__toggle, .osha-header .hfe-nav-menu-icon { color: #fff; }
.osha-header .hfe-nav-menu__layout-horizontal .sub-menu,
.osha-header nav.hfe-dropdown { background: var(--osha-ink) !important; }

/* ==========================================================
   5. SECTIONS & CARDS
   ========================================================== */
.osha-dark  { background-color: var(--osha-ink); }
.osha-cream { background-color: var(--osha-cream); }

.osha-card {
  background: var(--osha-paper);
  overflow: hidden;
  transition: transform .6s var(--osha-ease), box-shadow .6s var(--osha-ease);
}
.osha-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(21,17,14,.14); }
.osha-card .elementor-widget-image { overflow: hidden; }
.osha-card .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--osha-ease);
}
.osha-card:hover .elementor-widget-image img { transform: scale(1.06); }


/* Tall food photos (signature menu) */
.osha-tall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.osha-wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.osha-zoom { overflow: hidden; }
.osha-zoom img { transition: transform 1.2s var(--osha-ease); }
.osha-zoom:hover img { transform: scale(1.05); }

/* Hero */
.osha-hero { overflow: hidden; }
.osha-hero .elementor-background-video-container video { object-fit: cover; }

/* ==========================================================
   6. COLLAGE (Adachi-style overlapping photos + parallax)
   Position / width / z-index of each photo = Advanced > Positioning in Elementor
   (drag values there). CSS only sets the photo ratio and the mobile layout.
   ========================================================== */
.osha-collage .osha-collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osha-collage__item--1 img { aspect-ratio: 3 / 4; }
.osha-collage__item--2 img { aspect-ratio: 4 / 5; }
.osha-collage__item--3 img { aspect-ratio: 3 / 4; }
.osha-collage__item--4 img { aspect-ratio: 4 / 3; }
.osha-collage__item--5 img { aspect-ratio: 1 / 1; }
@media (max-width: 767px) {
  .osha-collage { min-height: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
  .osha-collage .osha-collage__item { position: relative !important; inset: auto !important; width: 100% !important; transform: none !important; }
  .osha-collage__item--1 { grid-column: span 2; }
}

/* ==========================================================
   7. MENU PAGE  (items are plain <h3>/<h4>/<p> inside the Tabs widget)
   ========================================================== */
.osha-menu-tabs .elementor-tabs-wrapper { justify-content: center; border-bottom: 1px solid rgba(21,17,14,.12); }
.osha-menu-tabs .elementor-tab-title {
  font-family: var(--osha-sans); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  border: 0 !important; color: var(--osha-muted);
}
.osha-menu-tabs .elementor-tab-title.elementor-active { color: var(--osha-ink); box-shadow: inset 0 -2px 0 var(--osha-primary); }
.osha-menu-tabs .elementor-tab-content { border: 0 !important; padding: 48px 0 !important; }
.osha-menu-tabs h3 { font-family: var(--osha-serif); font-weight: 500; font-size: 36px; margin: 48px 0 12px; }
.osha-menu-tabs h3 em { font-style: italic; color: var(--osha-accent); }
.osha-menu-tabs h4 { font-family: var(--osha-serif); font-weight: 500; font-size: 24px; margin: 18px 0 2px; padding-top: 18px; border-top: 1px dashed rgba(21,17,14,.18); }
.osha-menu-tabs p { margin: 0 0 6px; color: var(--osha-muted); font-size: 15px; }

/* ==========================================================
   8. FOOTER + MOBILE ORDER BAR
   ========================================================== */
.osha-footer a { color: rgba(255,255,255,.8); }
.osha-footer a:hover { color: var(--osha-primary); }
.osha-footer .elementor-icon-list-text { color: rgba(255,255,255,.8); }

.osha-mobile-bar {
  position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 998;
  background: var(--osha-ink);
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
  padding-bottom: env(safe-area-inset-bottom) !important;
}
.osha-mobile-bar .elementor-button { width: 100%; }
@media (max-width: 767px) { body { padding-bottom: 64px; } }

/* ==========================================================
   9. MOTION HELPERS (driven by assets/js/osha.js)
   ========================================================== */
/* Reveal-lines: hide until JS splits the heading */
.js-motion .reveal-lines .elementor-heading-title { visibility: hidden; }
.reveal-lines .osha-line { display: block; overflow: hidden; padding-bottom: .06em; }
.reveal-lines .osha-line > span { display: inline-block; will-change: transform; }

/* Image reveal (mask) */
.img-reveal { overflow: hidden; }
.img-reveal img { will-change: transform, clip-path; }

/* Intro (Adachi-style vertical letters) */
.osha-intro {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--osha-ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.osha-intro__letters { display: flex; flex-direction: column; align-items: center; gap: .05em; font-family: var(--osha-serif); font-size: clamp(42px, 8vw, 88px); line-height: 1; }
.osha-intro__letters span { display: block; overflow: hidden; }
.osha-intro__letters span i { display: block; font-style: normal; }
.osha-intro__tag { position: absolute; bottom: 48px; left: 0; right: 0; text-align: center; font-family: var(--osha-sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--osha-primary); }
.osha-intro__skip {
  position: absolute; top: 24px; right: 24px; background: none; border: 1px solid var(--osha-line);
  color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 16px; cursor: pointer;
}
.osha-intro.is-hidden { display: none; }
.elementor-editor-active .osha-intro { display: none; } /* never block the editor */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal-lines .elementor-heading-title { visibility: visible; }
  .osha-intro { display: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
