/*
Theme Name: TSRDigital
Theme URI: https://tsrdigital.in/
Author: TSRDigital
Description: A fast, SEO-optimized theme for TSRDigital, a digital marketing agency in Pune. Apple-inspired design with CSS-only motion, schema markup, editable homepage sections in the Customizer and no page-builder or jQuery dependency.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: tsrdigital
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

/* ==========================================================
   1. Tokens
   ========================================================== */
:root {
	--accent: #0066CC;
	--accent-hover: #004C99;
	--ink: #1D1D1F;
	--muted: #6E6E73;
	--bg: #FFFFFF;
	--bg-alt: #F5F5F7;
	--tile: #E8E8ED;
	--line: #D2D2D7;
	--seg: #E3E3E8;
	--dark: #000000;
	--dark-2: #1D1D1F;
	--dark-line: #424245;
	--dark-muted: #A1A1A6;
	--dark-text: #F5F5F7;
	--dark-link: #2997FF;
	--radius: 18px;
	--radius-lg: 24px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gutter: max(24px, calc((100% - 1200px) / 2));
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.47;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { color: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 16px; top: 16px; z-index: 1000; padding: 12px 18px;
	background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================
   3. Shared components
   ========================================================== */
.section { padding: 112px 0; }
.section--tight { padding: 72px 0 112px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--dark-text); }

.eyebrow { margin: 0; font-size: 17px; font-weight: 600; color: var(--accent); }
.section--dark .eyebrow { color: var(--dark-link); }

.h-display {
	margin: 0;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.07;
	font-weight: 700;
	letter-spacing: -0.03em;
}
.lead { margin: 0; font-size: 21px; line-height: 1.4; color: var(--muted); }
.section--dark .lead { color: var(--dark-muted); }

.section-head {
	max-width: 760px; margin: 0 auto 56px; text-align: center;
	display: flex; flex-direction: column; gap: 16px;
}
.section-head--split {
	max-width: none; text-align: left;
	flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	margin-bottom: 40px;
}
.container.section-head--split { max-width: 1248px; }
.section-head--split > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.section-head__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 12px 26px;
	border: 0; border-radius: 980px;
	background: var(--accent); color: #fff;
	font-size: 17px; font-weight: 500; line-height: 1.2;
	cursor: pointer; text-decoration: none;
	transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: 14px; padding: 8px 18px; min-height: 40px; }
.btn--lg { padding: 14px 30px; }

.link-more { font-size: 17px; color: var(--accent); }
.link-more--sm { font-size: 15px; }
.section--dark .link-more { color: var(--dark-link); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }

.card {
	background: #fff; border-radius: var(--radius); padding: 28px;
	display: flex; flex-direction: column; gap: 12px;
}
.card--alt { background: var(--bg-alt); }
.card h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .card__grow { flex: 1; }

.icon-tile {
	width: 48px; height: 48px; border-radius: 12px; flex: none;
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 11px; }
.icon-tile--sm svg { width: 24px; height: 24px; }

/* Placeholder boxes: only rendered for logged-in admins */
.ph {
	background: var(--tile); color: var(--muted);
	display: flex; align-items: center; justify-content: center; text-align: center;
	font-size: 14px; padding: 8px;
}
.ph-text { color: var(--muted); }
.section--dark .ph { background: var(--dark-2); color: var(--dark-muted); }

/* Horizontal scrollers (reels + blog slider) */
.hscroll {
	display: flex; gap: 20px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px var(--gutter) 24px;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: thin; scrollbar-color: #A1A1A6 transparent;
}
.section--dark .hscroll { scrollbar-color: var(--dark-line) transparent; }
.hscroll > * { flex: none; scroll-snap-align: start; }

.slider-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: var(--seg); color: var(--ink); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background-color .2s;
}
.slider-btn:hover { background: var(--line); }
.slider-btn svg { width: 20px; height: 20px; }
.section--dark .slider-btn { background: var(--dark-2); color: var(--dark-text); }
.section--dark .slider-btn:hover { background: var(--dark-line); }
html:not(.js) .slider-btn { display: none; }

