/* =====================================================================
   Taxsafe Accountants — main stylesheet
   Recreates the "Finsta" financial-services design (Tailwind source)
   as standalone CSS driven by Customizer CSS variables.
   ===================================================================== */

:root {
	--ts-primary: #00173F;
	--ts-accent: #2563EB;
	--ts-accent-hover: #1D4ED8;
	--ts-accent-rgb: 37, 99, 235;
	--ts-dark-to: #002350;

	--ts-text: #0F172A;
	--ts-text-2: #64748B;
	--ts-text-3: #94A3B8;
	--ts-border: #E2E8F0;
	--ts-border-dark: rgba(255, 255, 255, 0.12);
	--ts-muted-bg: #F8FAFC;
	--ts-success: #10B981;
	--ts-warning: #F59E0B;

	--ts-radius: 8px;
	--ts-radius-lg: 16px;
	--ts-radius-xl: 24px;
	--ts-shadow-card: 0 4px 24px rgba(0, 23, 63, 0.08);
	--ts-shadow-hover: 0 8px 40px rgba(0, 23, 63, 0.12);
	--ts-shadow-float: 0 12px 48px rgba(0, 23, 63, 0.15);
	--ts-shadow-btn: 0 4px 16px rgba(var(--ts-accent-rgb), 0.3);
	--ts-ease: cubic-bezier(0.4, 0, 0.2, 1);

	--ts-container: 1320px;
	--ts-section: 120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ts-text);
	background: #fff;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	color: var(--ts-primary);
	margin: 0;
	font-weight: 700;
	line-height: 1.2;
}

p { margin: 0; }
a { color: var(--ts-accent); text-decoration: none; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(var(--ts-accent-rgb), 0.2); color: var(--ts-primary); }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--ts-primary); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container-main {
	max-width: var(--ts-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.container-narrow { max-width: 960px; }
.center { text-align: center; }

.section { padding-top: var(--ts-section); padding-bottom: var(--ts-section); }

.bg-muted { background: var(--ts-muted-bg); }
.bg-dark-section {
	background: linear-gradient(135deg, var(--ts-primary) 0%, var(--ts-dark-to) 100%);
}

/* ---------- Typography utilities ---------- */
.section-title {
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.15;
	letter-spacing: -1px;
	color: var(--ts-primary);
}
.section-title--narrow { max-width: 660px; margin-left: auto; margin-right: auto; }
.section-title.on-dark { color: #fff; }
.section-text { font-size: 18px; line-height: 1.6; color: var(--ts-text-2); margin-top: 16px; }
.section-text--center { max-width: 560px; margin-left: auto; margin-right: auto; }
.section-text.on-dark-muted { color: var(--ts-text-3); }
.on-dark { color: #fff; }
.on-dark-muted { color: var(--ts-text-3); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head--split {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 24px; flex-wrap: wrap;
}

/* ---------- Section label (eyebrow) ---------- */
.section-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.section-label.is-center { justify-content: center; }
.section-head.center .section-label { justify-content: center; }
.section-label-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ts-accent); }
.section-label-text {
	font-size: 12px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 3px; color: var(--ts-accent);
}

/* ---------- Icons ---------- */
.ts-icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; font-weight: 600; font-size: 15px;
	border-radius: var(--ts-radius); transition: all 0.3s ease;
	border: 1.5px solid transparent; cursor: pointer; line-height: 1; text-align: center;
}
.btn .ts-icon { width: 18px; height: 18px; }
.btn-primary { background: var(--ts-accent); color: #fff; box-shadow: var(--ts-shadow-btn); }
.btn-primary:hover { background: var(--ts-accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--ts-accent-rgb), 0.4); }
.btn-dark { background: var(--ts-primary); color: #fff; }
.btn-dark:hover { background: var(--ts-accent); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--ts-border); color: var(--ts-primary); }
.btn-outline:hover { border-color: var(--ts-accent); color: var(--ts-accent); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ts-primary); }
.btn-block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; color: var(--ts-accent); white-space: nowrap;
}
.link-arrow .ts-icon { width: 18px; height: 18px; transition: transform 0.3s ease; }
.link-arrow:hover .ts-icon { transform: translateX(4px); }
.link-arrow--sm { font-size: 14px; margin-top: 18px; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--ts-warning); }
.stars .ts-icon { width: 16px; height: 16px; }
.stars--lg .ts-icon { width: 20px; height: 20px; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
	width: 100%; border-radius: var(--ts-radius-xl); overflow: hidden;
	background: linear-gradient(135deg, rgba(var(--ts-accent-rgb), 0.12), rgba(var(--ts-accent-rgb), 0.04));
	display: flex; align-items: center; justify-content: center;
	color: rgba(var(--ts-accent-rgb), 0.5); box-shadow: var(--ts-shadow-float);
}
.img-placeholder.on-dark { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); }
.img-placeholder .ph-icon { width: 64px; height: 64px; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-10 { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }

/* Uploaded images (Customizer) — match placeholder framing */
.ts-img {
	display: block; width: 100%; object-fit: cover;
	border-radius: var(--ts-radius-xl); box-shadow: var(--ts-shadow-float);
}
.ts-img--flat { border-radius: 0; box-shadow: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 80px;
	transition: all 0.3s ease; border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(255,255,255,0.95);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border-bottom-color: var(--ts-border);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 24px; font-weight: 700; color: var(--ts-primary); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--ts-text-2); }
