/* =========================================================
   Phoslux — Living Light theme layer
   Overlays the existing style.css. Hero + typography + cards
   in a dark cinematic / gold accent aesthetic.
   ========================================================= */

:root {
  --ll-black: #0f0f10;
  --ll-black-soft: #15151a;
  --ll-black-elev: #1b1b21;
  --ll-border: rgba(255,255,255,0.08);
  --ll-border-strong: rgba(255,255,255,0.14);
  --ll-gold: #d9a85a;
  --ll-gold-bright: #e6ba6f;
  --ll-text: #e9e5de;
  --ll-text-mute: #a09d96;
  --ll-text-dim: #6f6c66;
  --ff-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body.theme-living-light {
  background: var(--ll-black);
  color: var(--ll-text);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.ll-hero {
  background: radial-gradient(ellipse at 50% -10%, rgba(217,168,90,0.14) 0%, rgba(217,168,90,0) 55%), var(--ll-black);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.ll-hero-inner { position: relative; z-index: 2; }

.ll-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--ll-border-strong);
  border-radius: 999px; background: rgba(255,255,255,0.02);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ll-text-mute); margin-bottom: 32px;
}
.ll-hero-eyebrow svg { color: var(--ll-gold); }

.ll-hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}
.ll-hero-title em {
  font-style: italic;
  color: var(--ll-gold);
  font-weight: 500;
}
.ll-hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ll-text-mute);
  max-width: 640px;
  margin-bottom: 40px;
}

.ll-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px;
}
.btn-ll-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px;
  background: var(--ll-gold); color: #1a1200;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: none; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn-ll-primary:hover { background: var(--ll-gold-bright); transform: translateY(-1px); }
.btn-ll-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; border-radius: 999px;
  border: 1px solid var(--ll-border-strong); color: var(--ll-text);
  background: transparent; font-weight: 500; font-size: 15px;
  text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.btn-ll-ghost:hover { border-color: var(--ll-gold); color: var(--ll-gold); }

/* stats row */
.ll-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: 560px; margin-bottom: 56px;
  padding: 28px 0; border-top: 1px solid var(--ll-border);
  border-bottom: 1px solid var(--ll-border);
}
.ll-stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  color: #fff; font-weight: 500; line-height: 1;
}
.ll-stat-num sup {
  font-size: 0.55em; color: var(--ll-gold); margin-left: 2px;
  font-weight: 400; top: -0.4em;
}
.ll-stat-label {
  font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ll-text-dim);
  margin-top: 8px;
}

/* 4-photo hero grid */
.ll-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1.3fr;
  grid-template-rows: 320px;
  gap: 12px; margin-bottom: 20px;
}
.ll-photo {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--ll-black-elev); border: 1px solid var(--ll-border);
  margin: 0;
}
.ll-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.ll-photo:hover img { transform: scale(1.04); }
.ll-photo figcaption {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.55); padding: 6px 10px;
  border-radius: 4px; backdrop-filter: blur(4px); font-weight: 500;
}
.ll-photo-note {
  font-size: 13px; color: var(--ll-text-dim); font-style: italic;
  text-align: center; margin-top: 4px;
}

@media (max-width: 900px) {
  .ll-photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px; }
}
@media (max-width: 540px) {
  .ll-hero { padding: 80px 0 48px; }
  .ll-stat-row { gap: 16px; }
  .ll-photo-grid { grid-template-rows: 200px 200px; }
}

/* ---- WHY section ---- */
.ll-why { background: var(--ll-black-soft); padding: 100px 0; }
.ll-why-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ll-why h2 {
  font-family: var(--ff-serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.1;
  color: #fff; letter-spacing: -0.015em; margin-bottom: 24px;
}
.ll-why h2 em { color: var(--ll-gold); font-style: italic; }
.ll-why-lead {
  font-size: 17px; color: var(--ll-text-mute);
  line-height: 1.6; margin-bottom: 28px;
}
.ll-check-list {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; gap: 12px;
}
.ll-check-list li {
  position: relative; padding-left: 28px;
  color: var(--ll-text); font-size: 15px;
}
.ll-check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ll-gold);
  box-shadow: 0 0 12px rgba(217,168,90,0.4);
}
.ll-check-list li::after {
  content: '✓'; position: absolute; left: 3px; top: 4px;
  color: #1a1200; font-size: 11px; font-weight: 700;
}
.ll-why-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.ll-why-photo {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--ll-border);
}
.ll-why-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ll-why-badge {
  position: absolute; right: 20px; bottom: 20px;
  background: var(--ll-black); border: 1px solid var(--ll-gold);
  padding: 18px 22px; border-radius: 8px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.ll-why-badge-num {
  font-family: var(--ff-serif); font-size: 36px;
  color: var(--ll-gold); line-height: 1; font-weight: 500;
}
.ll-why-badge-num sup { font-size: 0.5em; top: -0.6em; }
.ll-why-badge-lbl {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ll-text-mute); line-height: 1.4;
}

