/* ==========================================================================
   Crush Your Bills — Pro Tradie landing page
   Palette derived from the subject: golden-hour sun on dark rooftops.
   Warm charcoal + amber accent, cream surfaces. One accent hue.
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.6rem, 1rem + 6vw, 5.6rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Warm charcoal (dark sections) */
  --ink: #221b12;
  --ink-2: #2b2216;
  --ink-text: #f7f1e5;
  --ink-muted: #c9bda6;
  --amber: #e8931c;
  --amber-deep: #b96a10;
  --amber-ink: #241a09;

  /* Cream surfaces (light sections) */
  --cream: #f7f3ea;
  --cream-2: #fdfaf3;
  --cream-3: #efe8d9;
  --paper-text: #26200f;
  --paper-muted: #6d6350;

  /* Roles */
  --color-bg: var(--cream);
  --color-surface: var(--cream-2);
  --color-text: var(--paper-text);
  --color-text-muted: var(--paper-muted);
  --color-accent: var(--amber-deep);
  --color-accent-strong: var(--amber);
  --color-text-inverse: var(--ink-text);
  --color-border: oklch(from #26200f l c h / 0.14);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 75 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 75 / 0.1);
  --shadow-lg: 0 14px 40px oklch(0.2 0.02 75 / 0.16);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1180px;

  --font-display: 'Clash Display', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ Layout */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section--dark {
  background: var(--ink);
  color: var(--ink-text);
}

.section--dark .kicker {
  color: var(--amber);
}

.section--dark p {
  color: var(--ink-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--amber-ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ------------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from #221b12 l c h / 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid oklch(from #f7f1e5 l c h / 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink-text);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand__sub {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  display: none;
}

@media (min-width: 560px) {
  .brand__sub {
    display: inline;
  }
}

/* -------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, oklch(from #221b12 l c h / 0.94) 0%, oklch(from #221b12 l c h / 0.62) 46%, oklch(from #221b12 l c h / 0.38) 100%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 14vw, var(--space-32)) var(--space-16);
  max-width: 720px;
}

.hero .kicker {
  color: var(--amber);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  letter-spacing: -0.015em;
  margin-block: var(--space-4) var(--space-5);
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero__lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 34ch;
}

.hero__lede strong {
  color: var(--ink-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid oklch(from #f7f1e5 l c h / 0.28);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
}

.chip svg {
  color: var(--amber);
}

/* ----------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  cursor: pointer;
}

.btn--amber {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 6px 20px oklch(from #e8931c l c h / 0.35);
}

.btn--amber:hover,
.btn--amber:focus-visible {
  background: #f2a63a;
}

.btn--amber:active {
  background: #d8851a;
  transform: translateY(1px);
}

.btn--ghost {
  color: var(--ink-text);
  border: 1px solid oklch(from #f7f1e5 l c h / 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
}

.btn--dark {
  background: var(--ink);
  color: var(--ink-text);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: #382c1b;
}

.btn--outline-dark {
  color: var(--ink);
  border: 1.5px solid oklch(from #221b12 l c h / 0.35);
}

.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  border-color: var(--amber-deep);
  color: var(--amber-deep);
}

/* ------------------------------------------------------------------- Kicker */

.kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

/* -------------------------------------------------------------- Trust strip */

.trust-strip {
  background: var(--ink-2);
  color: var(--ink-muted);
  border-top: 1px solid oklch(from #f7f1e5 l c h / 0.1);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-5);
}

@media (min-width: 720px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
}

.trust-strip__item svg {
  color: var(--amber);
  flex: none;
}

.trust-strip__item strong {
  color: var(--ink-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}

/* ---------------------------------------------------------------- Problem */

.problem {
  background: var(--cream);
}

.problem__grid {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 820px) {
  .problem__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.problem h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}

.problem p {
  color: var(--paper-muted);
  margin-top: var(--space-4);
}

.problem__aside {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.problem__aside p {
  color: var(--ink-muted);
  margin-top: var(--space-4);
}

.problem__aside strong {
  color: var(--ink-text);
}

.problem__aside .figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  color: var(--amber);
  line-height: 1;
}

.problem__aside .figure-label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------------- Steps */

.steps {
  background: var(--cream-2);
}

.steps__head {
  max-width: 56ch;
}

.steps__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.steps__head p {
  color: var(--paper-muted);
}

.steps__list {
  margin-top: var(--space-10);
  display: grid;
  gap: 0;
  counter-reset: steps;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5) var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: 1px solid var(--color-border);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  color: var(--amber);
  line-height: 1;
  padding-top: var(--space-1);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.005em;
}

.step p {
  color: var(--paper-muted);
  margin-top: var(--space-2);
  max-width: 52ch;
}

.step p strong {
  color: var(--paper-text);
}

/* ------------------------------------------------------------ Full-bleed */

.fullbleed {
  position: relative;
  background: var(--ink);
}

.fullbleed img {
  width: 100%;
  height: clamp(300px, 52vw, 620px);
  object-fit: cover;
  object-position: center 30%;
}

.fullbleed__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  width: 100%;
  padding: var(--space-10) var(--space-5) var(--space-5);
  background: linear-gradient(to top, oklch(from #221b12 l c h / 0.85), transparent);
  color: var(--ink-text);
  font-weight: 500;
  max-width: none;
}

/* ---------------------------------------------------------------- Inclusions */

.inclusions {
  background: var(--cream);
}

.inclusions__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 860px) {
  .inclusions__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-16);
  }
}

.inclusions__media {
  position: relative;
}

.inclusions__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inclusions__media figcaption {
  font-size: var(--text-xs);
  color: var(--paper-muted);
  margin-top: var(--space-3);
}

.inclusions h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}

