/* =============================================================
   TEXAS EXIT ADVISORS  ·  styles.css
   Mobile-first. Edit the variables below to retune the whole site.
   ============================================================= */

/* -------------------------------------------------------------
   DESIGN TOKENS
   Palette is a warm nod to Thryve (orange + off-white + dark),
   not a clone. To match Thryve's exact orange, replace --accent
   with the hex from thryvetogether.com.
------------------------------------------------------------- */
:root {
  /* Color */
  --paper:        #FBF7F1;   /* off-white page background */
  --paper-2:      #F3ECE1;   /* slightly deeper panel */
  --ink:          #1B1813;   /* warm near-black text */
  --ink-soft:     #574E45;   /* secondary text */
  --ink-faint:    #8A8077;   /* muted captions */
  --accent:       #DD6B2D;   /* warm orange (Thryve nod) */
  --accent-deep:  #BC5418;   /* hover / pressed */
  --accent-soft:  #F7E4D4;   /* tinted backgrounds */
  --dark:         #17140F;   /* dark sections */
  --dark-2:       #221D16;   /* dark card */
  --line:         #E5DCCE;   /* hairline borders */
  --on-dark:      #F6EFE4;   /* text on dark */
  --on-dark-soft: #BCAF9C;

  /* Type — Montserrat site-wide (matches Thryve's Brandon Grotesque feel).
     Swap both to your Adobe Fonts family name to use exact Brandon Grotesque. */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(27,24,19,.06), 0 6px 18px rgba(27,24,19,.05);
  --shadow-md: 0 10px 40px rgba(27,24,19,.10);
  --shadow-lg: 0 24px 70px rgba(27,24,19,.16);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* -------------------------------------------------------------
   RESET / BASE
------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
p { margin: 0 0 1rem; }

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

/* Accessibility helpers */
.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; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.hp { position: absolute; left: -9999px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  line-height: 1; padding: .95rem 1.6rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(221,107,45,.32); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* -------------------------------------------------------------
   HEADER / NAV
------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,241,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--accent); color: #fff; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.brand-text { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.nav-menu a:hover { color: var(--ink); text-decoration: none; }
.nav-menu a.active { color: var(--accent-deep); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important; padding: .6rem 1.15rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 1rem var(--gutter); }
  .nav-cta { margin: .75rem var(--gutter) 1rem; text-align: center; }
}

/* -------------------------------------------------------------
   SECTION SCAFFOLDING
------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-eyebrow, .eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 .9rem;
}
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); max-width: 22ch; }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.5rem; }

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(221,107,45,.10), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  max-width: 20ch;
  margin-bottom: 1.1rem;
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 2.25rem; }

.hero-doors { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
.door-card {
  display: block; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.door-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.door-label { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: .3rem; }
.door-desc { display: block; color: var(--ink-soft); font-size: 1rem; }
.door-arrow { position: absolute; top: 1.4rem; right: 1.5rem; color: var(--accent); font-size: 1.3rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.hero-trust { font-size: .95rem; color: var(--ink-faint); }

@media (min-width: 720px) {
  .hero-doors { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------
   THE GAP
------------------------------------------------------------- */
.gap-grid { display: grid; gap: 1.1rem; }
.gap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}
.gap-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.gap-card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (min-width: 640px) { .gap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .gap-grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------
   TWO PATHS
------------------------------------------------------------- */
.paths { background: var(--paper-2); }
.paths-grid { display: grid; gap: 1.4rem; }
.path-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.path-card--accent { background: var(--dark); border-color: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.path-card--accent h3, .path-card--accent .path-intro { color: var(--on-dark); }
.path-head { margin-bottom: 1rem; }
.path-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}
.path-card--accent .path-tag { color: #fff; background: rgba(221,107,45,.85); }
.path-head h3 { font-size: 1.7rem; }
.path-intro { color: var(--ink-soft); margin-bottom: 1.2rem; }
.path-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.path-list li { position: relative; padding-left: 1.7rem; font-size: 1.02rem; }
.path-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--accent);
}
.path-card .btn { margin-top: auto; }
@media (min-width: 880px) { .paths-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* -------------------------------------------------------------
   VIDEO HUB
------------------------------------------------------------- */
.videos { background: var(--paper); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--dark-2); border-radius: var(--radius); overflow: hidden;
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Vertical videos (YouTube Shorts, 9:16). Capped so they don't tower on desktop. */
.video-frame--vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.video-grid .video-frame--vertical { max-width: 230px; }

/* Featured slot */
.video-featured { margin-bottom: 1.6rem; }
.video-featured .video-card { display: grid; gap: 1.4rem; }
.video-featured .video-frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.video-featured .video-meta { align-self: center; }
.video-featured .video-title { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.featured-flag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .5rem;
}
@media (min-width: 860px) {
  .video-featured .video-card { grid-template-columns: 1.5fr 1fr; }
  /* Vertical featured video: narrow player column, text alongside, vertically centered. */
  .video-featured .video-card.is-vertical { grid-template-columns: 340px 1fr; align-items: center; }
}

/* Grid of the rest */
.video-grid { display: grid; gap: 1.4rem; }
.video-grid .video-title { font-size: 1.15rem; margin: .8rem 0 .3rem; }
.video-blurb { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (min-width: 600px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.videos-empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem;
  text-align: center; color: var(--ink-faint); background: var(--paper-2);
}
.videos-subscribe { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.videos-subscribe p { margin: 0; font-weight: 600; }

/* -------------------------------------------------------------
   ABOUT
------------------------------------------------------------- */
.about-inner { display: grid; gap: 2rem; }
.about-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-2); aspect-ratio: 4 / 5; box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo--empty::after {
  content: "Headshot: assets/nic-headshot.jpg";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-faint); font-size: .9rem; text-align: center; padding: 1rem;
}
.about-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.axial-badge {
  width: 100%; max-width: 290px; height: auto; margin: .2rem 0 1.6rem;
}
.about-copy .btn { margin-top: .2rem; }
@media (min-width: 860px) {
  .about-inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 3rem; }
  .about-photo { position: sticky; top: 92px; }
}

