/* =========================================================
   Fien Digital — main.css
   Design system, layout, components, and page sections.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
	--red: #E63030;
	--red-600: #D02525;
	--red-700: #B01A1A;
	--red-50: #FFF1F1;
	--red-100: #FFE1E1;

	--black: #0B0B0F;
	--charcoal: #1E1F26;
	--ink: #14151A;
	--muted: #5B5F6B;
	--muted-2: #8A8F9C;
	--line: #ECEEF2;
	--line-2: #E3E6EC;

	--bg: #FFFFFF;
	--bg-soft: #FAFAFB;
	--bg-2: #F5F6F8;

	--green: #16A34A;
	--green-50: #E8F7EE;
	--blue: #1877F2;
	--blue-2: #4267B2;
	--yellow: #F4B400;
	--google-blue: #4285F4;
	--google-green: #34A853;
	--google-yellow: #FBBC05;
	--google-red: #EA4335;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-xl: 28px;

	--shadow-xs: 0 1px 2px rgba(15, 17, 25, .04);
	--shadow-sm: 0 2px 6px rgba(15, 17, 25, .05), 0 1px 2px rgba(15, 17, 25, .04);
	--shadow: 0 12px 40px -12px rgba(15, 17, 25, .12), 0 4px 12px -4px rgba(15, 17, 25, .06);
	--shadow-lg: 0 30px 80px -30px rgba(15, 17, 25, .18), 0 8px 20px -6px rgba(15, 17, 25, .08);

	--container: 1240px;

	--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--bg);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	min-width: 320px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); overflow-wrap: break-word; word-wrap: break-word; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--black); color: #fff; }
.section--soft { background: var(--bg-soft); }

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

@media (max-width: 1024px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
	white-space: nowrap;
	position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(230,48,48,.55); }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 14px 36px -10px rgba(230,48,48,.7); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn--outline:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { color: var(--red); padding: 10px 0; }
.btn--ghost:hover { color: var(--red-700); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn .fien-icon { transition: transform .2s ease; }
.btn:hover .fien-icon { transform: translateX(2px); }

/* ---------- Utility ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.eyebrow::before {
	content: '';
	width: 18px; height: 2px;
	background: var(--red);
	display: inline-block;
}
.eyebrow--plain::before { display: none; }

.pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--green-50);
	color: var(--green);
	font-size: 12px; font-weight: 600;
}
.pill::before {
	content: '';
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}
.pill--red { background: var(--red-50); color: var(--red); }
.pill--red::before { background: var(--red); box-shadow: 0 0 0 4px rgba(230,48,48,.15); }
.pill--gray { background: var(--bg-2); color: var(--muted); }
.pill--gray::before { display: none; }

.tag {
	display: inline-flex; align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bg-2);
	color: var(--muted);
	font-size: 12px; font-weight: 600;
	border: 1px solid transparent;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	padding: 10px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 14px; font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 8px 20px -8px rgba(230,48,48,.5); }

.dropdown {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 14px; font-weight: 500;
	cursor: pointer;
	transition: border-color .15s ease;
}
.dropdown:hover { border-color: var(--ink); }

/* ---------- Toggle switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.switch__track { width: 40px; height: 22px; background: var(--red); border-radius: 999px; position: relative; transition: background .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 21px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .2s; }
.switch.is-off .switch__track { background: var(--line-2); }
.switch.is-off .switch__track::after { left: 3px; }

/* ---------- Star row ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--red); }
.stars .fien-icon { color: var(--red); }

/* ---------- Avatar stack ---------- */
.avatars { display: inline-flex; align-items: center; }
.avatar {
	width: 36px; height: 36px; border-radius: 50%;
	background: linear-gradient(135deg, #ddd, #bbb);
	border: 2px solid #fff;
	margin-left: -10px;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
	background-size: cover; background-position: center;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: #fff; font-size: 12px;
}
.avatar:first-child { margin-left: 0; }
.avatar--a { background: linear-gradient(135deg, #ffb199, #ff6a88); }
.avatar--b { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); color: #1a3a6b; }
.avatar--c { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.avatar--d { background: linear-gradient(135deg, #fddb92, #d1fdff); color: #7a5b00; }
.avatar--e { background: linear-gradient(135deg, #84fab0, #8fd3f4); color: #124a2c; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.fien-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.fien-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 76px;
	gap: 24px;
}
.fien-logo {
	font-weight: 900; letter-spacing: -0.02em; font-size: 20px;
	display: inline-flex; align-items: center; gap: 8px;
}
.fien-logo__mark {
	width: 26px; height: 26px; border-radius: 8px;
	background: var(--red);
	position: relative;
	box-shadow: 0 6px 16px -6px rgba(230,48,48,.6);
}
.fien-logo__mark::after {
	content: ''; position: absolute; inset: 6px;
	border-radius: 4px; background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% 40%, 55% 40%, 55% 100%, 0 100%);
}
.fien-logo__mark--dark { background: #fff; }
.fien-logo__mark--dark::after { background: var(--red); }
.fien-logo em { font-style: normal; color: var(--red); }

.fien-nav__menu { display: flex; align-items: center; gap: 4px; }
.fien-nav__link {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 14px;
	font-size: 15px; font-weight: 500;
	color: var(--ink);
	border-radius: 8px;
	position: relative;
	transition: color .15s ease;
}
.fien-nav__link:hover { color: var(--red); }
.fien-nav__item.is-active .fien-nav__link { color: var(--ink); }
.fien-nav__item.is-active .fien-nav__link::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
	height: 2px; background: var(--red); border-radius: 2px;
}
.fien-nav__caret { opacity: .7; transition: transform .2s ease; }
.fien-nav__item.has-dropdown:hover .fien-nav__caret { transform: rotate(180deg); }
.fien-header__cta { display: inline-flex; align-items: center; gap: 12px; }

/* Dropdown panels */
.fien-nav__item { position: relative; }
.fien-nav__item.has-dropdown::after {
	content: '';
	position: absolute;
	left: 0; right: 0; top: 100%;
	height: 14px;
}
.fien-nav__panel {
	position: absolute;
	top: calc(100% + 12px);
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-lg);
	box-shadow: 0 40px 80px -20px rgba(15, 17, 25, .22), 0 12px 32px -8px rgba(15, 17, 25, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 200;
	overflow: hidden;
}
.fien-nav__panel::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 12px; height: 12px;
	background: #fff;
	border-top: 1px solid var(--line-2);
	border-left: 1px solid var(--line-2);
}
.fien-nav__panel--simple::before { left: 32px; transform: rotate(45deg); }

/* Defensive: style default WordPress menu classes in case markup differs.
   Also handles menus that mix Walker output with WP defaults. */
.fien-nav__menu { flex-wrap: wrap; row-gap: 4px; }
.fien-nav__menu .menu-item {
	position: relative;
	list-style: none;
}
.fien-nav__menu .menu-item > a {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 14px;
	font-size: 15px; font-weight: 500;
	color: var(--ink);
	border-radius: 8px;
	text-decoration: none;
	transition: color .15s ease;
}
.fien-nav__menu .menu-item > a:hover { color: var(--red); }
.fien-nav__menu .current-menu-item > a,
.fien-nav__menu .current-menu-parent > a,
.fien-nav__menu .current-menu-ancestor > a { position: relative; }
.fien-nav__menu .current-menu-item > a::after,
.fien-nav__menu .current-menu-parent > a::after,
.fien-nav__menu .current-menu-ancestor > a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
	height: 2px; background: var(--red); border-radius: 2px;
}

/* Native WP submenus (.sub-menu) — style as a simple dropdown panel */
.fien-nav__menu .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	min-width: 240px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-lg);
	box-shadow: 0 40px 80px -20px rgba(15, 17, 25, .22), 0 12px 32px -8px rgba(15, 17, 25, .12);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	list-style: none;
	margin: 0;
	z-index: 200;
}
.fien-nav__menu .menu-item-has-children:hover > .sub-menu,
.fien-nav__menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.fien-nav__menu .sub-menu .menu-item > a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
}
.fien-nav__menu .sub-menu .menu-item > a:hover { background: var(--bg-soft); }
.fien-nav__menu .menu-item-has-children > a::after {
	content: '';
	width: 8px; height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	opacity: .6;
	margin-left: 4px;
}
.fien-nav__item.has-dropdown:hover > .fien-nav__panel,
.fien-nav__item.has-dropdown:focus-within > .fien-nav__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Mega panel — Services */
.fien-nav__panel--mega {
	left: 50%;
	transform: translate(-50%, -6px);
	width: 620px;
}
.fien-nav__item.has-dropdown:hover > .fien-nav__panel--mega,
.fien-nav__item.has-dropdown:focus-within > .fien-nav__panel--mega {
	transform: translate(-50%, 0);
}
.fien-nav__panel-inner { padding: 12px; display: grid; gap: 4px; }
.fien-nav__sub {
	display: grid;
	grid-template-columns: 44px 1fr 18px;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border-radius: 14px;
	color: var(--ink);
	transition: background .15s ease, color .15s ease;
}
.fien-nav__sub:hover { background: var(--bg-soft); }
.fien-nav__sub:hover .fien-nav__sub-icon { background: var(--red); color: #fff; }
.fien-nav__sub:hover strong { color: var(--red); }
.fien-nav__sub-icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--red-50);
	color: var(--red);
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, color .15s ease;
}
.fien-nav__sub-body { display: grid; gap: 2px; }
.fien-nav__sub-body strong { font-size: 15px; font-weight: 700; transition: color .15s ease; }
.fien-nav__sub-body span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fien-nav__sub-arrow { color: var(--muted); transition: transform .15s ease, color .15s ease; }
.fien-nav__sub:hover .fien-nav__sub-arrow { color: var(--red); transform: translateX(3px); }

