/* Shared Design System Shell for AI Tradie HQ (Home, Offer & Core Pages)
   Locks identical header height/nav/logo, container width & gutters (1240px desktop, 24px phone),
   typography scale/weights/text-wrap, FAQ grid & row heights, Proof video quote block,
   Closing CTA band, and 1-column mobile footer across pages. */

html,
body,
main {
  overflow-x: clip;
}

/* ============================================================
   1. SHARED CONTAINER & GUTTERS (1240px DESKTOP, 24px PHONE)
   ============================================================ */
html body header.header .wrap.header-inner,
html body.home-page .wrap,
html body.home-page .site-portrait .portrait-grid,
html body.home-page .home-directory .directory-inner,
html body.team-page .team-offer .wrap,
html body.team-page .team-offer .ongoing,
html body.team-page .home-directory .directory-inner {
  width: min(calc(100% - 96px), 1240px);
  max-width: 1240px;
  padding-inline: 0;
  margin-inline: auto;
}

@media (max-width: 959px) {
  html body header.header .wrap.header-inner,
  html body.home-page .wrap,
  html body.home-page .site-portrait .portrait-grid,
  html body.home-page .home-directory .directory-inner,
  html body.team-page .team-offer .wrap,
  html body.team-page .team-offer .ongoing,
  html body.team-page .home-directory .directory-inner {
    width: calc(100% - 48px);
    padding-inline: 0;
  }
}

/* ============================================================
   2. SHARED TRANSLUCENT HEADER (64px DESKTOP / 60px PHONE)
   ============================================================ */
html body header.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  min-height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  background: rgb(243 244 238 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgb(17 19 17 / 0.08);
  font-family: Geist, GeistReview, -apple-system, sans-serif;
}

html body header.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

html body header.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #151613;
  text-decoration: none;
  white-space: nowrap;
}

