/* ============================================================================
   DESIGN SYSTEM — The Real Jason Duncan
   Production CSS Design System
   Version: 1.0.0
   ============================================================================

   TABLE OF CONTENTS:

   1.  Custom Properties (Variables)
   2.  Reset & Base
   3.  Typography
   4.  Container & Grid
   5.  Section Spacing
   6.  Buttons
   7.  Navigation
   8.  Hero Section
   9.  Social Proof Bar
   10. Content Cards / Pillars
   11. Testimonial Cards
   12. Email Capture / Forms
   13. GHL Form Styles
   14. Credentials / Badge Bar
   15. Footer
   16. Utility Classes
   17. Animations & Transitions
   18. Responsive Breakpoints

   ============================================================================ */

@import url("fonts.css");


/* ============================================================================
   1. CUSTOM PROPERTIES (VARIABLES)
   ============================================================================ */

:root {
  /* --- Colors --- */
  --color-bg:              #0a0a0a;
  --color-bg-card:         #111111;
  --color-bg-elevated:     #1a1a1a;
  --color-bg-surface:      #222222;

  --color-primary:         #1DBED8;
  --color-primary-hover:   #17a5bc;
  --color-primary-muted:   rgba(29, 190, 216, 0.15);
  --color-primary-glow:    rgba(29, 190, 216, 0.25);

  --color-text:            #F9F9F9;
  --color-text-secondary:  #999999;
  --color-text-muted:      #7a7a7a;
  --color-text-inverse:    #0a0a0a;

  --color-border:          rgba(255, 255, 255, 0.08);
  --color-border-subtle:   rgba(255, 255, 255, 0.04);
  --color-border-accent:   rgba(29, 190, 216, 0.3);

  --color-white:           #FFFFFF;
  --color-black:           #000000;
  --color-success:         #34D399;
  --color-error:           #F87171;
  --color-warning:         #FBBF24;

  /* --- Fonts --- */
  --font-heading:          "Nexa", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:             "Draft B", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Font Sizes (fluid, mobile-first) --- */
  --text-xs:               0.75rem;    /* 12px */
  --text-sm:               0.875rem;   /* 14px */
  --text-base:             1rem;       /* 16px */
  --text-lg:               1.125rem;   /* 18px */
  --text-xl:               1.25rem;    /* 20px */
  --text-2xl:              1.5rem;     /* 24px */
  --text-3xl:              1.875rem;   /* 30px */
  --text-4xl:              2.25rem;    /* 36px */
  --text-5xl:              3rem;       /* 48px */
  --text-6xl:              3.75rem;    /* 60px */
  --text-7xl:              4.5rem;     /* 72px */

  /* --- Font Weights --- */
  --weight-regular:        400;
  --weight-bold:           700;

  /* --- Line Heights --- */
  --leading-none:          1;
  --leading-tight:         1.15;
  --leading-snug:          1.3;
  --leading-normal:        1.6;
  --leading-relaxed:       1.75;

  /* --- Letter Spacing --- */
  --tracking-tight:       -0.02em;
  --tracking-normal:       0;
  --tracking-wide:         0.05em;
  --tracking-wider:        0.1em;

  /* --- Spacing Scale (8px base) --- */
  --space-1:               0.25rem;    /* 4px */
  --space-2:               0.5rem;     /* 8px */
  --space-3:               0.75rem;    /* 12px */
  --space-4:               1rem;       /* 16px */
  --space-5:               1.25rem;    /* 20px */
  --space-6:               1.5rem;     /* 24px */
  --space-8:               2rem;       /* 32px */
  --space-10:              2.5rem;     /* 40px */
  --space-12:              3rem;       /* 48px */
  --space-16:              4rem;       /* 64px */
  --space-20:              5rem;       /* 80px */
  --space-24:              6rem;       /* 96px */
  --space-32:              8rem;       /* 128px */

  /* --- Section Spacing --- */
  --section-gap:           var(--space-8);
  --section-gap-lg:        var(--space-12);

  /* --- Layout --- */
  --container-max:         1200px;
  --container-narrow:      800px;
  --container-padding:     var(--space-5);

  /* --- Border Radius --- */
  --radius-sm:             4px;
  --radius-md:             8px;
  --radius-lg:             12px;
  --radius-xl:             16px;
  --radius-full:           9999px;

  /* --- Shadows --- */
  --shadow-sm:             0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:             0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:             0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:           0 0 20px var(--color-primary-glow);

  /* --- Transitions --- */
  --transition-fast:       150ms ease;
  --transition-base:       250ms ease;
  --transition-slow:       400ms ease;
  --transition-spring:     500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index Scale --- */
  --z-base:                1;
  --z-dropdown:            100;
  --z-sticky:              200;
  --z-overlay:             300;
  --z-modal:               400;
  --z-toast:               500;
}


