/* ============================================================
   J&I Variety — styles.css
   Palette: deep teal (trust) + warm amber (lottery/luck) + ink
   ============================================================ */

:root {
  --teal-900: #0a3f4d;
  --teal-800: #0e5d70;
  --teal-700: #12768f;
  --teal-100: #d7edf1;
  --amber-600: #d98a17;
  --amber-500: #f0a828;
  --amber-100: #fdefd4;

  --ink: #16242a;
  --body: #3c4a50;
  --muted: #6b7a80;
  --line: #e2e8ea;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --card: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10,63,77,.06), 0 8px 24px rgba(10,63,77,.08);
  --shadow-lg: 0 10px 40px rgba(10,63,77,.14);
  --wrap: 1120px;

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --teal-100: #123840;
  --ink: #eef4f5;
  --body: #c2d0d4;
  --muted: #8fa1a6;
  --line: #244149;
  --bg: #0c1a1f;
  --bg-alt: #10262c;
  --card: #142b32;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { font-family: var(--ff-display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-700); }

.eyebrow {
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--amber-600);
  margin: 0 0 .6rem;
}
.section-lede { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--teal-800); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 2000; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-900); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .35em; text-decoration: none; }
.brand-mark { font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; color: var(--teal-800); }
.brand-word { font-family: var(--ff-body); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--body); font-weight: 500; font-size: .96rem;
  padding: .5em .8em; border-radius: 8px; transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--bg-alt); color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-call { padding: .5em 1em; font-size: .92rem; }

.theme-toggle { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; }
.theme-toggle-track {
  width: 46px; height: 26px; border-radius: 999px; background: var(--line);
  display: inline-flex; align-items: center; padding: 3px; transition: background-color .3s;
}
.theme-toggle-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .3s;
}
.theme-toggle[aria-pressed="true"] .theme-toggle-track { background: var(--teal-700); }
.theme-toggle[aria-pressed="true"] .theme-toggle-thumb { transform: translateX(20px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: visual, tap-first ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 620px);
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(24px, 4vw, 40px);
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; background: var(--teal-900); }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
/* Legibility scrim over photos */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,25,30,.35) 0%, rgba(8,25,30,.15) 40%, rgba(8,25,30,.82) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  margin-bottom: 16px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status-dot.open { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.status-dot.closed { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.25); }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0 0 .2em;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: rgba(255,255,255,.92);
  margin: 0 0 1.8rem; max-width: 40ch; font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* Big action tiles */
.hero-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px;
}
.action-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; transition: background-color .2s, transform .15s;
}
.action-tile:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); color: #fff; }
.action-ico { font-size: 1.7rem; line-height: 1; }

/* ---------- Tonight strip ---------- */
.tonight-strip { background: var(--teal-900); color: #fff; padding: 22px 0; }
[data-theme="dark"] .tonight-strip { background: #071318; }
.tonight-strip .eyebrow { color: var(--amber-500); margin-bottom: .7rem; }
.tonight-strip-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tonight-strip-list a {
  display: inline-flex; align-items: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 8px 15px; font-weight: 600; font-size: .92rem; color: #fff; text-decoration: none;
  transition: background-color .2s;
}
.tonight-strip-list a:hover { background: rgba(255,255,255,.22); }
.tonight-strip-list .none { color: rgba(255,255,255,.85); font-size: .92rem; }
.tonight-strip-list .t-time { color: var(--amber-500); font-weight: 700; margin-left: 7px; }
.tonight-strip-link { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; text-decoration: none; }
.tonight-strip-link:hover { color: #fff; }

/* ---------- Logo strip ---------- */
.logo-strip { background: var(--bg); padding: 20px 0; border-bottom: 1px solid var(--line); }
.logo-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.logo-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 8px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .9rem; white-space: nowrap; transition: transform .15s, box-shadow .2s;
}
.logo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-chip img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.logo-chip.is-text { padding: 8px 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.about { background: var(--bg); }
.services { background: var(--bg-alt); }
.lottery { background: var(--bg); }
.gallery-sec { background: var(--bg-alt); }
.visit { background: var(--bg); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-badges li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.about-badges strong { font-family: var(--ff-display); font-size: 1.25rem; color: var(--teal-800); }
.about-badges span { color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
/* Desktop/laptop: flexible, 3-4 per row depending on width. */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-top: 2rem;
}
/* Phone & small tablet: ALWAYS exactly 2 per row. */
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { margin: 12px 14px 14px; font-size: 1rem; }
  .card-ico { padding: 14px 14px 0; }
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: var(--bg-alt); }
.card-ico { font-size: 1.8rem; display: block; padding: 22px 22px 0; }
.card h3 { margin: 16px 22px 18px; }
.card p { margin: 0 22px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- Lottery ---------- */
.tonight-card {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 1.8rem 0 2rem;
  box-shadow: var(--shadow-lg);
}
.tonight-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--amber-500); font-weight: 600; margin-bottom: .8rem; }
.tonight-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tonight-list li {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem;
}
.tonight-list li.none { background: none; border: 0; padding-left: 0; font-weight: 400; color: rgba(255,255,255,.8); }
.tonight-list .t-time { color: var(--amber-500); font-weight: 700; margin-left: 6px; }

.lotto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lotto-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow);
}
.lotto-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: inherit; color: var(--ink);
}
.lotto-head:hover { background: var(--bg-alt); }
.lotto-headline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lotto-logo {
  width: 52px; height: 52px; object-fit: contain; border-radius: 8px;
  background: #fff; padding: 4px; flex-shrink: 0; border: 1px solid var(--line);
}
.lotto-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lotto-title strong { font-family: var(--ff-display); font-size: 1.15rem; }
.lotto-title .lotto-when { color: var(--muted); font-size: .88rem; font-weight: 400; }
.lotto-chev { color: var(--teal-700); font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.lotto-head[aria-expanded="true"] .lotto-chev { transform: rotate(180deg); }
.lotto-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.lotto-body-inner { overflow: hidden; }
.lotto-head[aria-expanded="true"] + .lotto-body { grid-template-rows: 1fr; }
.lotto-detail { padding: 0 22px 22px; color: var(--body); font-size: .94rem; }
.lotto-detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.lotto-detail dt { color: var(--muted); font-weight: 600; }
.lotto-detail dd { margin: 0; color: var(--ink); }
.lotto-detail .how { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lotto-badge {
  display: inline-block; background: var(--amber-100); color: var(--amber-600);
  border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; margin-left: 8px;
}
[data-theme="dark"] .lotto-badge { background: rgba(240,168,40,.16); }
.lotto-note { color: var(--muted); font-size: .85rem; margin-top: 1.6rem; max-width: 70ch; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 1.8rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.tour-cta { margin-top: 2rem; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-block { margin-bottom: 1.8rem; }
.info-block h3 { color: var(--teal-800); margin-bottom: .3rem; }
.info-block p { margin: 0 0 .8rem; }
.hours { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--body); font-weight: 500; }
.hours td { color: var(--ink); text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--teal-700); font-weight: 700; }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #cfe4e9; padding: 40px 0; }
[data-theme="dark"] .site-footer { background: #071318; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-word { color: #cfe4e9; }
.site-footer p { margin: .4rem 0 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-legal { text-align: right; opacity: .85; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-badges { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-actions { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: min(82vh, 560px); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .btn-call { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

/* ---- Force 2-per-row on phones & tablets (final override) ---- */
@media (max-width: 900px) {
  .services .card-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .services .card h3 { margin: 12px 14px 14px; font-size: 1rem; }
  .services .card-ico { padding: 14px 14px 0; }
}