/*
    File: /css/style.css
    Website: wallplanner.oze.au
    Description: OzeGlass single-page styles — custom wall & desk planners (multi-year)
    Version: 2.1.2
    Date: 23 Jun 2026 | 7:54 PM AEST
    Author: Colin Dixon + Claude Opus 4.8
*/

/* ─────────────────────────────  Tokens  ───────────────────────────── */
:root {
  --primary: #2c7be5;
  --primary-2: #1a5db3;
  --accent: #ff8a3d;          /* warm sunrise */
  --accent-2: #ffb347;

  --fg: #14233b;
  --muted: #5a6b82;
  --bg: #eef3fb;
  --card: rgba(255, 255, 255, 0.62);
  --card-strong: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 34px rgba(20, 40, 80, 0.16);
  --blur: 10px;

  --maxw: 1180px;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --fg: #eef2f8;
  --muted: #9fb0c6;
  --bg: #0d1422;
  --card: rgba(20, 30, 48, 0.55);
  --card-strong: rgba(24, 36, 58, 0.8);
  --border: rgba(120, 150, 190, 0.22);
  --shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* gradient wash behind everything (sits under the date canvas at z-index 1) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(44, 123, 229, 0.30), transparent 60%),
    radial-gradient(900px 620px at 100% 0%, rgba(255, 138, 61, 0.22), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(44, 123, 229, 0.18), transparent 60%);
  pointer-events: none;
}
html[data-theme="dark"] body::before { opacity: 0.85; }

/* date animation canvas (injected by dates.js) sits at z-index 1; content above */
.container { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

a { color: var(--primary); }

/* ─────────────────────────────  Glass card  ───────────────────────── */
.glass {
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--card-strong); }
}

/* ─────────────────────────────  Pills / nav  ──────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); font-weight: 700; }
.brand img { height: 34px; width: auto; display: block; }
.topbar-actions { display: flex; gap: 0.5rem; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--fg); cursor: pointer; font: inherit; font-size: 0.9rem;
  text-decoration: none; transition: transform 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }

/* ─────────────────────────────  Buttons  ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 22px rgba(44, 123, 229, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(44, 123, 229, 0.5); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #2a1500; box-shadow: 0 8px 22px rgba(255, 138, 61, 0.4); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { transform: translateY(-2px); }

/* ─────────────────────────────  Hero  ─────────────────────────────── */
.hero { padding: 6.5rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(44, 123, 229, 0.12); padding: 0.32rem 0.8rem; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin: 1rem 0 0.8rem; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
/* Year toggle (calendar vs financial) */
.year-toggle { display: inline-flex; gap: 4px; margin-top: 1.4rem; padding: 5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.year-toggle .yr { font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--muted); padding: 0.5rem 1.05rem;
  border-radius: 999px; transition: background 0.18s ease, color 0.18s ease; white-space: nowrap; }
.year-toggle .yr.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 16px rgba(44,123,229,0.4); }

.trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.8rem; font-size: 0.9rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust b { color: var(--fg); }

/* Animated calendar centrepiece */
.cal {
  padding: 1.3rem 1.3rem 1.5rem; position: relative; overflow: hidden;
}
.cal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.cal-year { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cal-sub { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.cal-days .day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 0.82rem; font-weight: 600;
  background: rgba(44, 123, 229, 0.08); color: var(--fg);
  animation: dayIn 0.5s ease both;
}
html[data-theme="dark"] .cal-days .day { background: rgba(120, 150, 190, 0.12); }
.cal-days .day.lit { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 16px rgba(44, 123, 229, 0.45); }
.cal-days .day.dim { opacity: 0.32; }
@keyframes dayIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* sweeping shine across the calendar */
.cal::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); animation: sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { left: -45%; } 55%,100% { left: 130%; } }

/* ─────────────────────────────  Sections  ─────────────────────────── */
section { padding: 3rem 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Size cards */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.size-card { padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-align: center; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.size-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20, 40, 80, 0.24); }
.size-card.featured { border-color: var(--primary); }
.size-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #2a1500;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px; white-space: nowrap; }
.size-name { font-size: 1.5rem; font-weight: 800; margin: 0.2rem 0 0.1rem; }
.size-dim { font-size: 0.85rem; color: var(--muted); }
.size-price { font-size: 2.6rem; font-weight: 800; margin: 0.7rem 0 0.1rem; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.size-price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.size-feats { list-style: none; padding: 0; margin: 1rem 0 1.3rem; text-align: left; flex: 1; }
.size-feats li { padding: 0.32rem 0 0.32rem 1.6rem; position: relative; font-size: 0.93rem; }
.size-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.size-card .btn { width: 100%; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { padding: 1.4rem; text-align: center; }
.feature .ico { width: 48px; height: 48px; margin: 0 auto 0.7rem; display: grid; place-items: center;
  border-radius: 14px; background: rgba(44, 123, 229, 0.12); color: var(--primary); }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
  transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { padding: 1.3rem; }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Checkout */
.checkout-wrap { padding: 1.6rem; }
.freight { margin: 1.2rem 0 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--accent);
  background: rgba(255, 138, 61, 0.1); border-radius: 8px; font-size: 0.95rem; }
.tc-host { margin-top: 1.2rem; min-height: 120px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { padding: 0.2rem 1.1rem; margin-bottom: 0.8rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 0.95rem; color: var(--muted); }

/* Footer */
.site-footer { position: relative; z-index: 3; margin-top: 2.5rem; padding: 2.4rem 1.1rem 2rem; text-align: center; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.4rem; margin-bottom: 1.6rem; }
.footer-col h4 { font-size: 1rem; margin: 0 0 0.7rem; }
.footer-col a { display: inline-block; color: inherit; text-decoration: none; margin: 0 0.45rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--primary); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.social a { color: inherit; opacity: 0.8; transition: transform 0.2s ease, color 0.2s ease; }
.social a:hover { transform: translateY(-2px); color: var(--primary); }
.social svg { width: 26px; height: 26px; fill: currentColor; }
.copyright { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.copyright a { color: inherit; }

/* Modal (image lightbox) */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal > img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; z-index: 1; }

/* Text sheet (legal modals) */
.modal .sheet {
  position: relative; background: var(--card-strong);
  border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 660px; width: 100%; max-height: 84vh; overflow: auto;
  padding: 1.9rem 1.9rem 1.6rem; text-align: left; color: var(--fg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.modal .sheet h3 { margin: 0 0 0.8rem; font-size: 1.4rem; }
.modal .sheet h4 { margin: 1.1rem 0 0.3rem; font-size: 1rem; }
.modal .sheet p, .modal .sheet li { color: var(--fg); font-size: 0.95rem; }
.modal .sheet .modal-close { color: var(--fg); top: 12px; right: 16px; }

.legal-links { margin-top: 0.7rem; }
.legal-links button { background: none; border: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 0.88rem; text-decoration: underline; opacity: 0.8; padding: 0 0.35rem; }
.legal-links button:hover { opacity: 1; color: var(--primary); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────  Responsive  ───────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero p.lead { max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding-top: 5.5rem; }
  .sizes { grid-template-columns: 1fr; }
  .size-card.featured { order: -1; }
  .brand span { display: none; }
}
@media (max-width: 460px) {
  .features, .steps, .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cal::after, .cal-days .day { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
