/* ==========================================================================
   Tencode Child - main.css
   1. Tokens  2. Global typography  3. Layout helpers  4. Components
   5. Service page sections  6. Motion / responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--tc-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* overridden from functions.php */
	--tc-primary: #158586;       /* brand teal, taken from the existing Elementor styles */
	--tc-primary-dark: #0d5c5d;
	--tc-primary-soft: #e6f4f4;
	--tc-ink: #10262b;
	--tc-muted: #56686d;
	--tc-line: #dbe7e8;
	--tc-bg-soft: #f3f9f9;
	--tc-white: #fff;
	--tc-radius: 16px;
	--tc-radius-sm: 10px;
	--tc-shadow: 0 10px 30px rgba(16, 38, 43, .08);
	--tc-shadow-lg: 0 18px 44px rgba(16, 38, 43, .14);
	--tc-max: 1180px;
}

/* 2. Global typography (applies site-wide, incl. Elementor) ---------------- */
html { scroll-behavior: smooth; }

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.site-title,
.main-header-menu a,
.ast-button,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button {
	font-family: var(--tc-font);
}

/* Elementor stores its fonts as CSS variables on the kit; point them at ours. */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: var(--tc-font);
	--e-global-typography-secondary-font-family: var(--tc-font);
	--e-global-typography-text-font-family: var(--tc-font);
	--e-global-typography-accent-font-family: var(--tc-font);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:focus-visible {
	outline: 3px solid var(--tc-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Softer header, subtle lift on scroll-friendly sticky headers. */
.main-header-bar { box-shadow: 0 1px 0 var(--tc-line); }
.main-header-menu > .menu-item > a { font-weight: 500; transition: color .2s ease; }

/* Consistent buttons across Astra / WPForms. */
.ast-button,
.button,
button[type="submit"],
input[type="submit"],
.wpforms-submit {
	border-radius: 999px;
	font-weight: 600;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ast-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wpforms-submit:hover {
	transform: translateY(-1px);
	box-shadow: var(--tc-shadow);
}

/* 3. Layout helpers -------------------------------------------------------- */
.tc-scope { color: var(--tc-ink); line-height: 1.7; }
.tc-scope *,
.tc-scope *::before,
.tc-scope *::after { box-sizing: border-box; }
.tc-scope h1, .tc-scope h2, .tc-scope h3 { color: var(--tc-ink); line-height: 1.2; margin: 0; }
.tc-scope p { margin: 0 0 1em; }

.tc-container { width: 100%; max-width: var(--tc-max); margin: 0 auto; padding: 0 24px; }
.tc-container--narrow { max-width: 820px; }

.tc-section { padding: clamp(56px, 8vw, 96px) 0; background: var(--tc-white); }
.tc-section--soft { background: var(--tc-bg-soft); }
.tc-section__head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.tc-section__sub { color: var(--tc-muted); margin-top: 12px; }

.tc-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tc-primary);
}
.tc-eyebrow--light { color: #bfe9e9; }
.tc-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.tc-h2 a { color: inherit; text-decoration: none; }
.tc-h2 a:hover { color: var(--tc-primary); }

/* 4. Components ------------------------------------------------------------ */
.tc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.tc-btn:hover { transform: translateY(-2px); box-shadow: var(--tc-shadow-lg); }
.tc-btn--primary { background: var(--tc-white); color: var(--tc-primary-dark); }
.tc-btn--primary:hover { color: var(--tc-primary-dark); }
.tc-btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--tc-white); }
.tc-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--tc-white); }
.tc-btn--light { background: var(--tc-white); color: var(--tc-primary-dark); white-space: nowrap; }
.tc-btn--light:hover { color: var(--tc-primary-dark); }

