/*
Theme Name: Truth Trade
Theme URI: https://truthtrade.co
Description: Custom theme for Truth Trade, The Automotive Fact Checkers. Child of Twenty Twenty-Five.
Author: Truth Trade, LLC
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.5
Text Domain: truthtrade
*/

/* ---------- Base ---------- */
:root {
	--tt-blue: #0068D3; --tt-blue-dark: #00509F; --tt-navy: #003F7D; --tt-yellow: #FEC42D;
	--tt-ink: #0B1B33; --tt-slate: #46546B; --tt-muted: #5B6B82; --tt-tint: #EAF3FC;
	--tt-ground: #F3F6FA; --tt-line: #E1E6EE; --tt-gutter: 24px;
}
body .wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.tt-main { padding: 0 !important; margin: 0 !important; }
.tt-main > .wp-block-post-content { margin: 0; }
.tt-main > .wp-block-post-content > * { margin-block-start: 0; }
.tt-mono { font-family: var(--wp--preset--font-family--mono); }
.tt-kicker { font-size: 14px !important; font-weight: 700; letter-spacing: 1.5px; color: var(--tt-blue); text-transform: uppercase; margin: 0 !important; }
.tt-lead { font-size: 18px; color: var(--tt-slate); }
.tt-small { font-size: 14px; color: var(--tt-muted); }
.tt-center { text-align: center; }
.tt-center .wp-block-buttons { justify-content: center; }