/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

strong, b {
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

small {
  font-size: var(--text-sm);
}

blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: 55ch;
}

blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}


/* ============================================================================
   4. CONTAINER & GRID
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

.container--full {
  max-width: 100%;
}

/* Simple responsive grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex row utility */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--col {
  flex-direction: column;
}

.flex--gap-sm {
  gap: var(--space-3);
}

.flex--gap {
  gap: var(--space-6);
}

.flex--gap-lg {
  gap: var(--space-8);
}


/* ============================================================================
   5. SECTION SPACING
   ============================================================================ */

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section--lg {
  padding-top: var(--section-gap-lg);
  padding-bottom: var(--section-gap-lg);
}

.section--sm {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--no-top {
  padding-top: 0;
}

.section--no-bottom {
  padding-bottom: 0;
}

.section--dark {
  background-color: var(--color-bg-card);
}

.section--elevated {
  background-color: var(--color-bg-elevated);
}

.section__header {
  text-align: center;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section__header p {
  margin-left: auto;
  margin-right: auto;
}

/* Divider between sections */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 0;
}


/* ============================================================================
   6. BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary — teal bg, dark text */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary — outline teal */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary-muted);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0);
}

/* Ghost — text only */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.btn--ghost:hover {
  color: var(--color-primary);
}

/* Button sizes */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 56px;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn--full {
  width: 100%;
}


/* ============================================================================
   7. NAVIGATION
   ============================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  background-color: transparent;
  transition: background-color var(--transition-base),
              padding var(--transition-base),
              box-shadow var(--transition-base);
}

.nav--scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.8;
  color: var(--color-text);
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-4);
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.nav__mobile--open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile .nav__link {
  font-size: var(--text-2xl);
  color: var(--color-text);
}


/* ============================================================================
   8. HERO SECTION
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--space-24);
  padding-bottom: var(--section-gap);
  overflow: hidden;
}

.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  margin-left: auto;
  margin-right: auto;
}

.hero--centered p {
  margin-left: auto;
  margin-right: auto;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-5xl);
  line-height: var(--leading-none);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero--centered .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero--centered .hero__actions {
  justify-content: center;
}

/* Hero background image/gradient */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.8) 60%,
    var(--color-bg) 100%
  );
}

/* Decorative gradient accent */
.hero__glow {
  position: absolute;
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  top: -200px;
  right: -200px;
}


/* ============================================================================
   9. SOCIAL PROOF BAR
   ============================================================================ */

.proof-bar {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.proof-bar__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}

.proof-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.proof-bar__logo {
  height: 28px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%) brightness(2);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

.proof-bar__logo:hover {
  opacity: 0.7;
  filter: grayscale(0%) brightness(1);
}


/* ============================================================================
   10. CONTENT CARDS / PILLARS
   ============================================================================ */

.card {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-border-accent);
}

/* Teal top-border accent on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-muted);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  font-size: var(--text-xl);
}

.card__title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary);
  transition: gap var(--transition-base);
}

.card__link:hover {
  gap: var(--space-3);
  color: var(--color-primary);
}

/* Pillar cards — slightly larger variant */
.card--pillar {
  padding: var(--space-10);
  text-align: center;
}

.card--pillar .card__icon {
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}


/* ============================================================================
   11. TESTIMONIAL CARDS
   ============================================================================ */

.testimonial {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: none;
}

.testimonial__quote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-size: var(--text-5xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial__name {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--color-text);
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Featured/highlight testimonial */
.testimonial--featured {
  border-color: var(--color-border-accent);
  background: linear-gradient(
    135deg,
    var(--color-bg-card) 0%,
    rgba(29, 190, 216, 0.03) 100%
  );
}


/* ============================================================================
   12. EMAIL CAPTURE / FORMS
   ============================================================================ */

.email-capture {
  max-width: 520px;
}

.email-capture--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.email-capture__form {
  display: flex;
  gap: var(--space-3);
}

.email-capture__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

.email-capture__input::placeholder {
  color: var(--color-text-muted);
}

.email-capture__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-muted);
}

