html,
body {
  height: 100%;
}

#root {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Theme tokens — aligned with finalized ScaleMyBusiness sample */
:root {
  --smb-offwhite: #f6f6f4;
  --smb-surface: #f6f6f4;
  --smb-text-main: #0f0f0f;
  --smb-text-muted: #6d6d6c;
  --smb-gold: #d90012;
  --smb-red: #d90012;
  --smb-border: #e7e7e4;
  --smb-font-primary: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
  font-family: var(--smb-font-primary);
}

/* Single brand font (Inter) everywhere — matches Tailwind font-sans / font-body / font-display */
.font-body,
.font-display,
.font-sans,
.prose {
  font-family: var(--smb-font-primary) !important;
}

.ProseMirror {
  font-family: var(--smb-font-primary) !important;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Layout helpers */
.smb-shell {
  background-color: var(--smb-offwhite);
  color: var(--smb-text-main);
}

.smb-section {
  background-color: var(--smb-offwhite);
}

.smb-surface {
  background-color: var(--smb-surface);
}

.smb-nav {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smb-nav-mobile {
  background-color: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.smb-footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand-aligned helpers for the React app shell */
.gradient-gold {
  background-color: var(--smb-gold);
}

.gradient-dark {
  background-color: #0f0f0f;
}

.text-gradient {
  color: var(--smb-gold);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.top-highlight-hover {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-highlight-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c62828;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.top-highlight-hover:hover::before {
  opacity: 1;
}

.top-highlight-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pulse-gold {
  animation: none;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--smb-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero headline – prevent line overlap when wrapping */
#home .smb-hero-headline {
  line-height: 1.45;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

/* ---------- Home page (matches finalized index.html) ---------- */
.home-page {
  --hp-red: #d90012;
  --hp-black: #0f0f0f;
  --hp-white: #ffffff;
  --hp-grey: #6d6d6c;
  --hp-light: #f6f6f4;
  --hp-border: #e7e7e4;
  /* Typography: same as index.html / smb-shell — Inter via --smb-font-primary */
  font-family: var(--smb-font-primary);
  color: var(--hp-black);
  background: var(--hp-white);
  line-height: 1.5;
}

.home-page .hp-section {
  padding: 56px 6%;
}

@media (min-width: 981px) {
  .home-page .hp-section {
    padding: 76px 8%;
  }
}

.home-page .hp-kicker {
  color: var(--hp-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  font-size: 14px;
}

.home-page .hp-h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.04;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.home-page .hp-h2 {
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1px;
  font-weight: 700;
}

.home-page .hp-body {
  font-size: 18px;
  max-width: 780px;
  color: var(--hp-grey);
}

.home-page .hp-btn {
  display: inline-block;
  background: var(--hp-red);
  color: var(--hp-white);
  padding: 16px 26px;
  margin-top: 28px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.home-page .hp-btn:hover {
  background: #b8000f;
}

.home-page .hp-btn-dark {
  background: var(--hp-black);
}

.home-page .hp-btn-dark:hover {
  background: #2a2a2a;
}

.home-page .hp-hero {
  background: var(--hp-black);
  color: var(--hp-white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  min-height: 84vh;
}

/* Flush hero under fixed nav (no double top padding from .hp-section) */
.home-page .hp-hero.hp-section {
  padding-top: 0;
}

.home-page .hp-hero h1 {
  color: var(--hp-white);
}

.home-page .hp-hero .hp-body {
  color: #cfcfcf;
  max-width: none;
}

.home-page .hp-hero-media {
  min-height: 240px; /* 75% of 320px */
  width: 75%;
  max-width: 100%;
  justify-self: end;
  background: linear-gradient(135deg, #252525, #090909);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  border: 1px solid #222;
  text-align: center;
  font-size: 18px;
  overflow: hidden;
}

@media (min-width: 981px) {
  .home-page .hp-hero-media {
    min-height: 390px; /* 75% of 520px */
  }
}

.home-page .hp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.home-page .hp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.home-page .hp-list li {
  font-size: 18px;
  border-bottom: 1px solid var(--hp-border);
  padding-bottom: 12px;
  color: var(--hp-grey);
  padding-left: 0;
}

.home-page .hp-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--hp-red);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

.home-page .hp-dark {
  background: var(--hp-black);
  color: var(--hp-white);
}

.home-page .hp-dark .hp-h2,
.home-page .hp-dark h3 {
  color: var(--hp-white);
}

.home-page .hp-dark .hp-body,
.home-page .hp-dark .hp-list li {
  color: #d9d9d9;
}

.home-page .hp-dark .hp-list li {
  border-color: rgba(255, 255, 255, 0.14);
}

.home-page .hp-center {
  text-align: center;
}

.home-page .hp-center .hp-body {
  margin-left: auto;
  margin-right: auto;
}

.home-page .hp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-page .hp-problem-card {
  border: 1px solid var(--hp-border);
  padding: 34px;
  min-height: 280px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  background: var(--hp-white);
}

.home-page .hp-problem-card h3 {
  color: var(--hp-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}

.home-page .hp-problem-card .hp-quote {
  color: var(--hp-black);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
  margin: 14px 0 18px;
}

.home-page .hp-problem-card .hp-body {
  font-size: 16px;
}

.home-page .hp-result-line {
  margin-top: 18px;
  color: var(--hp-black);
  font-size: 16px;
  font-weight: 900;
}

.home-page .hp-card {
  background: var(--hp-white);
  color: var(--hp-black);
  padding: 30px;
  border-top: 5px solid var(--hp-red);
  border-left: 1px solid var(--hp-border);
  border-right: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.home-page .hp-card .hp-num {
  font-size: 42px;
  font-weight: 900;
  color: var(--hp-red);
  line-height: 1;
  margin-bottom: 14px;
}

.home-page .hp-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--hp-black);
  margin-bottom: 12px;
}

.home-page .hp-card .hp-body {
  font-size: 16px;
}

.home-page .hp-dark .hp-card {
  background: var(--hp-white);
}

.home-page .hp-dark .hp-card h3 {
  color: var(--hp-black);
}

.home-page .hp-dark .hp-card .hp-body {
  color: var(--hp-grey);
}

.home-page .hp-programs {
  background: var(--hp-light);
}

.home-page .hp-program-card {
  border: 1px solid var(--hp-border);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  background: var(--hp-white);
}

.home-page .hp-program-card .hp-stage {
  font-size: 13px;
  color: var(--hp-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.home-page .hp-program-card h3 {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 12px;
}

.home-page .hp-program-card a {
  color: var(--hp-red);
  font-weight: 900;
  text-decoration: none;
  margin-top: 24px;
  display: inline-block;
}

.home-page .hp-results {
  background: var(--hp-black);
  color: var(--hp-white);
  overflow: hidden;
}

.home-page .hp-results .hp-h2 {
  color: var(--hp-white);
}

.home-page .hp-results-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}

.home-page .hp-results-head .hp-body {
  color: #cfcfcf;
}

.home-page .hp-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.home-page .hp-proof-stat {
  background: rgba(255, 255, 255, 0.08);
  border-top: 5px solid var(--hp-red);
  padding: 28px;
}

.home-page .hp-proof-stat strong {
  display: block;
  font-size: 44px;
  color: var(--hp-red);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 900;
}

.home-page .hp-proof-stat span {
  color: #ededed;
  font-size: 16px;
  font-weight: 800;
}

.home-page .hp-case-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 22px;
}

.home-page .hp-case-scroll::-webkit-scrollbar {
  height: 10px;
}

.home-page .hp-case-scroll::-webkit-scrollbar-track {
  background: #202020;
}

.home-page .hp-case-scroll::-webkit-scrollbar-thumb {
  background: var(--hp-red);
}

.home-page .hp-result-story {
  background: var(--hp-white);
  color: var(--hp-black);
  min-width: min(86vw, 420px);
  max-width: 420px;
  scroll-snap-align: start;
  border-top: 7px solid var(--hp-red);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.home-page .hp-result-story .hp-tag {
  color: var(--hp-red);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 900;
  margin-bottom: 16px;
}

.home-page .hp-result-story h3 {
  font-size: 28px;
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--hp-black);
  font-weight: 900;
}

.home-page .hp-before-after {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.home-page .hp-ba-box {
  background: var(--hp-light);
  padding: 18px;
  border-left: 4px solid var(--hp-red);
}

.home-page .hp-ba-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hp-grey);
  font-weight: 900;
  margin-bottom: 6px;
}

.home-page .hp-ba-box p {
  font-size: 15px;
  color: var(--hp-black);
  margin: 0;
  max-width: none;
}

.home-page .hp-big-result {
  background: var(--hp-black);
  color: var(--hp-white);
  padding: 20px;
  margin-top: 20px;
}

.home-page .hp-big-result strong {
  display: block;
  color: var(--hp-red);
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 8px;
  font-weight: 900;
}

.home-page .hp-big-result span {
  color: #ededed;
  font-size: 15px;
  font-weight: 800;
}

.home-page .hp-results-note {
  color: #cfcfcf;
  font-size: 15px;
  margin-top: 18px;
}

.home-page .hp-about-photo {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #eeeeee, #d9d9d9);
}

@media (min-width: 981px) {
  .home-page .hp-about-photo {
    min-height: 520px;
  }
}

.home-page .hp-about h2 span {
  color: var(--hp-red);
}

.home-page .hp-social-row {
  display: flex;
  gap: 16px;
  margin: 18px 0 28px;
}

.home-page .hp-social-link {
  width: 34px;
  height: 34px;
  background: var(--hp-light);
  border: 1px solid var(--hp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-black);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.home-page .hp-social-link:hover {
  color: var(--hp-red);
  border-color: var(--hp-red);
  background: #fff;
}

.home-page .hp-about-copy p {
  margin-bottom: 18px;
  font-size: 18px;
  color: var(--hp-grey);
  max-width: none;
}

.home-page .hp-about-copy strong {
  color: var(--hp-black);
}

.home-page .hp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.home-page .hp-stat {
  background: var(--hp-black);
  padding: 24px;
  border-top: 4px solid var(--hp-red);
}

.home-page .hp-stat strong {
  display: block;
  font-size: 34px;
  color: var(--hp-red);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 900;
}

.home-page .hp-stat span {
  color: #d9d9d9;
  font-size: 15px;
}

/* CTA — matches finalized index.html `.cta` */
.home-page .hp-cta {
  background: var(--hp-red);
  color: var(--hp-white);
  text-align: center;
}

/* Tighter side gutters than default `.hp-section` (6% / 8%) so CTA copy sits wider */
.home-page .hp-section.hp-cta {
  padding-top: 56px;
  padding-bottom: 56px;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

@media (min-width: 981px) {
  .home-page .hp-section.hp-cta {
    padding-top: 76px;
    padding-bottom: 76px;
    padding-left: clamp(20px, 5vw, 56px);
    padding-right: clamp(20px, 5vw, 56px);
  }
}

.home-page .hp-cta .hp-kicker {
  color: #fff;
}

.home-page .hp-cta .hp-h2 {
  color: var(--hp-white);
  max-width: min(100%, 70rem);
  margin-left: auto;
  margin-right: auto;
}

.home-page .hp-cta .hp-body {
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 70rem);
}

.home-page .hp-red {
  color: var(--hp-red);
}

@media (max-width: 980px) {
  .home-page .hp-hero,
  .home-page .hp-two-col,
  .home-page .hp-grid-3,
  .home-page .hp-stats,
  .home-page .hp-results-head,
  .home-page .hp-proof-strip {
    grid-template-columns: 1fr;
  }
}