.tt-bluebg {
	background-color: var(--tt-blue);
	background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 48px 48px;
	color: #fff;
}
.tt-bluebg h1, .tt-bluebg h2, .tt-bluebg h3 { color: #fff; }
.tt-bluebg p { color: #EEF5FD; }
.tt-bluebg .tt-kicker { color: #fff; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background .15s; }
.tt-btn-sm .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.tt-btn-outline .wp-block-button__link { background: transparent !important; color: var(--tt-blue) !important; border: 2px solid var(--tt-blue); }
.tt-btn-outline .wp-block-button__link:hover { background: var(--tt-tint) !important; }
.tt-btn-full, .tt-btn-full .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.tt-header { background: var(--tt-blue); padding: 18px var(--tt-gutter) !important; position: relative; z-index: 20; }
.tt-header__inner { max-width: 1200px; margin: 0 auto !important; width: 100%; }
.tt-header__right { gap: 32px; }
.tt-nav, .tt-nav a { color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none; }
.tt-nav .wp-block-navigation__container { gap: 32px; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tt-blue) !important; color: #fff; padding: 32px; }
.tt-nav .wp-block-navigation__responsive-container.is-menu-open a { font-size: 22px; }
.tt-nav .wp-block-navigation__responsive-container-open, .tt-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.tt-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.tt-logo__text { display: flex; flex-direction: column; gap: 4px; }
.tt-logo__name { font-family: var(--wp--preset--font-family--archivo-black); font-size: 23px; line-height: 1; letter-spacing: .6px; }
.tt-logo__tag { font-size: 9.5px; font-weight: 700; letter-spacing: 2.1px; color: #EEF5FD; }
.tt-header .wp-block-shortcode, .tt-footer .wp-block-shortcode { margin: 0; }

/* ---------- Sections ---------- */
.tt-section { padding: 104px var(--tt-gutter) !important; }
.tt-section--white { background: #fff; }
.tt-section--tight { padding-top: 48px !important; }
.tt-section > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.tt-section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px !important; }
.tt-section-head.tt-center { align-items: center; }
.tt-section-head h2 { margin: 0; max-width: 900px; }
.tt-section-head p { margin: 0; max-width: 680px; }

/* ---------- Hero ---------- */
.tt-hero { padding: 56px var(--tt-gutter) 96px !important; }
.tt-hero__cols { max-width: 1200px; margin: 0 auto !important; gap: 72px !important; align-items: flex-start !important; }
.tt-hero__text { padding-top: 24px; display: flex; flex-direction: column; gap: 26px; }
.tt-hero__text > * { margin: 0 !important; }
.tt-hero h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: .98; }
.tt-hero .tt-hero__lead { font-size: 20px; line-height: 1.55; max-width: 540px; }
.tt-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 13px !important; font-weight: 600; color: #fff !important; }
.tt-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 8px; }
.tt-stat { display: flex; flex-direction: column; gap: 4px; }
.tt-stat b { font-family: var(--wp--preset--font-family--archivo-black); font-weight: 400; font-size: 30px; color: #fff; line-height: 1.1; }
.tt-stat span { font-size: 14px; color: #EEF5FD; }
.tt-stat-rule { width: 1px; background: rgba(255,255,255,.3); }

/* ---------- Carfax comparison ---------- */
.tt-compare { background: #fff; border: 1px solid var(--tt-line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,50,110,.06); }
.tt-compare__row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 190px; border-bottom: 1px solid #EDF0F5; }
.tt-compare__row:last-child { border-bottom: 0; }
.tt-compare__head { background: var(--tt-blue); color: #EEF5FD; font-weight: 700; font-size: 15px; align-items: center; }
.tt-compare__head > div { padding: 20px 32px; }
.tt-compare__head > div:nth-child(2), .tt-compare__head > div:nth-child(3) { text-align: center; padding: 20px; }
.tt-compare__head > div:nth-child(3) { color: var(--tt-yellow); background: #005BB8; }
.tt-compare__item { padding: 22px 32px; display: flex; flex-direction: column; gap: 4px; }
.tt-compare__item strong { font-size: 18px; }
.tt-compare__item span { font-size: 15px; line-height: 1.5; color: var(--tt-slate); }
.tt-compare__mark { display: flex; align-items: center; justify-content: center; }
.tt-compare__mark--tt { background: #F2F7FD; }
.tt-compare-note { text-align: center; font-size: 14px; color: var(--tt-muted); margin: 20px auto 0 !important; }
.tt-ctabar { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 28px 36px; border-radius: 14px; background: var(--tt-blue); color: #fff; margin-top: 40px !important; }
.tt-ctabar p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 600; color: #fff; }
.tt-ctabar p span { color: var(--tt-yellow); }
.tt-ctabar a.tt-ctabar__btn { flex-shrink: 0; display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 10px; background: var(--tt-yellow); color: var(--tt-ink); font-weight: 700; text-decoration: none; }

/* ---------- How it works ---------- */
.tt-how { gap: 88px !important; align-items: center !important; }
.tt-steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: tt; display: flex; flex-direction: column; gap: 28px; }
.tt-steps li { counter-increment: tt; position: relative; padding-left: 64px; min-height: 44px; font-size: 16px; line-height: 1.55; color: var(--tt-slate); }
.tt-steps li::before { content: counter(tt); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--tt-blue); color: #fff; font-family: var(--wp--preset--font-family--archivo-black); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tt-steps li:last-child::before { background: var(--tt-yellow); color: var(--tt-ink); }
.tt-steps li strong { display: block; font-size: 19px; color: var(--tt-ink); margin-bottom: 4px; }
.tt-sample { background: var(--tt-ground); border: 1px solid var(--tt-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tt-sample__top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--tt-muted); }
.tt-sample__car { background: #fff; border-radius: 12px; padding: 20px 22px; }
.tt-sample__car b { font-family: var(--wp--preset--font-family--archivo-black); font-weight: 400; font-size: 22px; display: block; }
.tt-sample__rows { background: #fff; border-radius: 12px; padding: 6px 22px; }
.tt-sample__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #EDF0F5; font-size: 14px; }
.tt-sample__rows div:last-child { border-bottom: 0; }
.tt-sample__rows span { color: var(--tt-muted); }
.tt-sample__diff { background: var(--tt-blue); color: #EEF5FD; border-radius: 12px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tt-sample__diff b { font-family: var(--wp--preset--font-family--archivo-black); font-weight: 400; font-size: 22px; color: var(--tt-yellow); }

/* ---------- Reviews ---------- */
.tt-reviews { gap: 24px !important; }
.tt-review { background: var(--tt-ground); border-radius: 14px; padding: 32px !important; display: flex; flex-direction: column; gap: 18px; height: 100%; box-sizing: border-box; }
.tt-review > * { margin: 0 !important; }
.tt-review__car { font-family: var(--wp--preset--font-family--archivo-black); font-size: 15px !important; color: var(--tt-blue); }
.tt-review__quote { font-size: 16px; line-height: 1.65; color: #26334A; }
.tt-review__who { margin-top: auto !important; font-size: 14px; color: var(--tt-muted); }
.tt-review__who strong { color: var(--tt-ink); }

/* ---------- Pricing ---------- */
.tt-pricing { gap: 24px !important; }
.tt-price { background: #fff; border: 1px solid var(--tt-line); border-radius: 18px; padding: 36px !important; display: flex; flex-direction: column; gap: 16px; height: 100%; box-sizing: border-box; }
.tt-price > * { margin: 0 !important; }
.tt-price__label { font-size: 15px; font-weight: 700; color: #33415C; }
.tt-price__amount { font-family: var(--wp--preset--font-family--archivo-black); font-size: 56px !important; line-height: 1; }
.tt-price__desc { font-size: 15px; line-height: 1.55; color: var(--tt-slate); }
.tt-price .wp-block-buttons { margin-top: auto !important; }
.tt-price--featured { background: var(--tt-blue); color: #fff; border-color: var(--tt-blue); }
.tt-price--featured .tt-price__label, .tt-price--featured .tt-price__desc { color: #EEF5FD; }
.tt-price--featured .tt-price__amount { color: #fff; }
.tt-pill { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--tt-yellow); color: var(--tt-ink); font-size: 12px !important; font-weight: 700; }
.tt-policy { gap: 24px !important; margin-top: 24px !important; }
.tt-policy__card { background: var(--tt-tint); border-radius: 14px; padding: 22px 28px !important; display: flex; gap: 16px; align-items: flex-start; }
.tt-policy__card p { margin: 0; font-size: 15px; line-height: 1.55; color: #26334A; }
.tt-policy__big { font-family: var(--wp--preset--font-family--archivo-black); font-size: 24px !important; color: var(--tt-blue) !important; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.tt-faq { gap: 72px !important; }
.tt-faq__side { display: flex; flex-direction: column; gap: 20px; }
.tt-faq__side > * { margin: 0 !important; }
.tt-trust { background: #fff; border: 1px solid var(--tt-line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.tt-trust div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #26334A; }
.tt-trust svg { flex-shrink: 0; }
.wp-block-details.tt-q { background: #fff; border: 1px solid var(--tt-line); border-radius: 12px; padding: 20px 26px; margin: 0 0 12px !important; }
.wp-block-details.tt-q summary { font-size: 18px; font-weight: 700; cursor: pointer; }
.wp-block-details.tt-q p { font-size: 16px; line-height: 1.6; color: var(--tt-slate); margin: 12px 0 0; }

/* ---------- Final CTA ---------- */
.tt-final { border-radius: 20px; padding: 64px 72px !important; display: flex; justify-content: space-between; align-items: center; gap: 48px; max-width: 1200px; margin: 0 auto 104px !important; }
.tt-final > * { margin: 0 !important; }
.tt-final__text { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.tt-final__text > * { margin: 0 !important; }
.tt-final h2 { font-size: 44px; }

/* ---------- Footer ---------- */
.tt-footer { background: var(--tt-navy); color: #D4E3F5; padding: 56px var(--tt-gutter) 40px !important; font-size: 14px; }
.tt-footer > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.tt-footer p { margin: 8px 0 0; }
.tt-footer a { color: #fff; }
.tt-footer__links p { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.tt-footer__links a { text-decoration: none; }
.tt-footer__rule { border-color: rgba(255,255,255,.18) !important; opacity: 1; margin: 32px auto 20px !important; }
.tt-footer__bottom { font-size: 13px; gap: 24px; }
.tt-footer__bottom p:last-child { max-width: 640px; text-align: right; }

/* ---------- Basic pages ---------- */
.tt-page { padding: 72px var(--tt-gutter) 104px !important; }
.tt-page__title { font-size: clamp(36px, 5vw, 56px) !important; margin-bottom: 32px !important; }
.tt-page h2 { font-size: 28px; margin-top: 48px; }
.tt-page h3 { font-size: 20px; margin-top: 32px; }
.tt-page p, .tt-page li { color: #26334A; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.tt-compare__row { grid-template-columns: minmax(0, 1fr) 110px 110px; }
	.tt-compare__item { padding: 18px 20px; }
}
@media (max-width: 781px) {
	:root { --tt-gutter: 18px; }
	.tt-header { padding: 14px var(--tt-gutter) !important; }
	.tt-header__right { gap: 10px; }
	.tt-logo__name { font-size: 18px; }
	.tt-logo__tag { font-size: 7.5px; letter-spacing: 1.5px; }
	.tt-logo svg { width: 34px; height: 34px; }
	.tt-section { padding: 64px var(--tt-gutter) !important; }
	.tt-hero { padding: 32px var(--tt-gutter) 48px !important; }
	.tt-hero__cols { gap: 32px !important; }
	.tt-hero__text { padding-top: 0; gap: 18px; }
	.tt-hero .tt-hero__lead { font-size: 17px; }
	.tt-stats { gap: 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
	.tt-stat { background: rgba(255,255,255,.12); border-radius: 10px; padding: 12px; }
	.tt-stat b { font-size: 19px; }
	.tt-stat span { font-size: 12px; }
	.tt-stat-rule { display: none; }
	.tt-compare__row { grid-template-columns: minmax(0, 1fr) 56px 56px; }
	.tt-compare__head > div { padding: 14px 12px !important; font-size: 12px; }
	.tt-compare__head > div:first-child { padding-left: 16px !important; }
	.tt-compare__item { padding: 16px; }
	.tt-compare__item strong { font-size: 16px; }
	.tt-compare__item span { font-size: 14px; }
	.tt-compare__mark svg { width: 24px; height: 24px; }
	.tt-ctabar { flex-direction: column; align-items: stretch; padding: 24px; }
	.tt-ctabar p { font-size: 17px; }
	.tt-ctabar a.tt-ctabar__btn { justify-content: center; }
	.tt-how { gap: 40px !important; }
	.tt-final { flex-direction: column; align-items: stretch; padding: 40px 24px !important; margin: 0 var(--tt-gutter) 64px !important; }
	.tt-final h2 { font-size: 32px; }
	.tt-faq { gap: 32px !important; }
	.tt-footer__links p { justify-content: flex-start; }
	.tt-footer__bottom p:last-child { text-align: left; }
	.tt-price__amount { font-size: 44px !important; }
}

/* ---------- Fixes (v1.0.1) ---------- */
.tt-main > .wp-block-post-content, .tt-main .wp-block-post-content > .alignfull { max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
strong, b { font-weight: 700; }
.tt-steps li strong { font-weight: 700; }
.tt-sample__car b { font-family: var(--wp--preset--font-family--archivo-black) !important; }
.tt-review { background: #fff; border: 1px solid var(--tt-line); }
.wp-block-details.tt-q summary::marker { color: var(--tt-blue); }
@media (max-width: 781px) {
	.tt-header__cta { display: none !important; }
	.tt-logo__name, .tt-logo__tag { white-space: nowrap; }
	.tt-badge { font-size: 12px !important; }
}
