/* Truly theme — component styles. Brand tokens live in theme.json. */

:root {
	--truly-radius: 14px;
	--truly-dark-surface: #0E2442;
	--truly-dark-text: #EEF3F8;
	--truly-dark-muted: #9FB0C4;
	--truly-dark-border: #1C3557;
	--truly-dark-link: #6FD0C5;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.truly-main > .entry-content > *:first-child,
main.truly-main .wp-block-post-content > *:first-child { margin-block-start: 0; }
main.truly-main .wp-block-post-content > .alignfull { margin-block-start: 0; }

/* ---------- Header ---------- */
.truly-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--mist);
}
.admin-bar .truly-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .truly-header { top: 46px; } }
.truly-header__inner { min-height: 72px; gap: 24px; }
.truly-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.truly-logo img { height: 34px; width: auto; display: block; }
.truly-header .wp-block-navigation { gap: 28px; }
.truly-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.truly-header .wp-block-navigation a:hover,
.truly-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--teal-deep); }
.truly-header .wp-block-buttons { margin: 0; }
.truly-header .wp-block-button__link { padding: 10px 20px; font-size: 15px; }
.truly-header__right { gap: 28px; }
@media (max-width: 600px) { .truly-header .truly-header__cta { display: none; } }

/* ---------- Sections ---------- */
.truly-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.truly-section--paper { background: var(--wp--preset--color--paper); }
.truly-section--tint { background: var(--wp--preset--color--teal-tint); }
.truly-section--night {
	background: var(--wp--preset--color--night); color: var(--truly-dark-text);
}
.truly-section--night :where(h1,h2,h3,h4) { color: #fff; }
.truly-section--night a:not(.wp-block-button__link) { color: var(--truly-dark-link); }
.truly-section--night .truly-lead,
.truly-section--night .truly-muted { color: var(--truly-dark-muted); }
.truly-section--night .truly-eyebrow { color: var(--wp--preset--color--teal); }
.truly-section--night .wp-block-button:not(.truly-btn-key) .wp-block-button__link { background: #fff; color: var(--wp--preset--color--navy); }
.truly-section--night .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

.truly-center { text-align: center; }
.truly-center .wp-block-buttons { justify-content: center; }
.truly-center > .truly-lead { margin-left: auto; margin-right: auto; }

.truly-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: var(--wp--preset--color--teal-deep);
	margin-bottom: 0;
}
.truly-eyebrow + * { margin-block-start: 12px; }
.truly-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--slate); max-width: 640px; }
.truly-muted { color: var(--wp--preset--color--slate); }
.truly-mono { font-family: var(--wp--preset--font-family--mono); }
.truly-section h2.wp-block-heading { max-width: 760px; }
.truly-center h2.wp-block-heading { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.truly-hero {
	padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px);
	background:
		radial-gradient(900px 420px at 85% 10%, rgba(66,179,168,.14), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--wp--preset--color--paper) 100%);
	border-bottom: 1px solid var(--wp--preset--color--mist);
}
.truly-hero .wp-block-columns { align-items: center; gap: clamp(32px, 5vw, 72px); }
.truly-hero h1 { margin-top: 12px; }
.truly-hero .truly-lead { margin-top: 20px; }
.truly-hero .wp-block-buttons { margin-top: 32px; }
.truly-hero__note { font-size: 15px; color: var(--wp--preset--color--slate); margin-top: 16px; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-decoration: none; }
.truly-btn-key .wp-block-button__link { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--navy); }
.truly-btn-key .wp-block-button__link:hover { background: #57C2B7; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--navy);
	border: 1.5px solid var(--wp--preset--color--navy);
	padding: 12.5px 24.5px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }

/* ---------- Cards & grids ---------- */
.truly-grid { gap: 24px; margin-top: 40px; }
.truly-grid > .wp-block-column { display: flex; }
.truly-card {
	background: #fff; border: 1px solid var(--wp--preset--color--mist); border-radius: var(--truly-radius);
	padding: 28px; width: 100%;
}
.truly-card > * { margin-block: 0; }
.truly-card > * + * { margin-block-start: 10px; }
.truly-card h3 { font-size: 20px; }
.truly-card p { color: var(--wp--preset--color--slate); }
.truly-section--night .truly-card { background: var(--truly-dark-surface); border-color: var(--truly-dark-border); }
.truly-section--night .truly-card p { color: var(--truly-dark-muted); }
.truly-card__num {
	font-family: var(--wp--preset--font-family--mono); font-size: 13px; font-weight: 500;
	color: var(--wp--preset--color--teal-deep); letter-spacing: .08em;
}
.truly-section--night .truly-card__num { color: var(--wp--preset--color--teal); }
.truly-card__icon {
	width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
	background: var(--wp--preset--color--teal-tint); color: var(--wp--preset--color--teal-deep);
	font-family: var(--wp--preset--font-family--mono); font-weight: 500; font-size: 15px;
}