@media (max-width: 820px) {
  .ll-why-inner { grid-template-columns: 1fr; gap: 40px; }
  .ll-why-photo { aspect-ratio: 3/4; max-width: 480px; margin: 0 auto; }
}

/* ---- Verified Melbourne installs card ---- */
.ll-reviews { padding: 80px 0; }
.ll-reviews-card {
  max-width: 760px; margin: 0 auto;
  background: var(--ll-black-elev);
  border: 1px solid var(--ll-border);
  border-left: 3px solid var(--ll-gold);
  padding: 44px 48px; border-radius: 8px;
}
.ll-reviews-lead {
  font-family: var(--ff-serif); font-size: 22px;
  font-style: italic; color: #fff; line-height: 1.4;
  margin-bottom: 20px;
}
.ll-reviews-body {
  font-size: 16px; color: var(--ll-text-mute);
  line-height: 1.65; margin-bottom: 20px;
}
.ll-reviews-body a {
  color: var(--ll-gold); text-decoration: none;
  border-bottom: 1px solid rgba(217,168,90,0.3);
}
.ll-reviews-body a:hover { border-bottom-color: var(--ll-gold); }
.ll-reviews-note {
  font-size: 13px; color: var(--ll-text-dim);
  font-style: italic; letter-spacing: 0.01em;
}

@media (max-width: 540px) {
  .ll-reviews-card { padding: 28px 24px; }
  .ll-reviews-lead { font-size: 18px; }
}

/* ---- Section header serif harmony (sitewide) ---- */
body.theme-living-light .section-header h2,
body.theme-living-light .call-banner h2,
body.theme-living-light .section h2 {
  font-family: var(--ff-serif); font-weight: 400;
  letter-spacing: -0.015em;
}
body.theme-living-light .section-header h2 em,
body.theme-living-light .call-banner h2 em,
body.theme-living-light .section h2 em {
  color: var(--ll-gold); font-style: italic;
}
body.theme-living-light .section-tag {
  color: var(--ll-gold); letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 11.5px; font-weight: 600;
}

/* Footer email link */
.footer-email {
  display: block; color: var(--ll-text-mute);
  text-decoration: none; margin-top: 6px; font-size: 14px;
}
.footer-email:hover { color: var(--ll-gold); }

/* Email in place of phone: long address must wrap on mobile */
.call-card .call-num { overflow-wrap: anywhere; font-size: clamp(18px, 4.5vw, 26px); }
.mobile-call-btn { overflow-wrap: anywhere; }

/* Living Light uses sentence-case serif headings, override legacy uppercase */
body.theme-living-light h1,
body.theme-living-light h2,
body.theme-living-light h3,
body.theme-living-light .ll-hero-title { text-transform: none; }

/* Products: Barlow Condensed is no longer loaded, use the serif with sane wrapping */
body.theme-living-light .prod-name {
  font-family: var(--ff-serif); font-weight: 500; font-size: 1.3rem;
  letter-spacing: -0.01em; text-transform: none; line-height: 1.25;
  margin-bottom: 4px;
}