.play {
	position: relative; z-index: 1;
	width: 64px; height: 64px; border-radius: 50%;
	background: rgba(255,255,255,.92); color: var(--ink);
	display: flex; align-items: center; justify-content: center;
	transition: transform .3s var(--ease);
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }

/* Gradient text (Apple Intelligence style) */
.grad { color: #5856D6; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.grad {
		background-image: linear-gradient(90deg, #0066CC 0%, #5856D6 25%, #AF52DE 50%, #D6336C 75%, #0066CC 100%);
		background-size: 200% auto;
		-webkit-background-clip: text; background-clip: text;
		color: transparent;
		-webkit-box-decoration-break: clone; box-decoration-break: clone;
		animation: tsrGrad 8s linear infinite;
	}
}

/* ==========================================================
   4. Header
   ========================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.82);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	position: relative;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 60px;
}
.brand {
	display: flex; align-items: center; gap: 10px;
	color: var(--ink); text-decoration: none;
	font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark {
	width: 34px; height: 34px; border-radius: 9px;
	background: var(--accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.custom-logo-link { display: flex; }
.custom-logo { max-height: 40px; width: auto; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { color: var(--ink); font-size: 14px; }
.primary-nav a:hover { color: var(--accent); text-decoration: none; }
.primary-nav .current-menu-item > a { color: var(--accent); }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 220px;
	list-style: none; margin: 0; padding: 10px 0;
	background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.primary-nav .sub-menu a { display: block; padding: 8px 16px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }

.header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.header-phone { color: var(--ink); }
.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: transparent; color: var(--ink); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-phone { display: none; }
	html.js .primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06);
	}
	html.js .primary-nav.is-open { display: block; }
	html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--bg-alt); }
	.primary-nav .sub-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }
	html:not(.js) .nav-toggle { display: none; }
}
@media (max-width: 420px) { .header-actions .btn { display: none; } }

/* ==========================================================
   5. Homepage
   ========================================================== */