.inclusions__list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-5);
}

.inclusion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.inclusion svg {
  color: var(--amber-deep);
  margin-top: var(--space-1);
  flex: none;
}

.inclusion h3 {
  font-size: var(--text-base);
  font-weight: 700;
}

.inclusion p {
  font-size: var(--text-sm);
  color: var(--paper-muted);
  margin-top: var(--space-1);
}

.inclusions .btn {
  margin-top: var(--space-10);
}

/* ------------------------------------------------------------------- Video */

.video {
  background: var(--ink);
  color: var(--ink-text);
}

.video__frame {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #000;
}

.video__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(from #000 l c h / 0.25);
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: #fff;
  pointer-events: none;
}

.video__play span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 10px 30px oklch(from #000 l c h / 0.4);
}

/* ------------------------------------------------------------ Testimonials */

.reviews {
  background: var(--cream-2);
}

.reviews h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}

.reviews__grid {
  margin-top: var(--space-10);
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
  .review--wide {
    grid-column: 1 / -1;
  }
}

.review {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.review blockquote {
  font-size: var(--text-base);
  max-width: none;
}

.review figcaption {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
}

.review figcaption span {
  display: block;
  font-weight: 400;
  color: var(--paper-muted);
  font-size: var(--text-xs);
}

.stars {
  color: var(--amber-deep);
  letter-spacing: 0.15em;
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------- FAQ */

.faq {
  background: var(--cream);
}

.faq__intro {
  max-width: 56ch;
}

.faq__intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
}

.faq__intro p {
  color: var(--paper-muted);
  margin-top: var(--space-3);
}

.faq__list {
  margin-top: var(--space-8);
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  flex: none;
  color: var(--amber-deep);
  transition: transform var(--transition-interactive);
}

.faq__item[open] summary svg {
  transform: rotate(45deg);
}

.faq__item p {
  color: var(--paper-muted);
  padding-bottom: var(--space-5);
  max-width: 62ch;
}

/* ---------------------------------------------------------------- Final CTA */

.final-cta {
  background: var(--cream-2);
}

.final-cta__card {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-6), 6vw, var(--space-16));
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}

.final-cta__card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.final-cta__card p {
  color: var(--ink-muted);
  max-width: 46ch;
}

.final-cta__card p strong {
  color: var(--ink-text);
}

.final-cta__url {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.final-cta__url a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta__url a:hover {
  color: var(--amber);
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  border-top: 1px solid oklch(from #f7f1e5 l c h / 0.1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-8);
}

.site-footer .brand {
  color: var(--ink-text);
}

.site-footer__meta {
  font-size: var(--text-xs);
  display: grid;
  gap: var(--space-1);
}

.site-footer__social {
  display: flex;
  gap: var(--space-4);
}

.site-footer__social a {
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
}

.site-footer__social a:hover {
  color: var(--amber);
  background: oklch(from #f7f1e5 l c h / 0.08);
}

/* ---------------------------------------------------------------- Reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