.custom-logo-link img { max-height: 48px; width: auto; }

.primary-nav .nav-menu { display: flex; align-items: center; gap: 32px; }
.primary-nav .nav-menu a {
	position: relative; color: var(--ts-text); font-weight: 500; font-size: 15px; padding: 4px 0;
}
.primary-nav .nav-menu a::after {
	content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
	background: var(--ts-accent); transition: width 0.3s ease;
}
.primary-nav .nav-menu a:hover { color: var(--ts-accent); }
.primary-nav .nav-menu a:hover::after,
.primary-nav .nav-menu .current-menu-item > a::after { width: 100%; }
.primary-nav .nav-menu .current-menu-item > a { color: var(--ts-accent); }

/* dropdown submenu */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; margin-top: 12px; min-width: 210px;
	background: #fff; border-radius: var(--ts-radius-lg); box-shadow: var(--ts-shadow-card);
	padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all 0.25s ease; z-index: 60;
}
.primary-nav .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: 10px 24px; font-size: 14px; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: var(--ts-muted-bg); }

.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone { display: flex; align-items: center; gap: 12px; }
.header-phone-icon {
	width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
	background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent);
	display: flex; align-items: center; justify-content: center;
}
.header-phone-icon .ts-icon { width: 20px; height: 20px; }
.header-phone-text { display: flex; flex-direction: column; line-height: 1.3; }
.header-phone-label { font-size: 13px; color: var(--ts-text-2); }
.header-phone-number { font-size: 14px; font-weight: 600; color: var(--ts-primary); }

.menu-toggle {
	display: none; width: 44px; height: 44px; border: none; background: transparent;
	color: var(--ts-primary); align-items: center; justify-content: center;
}

/* Header sitting over a dark hero/banner (inner pages) — light text until scrolled.
   Once `.is-scrolled` adds the solid white background, the default dark rules apply. */
body.header-dark-top .site-header:not(.is-scrolled) .brand-name,
body.header-dark-top .site-header:not(.is-scrolled) .primary-nav .nav-menu a,
body.header-dark-top .site-header:not(.is-scrolled) .header-phone-number,
body.header-dark-top .site-header:not(.is-scrolled) .menu-toggle {
	color: #fff;
}
body.header-dark-top .site-header:not(.is-scrolled) .brand-sub,
body.header-dark-top .site-header:not(.is-scrolled) .header-phone-label {
	color: rgba(255, 255, 255, 0.72);
}
body.header-dark-top .site-header:not(.is-scrolled) .primary-nav .nav-menu a:hover,
body.header-dark-top .site-header:not(.is-scrolled) .primary-nav .nav-menu .current-menu-item > a {
	color: #fff;
}
body.header-dark-top .site-header:not(.is-scrolled) .header-phone-icon {
	background: rgba(255, 255, 255, 0.14); color: #fff;
}