/* Hero */
.hero { padding: 104px 0 88px; text-align: center; }
.hero__inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__title { margin: 0; font-weight: 700; }
.hero__kicker { display: block; margin-bottom: 24px; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.hero__headline { display: block; font-size: clamp(44px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.035em; }
.hero__text { margin: 0; max-width: 680px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 8px; }

.stats { max-width: 960px; margin: 72px auto 0; --min: 220px; }
.stat { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; text-align: left; }
.stat__value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Client logos */
.clients { padding: 0 0 88px; }
.clients__label { margin: 0 0 28px; padding: 0 24px; text-align: center; font-size: 15px; color: var(--muted); }
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: tsrMarquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
.logo-item {
	width: 168px; height: 76px; border-radius: 14px; background: var(--bg-alt);
	display: flex; align-items: center; justify-content: center; padding: 14px 18px;
}
.logo-item img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-item:hover img { filter: none; opacity: 1; }

/* AI search */
.ai-card { padding: 32px 28px; gap: 14px; }
.results { margin-top: 20px; }
.result { gap: 6px; }
.result__value { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); }
.result__label { font-size: 17px; font-weight: 600; }
.result__note { font-size: 14px; color: var(--muted); }
.center-link { margin: 40px 0 0; text-align: center; }

/* Case studies */
.cases { --min: 320px; gap: 24px; }
.case { background: var(--bg-alt); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.case__media { aspect-ratio: 16 / 9; background: var(--tile); }
.case__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__body { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.case__quote { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.case__meta { margin: 0; font-size: 15px; color: var(--muted); }
.metrics { display: flex; gap: 32px; flex-wrap: wrap; }
.metric__value { font-size: 34px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1.2; }
.metric__label { font-size: 14px; color: var(--muted); }

/* Process tabs (all panels are in the HTML; JS only toggles which one shows) */
.tabs { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.tabs__list { display: none; flex-wrap: wrap; justify-content: center; gap: 2px; background: var(--seg); padding: 3px; border-radius: 10px; }
html.js .tabs__list { display: flex; }
.tabs__tab {
	border: 0; background: transparent; color: var(--ink); cursor: pointer;
	font-size: 15px; font-weight: 500; padding: 10px 22px; min-height: 44px; border-radius: 8px;
	transition: background-color .2s, box-shadow .2s;
}
.tabs__tab[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tabs__panels { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.panel {
	background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
	display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
html.js .panel:not(.is-active) { display: none; }
html.js .panel.is-active { animation: tsrRise .5s var(--ease) both; }
.panel__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel__kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.panel__title { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.panel__text p:not(.panel__kicker) { margin: 0; color: var(--muted); }
.checklist { flex: 1 1 280px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #34C759; }

/* Services */
.service h3 { font-size: 19px; }

/* Why */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split__intro .lead { font-size: 19px; line-height: 1.45; }
.split__grid { flex: 1.4 1 480px; min-width: 0; --min: 230px; }
.why-card h3 { font-size: 19px; }

/* Reels */
.reel {
	position: relative; overflow: hidden;
	width: 236px; aspect-ratio: 9 / 16; border-radius: var(--radius);
	background: var(--dark-2); color: var(--dark-text); text-decoration: none;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px;
	transition: transform .35s var(--ease);
}
.reel:hover { color: var(--dark-text); text-decoration: none; transform: scale(1.03); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 55%); }
.reel .play { position: absolute; left: 50%; top: 42%; margin-left: -28px; width: 56px; height: 56px; background: rgba(255,255,255,.2); color: #fff; }
.reel__caption, .reel__meta { position: relative; z-index: 1; }
.reel__caption { font-size: 15px; font-weight: 600; line-height: 1.3; }
.reel__meta { font-size: 13px; color: var(--dark-muted); }
.reel:hover .play { transform: scale(1.12); }

/* Video testimonials */
.videos { margin-bottom: 20px; --min: 280px; }
.vid-card { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.vid {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; padding: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid:hover .play { transform: scale(1.12); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-card figcaption { font-size: 15px; }
.vid-card figcaption span { color: var(--muted); }

/* Text testimonials */
.quote { margin: 0; background: var(--bg-alt); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.45; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--line); flex: none; overflow: hidden; }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote strong { font-weight: 600; display: block; }
.quote figcaption span span { color: var(--muted); }

/* Post cards (blog slider + archives) */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hscroll .post-card { width: min(360px, 80vw); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tile); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.post-card__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; flex: 1; }
.post-card__title a { color: var(--ink); }
.post-card__meta { margin: 0; font-size: 13px; color: var(--muted); }
.posts-grid { --min: 300px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__intro .lead { font-size: 19px; line-height: 1.45; }
.contact__intro a { color: var(--dark-link); }
.contact__form { flex: 1 1 420px; min-width: 0; background: var(--dark-2); border-radius: var(--radius-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dark-muted); }
.contact__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact__form select,
.contact__form textarea {
	width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 10px;
	border: 1px solid var(--dark-line); background: var(--dark); color: var(--dark-text);
}
.contact__form textarea { resize: vertical; min-height: 120px; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--dark-link); box-shadow: 0 0 0 3px rgba(41,151,255,.35); }
.contact__form .btn, .contact__form input[type="submit"], .contact__form button[type="submit"] { width: 100%; min-height: 48px; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 16px; }
.notice--ok { background: rgba(52,199,89,.15); color: #7EE2A0; }
.notice--err { background: rgba(255,59,48,.15); color: #FF8A80; }

/* ==========================================================
   6. Footer
   ========================================================== */
.site-footer { background: var(--bg-alt); padding: 56px 0 32px; font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-col p { margin: 0; line-height: 1.5; }
.footer-brand .brand { font-size: 17px; }
.footer-brand .brand__mark { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-bottom a { color: var(--muted); }

/* ==========================================================
   7. Blog, pages, archives
   ========================================================== */
.page-hero { padding: 88px 0 56px; text-align: center; }
.page-hero .container { max-width: 808px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.page-title { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
.page-hero .lead p { margin: 0; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.page-hero .breadcrumbs { margin-bottom: 0; }
.page-hero .breadcrumbs ol { justify-content: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.article { max-width: 768px; margin: 0 auto; padding: 56px 24px 96px; }
.article__header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.article__header .eyebrow { font-size: 15px; }
.article__title { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.article__meta { margin: 0; font-size: 15px; color: var(--muted); }
.article__meta a { color: var(--muted); text-decoration: underline; }
.article__media { margin: 0 0 40px; }
.article__media img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.article__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tags a { display: inline-block; padding: 6px 14px; border-radius: 980px; background: var(--bg-alt); color: var(--ink); font-size: 14px; }
.tags a:hover { background: var(--line); text-decoration: none; }

.entry-content { font-size: 19px; line-height: 1.6; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.8em; margin-bottom: .6em; }
.entry-content h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 1.6em; margin-bottom: .5em; }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; margin-bottom: .4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: 21px; color: var(--ink); }
.entry-content img, .entry-content figure img { border-radius: 14px; height: auto; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content pre { background: var(--bg-alt); padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 15px; }
.entry-content code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: min(-80px, calc((768px - 100vw) / 4)); margin-right: min(-80px, calc((768px - 100vw) / 4)); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 900px) { .alignwide { margin-left: 0; margin-right: 0; } }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { /* WordPress required classes */ }

.page-links { margin-top: 32px; font-size: 15px; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 980px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--ink); font-size: 15px;
}
a.page-numbers:hover { background: var(--line); text-decoration: none; }
.page-numbers.current { background: var(--accent); color: #fff; }
.page-numbers.dots { background: transparent; }

.cta-band { text-align: center; }
.cta-band .container { max-width: 808px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.search-form { display: flex; gap: 8px; width: 100%; max-width: 480px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; font-size: 17px; padding: 12px 18px; border-radius: 980px;
	border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,102,204,.2); }

.no-results { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Comments */
.comments-area { margin-top: 56px; }
.comments-title, .comment-reply-title { font-size: 24px; letter-spacing: -0.01em; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font-size: 17px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
}
.comment-form .submit { background: var(--accent); color: #fff; border: 0; border-radius: 980px; padding: 12px 26px; font-size: 17px; cursor: pointer; }

/* ==========================================================
   8. Motion (CSS only: no JS, so content is always in the HTML)
   ========================================================== */
@keyframes tsrRise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes tsrRiseT { from { translate: 0 32px; } to { translate: 0 0; } }
@keyframes tsrReveal { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
@keyframes tsrMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tsrGrad { to { background-position: 200% center; } }

/* Hero entrance. The H1 only moves (never invisible) so it counts for LCP immediately. */
.hero__inner > * { animation: tsrRise .8s var(--ease) both; }
.hero__inner > .hero__title { animation-name: tsrRiseT; }
.hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.stats > * { animation: tsrRise .8s var(--ease) .3s both; }

/* Hover lift */
.card, .case, .quote, .post-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover, .case:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.08); }

/* Scroll reveal: uses scroll-driven animations where supported; everywhere else content is simply visible.
   fill-mode "forwards" (not "both") is deliberate: an element is never hidden before it starts entering the
   viewport, so full-page renders (Googlebot, link previews, print) always show every section. */
@supports (animation-timeline: view()) {
	.reveal {
		animation: tsrReveal linear forwards;
		animation-timeline: view();
		animation-range: entry 0% cover 25%;
	}
	.hscroll .reveal { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .clients, #reels, .contact__form, .slider-btn { display: none !important; }
}