/* -------------------------------------------------------------
   ECOSYSTEM
------------------------------------------------------------- */
.ecosystem { background: var(--dark); color: var(--on-dark); }
.ecosystem .section-eyebrow { color: var(--accent); }
.ecosystem .section-title { color: var(--on-dark); }
.ecosystem .section-lead { color: var(--on-dark-soft); }
.eco-grid { display: grid; gap: 1.4rem; }
.eco-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
}
.eco-card h3 { color: var(--on-dark); font-size: 1.4rem; margin-bottom: .6rem; }
.eco-card p { color: var(--on-dark-soft); }
.eco-logo {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: .85rem 1.15rem;
  min-height: 70px; margin-bottom: 1.3rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.eco-logo img { max-height: 42px; width: auto; display: block; }
.eco-logo .wordmark { text-align: left; line-height: 1.05; }
.eco-logo .wordmark strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; color: var(--ink); letter-spacing: -0.01em;
}
.eco-logo .wordmark em {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 3px;
}
.eco-link { display: inline-block; margin-top: .8rem; color: var(--accent); font-weight: 700; }
.eco-link:hover { color: #fff; text-decoration: none; }
.eco-note { margin-top: 2rem; color: var(--on-dark-soft); font-size: 1.02rem; max-width: 58ch; }
@media (min-width: 820px) { .eco-grid { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------
   CONVERSION
------------------------------------------------------------- */
.convert { background: var(--paper-2); }
.convert-grid { display: grid; gap: 1.4rem; }
.convert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); scroll-margin-top: 90px;
}
.convert-rank {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .6rem;
}
.convert-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.convert-card > p { color: var(--ink-soft); }

/* Visual hierarchy: primary is biggest and boldest. */
.convert-card--primary {
  border: 2px solid var(--accent); box-shadow: var(--shadow-md);
}
.convert-card--primary h3 { font-size: 1.85rem; }
.convert-card--secondary { }
.convert-card--tertiary { background: var(--paper); }

@media (min-width: 900px) {
  .convert-grid { grid-template-columns: 1.3fr 1fr; grid-auto-rows: min-content; }
  .convert-card--primary { grid-row: span 2; }
}

/* Scheduler */
.scheduler-embed { margin-top: 1.4rem; }
.scheduler-placeholder {
  border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; background: var(--accent-soft);
}
.scheduler-placeholder p { color: var(--ink-soft); margin: 0 0 .8rem; }
.scheduler-placeholder .btn { margin-top: .4rem; }

/* Forms */
.form { margin-top: 1.2rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .optional { color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(221,107,45,.18);
}
.field textarea { resize: vertical; }
.form-reassure { font-size: .85rem; color: var(--ink-faint); margin: .2rem 0 0; line-height: 1.5; }
.form-status { font-size: .92rem; font-weight: 600; margin: .4rem 0 0; min-height: 1.2em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: #c0392b; }
.form--inline { gap: .8rem; }

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: 3.5rem; }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .brand-mark { margin-bottom: .8rem; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 .4rem; color: var(--on-dark); }
.footer-tag { color: var(--on-dark-soft); font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: var(--on-dark); font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--on-dark-soft); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem var(--gutter); padding-bottom: 2.5rem;
  display: grid; gap: .8rem;
}
.footer-bottom p { margin: 0; color: var(--on-dark-soft); font-size: .85rem; }
.footer-disclaimer { font-size: .78rem; line-height: 1.6; color: #7d7163; max-width: 80ch; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