.fien-nav__panel-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
}

/* Simple panel — Our Work */
.fien-nav__panel--simple {
	left: 0;
	min-width: 260px;
	padding: 10px;
}
.fien-nav__simple-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	transition: background .15s ease, color .15s ease;
}
.fien-nav__simple-link:hover { background: var(--bg-soft); color: var(--red); }
.fien-nav__simple-arrow { color: var(--muted); transition: transform .15s ease, color .15s ease; }
.fien-nav__simple-link:hover .fien-nav__simple-arrow { color: var(--red); transform: translateX(3px); }

@media (max-width: 1024px) {
	.fien-nav { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
	position: relative;
	padding: 72px 0 96px;
	background:
		radial-gradient(1000px 400px at 85% 10%, rgba(230,48,48,.06), transparent 60%),
		radial-gradient(600px 300px at 10% 90%, rgba(230,48,48,.04), transparent 60%),
		#fff;
	overflow: hidden;
}
.hero__grid {
	display: grid; grid-template-columns: 1.05fr 1fr;
	gap: 56px; align-items: center;
}
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title {
	font-size: clamp(40px, 5vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 18px 0 20px;
	font-weight: 900;
}
.hero__title .hl { color: var(--red); display: block; }
.hero__lead {
	font-size: 18px;
	color: var(--muted);
	max-width: 560px;
	margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__trust { display: flex; align-items: center; gap: 16px; }
.hero__trust p { margin: 0; color: var(--muted); font-size: 14px; }

/* Hero dashboard */
.dash {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 22px;
	box-shadow: var(--shadow-lg);
}
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.dash__title .dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 4px rgba(230,48,48,.15); }
.dash__actions { display: inline-flex; align-items: center; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px;
	transition: transform .15s ease, box-shadow .2s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kpi__label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kpi__value { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green); margin-top: 2px; }
.kpi__delta.is-down { color: var(--red); }
.kpi__spark { margin-top: 6px; height: 24px; }

.dash__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.card-inner {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px;
}
.card-inner h5 { font-size: 13px; margin-bottom: 8px; }
.legend { display: inline-flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.chart { position: relative; }
.tooltip-box {
	position: absolute; top: 10%; left: 55%;
	background: var(--ink); color: #fff;
	font-size: 12px; padding: 8px 10px; border-radius: 10px;
	box-shadow: var(--shadow);
	pointer-events: none;
}
.tooltip-box strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tooltip-box em { font-style: normal; color: #6ee7a1; font-weight: 700; }
.tooltip-box::after {
	content: ''; position: absolute; bottom: -5px; left: 20px;
	width: 10px; height: 10px; background: var(--ink);
	transform: rotate(45deg);
}

.donut-row { display: flex; align-items: center; gap: 14px; }
.donut-legend { flex: 1; }
.donut-legend li { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 4px 0; color: var(--muted); }
.donut-legend li span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.donut-legend i { width: 8px; height: 8px; border-radius: 2px; }

.mini-btn {
	display: inline-flex; align-items: center; gap: 4px;
	background: #fff; border: 1px solid var(--line-2);
	color: var(--ink); font-size: 12px; font-weight: 600;
	padding: 8px 12px; border-radius: 999px; cursor: pointer;
	transition: all .15s ease;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.mini-btn--red:hover { background: var(--red-600); }

/* Range picker dropdown menu (dashboard) */
[data-range-picker] { position: relative; }
.range-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	box-shadow: 0 30px 60px -20px rgba(15, 17, 25, .22), 0 8px 20px -6px rgba(15, 17, 25, .08);
	padding: 6px;
	z-index: 60;
	display: grid;
	gap: 2px;
}
.range-menu__item {
	text-align: left;
	padding: 10px 12px;
	border-radius: 10px;
	background: transparent;
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px;
}
.range-menu__item:hover { background: var(--bg-soft); color: var(--red); }
.range-menu__item.is-active { background: var(--red-50); color: var(--red); font-weight: 700; }
.range-menu__item.is-active::after { content: '✓'; font-weight: 700; }

/* Clickable card affordance */
[data-href] { cursor: pointer; }
[data-href]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Testimonial slider */
.testi-track { position: relative; }
.testi-item[hidden] { display: none; }
.slider-dots .dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
	padding: 0; border: 0; cursor: pointer; transition: all .2s ease;
}
.slider-dots .dot:hover { background: var(--muted); }
.slider-dots .dot.is-active { background: var(--red); width: 24px; border-radius: 4px; }

.cursor-hover {
	position: absolute;
	right: -6px; bottom: 28px;
	pointer-events: none;
	filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
}

/* =========================================================
   BRAND STRIP
   ========================================================= */
.brand-strip { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.brand-strip__label { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 28px; }
.brand-strip__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.brand-strip__row .arrow-btn { flex-shrink: 0; }
.brand-strip__logos { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.brand-logo {
	height: 60px;
	display: flex; align-items: center; justify-content: center;
	color: #7a7f8b;
	font-weight: 700;
	letter-spacing: -0.01em;
	filter: grayscale(1);
	opacity: .8;
	transition: all .2s ease;
	border-radius: 12px;
	padding: 0 12px;
}
.brand-logo:hover { filter: none; opacity: 1; color: var(--ink); background: var(--bg-soft); }

.brand-logo--pools { font-family: var(--font-sans); font-size: 15px; text-align: center; letter-spacing: .04em; }
.brand-logo--pools .accent { color: #0a86c9; }
.brand-logo--medspa { font-family: 'Times New Roman', serif; font-size: 18px; letter-spacing: .08em; }
.brand-logo--transport { font-size: 15px; font-weight: 800; letter-spacing: .05em; }
.brand-logo--google { font-family: Arial, sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.brand-logo--google b:nth-child(1) { color: #4285F4; font-weight: 700; }
.brand-logo--google b:nth-child(2) { color: #EA4335; font-weight: 700; }
.brand-logo--google b:nth-child(3) { color: #FBBC05; font-weight: 700; }
.brand-logo--google b:nth-child(4) { color: #4285F4; font-weight: 700; }
.brand-logo--google b:nth-child(5) { color: #34A853; font-weight: 700; }
.brand-logo--google b:nth-child(6) { color: #EA4335; font-weight: 700; }

.arrow-btn {
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; border: 1px solid var(--line-2);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--ink); cursor: pointer;
	transition: all .15s ease;
	box-shadow: var(--shadow-xs);
}
.arrow-btn:hover { border-color: var(--red); color: var(--red); }
.arrow-btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.arrow-btn--red:hover { background: var(--red-600); color: #fff; }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head--left { text-align: left; margin-left: 0; }
.sec-head h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.service-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 32px;
	transition: all .25s ease;
	overflow: hidden;
	display: grid;
	gap: 24px;
}
.service-card:hover {
	border-color: var(--red);
	box-shadow: 0 30px 60px -30px rgba(230,48,48,.25);
	transform: translateY(-4px);
}
.service-card__num { font-family: var(--font-mono); font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: .1em; }
.service-card__icon {
	width: 56px; height: 56px;
	background: var(--red-50);
	color: var(--red);
	border-radius: 16px;
	display: inline-flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 26px; letter-spacing: -0.02em; }
.service-card p { color: var(--muted); }
.service-card__bullets { display: grid; gap: 8px; }
.service-card__bullets li {
	display: flex; align-items: center; gap: 10px;
	font-size: 14px; color: var(--ink); font-weight: 500;
}
.service-card__bullets li::before {
	content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.service-card__foot {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.service-card--split { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .service-card--split { grid-template-columns: 1fr; } }

/* Web design mockup */
.mock-web {
	background:
		radial-gradient(600px 260px at 20% 10%, rgba(230,48,48,.06), transparent 60%),
		linear-gradient(180deg, #f6f7fb, #eef1f6);
	border-radius: var(--radius-lg);
	padding: 24px;
	position: relative;
	min-height: 300px;
	display: flex; align-items: center; justify-content: center;
}
.mock-macbook {
	width: 100%; max-width: 420px;
	background: #1e1f26;
	border-radius: 12px 12px 4px 4px;
	padding: 8px 8px 0;
	box-shadow: var(--shadow-lg);
	position: relative;
}
.mock-macbook::after {
	content: ''; display: block;
	height: 10px; margin: 0 -24px;
	background: linear-gradient(180deg, #2a2c34, #14151a);
	border-radius: 0 0 12px 12px;
}
.mock-screen {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16/10;
	display: flex; flex-direction: column;
}
.mock-topbar { height: 22px; background: #f5f6f8; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 8px; gap: 4px; }
.mock-topbar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdee4; display: inline-block; }
.mock-topbar i:nth-child(1) { background: #ff5f57; }
.mock-topbar i:nth-child(2) { background: #febc2e; }
.mock-topbar i:nth-child(3) { background: #28c840; }
.mock-screen img { width: 100%; height: 100%; object-fit: cover; display: block; flex: 1; }

.mock-phone {
	position: absolute; right: -20px; bottom: -20px;
	width: 110px;
	background: #1e1f26;
	border-radius: 14px;
	padding: 4px;
	box-shadow: var(--shadow-lg);
}
.mock-phone .mock-screen { border-radius: 10px; aspect-ratio: 9/19; }

/* Pool hero used inside site mockups */
.pool-hero {
	background:
		linear-gradient(180deg, rgba(10,134,201,.65), rgba(10,134,201,.85)),
		radial-gradient(400px 200px at 50% 0%, #7dd3fc, #0284c7 60%, #075985 100%);
	color: #fff;
	flex: 1;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 10px;
	position: relative;
	overflow: hidden;
}
.pool-hero::before {
	content: '';
	position: absolute; inset: 0;
	background:
		radial-gradient(300px 60px at 30% 60%, rgba(255,255,255,.25), transparent 70%),
		radial-gradient(200px 40px at 70% 80%, rgba(255,255,255,.2), transparent 70%),
		repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 12px);
	mix-blend-mode: screen;
}
.pool-hero__nav { position: absolute; top: 6px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 6px; font-weight: 700; letter-spacing: .1em; }
.pool-hero__nav span { display: inline-flex; gap: 8px; }
.pool-hero h6 { font-size: 12px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pool-hero small { font-size: 6px; opacity: .9; letter-spacing: .05em; }
.pool-hero__cta {
	display: inline-block; margin-top: 4px;
	background: var(--red); color: #fff;
	font-size: 6px; font-weight: 700;
	padding: 3px 6px; border-radius: 999px;
	align-self: flex-start;
}

/* Instagram grid mockup */
.mock-ig {
	background: var(--bg-soft);
	border-radius: var(--radius-lg);
	padding: 16px;
	border: 1px solid var(--line);
}
.mock-ig__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-ig__head .avatar { margin: 0; width: 36px; height: 36px; }
.mock-ig__head strong { font-size: 14px; }
.mock-ig__head small { display: block; font-size: 11px; color: var(--muted); }
.mock-ig__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.mock-ig__tile {
	aspect-ratio: 1/1;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex; align-items: flex-end;
	padding: 8px;
}
.mock-ig__tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.mock-ig__tile span { position: relative; z-index: 1; }
.mock-ig__tile--1 { background: radial-gradient(circle at 60% 30%, #f9a8a8, #d64545); }
.mock-ig__tile--2 { background: linear-gradient(135deg, #0a86c9, #7dd3fc); }
.mock-ig__tile--3 { background: linear-gradient(135deg, #f4b400, #f97316); }
.mock-ig__tile--4 { background: linear-gradient(135deg, #6b7280, #1f2937); }
.mock-ig__tile--5 { background: linear-gradient(135deg, #a8e6cf, #16a34a); }
.mock-ig__tile--6 { background: linear-gradient(135deg, #e11d48, #7c1a1a); }

.mock-ig__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.85);
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--ink);
	z-index: 2;
	backdrop-filter: blur(4px);
}

/* Google Ads panel */
.g-ads {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 20px;
	position: relative;
}
.g-ads__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.g-ads__logo {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: Arial, sans-serif; font-size: 15px; font-weight: 500;
}
.g-ads__logo b:nth-child(1) { color: #4285F4; }
.g-ads__logo b:nth-child(2) { color: #EA4335; }
.g-ads__logo b:nth-child(3) { color: #FBBC05; }
.g-ads__logo b:nth-child(4) { color: #4285F4; }
.g-ads__logo b:nth-child(5) { color: #34A853; }
.g-ads__logo b:nth-child(6) { color: #EA4335; }
.g-ads__logo span { color: var(--muted); font-weight: 500; }

.meta-ads {
	background: linear-gradient(180deg, #ffffff, #f2f6ff);
	border: 1px solid #dbe7ff;
	border-radius: var(--radius-lg);
	padding: 20px;
	position: relative;
}
.meta-ads__logo {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 15px; color: var(--blue);
}
.meta-ads__mark {
	width: 22px; height: 22px; border-radius: 50%;
	background: linear-gradient(135deg, #0064e0 0%, #0064e0 50%, #ffffff 100%);
	position: relative;
}

/* =========================================================
   CASE STUDIES CAROUSEL
   ========================================================= */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.case-carousel { position: relative; }
.case-carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .case-carousel__track { grid-template-columns: 1fr; } }

.case-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: all .2s ease;
	display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-2); }
.case-card__media { padding: 24px; background: var(--bg-soft); border-bottom: 1px solid var(--line); min-height: 240px; display: flex; align-items: center; justify-content: center; position: relative; }
.case-card__body { padding: 24px; display: grid; gap: 16px; }
.case-card__meta { display: flex; align-items: center; justify-content: space-between; }
.case-card__title { font-size: 20px; letter-spacing: -0.01em; }
.case-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-metric { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.case-metric strong { display: block; font-size: 18px; letter-spacing: -0.02em; font-weight: 800; }
.case-metric.up strong { color: var(--green); }
.case-metric.down strong { color: var(--red); }
.case-metric span { font-size: 11px; color: var(--muted); font-weight: 600; }

.carousel-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: calc(100% + 40px); left: -20px; display: flex; justify-content: space-between; pointer-events: none; }
.carousel-arrows .arrow-btn { pointer-events: auto; }

/* =========================================================
   MARKETING TOOL MODULES
   ========================================================= */
.tool-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; }
@media (max-width: 1100px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-sm); }
.tool-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tool-card__title { font-size: 16px; font-weight: 700; }

.tabs { display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 10px 12px; font-size: 13px; color: var(--muted); font-weight: 600; position: relative; cursor: pointer; }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; }
.tabs--full { display: flex; }

/* Content calendar */
.calendar { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.calendar__row { display: contents; }
.calendar__day { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 12px; text-transform: uppercase; letter-spacing: .06em; }
.calendar__event {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 12px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px;
	position: relative;
}
.calendar__event .type-dot { width: 8px; height: 8px; border-radius: 50%; }
.calendar__event .type-dot.blog { background: var(--red); }
.calendar__event .type-dot.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.calendar__event .type-dot.fb { background: var(--blue); }
.calendar__event .type-dot.yt { background: #FF0000; }
.calendar__event .type-dot.li { background: #0A66C2; }
.calendar__event strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.calendar__event small { font-size: 11px; color: var(--muted); }
.calendar__event .notif {
	position: absolute; right: -4px; top: -4px;
	width: 8px; height: 8px; border-radius: 50%; background: var(--red);
	box-shadow: 0 0 0 3px #fff;
}

/* Google Ads dashboard mini */
.gads-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.gads-kpis > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.gads-kpis span { font-size: 11px; color: var(--muted); font-weight: 600; }
.gads-kpis strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

/* Audience insights */
.loc-bars { display: grid; gap: 10px; }
.loc-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--red-600)); border-radius: 999px; }
.loc-row .pct { font-weight: 700; color: var(--ink); font-size: 12px; }

.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.demo-donut { position: relative; }
.demo-legend { font-size: 12px; }
.demo-legend div { display: flex; justify-content: space-between; padding: 3px 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 40px;
	box-shadow: var(--shadow-sm);
	max-width: 900px; margin: 0 auto;
}
.faq h2 { font-size: 30px; margin-bottom: 24px; }
.faq__row { border-top: 1px solid var(--line); padding: 20px 4px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; cursor: pointer; }
.faq__row:last-child { border-bottom: 1px solid var(--line); }
.faq__q { font-weight: 700; font-size: 17px; color: var(--ink); }
.faq__toggle {
	width: 32px; height: 32px; border-radius: 50%;
	border: 1px solid var(--line-2); color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center;
	transition: all .2s ease;
}
.faq__row.is-open .faq__toggle { background: var(--red); color: #fff; border-color: var(--red); }
.faq__answer { grid-column: 1 / -1; color: var(--muted); font-size: 15px; line-height: 1.6; padding-top: 8px; display: none; }
.faq__row.is-open .faq__answer { display: block; }

/* =========================================================
   FINAL CTA + TESTIMONIAL
   ========================================================= */
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 1024px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card {
	background: radial-gradient(700px 300px at 80% 20%, rgba(230,48,48,.3), transparent 60%),
	            radial-gradient(500px 300px at 20% 90%, rgba(230,48,48,.2), transparent 60%),
	            linear-gradient(160deg, #0B0B0F 0%, #14151A 60%, #1E1F26 100%);
	color: #fff;
	border-radius: var(--radius-xl);
	padding: 56px 48px;
	position: relative;
	overflow: hidden;
	min-height: 480px;
	display: flex; flex-direction: column; justify-content: center;
}
.cta-card::before {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(2px 200px at 15% 100%, rgba(230,48,48,.9), transparent),
		radial-gradient(2px 240px at 25% 90%, rgba(255,120,120,.5), transparent),
		radial-gradient(2px 160px at 85% 20%, rgba(230,48,48,.7), transparent);
	filter: blur(1px);
	transform: rotate(20deg);
	opacity: .8;
}
.cta-card__inner { position: relative; z-index: 1; max-width: 520px; }
.cta-card h2 { color: #fff; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-card p { color: #cfd0d6; font-size: 17px; margin-bottom: 24px; }
.cta-card__checks { display: grid; gap: 10px; margin-bottom: 28px; }
.cta-card__checks li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #eaebef; }
.cta-card__checks .check { width: 22px; height: 22px; border-radius: 50%; background: var(--red); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.cta-card__foot { display: flex; align-items: center; gap: 16px; margin-top: 20px; color: #cfd0d6; font-size: 14px; }

.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; position: relative; box-shadow: var(--shadow-sm); }
.testi-card__quote { font-size: 200px; line-height: 1; color: var(--red); font-family: Georgia, serif; margin: 0; height: 60px; overflow: hidden; }
.testi-card blockquote { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0; line-height: 1.35; }
.testi-card__label { font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; font-weight: 700; margin-top: 24px; }
.testi-card__foot { display: flex; align-items: center; justify-content: space-between; }
.slider-dots { display: inline-flex; gap: 6px; }
.slider-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.slider-dots i.is-active { background: var(--red); width: 24px; border-radius: 4px; }

/* =========================================================
   FOOTER
   ========================================================= */
.fien-footer { background: #fff; border-top: 1px solid var(--line); padding: 80px 0 32px; }
.fien-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .fien-footer__top { grid-template-columns: 1fr 1fr; } }
.fien-footer h3 { font-size: 28px; letter-spacing: -0.02em; }
.fien-footer h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.fien-footer li a { color: var(--ink); font-size: 15px; padding: 6px 0; display: inline-block; }
.fien-footer li a:hover { color: var(--red); }
.social-row { display: inline-flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s; }
.social-row a:hover { background: var(--red); color: #fff; }
.fien-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; color: var(--muted); font-size: 13px; }

/* Sticky floating CTA + scroll top */
.floating-cta {
	position: fixed; right: 24px; bottom: 24px;
	z-index: 90;
	display: flex; align-items: center; gap: 12px;
}
.scroll-top {
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--red); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 30px -8px rgba(230,48,48,.5);
	cursor: pointer;
	transition: transform .15s;
}
.scroll-top:hover { transform: translateY(-2px); }

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.page-hero {
	padding: 96px 0 64px;
	background:
		radial-gradient(900px 300px at 90% 0%, rgba(230,48,48,.06), transparent 60%),
		#fff;
}
.page-hero__crumbs { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.page-hero .hl { color: var(--red); }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero__lead { font-size: 19px; max-width: 620px; margin-top: 16px; color: var(--muted); }

/* Service detail process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
.process__step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.process__num { font-family: var(--font-mono); color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.process__step h4 { font-size: 18px; margin: 6px 0 8px; }
.process__step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; transition: all .2s; }
.pkg:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pkg.is-featured { border-color: var(--red); box-shadow: 0 30px 60px -30px rgba(230,48,48,.3); position: relative; }
.pkg.is-featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 32px; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.pkg h3 { font-size: 22px; }
.pkg__price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 20px; }
.pkg__price strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--red); }
.pkg__price span { color: var(--muted); font-size: 14px; }
.pkg ul { display: grid; gap: 10px; margin: 20px 0 24px; }
.pkg ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.pkg ul li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--red-50); color: var(--red); display: inline-flex; align-items: center; justify-content: center; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M5 13l4 4L19 7' stroke='%23E63030' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: center; }

/* Industries grid */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ind-grid { grid-template-columns: 1fr; } }
.ind {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 28px; transition: all .2s;
	display: grid; gap: 14px; align-content: start;
}
.ind:hover { border-color: var(--red); box-shadow: 0 20px 40px -20px rgba(230,48,48,.2); transform: translateY(-3px); }
.ind__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-50); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ind h4 { font-size: 18px; }
.ind p { margin: 0; font-size: 14px; }
.ind .btn { padding: 0; color: var(--red); font-weight: 600; font-size: 13px; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; text-align: center; transition: all .2s; }
.team-card:hover { border-color: var(--red); }
.team-card .avatar { width: 88px; height: 88px; margin: 0 auto 14px; border: 3px solid var(--red-50); font-size: 28px; }
.team-card h5 { font-size: 16px; }
.team-card small { color: var(--muted); font-size: 13px; }

/* Insights / blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; transition: all .2s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card__cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red-50), var(--bg-2)); display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 700; padding: 24px; text-align: center; font-size: 15px; letter-spacing: -0.01em; position: relative; overflow: hidden; }
.blog-card__cover.style-1 { background: radial-gradient(600px 300px at 20% 20%, #ffe1e1, transparent), linear-gradient(135deg, #fff, #f7e9e9); }
.blog-card__cover.style-2 { background: linear-gradient(135deg, #0a86c9, #7dd3fc); color: #fff; }
.blog-card__cover.style-3 { background: linear-gradient(135deg, #14151a, #3a3d47); color: #fff; }
.blog-card__body { padding: 24px; display: grid; gap: 12px; }
.blog-card__meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.blog-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }

/* Global reach band */
.global-band {
	padding: 88px 0;
	background:
		radial-gradient(800px 400px at 90% 20%, rgba(230,48,48,.06), transparent 60%),
		var(--bg);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.global-band__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .global-band__grid { grid-template-columns: 1fr; } }
.global-band__copy p { max-width: 480px; font-size: 16px; color: var(--muted); }
.global-band__metrics { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.global-band__metrics strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--red); line-height: 1; }
.global-band__metrics span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 6px; display: block; }
.global-band__map { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-sm); }
.global-band__map svg { width: 100%; height: auto; display: block; }
.global-band__legend { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Metric row (about page) */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .metric-row { grid-template-columns: 1fr 1fr; } }
.metric-big { text-align: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.metric-big strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--red); display: block; }
.metric-big span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* Notes: chart SVGs are inlined in templates; consistent colors reference var() where possible via stroke/fill inline. */

/* =========================================================
   RESPONSIVE — Tablet & Mobile
   ========================================================= */

/* Prevent images and inline svgs from overflowing */
img, svg, video, canvas, iframe { max-width: 100%; }

/* Any content wider than viewport should scroll inside its container */
.dash, .card-inner, .g-ads, .meta-ads, .tool-card, .case-card, .faq, .cta-card, .testi-card, .service-card, .pkg, .ind, .team-card, .blog-card, .metric-big { min-width: 0; }
.dash > *, .card-inner > *, .tool-card > * { min-width: 0; }

/* CRITICAL: grid & flex children default to min-width:auto — prevents shrinking below content.
   Force them to be shrinkable so long words / wide content don't push past viewport. */
.hero__grid > *,
.hero__col,
.page-hero__grid > *,
.global-band__grid > *,
.grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.cta-grid > *,
.pkg-grid > *,
.ind-grid > *,
.team-grid > *,
.blog-grid > *,
.tool-grid > *,
.case-carousel__track > *,
.dash__body > *,
.kpis > *,
.brand-strip__logos > *,
.metric-row > *,
.process > * { min-width: 0; }

/* Enable clean word breaks on all major text */
h1, h2, h3, h4, h5, p, blockquote { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.hero__title, .page-hero h1 { hyphens: manual; -webkit-hyphens: manual; }

/* Tables & tab bars scroll horizontally instead of pushing the page */
.tabbar, .tabs, .chip-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabbar::-webkit-scrollbar, .tabs::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
	.container { padding: 0 24px; }
	.section { padding: 72px 0; }

	/* Show nav on tablet too (was hidden below 1024px) */
	.fien-nav { display: block; }
	.fien-nav__menu { justify-content: center; }

	.hero { padding: 56px 0 72px; }
	.hero__grid { gap: 40px; }
	.hero__title { font-size: clamp(34px, 6vw, 56px); }
	.hero__lead { font-size: 16px; }

	.dash { padding: 18px; }
	.kpis { grid-template-columns: repeat(2, 1fr); }
	.dash__body { grid-template-columns: 1fr; }

	.brand-strip__logos { grid-template-columns: repeat(2, 1fr); gap: 20px; }

	.sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
	.filter-bar { flex-direction: column; align-items: stretch; gap: 16px; }

	.service-card { padding: 24px; }
	.service-card--split { grid-template-columns: 1fr; }

	.tool-grid { grid-template-columns: 1fr; }

	.case-carousel__track { grid-template-columns: 1fr; }
	.case-card__metrics { grid-template-columns: repeat(3, 1fr); }
	.case-card__media { min-height: 200px; padding: 20px; }

	.faq { padding: 32px 24px; }
	.faq h2 { font-size: 26px; }

	.cta-grid { grid-template-columns: 1fr; }
	.cta-card { padding: 40px 28px; min-height: 380px; }
	.cta-card h2 { font-size: clamp(28px, 4.5vw, 38px); }
	.testi-card { padding: 32px 24px; min-height: 320px; }
	.testi-card blockquote { font-size: 20px; }

	.page-hero { padding: 64px 0 48px; }
	.page-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.page-hero h1 { font-size: clamp(34px, 6vw, 52px); }
	.page-hero__lead { font-size: 17px; }

	.process { grid-template-columns: repeat(2, 1fr); }
	.pkg-grid { grid-template-columns: 1fr; }
	.ind-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-grid { grid-template-columns: 1fr 1fr; }
	.metric-row { grid-template-columns: repeat(2, 1fr); }

	.global-band { padding: 64px 0; }
	.global-band__grid { grid-template-columns: 1fr; gap: 32px; }
	.global-band__map { padding: 20px; }
	.global-band__metrics { grid-template-columns: repeat(3, 1fr); gap: 20px; }

	/* Dropdown panels — go simple, full-width friendly */
	.fien-nav__panel--mega { width: min(600px, calc(100vw - 40px)); left: 50%; transform: translate(-50%, -6px); }
	.fien-nav__item.has-dropdown:hover > .fien-nav__panel--mega,
	.fien-nav__item.has-dropdown:focus-within > .fien-nav__panel--mega { transform: translate(-50%, 0); }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.section { padding: 56px 0; }
	.section--tight { padding: 40px 0; }

	.fien-header__inner { height: 64px; gap: 8px; }
	.fien-logo { font-size: 16px; }
	.fien-logo__mark { width: 22px; height: 22px; }

	/* On tiny screens hide nav (keep the CTA visible), user can use browser back or a burger later */
	.fien-nav { display: none; }
	.fien-header__cta .btn { padding: 9px 14px; font-size: 12px; }
	.fien-header__cta .btn .fien-icon { display: none; }

	.hero { padding: 32px 0 48px; }
	.hero__title { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.08; letter-spacing: -0.025em; }
	.hero__lead { font-size: 15px; max-width: 100%; }
	.hero .eyebrow { font-size: 10px; letter-spacing: .12em; }
	.hero__ctas .btn { flex: 1; justify-content: center; }
	.hero__trust { flex-wrap: wrap; gap: 12px; }
	.hero__trust p { font-size: 13px; }

	.eyebrow { font-size: 11px; letter-spacing: .14em; }

	.dash { padding: 14px; border-radius: 18px; }
	.dash__head { flex-wrap: wrap; gap: 10px; }
	.kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
	.kpi__value { font-size: 18px; }
	.tooltip-box { display: none; }
	.donut-row { flex-direction: column; gap: 12px; align-items: center; text-align: left; }
	.donut-legend { width: 100%; }

	.brand-strip { padding: 40px 0; }
	.brand-strip__logos { grid-template-columns: 1fr 1fr; gap: 12px; }
	.brand-logo { height: 48px; }

	.sec-head { margin-bottom: 32px; }
	.sec-head h2 { font-size: clamp(24px, 6vw, 32px); line-height: 1.15; }
	.sec-head p { font-size: 15px; }

	.service-card { padding: 20px; border-radius: 20px; gap: 18px; }
	.service-card h3 { font-size: 22px; }
	.service-card__foot { flex-direction: column; align-items: flex-start; gap: 8px; }

	.case-card__body { padding: 20px; gap: 12px; }
	.case-card__title { font-size: 18px; }
	.case-card__metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.case-metric { padding: 8px 10px; }
	.case-metric strong { font-size: 15px; }
	.case-metric span { font-size: 10px; }
	.case-card__media { min-height: 160px; padding: 14px; }

	/* Hide floating carousel arrows on mobile — user can swipe */
	.carousel-arrows { display: none; }

	.tool-card { padding: 16px; }
	.calendar { grid-template-columns: 72px 1fr; }
	.gads-kpis { grid-template-columns: repeat(2, 1fr); }

	.filter-bar { align-items: flex-start; }
	.chip-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }

	.faq { padding: 24px 18px; border-radius: 20px; }
	.faq__row { grid-template-columns: 1fr auto; gap: 12px; padding: 16px 4px; }
	.faq__q { font-size: 15px; }
	.faq__toggle { width: 28px; height: 28px; }
	.faq h2 { font-size: 22px; }

	.cta-card { padding: 32px 20px; min-height: 320px; }
	.cta-card h2 { font-size: clamp(24px, 6.5vw, 32px); }
	.cta-card p { font-size: 15px; }
	.cta-card__foot { flex-direction: column; align-items: flex-start; gap: 12px; }

	.testi-card { padding: 24px 20px; min-height: 260px; }
	.testi-card blockquote { font-size: 17px; }
	.testi-card__quote { font-size: 140px; height: 44px; }

	.fien-footer { padding: 48px 0 24px; }
	.fien-footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
	.fien-footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

	.floating-cta { right: 12px; bottom: 12px; gap: 8px; }
	.floating-cta .btn { padding: 10px 14px; font-size: 12px; }
	.scroll-top { width: 40px; height: 40px; }

	.page-hero { padding: 40px 0 24px; }
	.page-hero h1 { font-size: clamp(28px, 8vw, 40px); }
	.page-hero__lead { font-size: 15px; }
	.page-hero__crumbs { font-size: 12px; flex-wrap: wrap; }

	.process { grid-template-columns: 1fr; }
	.process__step { padding: 20px; }

	.pkg { padding: 24px; }
	.pkg__price strong { font-size: 22px; }

	.ind-grid { grid-template-columns: 1fr; }
	.ind { padding: 22px; }

	.team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.team-card { padding: 16px; }
	.team-card .avatar { width: 64px; height: 64px; font-size: 22px; }

	.blog-grid { grid-template-columns: 1fr; }
	.blog-card__body { padding: 20px; }

	.metric-row { grid-template-columns: 1fr 1fr; gap: 12px; }
	.metric-big { padding: 18px; }
	.metric-big strong { font-size: 32px; }
	.metric-big span { font-size: 11px; }

	.global-band { padding: 48px 0; }
	.global-band__copy h2 { font-size: clamp(24px, 6.5vw, 30px); }
	.global-band__copy p { font-size: 15px; }
	.global-band__metrics { grid-template-columns: 1fr; gap: 14px; }
	.global-band__map { padding: 14px; }

	/* Mockups shrink cleanly */
	.mock-web { min-height: 220px; padding: 14px; }
	.mock-macbook { max-width: 100%; }
	.mock-phone { width: 84px; right: -10px; bottom: -10px; }
	.mock-ig__grid { gap: 3px; }

	/* Book form */
	form.tool-card { padding: 22px 18px; }

	/* Full-width buttons where it makes sense */
	.btn--lg { padding: 14px 22px; font-size: 15px; }
}

/* ---------- Very small (≤ 380px) ---------- */
@media (max-width: 380px) {
	.container { padding: 0 12px; }
	.hero__title { font-size: 28px; }
	.hero__ctas { flex-direction: column; }
	.hero__ctas .btn { width: 100%; }
	.case-card__metrics { grid-template-columns: 1fr; }
	.brand-strip__logos { grid-template-columns: 1fr; }
	.kpis { grid-template-columns: 1fr; }
}
