/* ==========================================================================
   Tiki Tan — app promotion
   Deploy to: C:\inetpub\tiki-tan.com\wwwroot\assets\css\app-promo.css

   Every selector is prefixed .tt-app- and nothing here styles a bare element,
   so this cannot collide with the existing site stylesheet. Safe to load last.
   ========================================================================== */

:root {
  --tt-app-cream:      #FCEFD6;
  --tt-app-card:       #FFFFFF;
  --tt-app-card-line:  #F0E3C6;
  --tt-app-teal:       #0A5C68;
  --tt-app-teal-btn:   #0E7C8A;
  --tt-app-gold:       #F0B429;
  --tt-app-gold-soft:  #FDEFCB;
  --tt-app-brown:      #8A5A0A;
  --tt-app-body:       #4A5A62;
  --tt-app-muted:      #5A6A72;
}

/* ==========================================================================
   1. Nav chip  —  "Get the App"
   Sits immediately before the Book Now button in the header.
   ========================================================================== */

.tt-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 2px solid var(--tt-app-gold);
  border-radius: 999px;
  background: #FDF3D9;
  color: var(--tt-app-brown);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tt-app-chip:hover,
.tt-app-chip:focus-visible {
  background: var(--tt-app-gold);
  border-color: var(--tt-app-gold);
  color: #4A3005;
}

.tt-app-chip svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Header room, measured 2026-09-13: .nav-container caps at --tt-max-w
   (1200px) and the desktop row (logo + 744px of links + Book Now) leaves at
   most ~95px of slack, so the full "Get the App" label (146px) pushes Book
   Now off the row at EVERY desktop width. The chip therefore ships icon-only
   (41px, fits with zero overflow from 1200px up); the label stays in the DOM
   for screen readers and the anchor carries a title for the hover tooltip.
   Below 1200px the row is already tight without the chip (it intrudes into
   its own padding from ~1100px and overflows by 82px at 1040px — pre-existing,
   not ours), so the chip is hidden there. The sticky bar and the smart banner
   cover phones; nav-2026.css collapses the header at 1024px anyway. */
.tt-app-chip { padding: 9px 10px; gap: 0; }
.tt-app-chip span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 1199px) {
  .tt-app-chip { display: none; }
}

/* ==========================================================================
   2. Homepage app section
   ========================================================================== */

.tt-app-section {
  padding: 8px 24px 60px;
  /* Sits in the homepage's ivory band (after the VIP perks row, before the
     ivory->cream wave), so it takes the site's page token. The white inner
     card carries the design. */
  background: var(--tt-bg, var(--tt-app-cream));
}

.tt-app-section__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 48px;
  border: 1px solid var(--tt-app-card-line);
  border-radius: 26px;
  background: var(--tt-app-card);
  box-shadow: 0 18px 40px rgba(10, 92, 104, 0.10);
}

.tt-app-section__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.tt-app-section__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--tt-app-gold-soft);
  color: var(--tt-app-brown);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tt-app-section__eyebrow svg { width: 15px; height: 15px; }

.tt-app-section__title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--tt-app-teal);
  text-wrap: pretty;
}

.tt-app-section__script {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.25;
  color: var(--tt-app-teal-btn);
}

/* Same script face as the hero's "Welcome" (.tt-hero__title .k):
   --tt-font-accent = Caveat at weight 600. */
.tt-app-section__script { font-family: var(--tt-font-accent, cursive); font-weight: 600; }

.tt-app-section__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.tt-app-section__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 1.03rem;
  line-height: 1.5;
  color: var(--tt-app-body);
}

.tt-app-section__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tt-app-teal-btn);
  color: #fff;
}

.tt-app-section__tick svg { width: 16px; height: 16px; }

.tt-app-section__item b {
  font-weight: 600;
  color: var(--tt-app-teal);
}

.tt-app-section__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tt-app-section__qr {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-left: 22px;
  border-left: 1px solid #EADFC4;
}

.tt-app-section__qr img {
  width: 88px;
  height: 88px;
  display: block;
  border-radius: 8px;
  background: #fff;
}

.tt-app-section__qr span {
  max-width: 130px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--tt-app-muted);
}

.tt-app-section__qr b {
  display: block;
  font-weight: 600;
  color: var(--tt-app-teal);
}

.tt-app-section__shot {
  flex: 0 0 auto;
  width: 268px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

/* Phone — the site's own mobile breakpoint (sticky CTA, footer groups). */
@media (max-width: 767px) {
  .tt-app-section { padding: 8px 16px 44px; }

  .tt-app-section__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 30px 22px;
    border-radius: 20px;
  }

  /* Screenshot first on mobile — it sells harder than the bullets do. */
  .tt-app-section__shot { order: -1; align-self: center; width: 214px; }

  /* On a phone the QR is pointless: they are already holding the phone. */
  .tt-app-section__qr { display: none; }

  .tt-app-section__actions { gap: 12px; }
}

/* ==========================================================================
   3. Store badges  (shared by the app section and the footer)
   The <img> sources are Apple's and Google's official artwork — see the brief.
   ========================================================================== */

.tt-app-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tt-app-badges a {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.tt-app-badges a:hover,
.tt-app-badges a:focus-visible { opacity: 0.85; }

/* Apple requires a minimum badge height of 40px and clear space around it
   equal to 1/10th of the badge height. Google asks for 1/4 badge height.
   These sizes satisfy both. */
.tt-app-badges img {
  height: 52px;
  width: auto;
  display: block;
}

.tt-app-badges--footer { margin-top: 18px; }
.tt-app-badges--footer img { height: 46px; }

@media (max-width: 400px) {
  .tt-app-badges img { height: 46px; }
}

/* ==========================================================================
   4. Sticky bottom bar  (mobile only)
   Hidden until app-promo.js decides to show it. Never rendered on desktop.
   ========================================================================== */

.tt-app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900; /* under any modal/overlay the site already uses */
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--tt-app-teal);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.tt-app-bar.is-visible { display: flex; }
.tt-app-bar.is-shown   { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .tt-app-bar { transition: none; }
}

/* Only ever on small screens (site mobile breakpoint is 767px). */
@media (min-width: 768px) {
  .tt-app-bar { display: none !important; }
}

.tt-app-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FDF7E8;
  overflow: hidden;
}

.tt-app-bar__icon img { width: 36px; display: block; }

.tt-app-bar__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.tt-app-bar__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.tt-app-bar__sub {
  font-size: 0.74rem;
  color: #C3DCE1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-app-bar__cta {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--tt-app-gold);
  color: #4A3005;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.tt-app-bar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 44px;   /* full 44px touch target, narrow visual footprint */
  padding: 0;
  border: 0;
  background: none;
  color: #93BBC1;
  cursor: pointer;
}

.tt-app-bar__close svg { width: 16px; height: 16px; }

/* Keep the bar from covering the end of the page. Set by app-promo.js. */
body.tt-app-bar-open { padding-bottom: 84px; }
