/* ============================================
   Franchise Buyers Guide — Executive Editorial
   ============================================ */

:root {
  --ff-display: 'Newsreader', Georgia, serif;
  --ff-body: 'Outfit', system-ui, sans-serif;

  --navy: #111827;
  --navy-light: #1F2937;
  --slate: #374151;
  --steel: #6B7280;
  --silver: #9CA3AF;
  --mist: #F3F4F6;
  --white: #FFFFFF;

  --red: #C62828;
  --red-dark: #A41E1E;
  --gold: #D4A021;
  --gold-light: rgba(212, 160, 33, 0.1);

  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);

  --error: #DC2626;
  --success: #16A34A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.nav.is-scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

.nav__logo {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav__logo span { color: var(--gold); }

.nav__cta {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--white);
  background: var(--red);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
}

.nav__cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.97) 0%, rgba(31,41,55,0.92) 50%, rgba(17,24,39,0.85) 100%);
  z-index: 1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212,160,33,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(198,40,40,0.06) 0%, transparent 50%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,33,0.3), transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.hero__kicker {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero__rule {
  width: 4rem;
  height: 3px;
  background: var(--red);
  margin: 1.5rem 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 2rem;
  max-width: 36rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero__sub strong {
  color: var(--white);
  font-weight: 600;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   TRUST BAR
   ===================== */
.trust-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--silver);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* =====================
   SECTIONS
   ===================== */
.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--navy);
}

.section--warm {
  background: var(--mist);
}

.section__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section__header p {
  font-size: 1.0625rem;
  color: var(--steel);
  line-height: 1.6;
}

.section__header--light h2 { color: var(--white); }
.section__header--light p { color: var(--silver); }

/* =====================
   VIDEO
   ===================== */
.video-card {
  max-width: 52rem;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--navy);
  line-height: 0;
}

.video-card video {
  display: block;
}

/* =====================
   COLUMNS (What's Inside)
   ===================== */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.col-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}

.col-card:hover {
  border-color: rgba(212,160,33,0.2);
  background: rgba(255,255,255,0.06);
}

.col-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.col-card h3 {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.col-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.col-card li {
  font-size: 0.9375rem;
  color: var(--silver);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.col-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}

/* =====================
   FORM
   ===================== */
.form-card {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-card__header {
  background: var(--navy);
  padding: 2rem 2.5rem;
  text-align: center;
}

.form-card__header h2 {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.form-card__header p {
  font-size: 0.9375rem;
  color: var(--silver);
}

#contactForm {
  padding: 2rem 2.5rem 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid--half {
  grid-template-columns: 1fr 1fr;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.req { color: var(--red); }
.optional { color: var(--silver); font-weight: 400; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-group input:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--silver); }

.form-group input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-grid + .form-group {
  margin-bottom: 1.25rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--steel);
}

.form-check input { position: absolute; opacity: 0; pointer-events: none; }

.check {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--silver);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all 0.12s;
}

.form-check input:checked + .check {
  background: var(--navy);
  border-color: var(--navy);
}

.form-check input:checked + .check::after {
  content: '';
  width: 0.3rem;
  height: 0.5rem;
  border: 1.5px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.form-check input.is-invalid ~ .check {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.cf-turnstile {
  margin-top: 1rem;
}

.form-message {
  margin-top: 0.75rem;
  padding: 0;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.form-message.is-visible {
  padding: 0.625rem 0.875rem;
  max-height: 5rem;
  opacity: 1;
}

.form-message.is-success {
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.form-message.is-error {
  background: rgba(220, 38, 38, 0.05);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.12);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--accent {
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn--accent:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,40,40,0.3);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,40,40,0.25);
}

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

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.is-pending {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn__loading { display: none; }
.btn.is-loading .btn__text { visibility: hidden; }
.btn.is-loading .btn__loading { display: flex; position: absolute; }

/* =====================
   BOOK
   ===================== */
.book-card {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.book-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.book__img {
  width: 13rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.book__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.book__body h2 {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.book__author {
  font-size: 0.9375rem;
  color: var(--steel);
  margin-bottom: 1rem;
}

.book__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 1.75rem;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--steel);
}

.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { transition: color 0.15s; }
.footer__links a:hover { color: var(--navy); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 48rem) {
  .wrap { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 7rem 0 3.5rem; min-height: auto; }

  .trust-bar__inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    width: fit-content;
    margin: 0 auto;
  }

  .columns { grid-template-columns: 1fr; gap: 1.25rem; }
  .col-card { padding: 2rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card__header { padding: 1.5rem; }
  #contactForm { padding: 1.5rem; }

  .book-card { padding: 2rem; }
  .book-card__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .book__img { width: 10rem; }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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