.email-capture__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Stacked variant for narrow spaces */
.email-capture--stacked .email-capture__form {
  flex-direction: column;
}

.email-capture--stacked .btn {
  width: 100%;
}


/* ============================================================================
   13. GHL FORM STYLES
   ============================================================================ */

/* GoHighLevel form overrides — scoped to .ghl-form wrapper */
.ghl-form {
  max-width: 600px;
}

.ghl-form label,
.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.ghl-form input[type="text"],
.ghl-form input[type="email"],
.ghl-form input[type="tel"],
.ghl-form input[type="url"],
.ghl-form input[type="number"],
.ghl-form input[type="date"],
.ghl-form input[type="password"],
.ghl-form select,
.ghl-form textarea,
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.ghl-form input:focus,
.ghl-form select:focus,
.ghl-form textarea:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-muted);
}

.ghl-form input::placeholder,
.ghl-form textarea::placeholder,
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

/* Select dropdown arrow */
.ghl-form select,
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.ghl-form textarea,
.form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form field group */
.form__group {
  margin-bottom: var(--space-5);
}

.form__row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

/* Error states */
.form__input--error,
.form__select--error,
.form__textarea--error {
  border-color: var(--color-error);
}

.form__input--error:focus,
.form__select--error:focus,
.form__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form__error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* GHL submit button override */
.ghl-form button[type="submit"],
.ghl-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  min-height: 48px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.ghl-form button[type="submit"]:hover,
.ghl-form input[type="submit"]:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Checkbox and radio overrides */
.ghl-form input[type="checkbox"],
.ghl-form input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--color-primary);
}


/* ============================================================================
   14. CREDENTIALS / BADGE BAR
   ============================================================================ */

.badge-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.badge-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.badge__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inline credential list (e.g., under bio) */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

.credential {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.credential__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  flex-shrink: 0;
}


/* ============================================================================
   15. FOOTER
   ============================================================================ */

.footer {
  background-color: var(--color-black);
  border-top: 1px solid var(--color-border);
  padding-top: var(--section-gap);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-elevated);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer bottom bar */
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--color-text-secondary);
}


/* ============================================================================
   16. UTILITY CLASSES
   ============================================================================ */

/* --- Text Alignment --- */
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* --- Text Color --- */
.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-text); }

/* --- Font --- */
.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

/* --- Visibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden       { display: none !important; }
.visible      { visibility: visible; }
.invisible    { visibility: hidden; }

/* Show/hide at breakpoints (mobile-first) */
.hide-mobile  { /* shown by default, hidden on mobile — controlled in media queries */ }
.show-mobile  { display: none; }

/* --- Spacing Helpers --- */
.mt-0   { margin-top: 0; }
.mt-2   { margin-top: var(--space-2); }
.mt-4   { margin-top: var(--space-4); }
.mt-6   { margin-top: var(--space-6); }
.mt-8   { margin-top: var(--space-8); }
.mt-12  { margin-top: var(--space-12); }
.mt-16  { margin-top: var(--space-16); }

.mb-0   { margin-bottom: 0; }
.mb-2   { margin-bottom: var(--space-2); }
.mb-4   { margin-bottom: var(--space-4); }
.mb-6   { margin-bottom: var(--space-6); }
.mb-8   { margin-bottom: var(--space-8); }
.mb-12  { margin-bottom: var(--space-12); }
.mb-16  { margin-bottom: var(--space-16); }

.mx-auto { margin-left: auto; margin-right: auto; }

.pt-0   { padding-top: 0; }
.pb-0   { padding-bottom: 0; }

/* --- Width Constraints --- */
.max-w-narrow { max-width: var(--container-narrow); }
.max-w-full   { max-width: 100%; }
.w-full       { width: 100%; }

/* --- Display --- */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline       { display: inline; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }

/* --- Position --- */
.relative { position: relative; }


/* ============================================================================
   17. ANIMATIONS & TRANSITIONS
   ============================================================================ */

/* Fade in on scroll — applied via JS IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger--visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger--visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger--visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger--visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger--visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.slide-left--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.slide-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.scale-in--visible {
  opacity: 1;
  transform: scale(1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-left,
  .slide-right,
  .scale-in,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* --- Tablet (768px) --- */