html body header.header .brand-symbol {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

html body header.header .logo-hq {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  align-self: center;
  margin-top: 0;
  transform: translateY(-5px);
}

@media (min-width: 960px) {
  html body header.header .nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

html body header.header .nav > a:not(.btn),
html body header.header .services-menu summary {
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #151613;
}

html body header.header .nav .btn.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #151613;
  color: #f6f7f2;
  border: 0;
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

html body header.header .nav .btn.btn-dark:hover {
  background: #2c3028;
}

@media (max-width: 959px) {
  html body header.header {
    height: 60px;
    min-height: 60px;
  }

  html body header.header .menu-button {
    min-height: 44px;
    min-width: 68px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgb(17 19 17 / 0.16);
    background: rgb(255 255 255 / 0.65);
    font-family: Geist, GeistReview, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 560;
    color: #151613;
  }
}

/* ============================================================
   3. SHARED TYPOGRAPHY, TEXT-WRAP & HERO CARD >= 12px FLOOR
   ============================================================ */
main h1,
main h2 {
  text-wrap: balance;
}

/* Offer desktop H1 clearly dominant (~88px vs 58px H2s) with balanced wrapping */
.team-offer .hero h1 {
  font-size: clamp(2.875rem, 6.1vw, 5.5rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Single unified section H2 token on Home & Offer (58px desktop / 34px phone) */
.home-page .home-audit-report h2,
.home-page .home-paid h2,
.home-page .home-faq h2,
.team-offer .roles h2,
.team-offer .first-build h2,
.team-offer .ongoing h2,
.team-offer .engage h2,
.team-offer .questions h2 {
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: clamp(2.125rem, 4.1vw, 3.625rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Home pricing card H3s match shared 560 weight and align bottom dividers cleanly */
.home-page .home-paid .choice-line h3 {
  font-weight: 560;
}

.home-page .home-paid .choice-line .offer-bullets {
  margin-bottom: 12px;
}

/* Hero UI card text strictly >= 12px everywhere */
.home-page .hero-live-card,
.home-page .hero-live-card *,
.team-offer .hero-draft,
.team-offer .hero-draft *,
.team-offer .hero-draft figcaption,
.team-offer .hero-draft-head,
.team-offer .hero-draft-ok {
  font-size: max(12px, 1em);
}

.team-offer .hero-draft-head,
.team-offer .hero-draft figcaption,
.team-offer .hero-draft-ok span,
.team-offer .hero-draft-ok strong {
  font-size: 12px;
}

.home-page .hero-live-card .hlc-head,
.home-page .hero-live-card .hlc-list span {
  font-size: 12px;
}

/* ============================================================
   4. SHARED PROOF COMPONENT (PETER FLYNN FILM & QUOTE)
   ============================================================ */
.home-page .home-film .home-spread,
.team-offer .customer-film {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.home-page .home-film #home-film-title,
.team-offer .customer-film blockquote {
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.4375rem);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #151613;
  margin: 0 0 18px;
  max-width: 24ch;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .home-page .home-film .home-spread,
  .team-offer .customer-film {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Keep Offer proof-row ROI action secondary (one lime CTA per screen) */
.team-offer .people-roi-btn {
  background: transparent;
  color: #151613;
  border: 1.5px solid #151613;
}

.team-offer .people-roi-btn:hover {
  background: #151613;
  color: #f6f7f2;
}

/* ============================================================
   5. SHARED FAQ COMPONENT (IDENTICAL GRID, COLUMN X & ROW HEIGHT)
   ============================================================ */
.home-page .home-faq,
.team-offer .questions {
  display: block;
  background: #f3f4ee;
  border-top: 1px solid #d6d9ce;
  padding-block: clamp(64px, 7vw, 96px);
}

.home-page .home-faq-grid,
.team-offer .questions-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.home-page .home-faq-grid > div > p,
.team-offer .questions-grid > div > p {
  margin: 12px 0 0;
  color: #52574d;
  font-size: 1.0625rem;
  line-height: 1.48;
}

.home-page .home-faq-list,
.team-offer .questions-list {
  border-top: 2px solid #151613;
}

.home-page .home-faq-list details,
.team-offer .questions-list details {
  padding: 0;
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid #d4d7cd;
}

.home-page .home-faq-list summary,
.team-offer .questions-list summary {
  cursor: pointer;
  list-style: none;
  min-height: 62px;
  padding: 18px 0;
  margin: 0;
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1.35;
  color: #151613;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}

.home-page .home-faq-list summary::-webkit-details-marker,
.team-offer .questions-list summary::-webkit-details-marker {
  display: none;
}

.home-page .home-faq-list summary::before,
.team-offer .questions-list summary::before {
  display: none;
  content: none;
}

.home-page .home-faq-list summary::after,
.team-offer .questions-list summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: #52574d;
  flex-shrink: 0;
}

.home-page .home-faq-list details[open] summary::after,
.team-offer .questions-list details[open] summary::after {
  content: "−";
}

.home-page .home-faq-list details p,
.team-offer .questions-list details p {
  margin: 0 0 18px;
  color: #52574d;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.5;
}

.home-page .home-faq-list details p a,
.team-offer .questions-list details p a {
  color: #151613;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .home-page .home-faq-grid,
  .team-offer .questions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   6. SHARED CLOSING CTA BAND (AFTER FAQ, BEFORE FOOTER)
   ============================================================ */
.closing-cta,
.team-offer .closing-cta {
  background: #eceee6;
  border-top: 1px solid #d6d9ce;
  padding-block: clamp(44px, 5vw, 64px);
}

.closing-cta-bar,
.team-offer .closing-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
}

.closing-cta-bar h2,
.team-offer .closing-cta-bar h2 {
  margin: 0;
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #151613;
  text-wrap: balance;
}

.closing-cta-bar p,
.team-offer .closing-cta-bar p {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #52574d;
}

.closing-cta-btn,
.team-offer .closing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #a3e635;
  color: #151613;
  font-family: Geist, GeistReview, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.closing-cta-btn:hover,
.team-offer .closing-cta-btn:hover {
  background: #96d72e;
}

/* ============================================================
   7. SHARED PHONE SECTION PADDING (64px) & 1-COL MOBILE FOOTER
   ============================================================ */
@media (max-width: 959px) {
  .home-page .home-workday,
  .home-page .home-audit-report,
  .home-page .home-film,
  .home-page .home-paid,
  .home-page .home-faq,
  .team-offer .scroll-story,
  .team-offer .people,
  .team-offer .roles,
  .team-offer .first-build,
  .team-offer .ongoing,
  .team-offer .engage,
  .team-offer .questions {
    padding-block: 64px;
  }

  .home-page .home-audit-report h2,
  .home-page .home-paid h2,
  .home-page .home-faq h2,
  .team-offer .roles h2,
  .team-offer .first-build h2,
  .team-offer .ongoing h2,
  .team-offer .engage h2,
  .team-offer .questions h2 {
    font-size: 2.125rem;
  }

  .closing-cta-btn,
  .team-offer .closing-cta-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home-directory .directory-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
