/* =====================================================================
   QUEEN CAPTIVATED — "Memory Lane" nostalgic layer
   Warm film-photo look: grain, vignette, sepia-toned photos, typewriter
   labels, polaroid cards, film-strip dividers and a projector warm-up.
   Everything is switched by `html.qc-vintage` so visitors can turn it off
   (button bottom-left) and it is disabled for reduced-motion users where
   it animates. Shared by the marketing site, homestay app and car-rental app.
   ===================================================================== */

:root {
  --qc-paper: #f3e7cf;
  --qc-paper-deep: #e6d3ae;
  --qc-ink: #2b2118;
  --qc-amber: rgba(214, 150, 60, 0.16);
  --qc-typewriter: 'Special Elite', 'Courier New', ui-monospace, monospace;
}

/* ---------- film grain + vignette + warm light leak ---------- */
.qc-film, .qc-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 9000; display: none; }
html.qc-vintage .qc-film, html.qc-vintage .qc-vignette { display: block; }

.qc-film {
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: qc-grain 1.1s steps(6) infinite;
}
@keyframes qc-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.qc-vignette {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(30, 14, 0, .38) 100%),
    linear-gradient(180deg, var(--qc-amber), transparent 22%, transparent 78%, rgba(160, 90, 20, .12));
}

/* ---------- photos look like prints; they "develop" when revealed ---------- */
html.qc-vintage img:not(.qc-no-tone) {
  filter: sepia(.22) saturate(.92) contrast(1.04);
  transition: filter .5s ease, opacity .6s ease;
}
html.qc-vintage img:not(.qc-no-tone):hover { filter: sepia(.05) saturate(1) contrast(1.02); }
html.qc-vintage .qc-develop { filter: sepia(1) brightness(1.35) blur(3px) !important; opacity: .55; }

/* ---------- typewriter labels ---------- */
html.qc-vintage .tag, html.qc-vintage .subtitle, html.qc-vintage .label-eyebrow,
html.qc-vintage .brand .tag, html.qc-vintage .stat .l, html.qc-vintage th, html.qc-vintage .badge {
  font-family: var(--qc-typewriter) !important;
  letter-spacing: .08em;
}

/* ---------- "stamp" buttons: hard offset shadow that presses in ---------- */
html.qc-vintage .btn-gold, html.qc-vintage .btn-primary, html.qc-vintage .btn-accent {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
  transition: transform .08s ease, box-shadow .08s ease, background-color .2s ease, opacity .2s ease;
}
html.qc-vintage .btn-gold:active, html.qc-vintage .btn-primary:active, html.qc-vintage .btn-accent:active {
  transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
}

/* ---------- accessibility & UX (always on) ---------- */
:focus-visible { outline: 3px solid #e0a63a; outline-offset: 3px; border-radius: 4px; }
button, [role="button"], .btn, a.btn-gold, a.btn-ghost, .navtabs button { min-height: 40px; }
.qc-skip {
  position: fixed; left: 12px; top: -60px; z-index: 10001; background: #e0a63a; color: #1b1208;
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: top .15s;
}
.qc-skip:focus { top: 12px; }

/* ---------- Memory Lane switch ---------- */
.qc-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 10000; display: inline-flex; align-items: center; gap: 8px;
  font: 13px/1 var(--qc-typewriter); color: #f6e7c8; background: rgba(30, 20, 10, .88);
  border: 1px solid rgba(224, 166, 58, .6); border-radius: 999px; padding: 10px 14px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.qc-toggle:hover { background: rgba(60, 38, 14, .95); }
.qc-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: #777; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.qc-toggle[aria-pressed="true"] .dot { background: #ff6a3d; box-shadow: 0 0 8px 2px rgba(255, 106, 61, .7); }

/* ---------- projector warm-up intro ---------- */
.qc-intro {
  position: fixed; inset: 0; z-index: 10002; background: #120c06; color: #f1dfb8; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  cursor: pointer; transition: opacity .7s ease, visibility .7s;
}
.qc-intro.qc-out { opacity: 0; visibility: hidden; }
.qc-intro .reel {
  width: 96px; height: 96px; border-radius: 50%; border: 3px solid #e0a63a; position: relative;
  display: flex; align-items: center; justify-content: center; font: 700 44px var(--qc-typewriter);
  animation: qc-flicker .5s steps(3) infinite;
}
.qc-intro .reel::before, .qc-intro .reel::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed rgba(224, 166, 58, .6);
}
.qc-intro .title { font: 400 22px var(--qc-typewriter); letter-spacing: .14em; text-transform: uppercase; }
.qc-intro .hint { font: 12px var(--qc-typewriter); opacity: .6; }
@keyframes qc-flicker { 0%{opacity:1} 50%{opacity:.82} 100%{opacity:.95} }

/* ---------- rubber stamp ---------- */
.qc-stamp {
  display: inline-block; font: 12px var(--qc-typewriter); letter-spacing: .16em; text-transform: uppercase;
  color: #c0553a; border: 2px solid #c0553a; border-radius: 4px; padding: 5px 10px; transform: rotate(-4deg);
  opacity: .85; mix-blend-mode: normal; background: rgba(192, 85, 58, .06);
}

