/*
Theme Name: Test Adera
Theme URI: https://testadera.com
Author: Test Adera
Description: Basic, functional theme for Test Adera — Analytical HPLC Analysis & Testing. Innovation Verified. Includes an HPLC results log (passes, retests and fails).
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: test-adera
*/

/* ---------- Tokens ---------- */
:root {
	--ta-navy: #13223E;
	--ta-ink: #0A1935;
	--ta-blue: #5B79B8;
	--ta-blue-dark: #3F5D9D;
	--ta-link: #425883;
	--ta-soft: #F3F7FC;
	--ta-line: #E3E9F2;
	--ta-body: #565E6D;
	--ta-card: #1B2E52;
	--ta-footer: #0C1631;
	--ta-on-dark: #CDD8F0;
	--ta-on-dark-muted: #8FA2C6;
	--ta-eyebrow-dark: #ABBFE0;
	--ta-display: 'Space Grotesk', Inter, system-ui, sans-serif;
	--ta-sans: Inter, system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	font-family: var(--ta-sans);
	color: var(--ta-navy);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ta-link); }
a:hover { color: var(--ta-navy); }
h1, h2, h3, p, ul, ol { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: #fff; color: var(--ta-navy);
}

.ta-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.ta-section { padding-top: 104px; padding-bottom: 100px; }
.ta-eyebrow {
	margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 3.5px;
	text-transform: uppercase; color: var(--ta-link);
}
.ta-h2 {
	font-family: var(--ta-display); font-size: 40px; line-height: 1.15; font-weight: 700;
	letter-spacing: -0.3px; color: var(--ta-ink);
}
.ta-dark { background: var(--ta-navy); color: #FFFFFF; }
.ta-dark .ta-eyebrow { color: var(--ta-eyebrow-dark); }
.ta-dark .ta-h2 { color: #FFFFFF; }
.ta-soft { background: var(--ta-soft); }

.ta-btn {
	display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
	padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.3;
	transition: background .15s, color .15s, border-color .15s;
}
.ta-btn--light { background: #FFFFFF; color: var(--ta-navy); }
.ta-btn--light:hover { background: var(--ta-soft); color: var(--ta-navy); }
.ta-btn--outline { border: 1px solid #5C6F99; color: #FFFFFF; padding: 12px 25px; }
.ta-btn--outline:hover { border-color: #FFFFFF; color: #FFFFFF; }
.ta-btn--primary { background: var(--ta-blue-dark); color: #FFFFFF; }
.ta-btn--primary:hover { background: var(--ta-navy); color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--ta-line); position: relative; z-index: 10; }
.site-header__inner {
	min-height: 80px; padding-top: 14px; padding-bottom: 14px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.ta-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ta-navy); }
.ta-brand img { width: 48px; height: 48px; display: block; border-radius: 50%; }
.ta-brand .custom-logo { width: auto; height: 48px; border-radius: 0; }
.ta-brand__name { font-size: 15px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.site-nav a { color: var(--ta-navy); text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--ta-blue); }
.ta-header-cta { display: flex; }
.ta-header-cta .ta-btn { padding: 11px 22px; font-size: 14px; }
.ta-menu-toggle {
	display: none; background: none; border: 1px solid var(--ta-line); border-radius: 999px;
	padding: 10px 16px; cursor: pointer; color: var(--ta-navy); font: 600 13px/1 var(--ta-sans);
}

/* ---------- Hero ---------- */
.ta-hero__inner { padding-top: 104px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: space-between; }
.ta-hero__text { flex: 999 1 560px; min-width: 0; }
.ta-hero .ta-eyebrow { margin-bottom: 26px; }
.ta-hero h1 { font-family: var(--ta-display); font-size: 58px; line-height: 1.08; font-weight: 700; letter-spacing: -0.5px; max-width: 720px; }
.ta-hero__lead { margin-top: 26px; font-size: 18px; line-height: 1.65; color: #E1E9FF; max-width: 540px; }
.ta-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.ta-hero__art { flex: 0 1 320px; display: flex; justify-content: flex-end; }
.ta-hero__art img { width: 320px; height: 320px; display: block; }

/* ---------- Program ---------- */
.ta-program .ta-h2 { max-width: 640px; }
.ta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 52px; }
.ta-card { border: 1px solid var(--ta-line); border-radius: 12px; padding: 32px 32px 40px; background: #FFFFFF; }
.ta-card__icon { width: 32px; height: 32px; color: var(--ta-blue-dark); display: block; }
.ta-card h3 { margin: 22px 0 14px; font-family: var(--ta-display); font-size: 22px; font-weight: 600; color: var(--ta-ink); }
.ta-card p { font-size: 15px; line-height: 1.7; color: var(--ta-body); }

/* ---------- Split (question / in-house) ---------- */
.ta-split { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.ta-split__head { flex: 1 1 360px; max-width: 380px; }
.ta-split__body { flex: 999 1 520px; min-width: 0; padding-top: 4px; }
.ta-split__body p { font-size: 16px; line-height: 1.75; color: #3C4456; }
.ta-split__body p + p { margin-top: 18px; }
.ta-split__body strong { color: var(--ta-ink); font-weight: 600; }
.ta-question .ta-h2 { font-size: 40px; line-height: 1.2; }
.ta-dark .ta-split__body p { color: var(--ta-on-dark); }

/* ---------- Transparency / results table ---------- */
.ta-results__head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-end; }
.ta-results__head .ta-h2 { max-width: 640px; }
.ta-results__more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ta-link); white-space: nowrap; }
.ta-results__more:hover { color: var(--ta-navy); }
.ta-table-wrap { margin-top: 52px; border: 1px solid var(--ta-line); border-radius: 12px; overflow-x: auto; }
.ta-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.ta-table th {
	text-align: left; background: var(--ta-soft); padding: 18px 24px; font-size: 11px; font-weight: 600;
	letter-spacing: 1.8px; text-transform: uppercase; color: #4B5468;
}
.ta-table td { padding: 18px 24px; border-top: 1px solid var(--ta-line); color: var(--ta-ink); vertical-align: middle; }
.ta-table td:last-child { color: #3C4456; }
.ta-status {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ta-status--passed { background: #E2F2E9; color: #1E7A4A; }
.ta-status--retest { background: #FAF2DF; color: #9A6510; }
.ta-status--failed { background: #FAE5E4; color: #B0302A; }
.ta-results__note { margin-top: 24px; font-size: 13px; color: var(--ta-link); }

/* ---------- In-house cards ---------- */
.ta-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 52px; }
.ta-pillar { background: var(--ta-card); border-radius: 12px; padding: 30px 28px 40px; }
.ta-pillar__label { font-size: 12px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ta-on-dark-muted); }
.ta-pillar h3 { margin: 14px 0 12px; font-family: var(--ta-display); font-size: 21px; font-weight: 600; line-height: 1.3; color: #FFFFFF; }
.ta-pillar p { font-size: 15px; line-height: 1.65; color: var(--ta-on-dark); }

/* ---------- Apply CTA ---------- */
.ta-cta { background: var(--ta-blue); color: #FFFFFF; }
.ta-cta__inner { padding-top: 104px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.ta-cta__text { flex: 999 1 560px; min-width: 0; }
.ta-cta .ta-eyebrow { color: #FFFFFF; font-weight: 700; }
.ta-cta h2 { font-family: var(--ta-display); font-size: 44px; line-height: 1.12; font-weight: 700; }
.ta-cta__lead { margin-top: 20px; font-size: 17px; line-height: 1.7; color: #FFFFFF; max-width: 600px; }
.ta-cta .ta-btn { padding: 16px 34px; font-weight: 700; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ta-footer); color: var(--ta-on-dark-muted); }
.site-footer__inner { padding-top: 38px; padding-bottom: 38px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-footer .ta-brand { color: #FFFFFF; }
.site-footer .ta-brand img { width: 36px; height: 36px; }
.site-footer .ta-brand__name { font-size: 13px; }
.site-footer__tag { font-size: 14px; color: #909FC0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 13px; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a { color: #B8C3DB; text-decoration: none; }
.site-footer__links a:hover { color: #FFFFFF; }
.site-footer__company { color: #B8C3DB; }

/* ---------- Inner pages / posts ---------- */
.ta-page-head { padding-top: 88px; padding-bottom: 80px; }
.ta-page-head h1 { font-family: var(--ta-display); font-size: 48px; line-height: 1.1; font-weight: 700; }
.ta-page-head .ta-meta { margin-top: 16px; font-size: 15px; color: #E1E9FF; }
.ta-content { max-width: 820px; margin: 0 auto; padding: 72px 32px 104px; font-size: 17px; line-height: 1.75; color: #3C4456; }
.ta-content > * + * { margin-top: 1.2em; }
.ta-content h2, .ta-content h3, .ta-content h4 { font-family: var(--ta-display); color: var(--ta-ink); font-weight: 700; line-height: 1.25; margin-top: 1.8em; }
.ta-content h2 { font-size: 30px; }
.ta-content h3 { font-size: 22px; }
.ta-content ul, .ta-content ol { padding-left: 1.3em; }
.ta-content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--ta-blue); color: var(--ta-ink); }
.ta-content img { height: auto; border-radius: 8px; }
.ta-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-button__link { background: var(--ta-blue-dark); color: #fff; border-radius: 999px; }

.ta-posts { padding-top: 72px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ta-post-card { border: 1px solid var(--ta-line); border-radius: 12px; padding: 32px; }
.ta-post-card h2 { margin: 12px 0 10px; font-family: var(--ta-display); font-size: 22px; font-weight: 600; line-height: 1.3; }
.ta-post-card h2 a { color: var(--ta-ink); text-decoration: none; }
.ta-post-card h2 a:hover { color: var(--ta-blue); }
.ta-post-card p { font-size: 15px; line-height: 1.6; color: var(--ta-body); }
.ta-post-card .ta-eyebrow { margin: 0; }
.ta-more { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ta-pagination { padding-bottom: 104px; display: flex; gap: 10px; flex-wrap: wrap; }
.ta-pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--ta-line); border-radius: 999px; text-decoration: none; font-size: 14px; }
.ta-pagination .current { background: var(--ta-blue-dark); color: #fff; border-color: var(--ta-blue-dark); }
.ta-empty { padding: 72px 0 104px; font-size: 17px; color: var(--ta-body); }
.ta-log-page { padding-top: 64px; padding-bottom: 104px; }
.ta-log-page .ta-table-wrap { margin-top: 0; }

/* Comments */
.ta-comments { max-width: 820px; margin: 0 auto; padding: 0 32px 104px; }
.ta-comments input[type=text], .ta-comments input[type=email], .ta-comments input[type=url], .ta-comments textarea {
	width: 100%; padding: 12px; border: 1px solid var(--ta-line); border-radius: 8px; font: inherit;
}
.ta-comments .submit { background: var(--ta-blue-dark); color: #fff; border: 0; padding: 13px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ta-menu-toggle { display: inline-block; }
	.site-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 6px; }
	.site-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
	.site-nav.is-open { display: flex; }
	.ta-header-cta { margin-left: auto; }
}
@media (max-width: 700px) {
	.ta-wrap { padding-left: 20px; padding-right: 20px; }
	.ta-section, .ta-cta__inner { padding-top: 72px; padding-bottom: 72px; }
	.ta-hero__inner { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
	.ta-hero h1 { font-size: 38px; }
	.ta-hero__lead { font-size: 17px; }
	.ta-hero__art { justify-content: center; flex-basis: 100%; }
	.ta-hero__art img { width: 220px; height: 220px; }
	.ta-h2, .ta-question .ta-h2 { font-size: 30px; }
	.ta-cta h2, .ta-page-head h1 { font-size: 32px; }
	.ta-cards, .ta-pillars { grid-template-columns: 1fr; }
	.ta-split__head { max-width: none; }
	.ta-header-cta .ta-btn { padding: 9px 16px; font-size: 13px; }
	.ta-brand__name { font-size: 13px; letter-spacing: 2.5px; }
	.ta-content { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Apply popup ---------- */
.ta-modal-open, .ta-modal-open body { overflow: hidden; }
.ta-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.ta-modal[hidden] { display: none; }
.ta-modal__backdrop { position: fixed; inset: 0; background: rgba(10, 22, 49, .72); }
.ta-modal__panel {
	position: relative; width: 100%; max-width: 680px; margin: auto; background: #FFFFFF;
	border-radius: 16px; padding: 44px 44px 40px; box-shadow: 0 24px 64px rgba(10, 22, 49, .35);
}
.ta-modal__close {
	position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: var(--ta-soft); color: var(--ta-navy); font-size: 24px; line-height: 1; cursor: pointer;
}
.ta-modal__close:hover { background: var(--ta-line); }
.ta-modal .ta-eyebrow { margin-bottom: 12px; }
.ta-modal__title { font-family: var(--ta-display); font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--ta-ink); }
.ta-modal__intro { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ta-body); }
.ta-form { margin-top: 28px; }
.ta-form[hidden] { display: none; }
.ta-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ta-field { display: flex; flex-direction: column; gap: 7px; }
.ta-field--wide { grid-column: 1 / -1; }
.ta-field label { font-size: 13px; font-weight: 600; color: var(--ta-navy); }
.ta-field label span { color: var(--ta-blue); }
.ta-field input, .ta-field textarea, .ta-field select {
	width: 100%; padding: 12px 14px; border: 1px solid #CDD6E4; border-radius: 8px; background: #FFFFFF;
	font: 15px/1.4 var(--ta-sans); color: var(--ta-ink);
}
.ta-field textarea { resize: vertical; min-height: 88px; }
.ta-field input:focus, .ta-field textarea:focus, .ta-field select:focus { outline: none; border-color: var(--ta-blue); box-shadow: 0 0 0 3px rgba(91, 121, 184, .2); }
.ta-field.has-error input, .ta-field.has-error textarea, .ta-field.has-error select { border-color: #B0302A; }
.ta-field__error { font-size: 12.5px; color: #B0302A; }
.ta-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ta-form__submit { margin-top: 26px; border: 0; cursor: pointer; padding: 15px 30px; font-family: var(--ta-sans); }
.ta-form__submit:disabled { opacity: .7; cursor: wait; }
.ta-form__status { margin-top: 22px; padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.ta-form__status[hidden] { display: none; }
.ta-form__status[data-state="ok"] { background: #E2F2E9; color: #1E6B42; }
.ta-form__status[data-state="error"] { background: #FAE5E4; color: #9B2A25; }
@media (max-width: 600px) {
	.ta-modal { padding: 16px 12px; }
	.ta-modal__panel { padding: 36px 22px 28px; }
	.ta-modal__title { font-size: 26px; }
	.ta-form__grid { grid-template-columns: 1fr; }
}
