:root {
  --navy: #0b1f4b;
  --navy-2: #13306b;
  --accent: #ffc20e;
  --accent-dark: #e0a800;
  --ink: #1b2233;
  --muted: #4a5468;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --line: #dde2ec;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy); padding: .5rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--navy); border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.nav-list a { color: #fff; text-decoration: none; font-size: .95rem; padding: .25rem 0; }
.nav-list a:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; text-align: center; font-weight: 700; text-decoration: none; border-radius: 999px; padding: .8rem 1.4rem; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--navy); }
.btn-block { display: block; width: 100%; margin-top: auto; }
.purchase-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; }
.purchase-actions .btn { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; line-height: 1.25; padding: .75rem 1rem; text-wrap: balance; }
@container (min-width: 280px) {
  .purchase-actions { flex-direction: row; align-items: stretch; }
  .purchase-actions .btn-primary { flex: 1 1 auto; width: auto; min-width: 0; }
  .purchase-actions .btn-secondary { flex: 0 0 auto; width: auto; white-space: nowrap; }
}

/* Hero */
.hero { background: var(--navy) linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 2.5rem 0 3rem; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 3rem); }
.hero .lead { font-size: 1.1rem; color: #e6eaf3; max-width: 38em; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); margin-top: -.25rem; margin-bottom: 1.75rem; }

/* Category jump links. Two columns on small screens so every label stays on screen. */
.section-nav { margin: 0 0 1.75rem; }
.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.section-nav a {
  display: block;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem .9rem;
}
.section-nav a:hover {
  background: var(--navy);
  color: var(--accent);
  border-color: var(--navy);
}
.product-group { scroll-margin-top: 9rem; }
.product-group + .product-group {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.product-group h2 {
  margin-bottom: 1rem;
  padding-left: .75rem;
  border-left: 4px solid var(--accent);
}
.product-group .grid + .grid { margin-top: 1.5rem; }
#products,
#extras,
#lighting-controls { scroll-margin-top: 9rem; }
#articles,
#videos,
#articles .card { scroll-margin-top: 9rem; }

/* Cards */
.grid, .bundle-grid, .preview-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(11,31,75,.06); }
.card-image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  line-height: 0;
}
.card-image img,
.card > img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: 100%; transition: transform .3s ease; }
/* Print previews are full portrait sheets, so they keep their own ratio instead of the square crop used for guide covers. */
#extras .card-image img { object-fit: contain; }
#drafting-scenes-calendar .card-image,
#drafting-scenes-calendar .card-image img {
  aspect-ratio: 913 / 1400;
  background: #030b1e;
}
#revit-naming-poster .card-image,
#revit-naming-poster .card-image img,
#cad-drafting-poster .card-image,
#cad-drafting-poster .card-image img {
  aspect-ratio: 3 / 4;
  background: #081d48;
}
@media (hover: hover) and (pointer: fine) {
  .card-image:hover img,
  .card-image:focus-visible img { transform: scale(1.05); }
}
.card-image:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
  .card-image:hover img,
  .card-image:focus-visible img { transform: none; }
}
.card-title-link {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.card-title-link:hover,
.card-title-link:focus-visible {
  color: var(--navy-2);
  text-decoration: underline;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; container-type: inline-size; }
.format { color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 0 0 .5rem; }
.was { font-size: 1rem; font-weight: 500; color: var(--muted); }
.save { display: inline-block; align-self: flex-start; background: var(--navy); color: var(--accent); font-weight: 800; border-radius: 6px; padding: .15rem .6rem; margin: 0 0 .75rem; }
.features { padding-left: 1.2rem; margin: 0 0 1rem; }
.features li { margin-bottom: .4rem; }
.features li::marker { color: var(--accent-dark); }
.note { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.classroom-cue { margin: .9rem 0 0; text-align: center; font-weight: 700; }
.classroom-cue a { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
#classroom-license, #studio-team-license, #office-team-license, #team-license-quote { scroll-margin-top: 9rem; }
.license-banner {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .35rem;
  padding: 1.5rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-top: 8px solid var(--accent);
  border-bottom: 8px solid var(--accent);
}
.license-kicker {
  margin: 0;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.license-name {
  margin: .15rem 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}
.license-pill {
  display: inline-block;
  margin: .45rem 0 0;
  padding: .3rem .85rem;
  background: var(--accent);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.license-includes {
  margin: .7rem 0 0;
  color: #e6eaf3;
  font-size: .92rem;
  line-height: 1.4;
  text-wrap: balance;
}
.team-quote .card-body a { overflow-wrap: break-word; }

/* Lighting Controls: Shorts shelf plus article and kit cards. */
.shorts-panel {
  background: var(--navy);
  color: #e6eaf3;
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  padding: 1.5rem 1.25rem;
  margin: 0 0 1.75rem;
}
.shorts-panel h3 { color: #fff; margin-bottom: .4rem; }
.shorts-copy p:not(.eyebrow):not(.shorts-actions) { margin: 0; max-width: 40rem; }
.shorts-actions { margin: 1.1rem 0 0; }
.shorts-layout { display: grid; gap: 1.35rem; align-items: center; }
.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.episode-list > li { margin: 0; display: flex; }
.episode-list a,
.episode-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 9.25rem;
  aspect-ratio: 9 / 16;
  padding: .85rem .65rem;
  border-radius: 18px;
  text-align: center;
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.episode-soon {
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 2px dashed var(--accent);
}
.episode-list a {
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--accent);
}
.episode-list a:hover { background: var(--accent); color: var(--navy); }
.episode-list a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.episode-list a::before,
.episode-soon::before {
  content: "";
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .75rem;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21' fill='none' stroke='%23ffc20e' stroke-width='2'/%3E%3Cpath d='M20 15.5v17l14-8.5z' fill='%23ffc20e'/%3E%3C/svg%3E");
}
.episode-list a::after {
  content: "Watch";
  margin-top: .55rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lighting-disclaimer { margin: 1.25rem 0 0; max-width: 46rem; }
.card-with-note { display: flex; flex-direction: column; min-width: 0; align-self: start; }
.card-with-note > .note { margin: .75rem 0 0; }
/* Article labels are longer than "Buy for $29", so they stack instead of breaking mid-word. */
#florida-lighting-article .purchase-actions,
#ai-autocad-revit-article .purchase-actions,
#green-belt-certification-article .purchase-actions { flex-direction: column; }
#florida-lighting-article .purchase-actions .btn,
#ai-autocad-revit-article .purchase-actions .btn,
#green-belt-certification-article .purchase-actions .btn { text-wrap: nowrap; white-space: nowrap; }
/* Article buttons are longer than a price label, so they stack instead of breaking mid-word. */
.article-card .purchase-actions { flex-direction: column; }
.article-card .purchase-actions .btn { text-wrap: nowrap; white-space: nowrap; }
.related-reading { margin: 1rem 0 0; font-size: .95rem; font-weight: 700; }
.video-topic {
  margin: 2rem 0 1rem;
  padding-left: .75rem;
  border-left: 4px solid var(--accent);
  font-size: 1.35rem;
}
.video-topic:first-of-type { margin-top: .25rem; }
.video-thumb { display: block; line-height: 0; background: #081d48; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
/* "Buy on Buy Me a Coffee — $12" is longer than "Buy for $12", so these store buttons stack. */
#ai-prompt-pack .purchase-actions { flex-direction: column; }
/* "Paperback on Amazon — $24.99" is longer than the existing pair, so it sits on its own row when those two sit side by side. Below that width the buttons already stack. */
#green-belt-study-guide .purchase-actions { flex-wrap: wrap; }
@container (min-width: 280px) {
  #green-belt-study-guide .purchase-actions .btn:nth-child(3) {
    flex: 1 1 100%;
    width: 100%;
    white-space: normal;
  }
}
/* "Buy on Amazon — $39.99" is longer than "Buy on Etsy", so these store buttons stack. */
#drafting-scenes-calendar .purchase-actions { flex-direction: column; }
/* Poster Amazon links use the same stacked store buttons as the calendar. */
#revit-naming-poster .purchase-actions,
#cad-drafting-poster .purchase-actions { flex-direction: column; }

/* Preview */
.preview-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview-grid figcaption { padding: .75rem 1rem; font-size: .92rem; color: var(--muted); }

/* Callout */
.callout { background: var(--navy); color: #fff; border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent); }
.callout + .callout { border-top-width: 0; }
.callout h2 { color: #fff; }
.callout p { color: #e6eaf3; }
.callout-inner { display: grid; gap: 2rem; align-items: center; }
.callout-inner img { border-radius: var(--radius); max-width: 360px; width: 100%; margin: 0 auto; }
#free-revit-sheet { scroll-margin-top: 9rem; }
.lead-callout { max-width: 46rem; }
#free-revit-sheet .note { margin-bottom: .35rem; }
#free-revit-sheet .lead-download { margin: .85rem 0 1rem; }
#free-revit-sheet .lead-or { margin: 0 0 .75rem; }
.lead-micro { font-size: .85rem; margin: 0; }

/* MailerLite embed sits in a light panel so the field stays readable on navy */
.lead-form {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem .85rem;
  margin: 1.15rem 0 .85rem;
  max-width: 32rem;
}
.lead-form p,
.lead-form label { color: var(--ink); }
.lead-form .ml-embedded { min-height: 3.25rem; }
.lead-form iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.lead-form input[type="email"],
.lead-form input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: .75rem 1.1rem;
  margin: 0 0 .65rem;
}
.lead-form input[type="email"]:focus-visible,
.lead-form input[type="text"]:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}
.lead-form button,
.lead-form input[type="submit"] {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  background: var(--accent);
  color: var(--navy);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: .8rem 1.4rem;
}
.lead-form button:hover,
.lead-form input[type="submit"]:hover,
.lead-form button:focus-visible,
.lead-form input[type="submit"]:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--navy);
}
/* Form HTML is injected by MailerLite. Until that markup exists, don't show an empty panel. */
.lead-form:has(.ml-embedded:empty) {
  background: transparent;
  border-color: transparent;
  padding: 0;
  margin-top: 0;
}
.lead-form:has(.ml-embedded:empty) .ml-embedded { min-height: 0; }

/* About */
.about-links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 700; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p { margin: .6rem 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: #e6eaf3; padding: 2rem 0; border-top: 4px solid var(--accent); }
.footer-inner { display: grid; gap: .75rem; }
.brand-footer { font-weight: 800; color: #fff; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: var(--accent); }
.copyright { margin: 0; font-size: .9rem; }

@media (min-width: 640px) {
  .grid, .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .section-nav ul { display: flex; flex-wrap: wrap; }
  .section-nav a { display: inline-block; }
}
/* Header is a single row from here, so anchors need less clearance. */
@media (min-width: 768px) {
  .product-group,
  #products,
  #extras,
  #lighting-controls,
  #classroom-license,
  #studio-team-license,
  #office-team-license,
  #team-license-quote,
  #free-revit-sheet,
  #articles,
  #videos,
  #articles .card { scroll-margin-top: 5.5rem; }
  .shorts-layout { grid-template-columns: minmax(0, 1.5fr) auto; gap: 2rem; }
  .episode-list { justify-content: flex-end; }
}
/* At two columns the quote sits under both licenses as one row, not a giant square. */
@media (min-width: 640px) and (max-width: 959px) {
  .grid > .team-quote {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .team-quote .license-banner {
    aspect-ratio: auto;
    flex: 1 1 42%;
  }
  .team-quote .card-body { flex: 1 1 58%; }
}
@media (min-width: 960px) {
  .hero { padding: 4rem 0; }
  .grid { grid-template-columns: repeat(6, 1fr); }
  /* Product cards stay the same width, three per row. */
  .grid > .card { grid-column: span 2; }
  .grid > .card-with-note { grid-column: span 2; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .bundle-grid { grid-template-columns: repeat(2, 1fr); }
  .callout-inner { grid-template-columns: 320px 1fr; }
  .callout-inner.lead-callout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}


/* Product image lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.25rem;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 75, .88);
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 6.5rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
  background: #fff;
}
.lightbox-caption {
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  text-wrap: balance;
  max-width: min(96vw, 1100px);
}
.lightbox-close {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--accent); }
.lightbox-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-image { box-shadow: none; }
}
