/* ============================================================
   tm tagger Landing Page — Gutenberg Block Styles
   Following thrivemattic style guide v1.0
   ============================================================ */

/* ── DESIGN TOKENS (scoped) ── */
.tm-landing-page {
  --charcoal: #1c2529;
  --charcoal-light: #2a363c;
  --olive: #808000;
  --olive-hover: #6d6d00;
  --olive-bright: #9a9a00;
  --olive-dim: rgba(128,128,0,0.10);
  --olive-medium: rgba(128,128,0,0.20);
  --cream: #faf7f2;
  --cream-dark: #f0ede6;
  --white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #777777;
  --text-muted: #999999;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255,255,255,0.6);
  --border-light: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-logo-thrive: 'Josefin Sans', sans-serif;
}

/* ── BASE RESET ── */
.tm-landing-page {
  font-family: var(--font-body) !important;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem); height: 64px;
  background: transparent; transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: var(--white); box-shadow: var(--shadow-sm); }
.nav__logo {
  font-family: var(--font-logo-thrive); font-size: 22px; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: -0.5px;
}
.nav.scrolled .nav__logo { color: var(--charcoal); }
.nav__logo-mattic { font-weight: 300; color: var(--olive); }
.nav__logo-dot { color: var(--olive); font-weight: 300; }
.nav__links { display: flex; list-style: none; gap: 0; }
.nav__links a {
  display: block; padding: 20px 16px; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s;
}
.nav.scrolled .nav__links a { color: var(--text-secondary); }
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a:hover { color: var(--charcoal); }
.nav__cta {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius);
  background: var(--olive); color: var(--white); text-decoration: none; transition: background 0.2s;
}
.nav__cta:hover { background: var(--olive-hover); }
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
@media (max-width: 768px) { .nav__links { display: none; } }

/* ── HERO SECTION (Cover block) ── */
.tm-hero-section {
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem) !important;
  position: relative;
}
p.tm-badge-olive {
  text-align: center !important;
}
.tm-badge-olive {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px !important;
  border-radius: 20px;
  background: var(--olive);
  color: var(--white) !important;
  margin-bottom: 20px !important;
}
.tm-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  line-height: 1.1 !important;
  color: var(--white) !important;
  
  margin: 0 auto 20px !important;
}
.tm-hero-product {
  font-size: 15px !important;
  color: var(--text-inverse-muted) !important;
  margin-top: 24px !important;
  letter-spacing: 0.5px;
}
.tm-hero-product strong { color: var(--white); font-weight: 700; }
.tm-olive-bright { color: var(--olive-bright); font-weight: 400; }

/* ── BUTTON OVERRIDES ── */
.tm-btn-primary .wp-block-button__link {
  background: var(--olive) !important;
  color: var(--white) !important;
  border: 2px solid var(--olive) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  transition: all 0.2s;
}
.tm-btn-primary .wp-block-button__link:hover {
  background: var(--olive-hover) !important;
  border-color: var(--olive-hover) !important;
}
.tm-btn-outline-light .wp-block-button__link {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  transition: all 0.2s;
}
.tm-btn-outline-light .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* ── OLIVE LINE ── */
.olive-line {
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--olive-bright), var(--olive));
}

/* ── SECTION BACKGROUNDS ── */
.tm-section-cream {
  background: var(--cream) !important;
  padding: 5rem 0px !important;
}
.tm-section-white {
  background: var(--white) !important;
  padding: 5rem 0px !important;
}
.tm-section-cream-dark {
  background: var(--cream-dark) !important;
  padding: 5rem 0px !important;
}
.tm-section-charcoal {
  padding: 5rem 0px !important;
}
.tm-cta-section {
  padding: 5rem 0px !important;
  position: relative;
}

/* ── SECTION LABELS & TITLES ── */
.tm-section-label {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive) !important;
  margin-bottom: 8px !important;
}
.tm-section-label-light {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive-bright) !important;
  margin-bottom: 8px !important;
}
.tm-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  line-height: 1.15 !important;
  color: var(--charcoal) !important;
  margin-bottom: 16px !important;
}
.tm-section-title-light {
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  line-height: 1.15 !important;
  color: var(--white) !important;
  margin-bottom: 16px !important;
}

/* ── STATS ROW ── */
.tm-stats-row {
  gap: clamp(32px, 6vw, 80px) !important;
  justify-content: center;
}
.tm-stat-number {
  font-family: var(--font-display) !important;
  font-size: 56px !important;
  font-weight: 600 !important;
  color: var(--olive) !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}
.tm-stat-label {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  margin-top: 4px !important;
}

/* ── SHOWCASE IMAGES ── */
.tm-showcase-grid {
  margin-top: 32px !important;
  gap: 24px !important;
}
.tm-showcase-img img {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tm-showcase-img img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.tm-showcase-img figure {
  margin: 0 !important;
}

/* ── STEPS (How It Works) ── */
.tm-steps {
  margin-top: 32px !important;
  gap: 32px !important;
}
.tm-step {
  text-align: center;
}
.tm-step-number {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  margin: 0 auto 16px !important;
  line-height: 1 !important;
}
.tm-step-title {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--charcoal) !important;
  margin-bottom: 6px !important;
}
.tm-step-desc {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}
@media (max-width: 768px) {
  .tm-steps { flex-wrap: wrap; }
  .tm-steps > .wp-block-column { flex-basis: calc(50% - 16px) !important; }
}
@media (max-width: 480px) {
  .tm-steps > .wp-block-column { flex-basis: 100% !important; }
}