/* Footer column headings moved h4 -> h2 for heading order; keep the old look */
.footer-col h2.footer-h { font-family: var(--ff-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ll-gold); margin-bottom: 6px; line-height: 1.4; }
/* Magnet form titles moved h3 -> h2 */
.mg-gate h2.mg-h, .mg-thanks h2.mg-h { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
/* width/height attrs added for layout stability; keep photos fluid */
.block-photo { height: auto; }
img[width][height] { max-width: 100%; }

/* Warranty grid (products page) */
.ll-warranty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.ll-warranty-card { background: var(--ll-black-elev); border: 1px solid var(--ll-border); border-top: 3px solid var(--ll-gold); border-radius: 8px; padding: 22px 22px 18px; }
.ll-warranty-wide { grid-column: 1 / -1; }
.ll-warranty-yrs { font-family: var(--ff-serif); font-size: 1.9rem; color: var(--ll-gold); line-height: 1.1; margin-bottom: 6px; }
.ll-warranty-name { color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.ll-warranty-card p { color: var(--ll-text-mute); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* Quote tool: 5-option row wraps to 3 per line instead of squeezing */
#mg_room { display: grid; grid-template-columns: repeat(3, 1fr); }
#mg_room .mg-opt { min-width: 0; }

/* v29 contrast fixes (WCAG AA) */
body.theme-living-light .ll-reviews-note { color: #aaa69e; }
body.theme-living-light .block-num { color: #62626c; }
body.theme-living-light .how-num { color: rgba(17,17,19,0.6); }
body.theme-living-light .how-step span, body.theme-living-light .how-text span { color: rgba(17,17,19,0.88); }
body.theme-living-light .call-tag, body.theme-living-light .call-hours { opacity: 0.85; }

/* ---- v36 MOBILE FIT: nothing wider than the screen, CTAs centred, survives large phone text settings ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
.service-block > *, .contact-layout > *, .about-grid > *, .stats-row > *, .why-inner > *, .ll-why-inner > *, .call-banner-inner > * { min-width: 0; }
@media (max-width: 768px) {
  .call-banner-inner { align-items: center; }
  .call-banner-text, .call-banner-actions { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
  .call-banner-actions { flex-direction: column; align-items: stretch; }
  .call-banner-actions .btn { width: 100%; justify-content: center; }
  .call-banner-text h2 { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; line-height: 1.25; }
  .btn-xl, .btn-lg { padding: 16px 20px; font-size: 1.05rem; }
  .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-box { padding: 16px 6px; }
  .stat-big { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .ll-why-badge { right: 12px; bottom: 12px; padding: 12px 14px; }
  .ll-why-badge-num { font-size: 28px; }
}
@media (max-width: 768px) {
  .quote-bar-inner { align-items: stretch; }
  .quote-bar-label { white-space: normal; flex-shrink: 1; }
  .quick-form { width: 100%; min-width: 0; }
  .quick-form input { min-width: 0; width: 100%; box-sizing: border-box; }
  .quick-form .btn { width: 100%; box-sizing: border-box; }
}

/* ---- v37 ADMIN-DRIVEN ANNOUNCEMENT BANNER (rendered by the edge worker) ---- */
.phx-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; background: var(--ll-gold); color: #111113; font: 600 14px/1.4 'Inter', sans-serif; text-align: center; padding: 9px 46px 9px 16px; }
.phx-banner a { color: #111113; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.phx-banner-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #111113; padding: 6px 10px; }
body.phx-has-banner .site-header { top: var(--phx-banner-h, 38px); }
body.phx-has-banner > header + * { margin-top: var(--phx-banner-h, 38px); }
.prod-shape.phx-shape { margin: 0 auto 4px; }

/* ---- v38 REQUEST A MEASURE TIME (replaces online calendar booking) ---- */
.rt-box { border: 1px solid var(--ll-border, #33333b); border-radius: 10px; padding: 14px 14px 12px; margin: 0 0 18px; min-width: 0; }
.rt-box legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 600; color: #fff; font-size: 0.95rem; line-height: 1.35; }
.rt-box legend + * { clear: both; }
.rt-opt { color: var(--ll-text-mute, #9d9dab); font-weight: 400; font-size: 0.85rem; }
.rt-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.rt-day { position: relative; min-width: 0; }
.rt-day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rt-day span { display: block; text-align: center; padding: 10px 2px; border: 1px solid var(--ll-border, #33333b); border-radius: 8px; color: var(--ll-text, #ececf0); font-size: 0.92rem; transition: all .15s ease; }
.rt-day input:checked + span { border-color: #d9a85a !important; background: rgba(217,168,90,0.16) !important; color: #e8bf78 !important; font-weight: 700; }
.rt-day input:focus-visible + span { outline: 2px solid var(--ll-gold); outline-offset: 2px; }
.rt-label { display: block; font-size: 0.85rem; color: var(--ll-text-mute, #9d9dab); margin-bottom: 6px; }
.rt-box select { width: 100%; max-width: 100%; }
.rt-note { font-size: 0.82rem; color: var(--ll-text-mute, #9d9dab); margin: 10px 0 0; }
.rt-mg { text-align: left; max-width: 400px; margin: 16px auto 0; }
.rt-box select { background: #0d0d0f; color: #fff; border: 1px solid var(--ll-border, #33333b); border-radius: 8px; padding: 11px 12px; font: inherit; }
.rt-done { color: var(--ll-gold); font-weight: 600; margin-top: 14px; }

/* ---- v39 anchor jumps clear the fixed header (e.g. /contact/#request) ---- */
html { scroll-padding-top: 132px; }
html:has(body.phx-has-banner) { scroll-padding-top: calc(132px + var(--phx-banner-h, 38px)); }
@media (max-width: 768px) {
  html { scroll-padding-top: 96px; }
  html:has(body.phx-has-banner) { scroll-padding-top: calc(96px + var(--phx-banner-h, 38px)); }
}