.tc-grid { display: grid; gap: 24px; }
.tc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tc-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service card (used by the archive, parent pages and [tc_services]) */
.tc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	background: var(--tc-white);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	color: var(--tc-ink);
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tc-card:hover { transform: translateY(-6px); box-shadow: var(--tc-shadow-lg); border-color: var(--tc-primary); color: var(--tc-ink); }
.tc-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--tc-primary-soft);
	font-size: 1.6rem;
}
.tc-card__title { font-size: 1.15rem; font-weight: 600; margin: 6px 0 0; }
.tc-card__text { color: var(--tc-muted); font-size: .95rem; margin: 0; flex: 1; }
.tc-card__more { color: var(--tc-primary); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.tc-card:hover .tc-card__more span { display: inline-block; transform: translateX(4px); }
.tc-card__more span { transition: transform .2s ease; }

/* 5. Service page sections ------------------------------------------------- */

/* Hero */
.tc-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 9vw, 110px) 0;
	color: var(--tc-white);
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
		linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-primary) 100%);
}
.tc-hero--center { text-align: center; }
.tc-hero--center .tc-hero__lead { margin-left: auto; margin-right: auto; }
.tc-hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.tc-scope .tc-hero__title { color: var(--tc-white); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.tc-hero__tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; margin: 16px 0 8px; color: #d8f3f3; }
.tc-hero__lead { max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.tc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.tc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.tc-breadcrumb a { color: inherit; text-decoration: none; }
.tc-breadcrumb a:hover { color: var(--tc-white); text-decoration: underline; }
.tc-breadcrumb [aria-current] { color: var(--tc-white); font-weight: 600; }

.tc-hero__visual { display: flex; justify-content: center; }
.tc-hero__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(180px, 22vw, 260px);
	aspect-ratio: 1;
	border-radius: 32%;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(6px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
	transform: rotate(-6deg);
}
.tc-hero__badge span { font-size: clamp(4rem, 8vw, 6rem); transform: rotate(6deg); }
.tc-hero__img { max-width: 100%; height: auto; border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-lg); }

/* Sibling switcher (sticky under the header) */
.tc-tabs { position: sticky; top: 0; z-index: 20; background: var(--tc-white); border-bottom: 1px solid var(--tc-line); }
.admin-bar .tc-tabs { top: 32px; }
.tc-tabs__inner { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tc-tabs__inner::-webkit-scrollbar { display: none; }
.tc-tab {
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 500;
	color: var(--tc-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.tc-tab:hover { background: var(--tc-primary-soft); color: var(--tc-primary-dark); }
.tc-tab.is-active { background: var(--tc-primary); color: var(--tc-white); }

/* Overview + prose */
.tc-overview { display: grid; grid-template-columns: 1fr; gap: 40px; }
.tc-overview:has(.tc-stats) { grid-template-columns: 1.4fr .6fr; align-items: start; }
.tc-prose { max-width: 760px; font-size: 1.05rem; }
.tc-prose .tc-h2 { margin-bottom: 20px; }
.tc-prose p { color: #33484d; }
.tc-prose ul, .tc-prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.tc-prose li { margin-bottom: .4em; }

.tc-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tc-stats li { padding: 22px 24px; background: var(--tc-primary-soft); border-radius: var(--tc-radius); }
.tc-stats strong { display: block; font-size: 2rem; font-weight: 800; color: var(--tc-primary-dark); line-height: 1.1; }
.tc-stats span { color: var(--tc-muted); font-size: .92rem; }

/* Features */
.tc-feature {
	position: relative;
	padding: 28px 26px 26px;
	background: var(--tc-white);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
}
.tc-feature__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--tc-primary);
	color: var(--tc-white);
	font-size: .95rem;
	font-weight: 700;
}
.tc-feature h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.tc-feature p { margin: 0; color: var(--tc-muted); font-size: .96rem; }

/* Process */
.tc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; counter-reset: none; }
.tc-step { position: relative; padding-top: 8px; }
.tc-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--tc-primary-soft);
	color: var(--tc-primary-dark);
	font-weight: 800;
	font-size: 1.1rem;
	position: relative;
	z-index: 1;
}
.tc-step::after {
	content: "";
	position: absolute;
	top: 32px;
	left: 56px;
	right: -24px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--tc-line) 0 6px, transparent 6px 12px);
}
.tc-step:last-child::after { display: none; }
.tc-step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.tc-step p { margin: 0; color: var(--tc-muted); font-size: .94rem; }

/* FAQ (native <details>, works without JS) */
.tc-faq { display: grid; gap: 14px; }
.tc-faq__item { background: var(--tc-white); border: 1px solid var(--tc-line); border-radius: var(--tc-radius-sm); overflow: hidden; transition: box-shadow .2s ease; }
.tc-faq__item[open] { box-shadow: var(--tc-shadow); border-color: var(--tc-primary); }
.tc-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.tc-faq__item summary::-webkit-details-marker { display: none; }
.tc-faq__item summary::after {
	content: "+";
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tc-primary-soft);
	color: var(--tc-primary-dark);
	font-size: 1.2rem;
	line-height: 1;
	transition: transform .2s ease;
}
.tc-faq__item[open] summary::after { content: "\2212"; }
.tc-faq__answer { padding: 0 22px 8px; color: var(--tc-muted); }

/* CTA band */
.tc-cta { background: linear-gradient(135deg, var(--tc-primary-dark), var(--tc-primary)); color: var(--tc-white); padding: clamp(40px, 6vw, 64px) 0; }
.tc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tc-scope .tc-cta h2 { color: var(--tc-white); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.tc-cta p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; }

/* 6. Motion + responsive --------------------------------------------------- */
.js .tc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .tc-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
	.tc-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.tc-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.tc-hero__inner { grid-template-columns: 1fr; }
	.tc-hero__visual { display: none; }
	.tc-overview:has(.tc-stats) { grid-template-columns: 1fr; }
	.tc-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
	.tc-step::after { display: none; }
}
@media (max-width: 640px) {
	.tc-grid--2, .tc-grid--3, .tc-grid--4 { grid-template-columns: 1fr; }
	.tc-container { padding: 0 18px; }
	.tc-hero__actions .tc-btn, .tc-cta .tc-btn { width: 100%; }
	.tc-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 782px) { .admin-bar .tc-tabs { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tc-card, .tc-btn, .js .tc-reveal { transition: none; }
	.js .tc-reveal { opacity: 1; transform: none; }
}