/* ---------- Sample interview summary (hero visual) ---------- */
.truly-summary {
	background: #fff; border: 1px solid var(--wp--preset--color--mist); border-radius: 18px;
	box-shadow: 0 1px 2px rgba(10,43,84,.04), 0 24px 48px -24px rgba(10,43,84,.22);
	padding: 0; overflow: hidden; font-size: 15px;
}
.truly-summary > * { margin: 0 !important; }
.truly-summary__bar {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 14px 20px; background: var(--wp--preset--color--navy); color: #fff;
	font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.truly-summary__bar span:last-child { color: var(--wp--preset--color--teal); }
.truly-summary__body { padding: 20px 20px 8px; }
.truly-summary dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 10px 16px; }
.truly-summary dt { font-family: var(--wp--preset--font-family--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--slate); padding-top: 2px; }
.truly-summary dd { margin: 0; color: var(--wp--preset--color--ink); }
.truly-summary__facts { padding: 4px 20px 20px; }
.truly-summary__facts h4 { font-family: var(--wp--preset--font-family--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--slate); margin: 12px 0 8px; }
.truly-summary__facts ul { margin: 0; padding-left: 18px; }
.truly-summary__facts li { margin: 4px 0; }
.truly-summary__flag {
	margin: 0 20px 20px; padding: 10px 14px; border-radius: 10px;
	background: var(--wp--preset--color--teal-tint); color: var(--wp--preset--color--navy); font-size: 14px;
}
.truly-summary__flag b { font-weight: 600; }
.truly-summary__caption { text-align: center; font-size: 13px; color: var(--wp--preset--color--slate); margin-top: 12px; font-family: var(--wp--preset--font-family--mono); }
@media (max-width: 480px) { .truly-summary dl { grid-template-columns: 1fr; gap: 2px 0; } .truly-summary dd { margin-bottom: 8px; } }

/* ---------- Tagline band ---------- */
.truly-band h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; }
.truly-band h2 em { font-style: normal; color: var(--wp--preset--color--teal); }

/* ---------- Checklist ---------- */
ul.truly-checks { list-style: none; padding-left: 0; }
ul.truly-checks li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.truly-checks li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 999px;
	background: var(--wp--preset--color--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231F7F76' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- FAQ ---------- */
.truly-faq { margin-top: 32px; }
.truly-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--mist); padding: 20px 0; margin: 0;
}
.truly-faq .wp-block-details:first-child { border-top: 1px solid var(--wp--preset--color--mist); }
.truly-faq summary {
	font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 19px;
	color: var(--wp--preset--color--navy); cursor: pointer; list-style: none; position: relative; padding-right: 36px;
}
.truly-faq summary::-webkit-details-marker { display: none; }
.truly-faq summary::after {
	content: "+"; position: absolute; right: 4px; top: -2px; font-family: var(--wp--preset--font-family--mono);
	font-size: 22px; color: var(--wp--preset--color--teal-deep); transition: transform .2s ease;
}
.truly-faq details[open] summary::after { transform: rotate(45deg); }
.truly-faq .wp-block-details > p { color: var(--wp--preset--color--slate); margin-top: 12px; max-width: 680px; }

/* ---------- Page hero (inner pages) ---------- */
.truly-pagehead {
	padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px);
	background: linear-gradient(180deg, #fff 0%, var(--wp--preset--color--paper) 100%);
	border-bottom: 1px solid var(--wp--preset--color--mist);
}

/* ---------- Contact block ---------- */
.truly-contact { max-width: 640px; }
.truly-contact .truly-card { padding: 32px; }
.truly-email { font-family: var(--wp--preset--font-family--mono); font-size: 18px; }

/* ---------- Footer ---------- */
.truly-footer { background: var(--wp--preset--color--night); color: var(--truly-dark-muted); padding-top: 64px; padding-bottom: 40px; font-size: 15px; }
.truly-footer a { color: var(--truly-dark-text); text-decoration: none; }
.truly-footer a:hover { color: var(--truly-dark-link); }
.truly-footer .truly-logo img { height: 32px; }
.truly-footer__top { gap: 40px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.truly-footer__tagline { font-family: var(--wp--preset--font-family--heading); color: #fff; font-size: 18px; margin-top: 16px; }
.truly-footer__col h4 { font-family: var(--wp--preset--font-family--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--teal); margin: 0 0 12px; }
.truly-footer__col ul { list-style: none; padding: 0; margin: 0; }
.truly-footer__col li { margin: 8px 0; }
.truly-footer__links { display: flex; gap: 56px; flex-wrap: wrap; }
.truly-footer__bottom { border-top: 1px solid var(--truly-dark-border); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Generic content (blog, legal pages) ---------- */
.truly-content { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- How-it-works steps ---------- */
.truly-step { padding: 32px 0; border-top: 1px solid var(--wp--preset--color--mist); gap: 32px; margin-top: 0 !important; margin-bottom: 0 !important; }
.truly-step:first-child { border-top: 0; padding-top: 0; }
.truly-step h3 { margin-top: 8px; }
.truly-step p { margin-top: 0; }
.truly-steps-cta { margin-top: 32px; }
