/* The Tradie Owner — landing page */

:root {
  --ink: #14161a;
  --ink-2: #2b3038;
  --muted: #5c636e;
  --line: #e2e5ea;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --hi: #ffb400;
  --hi-ink: #14161a;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- announcement ---------- */

.announce {
  background: var(--hi);
  color: var(--hi-ink);
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 16px;
  letter-spacing: -0.01em;
}
.announce span { font-weight: 600; opacity: 0.72; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}

.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 30px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }


/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 8px;
  background: var(--hi); color: var(--hi-ink);
  font: inherit; font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18.5px; }

/* ---------- hero ---------- */

.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(30px, 5vw, 52px); }

.hero-grid { display: grid; gap: clamp(28px, 5vw, 52px); align-items: center; }

.eyebrow {
  margin: 0 0 14px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(33px, 5.6vw, 56px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  max-width: 15ch;
}

.hero-guarantee {
  margin: 0 0 22px;
  font-size: clamp(19px, 2.9vw, 27px);
  line-height: 1.2; letter-spacing: -0.025em; font-weight: 700;
  color: var(--muted);
}

.hero p.lead {
  margin: 0 0 28px; font-size: clamp(16.5px, 2vw, 19.5px);
  color: var(--ink-2); max-width: 50ch;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { font-size: 14.5px; color: var(--muted); }

.qualifier {
  margin: -12px 0 26px; font-size: 14.5px; line-height: 1.55;
  color: var(--muted); max-width: 54ch;
}
.qualifier a { color: var(--muted); display: inline-block; padding: 6px 0; }

.disclaimer {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 34px;
  font-size: 14.5px; color: var(--muted);
}

.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { font-size: 15.5px; color: var(--ink-2); display: flex; gap: 9px; }
.ticks li::before { content: "✓"; color: var(--hi); font-weight: 800; }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12px; background: var(--paper-2);
}
.hero-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero-photo.is-empty { display: none; }

/* ---------- credibility ---------- */

.cred { background: var(--ink); color: #fff; padding: 28px 0; }
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
.cred-item strong {
  display: block; font-size: clamp(21px, 3.2vw, 30px);
  letter-spacing: -0.03em; font-weight: 800; line-height: 1.1;
}
.cred-item span { display: block; margin-top: 4px; font-size: 14px; color: #a8afba; line-height: 1.35; }

/* ---------- press ---------- */

.press { border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--paper-2); }
.press-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }
.press-label { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.press-item { font-size: 15.5px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.015em; }

/* ---------- brands ---------- */

.brands { background: var(--ink); color: #fff; padding: 26px 0 24px; text-align: center; }
.brands .press-label { color: #8f97a3; margin: 0 0 14px; }
.brands-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 30px;
}
.brand-item {
  font-size: clamp(16px, 2.2vw, 20px); font-weight: 800;
  letter-spacing: -0.02em; color: #fff; opacity: 0.9;
}
.brands-note { margin: 16px 0 0; font-size: 14px; color: #7e8693; max-width: 56ch; margin-inline: auto; }

/* ---------- sections ---------- */

section { padding: clamp(46px, 7.5vw, 82px) 0; }
.alt { background: var(--paper-2); }

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.2vw, 39px);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
  max-width: 20ch;
}

.section-lead { margin: 0 0 32px; font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2); max-width: 58ch; }
.section-foot { margin: 26px 0 0; font-size: 16.5px; color: var(--muted); max-width: 58ch; }

.mid-cta { margin-top: 32px; }

/* ---------- problems ---------- */

.problems {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.problems li { background: var(--paper); padding: 17px 20px; font-size: 16.5px; font-weight: 500; }
.alt .problems li { background: var(--paper-2); }
.problems li::before { content: "—"; color: var(--hi); font-weight: 800; margin-right: 12px; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 22px 22px 22px 66px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 21px;
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--hi); color: var(--hi-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.step h3 { margin: 0 0 5px; font-size: 18.5px; letter-spacing: -0.02em; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 15.8px; }

/* ---------- story ---------- */

.story { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
.story-body p { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.story-body p:last-child { margin-bottom: 0; }
.story-photo { margin: 0; }
.story-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.story-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.story-photo.is-empty { display: none; }

/* ---------- proof cards ---------- */

.proof { display: grid; gap: 18px; }
.proof-card {
  border: 1px solid var(--line); border-left: 4px solid var(--hi);
  border-radius: 10px; padding: 22px; background: var(--paper);
}
.proof-card h3 { margin: 0 0 6px; font-size: clamp(19px, 2.6vw, 23px); letter-spacing: -0.025em; font-weight: 820; }
.proof-card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- fit ---------- */

.fit { display: grid; gap: 20px; }
.fit-col { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--paper); }
.fit-col h3 { margin: 0 0 14px; font-size: 18.5px; letter-spacing: -0.02em; font-weight: 800; }
.fit-col ul { margin: 0; padding-left: 20px; }
.fit-col li { margin-bottom: 9px; color: var(--ink-2); }
.fit-col li:last-child { margin-bottom: 0; }
.fit-no { background: var(--paper-2); }

/* ---------- booking ---------- */

.booking { background: var(--ink); color: #fff; }
.booking h2 { color: #fff; }
.booking .section-lead { color: #b9c0ca; }

.calendly-slot { background: #fff; border-radius: 10px; overflow: hidden; min-height: 660px; }
.calendly-placeholder { min-height: 660px; display: grid; place-items: center; text-align: center; padding: 40px 24px; color: var(--muted); }
.calendly-placeholder strong { color: var(--ink); font-size: 18px; }
.calendly-placeholder p { margin: 8px 0 0; }

.booking-foot { margin: 18px 0 0; color: #b9c0ca; font-size: 16px; }
.booking-foot a { color: #fff; font-weight: 700; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
details { background: var(--paper); }
.alt details { background: var(--paper-2); }
summary {
  padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16.8px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-2); font-weight: 800; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- final ---------- */

.final { text-align: center; }
.final h2 { margin-inline: auto; max-width: 22ch; }
.final .section-lead { margin-inline: auto; }
.final-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 34px; font-size: 14.5px; color: var(--muted); }
body:has(.sticky-cta) .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); display: inline-block; padding: 10px 4px; }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: transform .22s ease, opacity .22s ease;
}
.sticky-cta .btn { flex: 1; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }


/* ---------- legal pages ---------- */

.legal { padding: clamp(40px, 6vw, 70px) 0; }
.legal h1 { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -0.03em; font-weight: 840; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal a { color: var(--ink); }

/* ---------- responsive ---------- */

@media (min-width: 760px) {
  .hero-grid.no-photo, .story.no-photo { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1.25fr 0.9fr; }
  .story { grid-template-columns: 1.3fr 0.85fr; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 40px; }
}


:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