@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-8);
    --section-gap:       var(--space-10);
    --section-gap-lg:    var(--space-16);
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }

  .hero__title {
    font-size: var(--text-6xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .proof-bar__logo {
    height: 32px;
  }

  .show-mobile  { display: none; }
}

/* --- Desktop (1024px) --- */
@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }

  .hero__title {
    font-size: var(--text-7xl);
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Show desktop nav, hide toggle */
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .hide-mobile {
    display: initial;
  }

  .proof-bar__logo {
    height: 36px;
  }
}

/* --- Wide (1440px) --- */
@media (min-width: 1440px) {
  :root {
    --container-padding: var(--space-10);
  }

  .hero__title {
    font-size: calc(var(--text-7xl) * 1.15);
  }

  .proof-bar__logos {
    gap: var(--space-12);
  }

  .proof-bar__logo {
    height: 40px;
  }
}


/* ============================================================================
   MOBILE VIEWPORT SAFETY (2026-04-20)
   ----------------------------------------------------------------------------
   Keeps decorative and inline elements from pushing the document wider than
   the viewport on phone-sized screens. Desktop unaffected — overflow:hidden
   is inert when no child overflows; all mobile-only rules are scoped to
   max-width: 640px.
   ============================================================================ */

/* Hero-style page sections that host absolute-positioned decorative children
   (glows, marquees) must clip their overflow. Desktop .hero does this
   already, but page-specific hero variants and marquees do not inherit. */
.affiliate-hero,
.relay-hero,
.marquee-section,
.podcast-hero,
.xos-hero,
.br-hero,
.mm-hero,
.pa-hero {
  overflow: hidden;
}

/* Exit-intent modal backdrop is position:fixed inset:0. On some mobile
   browsers the containing block for fixed elements expands past viewport
   when earlier content causes overflow; bound it to viewport explicitly
   so the backdrop itself cannot re-introduce horizontal scroll. */
.trjd-ei-backdrop {
  max-width: 100vw;
}

@media (max-width: 640px) {
  /* Decorative glows are pure visual flourishes (blur radial gradients,
     pointer-events:none). Chromium's initial-containing-block calculation
     can leak their bounds past overflow:hidden parents on some layouts,
     expanding the fixed-positioning containing block beyond the visual
     viewport and cutting off the hamburger. Hide on phone-sized screens. */
  .hero__glow,
  .affiliate-hero__glow,
  .relay-hero__glow {
    display: none;
  }

  /* Override inline white-space:nowrap on heading spans (hero titles on
     xos, mastermind, private-advisement, burnout-report, podcast use this
     for desktop typography). On phones the text must wrap instead of
     forcing horizontal scroll. */
  .hero__title span,
  h1 span,
  h2 span,
  h3 span,
  h4 span,
  h5 span,
  h6 span {
    white-space: normal !important;
  }

  /* Inline two-column grids (e.g. Chisel & Compass host cards on the
     podcast page) collapse to a single column on phones so the children
     don't force the parent wider than the viewport. */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Block-level containers default to min-width: auto (min-content), which
     lets grid/flex children push them wider than the viewport. Reset to
     zero so they can shrink to fit. */
  div,
  section,
  article,
  main,
  aside,
  header,
  footer {
    min-width: 0;
  }

  /* Slide-in animations translate 30px horizontally in their initial state.
     On phone-sized viewports this causes transient overflow before the
     element becomes visible. Keep the opacity fade, drop the x-translate. */
  .slide-left,
  .slide-right {
    transform: translateX(0);
  }

  /* CTA buttons sometimes carry long labels that exceed viewport width on
     phones. Wrap the label rather than push the layout wider. */
  .btn {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  /* Podcast landing hero: artwork max-width (340px) and large section
     padding exceed the narrow-viewport inner-width. Tighten the padding
     (inline page CSS uses var(--space-8) = 32px each side, leaving only
     311px for content at 375px viewport), constrain artwork, and allow
     grid items to shrink below their intrinsic content size. */
  .podcast-hero {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
  }

  .podcast-hero > * {
    min-width: 0;
  }

  .podcast-hero__artwork,
  .podcast-hero__content {
    max-width: 100%;
    box-sizing: border-box;
  }

  .podcast-hero__artwork {
    max-width: min(340px, 100%);
  }

  /* Resource cards can exceed viewport by a few pixels due to padding.
     Constrain to parent width. */
  .resource-card {
    max-width: 100%;
    box-sizing: border-box;
  }
}