/* mobile menu */
.mobile-menu {
	position: fixed; inset: 0; z-index: 60;
	background: rgba(0, 23, 63, 0.98);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
	opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; background: transparent; border: none; color: #fff; width: 48px; height: 48px; }
.mobile-menu-close .ts-icon { width: 32px; height: 32px; }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-nav a { font-size: 30px; font-weight: 600; color: #fff; }
.mobile-nav a:hover, .mobile-nav .current-menu-item > a { color: var(--ts-accent); }
.mobile-menu-cta { margin-top: 16px; }

/* Staggered entrance of mobile menu items (mirrors the React GSAP stagger) */
.mobile-menu .mobile-nav li,
.mobile-menu .mobile-menu-cta {
	opacity: 0; transform: translateX(40px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu.is-open .mobile-nav li,
.mobile-menu.is-open .mobile-menu-cta { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open .mobile-nav li:nth-child(1) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav li:nth-child(2) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-nav li:nth-child(3) { transition-delay: 0.40s; }
.mobile-menu.is-open .mobile-nav li:nth-child(4) { transition-delay: 0.50s; }
.mobile-menu.is-open .mobile-nav li:nth-child(5) { transition-delay: 0.60s; }
.mobile-menu.is-open .mobile-nav li:nth-child(6) { transition-delay: 0.70s; }
.mobile-menu.is-open .mobile-nav li:nth-child(7) { transition-delay: 0.80s; }
.mobile-menu.is-open .mobile-menu-cta { transition-delay: 0.90s; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; background: #fff; padding: 160px 0 120px; overflow: hidden; }
.hero-blob {
	position: absolute; top: 80px; right: 0; width: 400px; height: 400px; border-radius: 50%;
	background: rgba(var(--ts-accent-rgb), 0.07); transform: translate(25%, -50%);
	animation: ts-pulse 4s ease-in-out infinite; pointer-events: none;
}
@keyframes ts-pulse { 0%,100% { transform: translate(25%, -50%) scale(1); } 50% { transform: translate(25%, -50%) scale(1.05); } }

.hero-grid { display: flex; align-items: center; gap: 64px; }
.hero-content { width: 55%; }
.hero-media { width: 45%; }

.hero-title {
	font-size: clamp(40px, 6vw, 64px); line-height: 1.1; letter-spacing: -1.5px; margin-top: 8px;
}
.hero-title-accent { position: relative; display: inline-block; color: var(--ts-accent); }
.hero-underline { position: absolute; left: 0; bottom: -4px; width: 100%; color: var(--ts-accent); }
.hero-text { font-size: 18px; color: var(--ts-text-2); margin-top: 20px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-top: 40px; }
.hero-rating { background: var(--ts-muted-bg); border-radius: var(--ts-radius-lg); padding: 12px 20px; }
.hero-rating-top { display: flex; align-items: center; gap: 6px; }
.hero-rating-score { font-size: 18px; font-weight: 700; color: var(--ts-primary); }
.hero-rating-label { font-size: 14px; color: var(--ts-text-2); }
.hero-clients { display: flex; align-items: center; gap: 12px; }
.avatar-stack { display: inline-flex; }
.avatar {
	width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 600; margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar--a { background: rgba(var(--ts-accent-rgb), 0.2); color: var(--ts-accent); }
.avatar--b { background: rgba(16,185,129,0.2); color: var(--ts-success); }
.avatar--c { background: rgba(245,158,11,0.2); color: var(--ts-warning); }
.hero-clients-label { font-size: 14px; font-weight: 500; color: var(--ts-primary); }

.hero-image-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.hero-image { width: 100%; border-radius: var(--ts-radius-xl); box-shadow: var(--ts-shadow-float); object-fit: cover; aspect-ratio: 3 / 4; }
.hero-image--placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	background: linear-gradient(135deg, rgba(var(--ts-accent-rgb), 0.12), rgba(var(--ts-accent-rgb), 0.04));
	color: var(--ts-text-2); text-align: center; padding: 24px; font-size: 14px;
}
.hero-placeholder-icon { width: 56px; height: 56px; color: rgba(var(--ts-accent-rgb), 0.5); }
.hero-badge {
	position: absolute; bottom: -20px; left: -16px; background: #fff;
	border-radius: var(--ts-radius-lg); padding: 18px; box-shadow: var(--ts-shadow-float);
	display: flex; align-items: center; gap: 16px;
}
.hero-badge-icon {
	width: 48px; height: 48px; border-radius: 12px; background: rgba(var(--ts-accent-rgb), 0.1);
	color: var(--ts-accent); display: flex; align-items: center; justify-content: center;
}
.hero-badge-title { font-size: 16px; font-weight: 600; color: var(--ts-primary); }
.hero-badge-sub { font-size: 13px; color: var(--ts-text-2); }

/* =====================================================================
   COUNTERS
   ===================================================================== */
.counter { font-weight: 700; line-height: 1; display: inline-block; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid, .why-grid, .expertise-grid { display: flex; align-items: center; gap: 64px; }
.about-media { width: 50%; position: relative; }
.about-content { width: 50%; }
.about-shape { position: absolute; bottom: -32px; left: -32px; width: 160px; height: 160px; border-radius: 50%; background: rgba(var(--ts-accent-rgb), 0.1); z-index: 0; }
.about-image--main { position: relative; z-index: 1; max-width: 460px; }
.about-image--secondary { position: absolute; bottom: -24px; right: 0; width: 180px; z-index: 2; border: 4px solid #fff; border-radius: var(--ts-radius-lg); overflow: hidden; }
.about-image--secondary .img-placeholder { border-radius: 0; box-shadow: none; }
.about-experience {
	position: absolute; top: 24px; right: 0; z-index: 3;
	background: var(--ts-accent); color: #fff; border-radius: var(--ts-radius-lg);
	padding: 20px 24px; text-align: center; box-shadow: var(--ts-shadow-btn);
}
.about-experience .counter { font-size: 44px; }
.about-experience-label { display: block; font-size: 14px; margin-top: 4px; }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
	width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
	background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent);
	display: flex; align-items: center; justify-content: center;
}
.feature-icon--dark { background: rgba(var(--ts-accent-rgb), 0.15); }
.feature-title { font-size: 18px; font-weight: 600; color: var(--ts-primary); }
.feature-desc { font-size: 14px; color: var(--ts-text-2); margin-top: 4px; }
/* Dark feature list (home "Our Values") — keep text legible on the navy background. */
.feature-list--dark .feature-title { color: #fff; }
.feature-list--dark .feature-desc { color: var(--ts-text-3); }
.about-content .btn,
.expertise-content .btn { margin-top: 32px; }

/* =====================================================================
   CARD GRID
   ===================================================================== */
.card-grid { display: grid; gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================================
   SERVICE CARDS
   ===================================================================== */
.service-card {
	background: #fff; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-lg);
	padding: 40px; box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease);
}
.service-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.service-card--dark {
	background: rgba(255,255,255,0.05); border-color: var(--ts-border-dark); box-shadow: none;
}
.service-card--dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(var(--ts-accent-rgb), 0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.service-icon {
	width: 64px; height: 64px; border-radius: 12px; margin-bottom: 24px;
	background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent);
	display: flex; align-items: center; justify-content: center;
}
.service-card--dark .service-icon { background: rgba(var(--ts-accent-rgb), 0.15); }
.service-icon .ts-icon { width: 32px; height: 32px; }
.service-card-title { font-size: 22px; font-weight: 600; color: var(--ts-primary); }
.service-card--dark .service-card-title { color: #fff; }
.service-card-desc { font-size: 15px; color: var(--ts-text-2); margin-top: 12px; }
.service-card--dark .service-card-desc { color: var(--ts-text-3); }

/* =====================================================================
   WHY CHOOSE
   ===================================================================== */
.why-content { width: 50%; }
.why-media { width: 50%; position: relative; }
.google-rating { display: flex; align-items: center; gap: 16px; background: var(--ts-muted-bg); border-radius: var(--ts-radius-lg); padding: 16px 24px; margin-top: 32px; width: fit-content; }
.google-rating-g { width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #4285F4; }
.google-rating-top { display: flex; align-items: center; gap: 8px; }
.google-rating-score { font-size: 22px; font-weight: 700; color: var(--ts-primary); }
.google-rating-label { font-size: 14px; color: var(--ts-text-2); }

.check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ts-text); }
.check-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: rgba(16,185,129,0.15); color: var(--ts-success); display: flex; align-items: center; justify-content: center; }
.check-dot .ts-icon { width: 14px; height: 14px; }
.why-content .btn { margin-top: 32px; }

.dot-grid { position: absolute; top: -16px; right: -16px; width: 96px; opacity: 0.2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; z-index: 1; }
.dot-grid span { width: 6px; height: 6px; border-radius: 50%; background: var(--ts-accent); }
.dot-grid--bl { top: auto; right: auto; bottom: -16px; left: -16px; }
.why-shape { position: absolute; bottom: -16px; left: -16px; width: 112px; height: 112px; border-radius: 50%; background: rgba(0,23,63,0.08); z-index: 0; }
.why-media .img-placeholder, .why-media .ts-img { aspect-ratio: 3 / 4; max-width: 420px; margin-left: auto; position: relative; z-index: 2; }

/* =====================================================================
   VISION / STATS
   ===================================================================== */
.vision-title { max-width: 700px; margin: 8px auto 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.stat { position: relative; }
.stat--divider::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 40px; background: var(--ts-border-dark); }
.stat-value { font-size: clamp(36px, 5vw, 64px); color: var(--ts-accent); display: block; }
.stat-label { color: var(--ts-text-3); margin-top: 8px; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process-wrap { position: relative; margin-top: 64px; }
.process-line { display: none; }
@media (min-width: 1024px) {
	.process-line { display: block; position: absolute; top: 50px; left: 16.6%; right: 16.6%; height: 0; border-top: 2px dashed rgba(var(--ts-accent-rgb), 0.4); }
}
.process-card {
	background: #fff; border-radius: var(--ts-radius-lg); padding: 40px; text-align: center;
	box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease); position: relative; z-index: 2;
}
.process-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.process-number {
	width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
	border: 2px solid var(--ts-accent); color: var(--ts-accent);
	display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; background: #fff;
}
.process-title { font-size: 22px; font-weight: 600; margin-top: 24px; }
.process-desc { color: var(--ts-text-2); margin-top: 12px; }

/* =====================================================================
   EXPERTISE
   ===================================================================== */
.expertise-media { width: 50%; position: relative; }
.expertise-content { width: 50%; }
.expertise-media .img-placeholder, .expertise-media .ts-img { aspect-ratio: 4 / 3; position: relative; z-index: 2; }

/* =====================================================================
   PRICING
   ===================================================================== */
.pricing-grid { margin-top: 48px; }
.pricing-card {
	position: relative; background: #fff; border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius-lg); padding: 40px; text-align: center;
	box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease);
}
.pricing-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.pricing-card.is-popular { border: 2px solid var(--ts-accent); box-shadow: 0 4px 24px rgba(var(--ts-accent-rgb), 0.15); }
.pricing-badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--ts-accent); color: #fff; font-size: 12px; font-weight: 600;
	letter-spacing: 0.5px; padding: 6px 16px; border-radius: var(--ts-radius);
}
.pricing-name { font-size: 24px; }
.pricing-desc { font-size: 14px; color: var(--ts-text-2); margin-top: 8px; }
.pricing-amount { margin-top: 24px; }
.pricing-currency { font-size: 24px; vertical-align: top; color: var(--ts-primary); font-weight: 700; }
.pricing-value { font-size: 56px; font-weight: 700; color: var(--ts-primary); }
.pricing-value--text { font-size: 40px; }
.pricing-period { color: var(--ts-text-2); }
.pricing-divider { border-top: 1px solid var(--ts-border); margin: 24px 0; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 0 8px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pricing-check { width: 16px; height: 16px; color: var(--ts-success); flex-shrink: 0; }
.pricing-cta { margin-top: 32px; width: 100%; }

/* =====================================================================
   CONTACT (home + page)
   ===================================================================== */
.home-contact-grid { display: flex; gap: 64px; }
.home-contact-info { width: 45%; }
.home-contact-form { width: 55%; }

.contact-info-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: rgba(var(--ts-accent-rgb), 0.15); color: var(--ts-accent); display: flex; align-items: center; justify-content: center; }
.contact-info-icon--soft { background: rgba(var(--ts-accent-rgb), 0.1); }
.contact-info-label { font-size: 14px; color: var(--ts-text-3); }
.home-contact-info .contact-info-label { color: var(--ts-text-3); }
.contact-info-value { font-size: 16px; color: #fff; display: block; }
.contact-info-list--light .contact-info-label { color: var(--ts-text-2); }
.contact-info-list--light .contact-info-value { color: var(--ts-primary); }

.contact-card { background: #fff; border-radius: var(--ts-radius-lg); padding: 48px; box-shadow: var(--ts-shadow-float); }
.contact-card-title { font-size: 28px; }
.contact-card-sub { font-size: 14px; color: var(--ts-text-2); margin-top: 8px; margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius); font-size: 15px; font-family: inherit; color: var(--ts-text);
	background: #fff; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--ts-accent); box-shadow: 0 0 0 3px rgba(var(--ts-accent-rgb), 0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.ts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-notice { padding: 14px 18px; border-radius: var(--ts-radius); font-size: 14px; margin-bottom: 20px; }
.form-notice--success { background: rgba(16,185,129,0.12); color: #047857; }
.form-notice--error { background: rgba(239,68,68,0.12); color: #b91c1c; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
.faq-item { border-radius: var(--ts-radius-lg); overflow: hidden; background: var(--ts-muted-bg); transition: background 0.3s ease, box-shadow 0.3s ease; }
.faq-item.is-open { background: #fff; box-shadow: var(--ts-shadow-card); }
.faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 24px; background: transparent; border: none; text-align: left;
	font-size: 18px; font-weight: 600; color: var(--ts-primary);
}
.faq-chevron { color: var(--ts-text-2); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 2px 24px 22px; color: var(--ts-text-2); }
.faq-answer-inner > * + * { margin-top: 12px; }
.faq-answer-inner a { color: var(--ts-accent); text-decoration: underline; }
.faq-answer-inner ul, .faq-answer-inner ol { padding-left: 20px; }
.faq-answer-inner ul { list-style: disc; }
.faq-answer-inner ol { list-style: decimal; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonial-slider { position: relative; max-width: 720px; margin: 48px auto 0; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 16px; }
.testimonial-card { background: #fff; border-radius: var(--ts-radius-lg); padding: 40px; box-shadow: var(--ts-shadow-card); }
.testimonial-quote { font-size: 18px; line-height: 1.6; font-style: italic; color: var(--ts-text); margin-top: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--ts-border); margin-top: 24px; padding-top: 24px; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.testimonial-name { font-size: 18px; font-weight: 600; color: var(--ts-primary); }
.testimonial-role { font-size: 14px; color: var(--ts-text-2); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--ts-shadow-card); border: none; color: var(--ts-primary); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.slider-arrow:hover { background: var(--ts-accent); color: #fff; }
.slider-arrow--prev { left: -16px; }
.slider-arrow--next { right: -16px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ts-border); border: none; transition: all 0.3s ease; }
.slider-dot.is-active { background: var(--ts-accent); transform: scale(1.25); }

/* =====================================================================
   BLOG CARDS / ARCHIVE
   ===================================================================== */
.blog-card { background: #fff; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-lg); overflow: hidden; box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease); }
.blog-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.blog-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-cat { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ts-accent); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--ts-radius); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; gap: 16px; font-size: 14px; color: var(--ts-text-2); }
.blog-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon { width: 14px; height: 14px; }
.blog-card-title { font-size: 20px; font-weight: 600; margin-top: 12px; line-height: 1.35; }
.blog-card-title a { color: var(--ts-primary); }
.blog-card-title a:hover { color: var(--ts-accent); }
.blog-card-excerpt { font-size: 14px; color: var(--ts-text-2); margin-top: 8px; }

.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 12px; justify-content: center; border-radius: var(--ts-radius); background: #fff; border: 1px solid var(--ts-border); color: var(--ts-primary); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ts-accent); border-color: var(--ts-accent); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ts-accent); color: var(--ts-accent); }
.pagination .page-numbers .ts-icon { width: 16px; height: 16px; }

.empty-state { text-align: center; padding: 80px 0; }
.empty-state h3 { font-size: 28px; }
.empty-state p { color: var(--ts-text-2); margin-top: 12px; }

/* =====================================================================
   PAGE BANNER / BREADCRUMB
   ===================================================================== */
.page-banner { min-height: 400px; padding: 150px 0 80px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.page-banner-title { font-size: clamp(34px, 5vw, 64px); letter-spacing: -1px; color: #fff; margin-top: 8px; }
.breadcrumb { margin-top: 16px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ts-text-3); }
.breadcrumb li { list-style: none; display: inline-flex; align-items: center; }
.breadcrumb a { color: var(--ts-text-3); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: var(--ts-text-3); }
.breadcrumb-current { color: #fff; }

/* =====================================================================
   CTA SECTION (full-width dark, centered — mirrors React CTABanner)
   ===================================================================== */
.cta-section { padding-top: 96px; padding-bottom: 96px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* =====================================================================
   ABOUT — STORY (two-col)
   ===================================================================== */
.two-col { display: flex; align-items: center; gap: 64px; }
.two-col-text { width: 50%; }
.two-col-media { width: 50%; }
.two-col-text .btn { margin-top: 32px; }
.two-col-media .img-placeholder, .two-col-media .ts-img { max-width: 520px; margin-left: auto; }

/* =====================================================================
   ABOUT PAGE EXTRAS
   ===================================================================== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { background: #fff; border-radius: var(--ts-radius-lg); padding: 48px; box-shadow: var(--ts-shadow-card); }
.mv-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.mv-icon .ts-icon { width: 32px; height: 32px; }
.mv-title { font-size: 30px; margin-bottom: 12px; }
.mv-card p { color: var(--ts-text-2); }

/* Team — white cards (mirrors React TeamSection) */
.team-grid { margin-top: 8px; }
.team-card { background: #fff; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-lg); overflow: hidden; box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease); }
.team-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.team-photo { aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(135deg, rgba(var(--ts-accent-rgb), 0.14), rgba(var(--ts-accent-rgb), 0.04)); display: flex; align-items: center; justify-content: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--ts-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; box-shadow: var(--ts-shadow-btn); }
.team-card-body { padding: 24px; text-align: center; }
.team-name { font-size: 20px; color: var(--ts-primary); }
.team-role { color: var(--ts-accent); font-size: 14px; margin-top: 4px; }
.team-socials { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.team-socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--ts-muted-bg); color: var(--ts-text-2); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.team-socials a:hover { background: var(--ts-accent); color: #fff; }
.team-socials .ts-icon { width: 15px; height: 15px; }

/* =====================================================================
   CONTACT PAGE (mirrors React: 3 info cards → form + map)
   ===================================================================== */
.contact-info-card { background: #fff; border-radius: var(--ts-radius-lg); padding: 40px; text-align: center; box-shadow: var(--ts-shadow-card); transition: all 0.35s var(--ts-ease); }
.contact-info-card:hover { box-shadow: var(--ts-shadow-hover); transform: translateY(-4px); }
.contact-info-card-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent); display: flex; align-items: center; justify-content: center; }
.contact-info-card-icon .ts-icon { width: 30px; height: 30px; }
.contact-info-card-title { font-size: 22px; }
.contact-info-card-detail { display: block; color: var(--ts-text-2); margin-top: 10px; }
a.contact-info-card-detail:hover { color: var(--ts-accent); }
.contact-info-card-sub { font-size: 14px; color: var(--ts-accent); margin-top: 4px; }

.contact-fm-grid { display: flex; gap: 64px; align-items: stretch; }
.contact-fm-form { width: 55%; }
.contact-fm-map { width: 45%; position: relative; min-height: 520px; border-radius: var(--ts-radius-lg); overflow: hidden; box-shadow: var(--ts-shadow-card); background: var(--ts-muted-bg); }
.contact-fm-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(0.3) saturate(0.85); }
.contact-map-card { position: absolute; bottom: 16px; left: 16px; right: 16px; max-width: 300px; background: #fff; border-radius: var(--ts-radius-lg); padding: 20px; box-shadow: var(--ts-shadow-float); }
.contact-map-card-title { font-size: 18px; }
.contact-map-card p { font-size: 14px; color: var(--ts-text-2); margin-top: 4px; }
.contact-map-card .link-arrow { margin-top: 10px; }
.contact-hours-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ts-border); color: var(--ts-text-2); font-size: 14px; }
.contact-hours-strip span { display: inline-flex; align-items: center; gap: 8px; }
.contact-hours-strip .ts-icon { width: 16px; height: 16px; color: var(--ts-accent); }

/* =====================================================================
   BLOG FILTER TABS (mirrors React BlogGrid tabs)
   ===================================================================== */
.blog-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.blog-tab { padding: 10px 24px; border-radius: var(--ts-radius); font-size: 14px; font-weight: 500; background: var(--ts-muted-bg); color: var(--ts-text-2); transition: all 0.3s ease; }
.blog-tab:hover { background: var(--ts-border); }
.blog-tab.is-active { background: var(--ts-accent); color: #fff; }

/* =====================================================================
   SINGLE / PAGE CONTENT
   ===================================================================== */
.single-post, .default-page { padding-top: 80px; }
.single-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ts-text-2); flex-wrap: wrap; margin-bottom: 24px; }
.single-meta span { display: inline-flex; align-items: center; gap: 6px; }
.single-cat { background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent); padding: 4px 14px; border-radius: var(--ts-radius); font-weight: 600; }
.single-thumb { border-radius: var(--ts-radius-lg); overflow: hidden; margin-bottom: 32px; }
.entry-content { font-size: 17px; line-height: 1.8; color: var(--ts-text); }
.entry-content > * + * { margin-top: 24px; }
.entry-content h2 { font-size: 32px; margin-top: 48px; }
.entry-content h3 { font-size: 24px; margin-top: 36px; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 8px; }
.entry-content blockquote { border-left: 4px solid var(--ts-accent); padding: 8px 24px; color: var(--ts-text-2); font-style: italic; background: var(--ts-muted-bg); border-radius: 0 var(--ts-radius) var(--ts-radius) 0; }
.entry-content img { border-radius: var(--ts-radius-lg); }
.single-tags { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-tags a { background: var(--ts-muted-bg); padding: 6px 14px; border-radius: var(--ts-radius); font-size: 13px; color: var(--ts-text-2); }
.single-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ts-border); flex-wrap: wrap; }
.single-nav a { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* comments */
.comments-area { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ts-border); }
.comments-title { font-size: 24px; margin-bottom: 24px; }
.comment-list { display: flex; flex-direction: column; gap: 24px; }
.comment-list ol { list-style: none; padding-left: 32px; }
.comment-body { background: var(--ts-muted-bg); padding: 24px; border-radius: var(--ts-radius-lg); }
.comment-form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--ts-border); border-radius: var(--ts-radius); font-family: inherit;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--ts-accent); }

/* =====================================================================
   SINGLE SERVICE DETAIL
   ===================================================================== */
.service-single-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.service-single-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 16px; background: rgba(var(--ts-accent-rgb), 0.1); color: var(--ts-accent); align-items: center; justify-content: center; margin-bottom: 24px; }
.service-single-icon .ts-icon { width: 36px; height: 36px; }
.service-single-thumb { border-radius: var(--ts-radius-lg); overflow: hidden; margin-bottom: 28px; }
.service-single-main .entry-content h3 { font-size: 24px; margin-top: 32px; }
.service-single-main .btn { margin-top: 32px; }
.service-single-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.service-aside-card { background: #fff; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-lg); padding: 28px; box-shadow: var(--ts-shadow-card); }
.service-aside-title { font-size: 20px; margin-bottom: 16px; }
.service-aside-list li { border-radius: var(--ts-radius); transition: background 0.25s ease; }
.service-aside-list li + li { margin-top: 4px; }
.service-aside-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ts-text); font-weight: 500; font-size: 15px; border-radius: var(--ts-radius); transition: background 0.25s ease, color 0.25s ease; }
.service-aside-list a:hover { background: var(--ts-muted-bg); color: var(--ts-accent); }
.service-aside-list li.is-active a { background: var(--ts-accent); color: #fff; }
.service-aside-icon { width: 18px; height: 18px; flex-shrink: 0; }
.service-aside-cta { background: linear-gradient(135deg, var(--ts-primary), var(--ts-dark-to)); border-radius: var(--ts-radius-lg); padding: 28px; color: #fff; }
.service-aside-cta h4 { color: #fff; font-size: 20px; }
.service-aside-cta p { color: var(--ts-text-3); margin: 8px 0 16px; font-size: 14px; }
.service-aside-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin-bottom: 16px; }
.service-aside-phone .ts-icon { width: 18px; height: 18px; color: var(--ts-accent); }

@media (max-width: 1024px) {
	.service-single-grid { grid-template-columns: 1fr; }
	.service-single-aside { position: static; }
}

/* =====================================================================
   404 / SEARCH
   ===================================================================== */
.error-404 { padding-top: 200px; }
.error-code { font-size: 120px; font-weight: 800; color: var(--ts-accent); line-height: 1; display: block; }
.error-actions { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.error-search { max-width: 480px; margin: 40px auto 0; }
.search-form { display: flex; gap: 12px; }
.search-field { flex: 1; padding: 14px 16px; border: 1px solid var(--ts-border); border-radius: var(--ts-radius); font-family: inherit; }
.search-field:focus { outline: none; border-color: var(--ts-accent); }

/* =====================================================================
   SOCIAL LINKS
   ===================================================================== */
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-link { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.social-link .ts-icon { width: 18px; height: 18px; }
.social-links--dark .social-link { background: rgba(255,255,255,0.08); color: #fff; }
.social-links--dark .social-link:hover { background: var(--ts-accent); }
.social-links--light .social-link { background: var(--ts-muted-bg); color: var(--ts-primary); }
.social-links--light .social-link:hover { background: var(--ts-accent); color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { color: var(--ts-text-3); }
.footer-top { padding-top: 80px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1.2fr 1.2fr 2fr; gap: 32px; }
.brand--footer .brand-name { color: #fff; }
.brand--footer .brand-sub { color: var(--ts-text-3); }
.footer-about { font-size: 14px; color: var(--ts-text-3); margin-top: 16px; max-width: 320px; }
.footer-col-title { font-size: 18px; color: #fff; margin-bottom: 20px; }
.footer-menu li + li { margin-top: 12px; }
.footer-menu a { font-size: 14px; color: #CBD5E1; display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
.footer-menu a:hover { color: #fff; transform: translateX(4px); }

/* ---- Bulletproof footer legibility ----
   A light baseline so NOTHING in any footer column (the "Our Services" list,
   a widget, a block, plain text) can render dark against the navy background. */
.site-footer .footer-col,
.site-footer .footer-col li,
.site-footer .footer-col p,
.site-footer .footer-col td,
.site-footer .footer-col label,
.site-footer .footer-col .widget,
.site-footer .footer-col .widget * { color: #CBD5E1; }
.site-footer .footer-col a { color: #CBD5E1; transition: color 0.3s ease; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-col .footer-col-title,
.site-footer .footer-col .widget-title,
.site-footer .footer-col h1,
.site-footer .footer-col h2,
.site-footer .footer-col h3,
.site-footer .footer-col h4,
.site-footer .footer-col h5 { color: #fff; }
/* keep the accent icons accent-coloured, not slate */
.site-footer .footer-col .ts-icon { color: var(--ts-accent); }

/* Any widget placed in the footer "Our Services" area stays tidy. */
.footer-col .widget { margin-bottom: 20px; }
.footer-col .widget ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col .widget-title { font-size: 18px; margin-bottom: 16px; }
.footer-col .widget input[type="text"],
.footer-col .widget input[type="search"],
.footer-col .widget input[type="email"] {
	width: 100%; padding: 10px 14px; border-radius: var(--ts-radius);
	border: 1px solid var(--ts-border-dark); background: rgba(255,255,255,0.06); color: #fff;
}
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ts-text-3); }
.footer-contact .ts-icon { width: 18px; height: 18px; color: var(--ts-accent); flex-shrink: 0; }
.footer-contact a { color: var(--ts-text-3); }
.footer-contact a:hover { color: #fff; }
.footer-legal { margin-top: 20px; font-size: 13px; color: var(--ts-text-3); line-height: 1.7; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; padding-left: 24px; padding-right: 24px; border-top: 1px solid var(--ts-border-dark); flex-wrap: wrap; }
.footer-copy { font-size: 14px; color: var(--ts-text-3); }
.footer-hours { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ts-text-3); }
.footer-hours .ts-icon { width: 16px; height: 16px; color: var(--ts-accent); }

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.back-to-top {
	position: fixed; bottom: 32px; right: 32px; z-index: 40; width: 48px; height: 48px;
	border-radius: 50%; background: var(--ts-accent); color: #fff; border: none;
	box-shadow: var(--ts-shadow-btn); display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(16px); transition: all 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ts-accent-hover); transform: translateY(-2px); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
[data-reveal], [data-reveal-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-revealed, [data-reveal-stagger].is-revealed > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	[data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
	:root { --ts-section: 90px; }
	.primary-nav, .header-phone, .header-cta { display: none; }
	.menu-toggle { display: flex; }
	.hero-grid, .about-grid, .why-grid, .expertise-grid, .home-contact-grid, .two-col, .contact-fm-grid { flex-direction: column; gap: 48px; }
	.hero-content, .hero-media, .about-media, .about-content, .why-content, .why-media, .expertise-media, .expertise-content, .home-contact-info, .home-contact-form, .two-col-text, .two-col-media, .contact-fm-form, .contact-fm-map { width: 100%; }
	.two-col-media .img-placeholder { margin: 0 auto; }
	.why-grid { flex-direction: column-reverse; }
	.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	:root { --ts-section: 72px; }
	.container-main { padding-left: 16px; padding-right: 16px; }
	.card-grid--3, .card-grid--4, .stats-grid, .mv-grid, .form-row { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.section-head--split { flex-direction: column; align-items: flex-start; }
	.hero { padding-top: 120px; }
	.page-banner { padding-top: 130px; }
	.contact-card { padding: 28px; }
	.cta-banner-inner { padding: 32px; flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.slider-arrow { display: none; }
	.error-404 { padding-top: 150px; }
}

@media (max-width: 480px) {
	.stats-grid { grid-template-columns: 1fr; }
	.hero-trust { gap: 16px; }
	.about-image--secondary { display: none; }
}