/* =====================================================================
   MARKETING SITE (dark) — warmer, sepia-black "cinema" palette
   ===================================================================== */
html.qc-vintage.qc-site-marketing {
  --bg: #100b07; --card: #17100a; --secondary: #221810; --border: hsl(33, 28%, 24%);
  --fg: #f3e4c6; --muted: hsl(36, 16%, 66%);
}
html.qc-vintage.qc-site-marketing section + section::before {
  /* film-strip perforations between sections */
  content: ''; display: block; height: 14px; margin: -96px 0 82px;
  background:
    radial-gradient(circle at 10px 7px, #100b07 3px, transparent 3.5px) 0 0 / 28px 14px repeat-x,
    linear-gradient(#2a1d10, #2a1d10);
  opacity: .9;
}
html.qc-vintage.qc-site-marketing .service-card,
html.qc-vintage.qc-site-marketing .why-card,
html.qc-vintage.qc-site-marketing .testimonial-card,
html.qc-vintage.qc-site-marketing .about-card {
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px hsl(36, 40%, 62%, .28);
}
html.qc-vintage.qc-site-marketing .hero-overlay {
  background: linear-gradient(180deg, rgba(25, 12, 0, .72), rgba(20, 10, 0, .62) 55%, rgba(16, 11, 7, .92));
}
html.qc-vintage.qc-site-marketing .section-header h2,
html.qc-vintage.qc-site-marketing .hero-text h1,
html.qc-vintage.qc-site-marketing .hero-text h2 { text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }

/* =====================================================================
   HOMESTAY APP (light) — cream paper + polaroid room cards
   ===================================================================== */
html.qc-vintage.qc-site-homestay {
  --bg: #f3e7cf; --surface: #fffaf0; --ink: #2b2118; --muted: #6f6150; --border: #d8c59e;
  --accent-soft: #f1dba6;
}
html.qc-vintage.qc-site-homestay body {
  background-image: radial-gradient(rgba(120, 80, 20, .06) 1px, transparent 1.2px);
  background-size: 6px 6px;
}
html.qc-vintage.qc-site-homestay .grid > .card {
  background: #fffdf7; border: 1px solid #e3d3ad; border-radius: 3px;
  padding: 12px 12px 0; box-shadow: 0 6px 16px rgba(80, 50, 10, .22), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: transform .25s ease, box-shadow .25s ease;
}
html.qc-vintage.qc-site-homestay .grid > .card:nth-child(odd) { transform: rotate(-.7deg); }
html.qc-vintage.qc-site-homestay .grid > .card:nth-child(even) { transform: rotate(.6deg); }
html.qc-vintage.qc-site-homestay .grid > .card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 12px 24px rgba(80, 50, 10, .3); }
html.qc-vintage.qc-site-homestay .card .thumb { border-radius: 1px; box-shadow: inset 0 0 22px rgba(80, 40, 0, .28); }
html.qc-vintage.qc-site-homestay .card .title { font-family: var(--qc-typewriter); font-weight: 400; }
html.qc-vintage.qc-site-homestay .topbar { background: #1f4b43; border-bottom: 4px double #c6941a; }
html.qc-vintage.qc-site-homestay .hero h1 { text-shadow: 1px 1px 0 rgba(198, 148, 26, .35); }
html.qc-vintage.qc-site-homestay .panel, html.qc-vintage.qc-site-homestay .stat, html.qc-vintage.qc-site-homestay .tbl-wrap {
  box-shadow: 0 0 0 4px #fffaf0, 0 0 0 5px #d8c59e, 0 6px 14px rgba(80, 50, 10, .15); margin: 5px;
}

/* =====================================================================
   CAR-RENTAL APP (dark, Tailwind) — same cinema palette as marketing
   ===================================================================== */
html.qc-vintage.qc-site-car body { background-color: #100b07; }
html.qc-vintage.qc-site-car .card {
  box-shadow: inset 0 0 0 4px #1e1810, inset 0 0 0 5px rgba(212, 175, 106, .25);
}
html.qc-vintage.qc-site-car h1, html.qc-vintage.qc-site-car h2 { text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }

/* ---------- respect reduced motion / small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .qc-film { animation: none; }
  .qc-intro, .qc-intro .reel { animation: none; transition: none; }
  html.qc-vintage .grid > .card, html.qc-vintage img { transition: none !important; }
  html.qc-vintage .qc-develop { filter: none !important; opacity: 1; }
}
@media (max-width: 640px) {
  .qc-film { opacity: .1; }
  .qc-toggle span.txt { display: none; }
  .qc-toggle { padding: 12px; }
}
@media print { .qc-film, .qc-vignette, .qc-toggle, .qc-intro { display: none !important; } }

/* keep the switch clear of the cookie banner / chat bubble on the marketing site */
html.qc-site-marketing .qc-toggle { bottom: 92px; }
