/* Midea Jamaica base layer. Tokens are the DESIGN.md colours; every derived shade is a color-mix of a token, never a new
   literal. Pruned 2026-09-19: the household shop's chapter/film/cart/catalog rules are gone (git history keeps them). */
:root {
  --primary: #12151A;
  --secondary: #5C6770;
  --accent: #2F8A8A;
  --bg: #F3F5F6;
  --bg-alt: #D7E4E6;
  --surface: #FFFFFF;
  --text: #12151A;
  --text-muted: #5C6770;
  --hairline: #D5DCE0;
  --on-dark: #F4F1EA;
  --media-well: #0E1114;
  --scrim-strong: color-mix(in srgb, var(--primary) 72%, transparent);
  --scrim-mid: color-mix(in srgb, var(--primary) 55%, transparent);
  --scrim-soft: color-mix(in srgb, var(--primary) 40%, transparent);
  --scrim-faint: color-mix(in srgb, var(--primary) 12%, transparent);
  --on-dark-soft: color-mix(in srgb, var(--on-dark) 86%, transparent);
  --font-display: "Sora", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --container: 1360px;
  --pill: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 0.45em;
  font-weight: 500;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 38rem; color: var(--text-muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10001;
  background: var(--primary);
  color: var(--surface);
  padding: 0.7rem 1.2rem;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background: linear-gradient(to bottom, var(--scrim-mid), transparent);
  border: 0;
}
.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--on-dark);
}
.logo img { width: 26px; height: 26px; filter: invert(1); }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}
.nav-desktop a[aria-current="page"] { color: var(--surface); }
.nav-desktop .btn { margin-left: 0.3rem; }
.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--on-dark);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  color: var(--on-dark);
  z-index: 39;
  flex-direction: column;
  padding: 5rem 1.5rem 1.5rem;
  gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; font-size: 1.35rem; font-family: var(--font-display); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--surface); }
.btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.film-hero .btn-primary { background: var(--on-dark); color: var(--primary); }
body.film .nav-desktop .btn-primary { background: var(--on-dark); color: var(--primary); }

/* ---------- hero (still image) ---------- */
.film-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--primary);
  color: var(--on-dark);
}
.film-hero .media { position: absolute; inset: 0; }
.film-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-hero .scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to top, var(--scrim-strong) 0%, var(--scrim-faint) 42%, transparent 70%),
    linear-gradient(to bottom, var(--scrim-soft), transparent 28%);
  pointer-events: none;
}
.film-hero .copy {
  position: relative;
  z-index: 4;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 7vh;
}
.film-hero h1 { color: var(--on-dark); max-width: 14ch; }
.film-hero p { color: var(--on-dark-soft); font-size: 1.2rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.2rem; }
.lede { font-size: 1.2rem; max-width: 40rem; }

/* ---------- sections ---------- */
.section { padding: 8vh 0; }
.section-cool { background: var(--bg-alt); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.6rem 0 0; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.spec {
  background: var(--surface);
  padding: 1.4rem 1.5rem;
}
.spec dt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.3rem;
}
.spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.spec-note { margin-top: 1rem; font-size: 0.95rem; }

.notice {
  background: var(--surface);
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
}
.notice strong { color: var(--text); }
.note { font-size: 0.95rem; color: var(--text-muted); max-width: 40rem; }

/* ---------- plain pages: sticky light header ---------- */
.page-plain { padding-top: calc(var(--header-h) + 2.5rem); }
body.plain .site-header,
body:not(:has(.film-hero)) .site-header {
  position: sticky;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
body.plain .logo,
body:not(:has(.film-hero)) .logo { color: var(--primary); }
body.plain .logo img,
body:not(:has(.film-hero)) .logo img { filter: none; }
body.plain .nav-desktop a,
body:not(:has(.film-hero)) .nav-desktop a { color: var(--text-muted); }
body.plain .nav-desktop a[aria-current="page"],
body:not(:has(.film-hero)) .nav-desktop a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
body.plain .hamburger span,
body:not(:has(.film-hero)) .hamburger span { background: var(--primary); }
body.plain .nav-desktop .btn-primary { color: var(--surface); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 3.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }

@media (max-width: 1024px) {
  .spec-grid,
  .site-footer .grid { grid-template-columns: 1fr; }
  .film-hero { min-height: 80dvh; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .film-hero h1 { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