/* ── FEATURE CARDS ── */
.tm-features-grid {
  gap: 24px !important;
  margin-top: 32px !important;
  margin-bottom: 0 !important;
}
.tm-feature-card {
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px 24px !important;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--olive) !important;
  transition: box-shadow 0.3s, transform 0.3s;
}
.tm-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.tm-feature-icon {
  font-size: 28px !important;
  margin-bottom: 12px !important;
  line-height: 1 !important;
}
.tm-feature-title {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--charcoal) !important;
  margin-bottom: 8px !important;
}
.tm-feature-desc {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
}
@media (max-width: 768px) {
  .tm-features-grid { flex-direction: column !important; }
}

/* ── PLATFORMS ── */
.platforms {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 24px;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--charcoal-light);
  color: var(--text-inverse-muted); font-size: 13px; font-weight: 600;
}
.platform-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive-bright);
}

/* ── VALIDATION ITEMS ── */
.tm-validation-grid {
  margin-top: 24px !important;
  gap: 16px !important;
}
.tm-validation-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 16px !important;
  background: var(--white) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border-light) !important;
  margin-bottom: 16px !important;
}
.tm-vi-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.vi-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.vi-amber { background: rgba(212,160,23,0.1); color: #d4a017; }
.vi-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.vi-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.tm-vi-text { flex: 1; }
.tm-vi-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--charcoal) !important;
  margin-bottom: 2px !important;
}
.tm-vi-desc {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}
@media (max-width: 640px) {
  .tm-validation-grid { flex-direction: column !important; }
}

/* ── BADGES ── */
.badge--olive { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; background: var(--olive); color: var(--white); }
.badge--outline { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; background: transparent; color: var(--olive); border: 1.5px solid var(--olive); }
.badge--cream { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; background: var(--olive-dim); color: var(--olive); }

/* ── FOOTER ── */
.footer { background: var(--charcoal); color: var(--text-inverse-muted); padding: 48px 0 0; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__industries { padding: 16px 0; font-size: 13px; color: rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer__industries a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer__industries a:hover { color: rgba(255,255,255,0.7); }
.footer__bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.25); }
.footer__bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer__bottom a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── GP OVERRIDES ── */
.tm-landing-page .wp-block-cover {
  margin: 0 !important;
}
.tm-landing-page .wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}
.tm-landing-page .wp-block-columns {
  margin-bottom: 0 !important;
}


/* ── STYLE GUIDE ALIGNMENT FIXES ── */

/* 1. Fix step-number circles: ensure they render as circles on <p> elements */
.tm-step-number {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50% !important;
  padding: 0 !important;
  line-height: 48px !important;
  text-align: center;
}

/* 2. Nav CTA radius: style guide says 6px for nav CTA, not 8px */
.nav__cta {
  border-radius: 6px;
}

/* 3. Footer: align with style guide footer redesign (5-col grid, olive hover) */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olive), var(--olive-bright), var(--olive));
}
.footer__col a:hover {
  color: var(--olive);
}

/* 4. Ensure link underline is removed inside the landing page */
.tm-landing-page a {
  text-decoration: none;
}



/* 6. Badge text should not inherit link underline styles */
.badge--olive a,
.badge--outline a,
.badge--cream a,
.badge--olive,
.badge--outline,
.badge--cream {
  text-decoration: none !important;
}

/* 7. Feature card border-left matches style guide exactly */
.tm-feature-card {
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* 8. Ensure body background is cream per style guide */
.tm-landing-page {
  background-color: var(--cream) !important;
}

/* 9. Fix button link colors inside buttons (should not be olive from our override) */
.tm-btn-primary .wp-block-button__link,
.tm-btn-outline-light .wp-block-button__link,
.nav__cta {
  text-decoration: none !important;
}
.tm-btn-primary .wp-block-button__link {
  color: var(--white) !important;
}
.tm-btn-outline-light .wp-block-button__link {
  color: var(--white) !important;
}

/* 10. Validation item icons: ensure proper sizing */
.tm-vi-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  line-height: 32px !important;
  text-align: center;
  padding: 0 !important;
}

/* 11. Platform pills: ensure correct font per style guide */
.platform-pill {
  font-family: var(--font-body);
}

/* 12. Footer column headings: style guide says Oswald 14px/500, uppercase, 1.5px letter-spacing */
.footer__col h4 {
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  margin-bottom: 16px !important;
}

/* ── SCOPED OVERRIDES: WP core block layout constraints ──
   These override WordPress core block styles that add unwanted
   padding and max-width constraints. Scoped to .tm-tagger-landing
   body class so no other page is affected. */

.tm-tagger-landing .site-main .wp-block-group__inner-container {
  padding: 0 !important;
}

.tm-tagger-landing .wp-block-cover__inner-container > .wp-block-group {
  max-width: 100% !important;
}

}

/* ── FIX: Olive line edge-to-edge in cover blocks ── */
.tm-tagger-landing .wp-block-cover {
  position: relative;
  overflow: visible !important;
}
.tm-tagger-landing .wp-block-cover .olive-line {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  height: 3px;
  z-index: 2;
}
