/*
Theme Name: Farben Technique
Theme URI: https://farbentechnique.com
Author: Farben Technique (M) Sdn Bhd
Description: Custom block theme for Farben Technique, a WWRC Group company. Vibrant brand colours, ready-made sections and editable pages.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 3.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farben
*/

/* ---------- Base ---------- */
:root {
	--ft-navy: #002D72;
	--ft-navy-dark: #001A45;
	--ft-yellow: #FEDD00;
	--ft-red: #E4002B;
	--ft-red-deep: #D0002A;
	--ft-green: #3D8E4C;
	--ft-green-dark: #2E7D3E;
	--ft-forest: #0F3B26;
	--ft-ink: #1B2440;
	--ft-muted: #5A6478;
	--ft-light: #F6F8FC;
	--ft-chip: #F1F4FA;
	--ft-line: #D5DCE7;
	--ft-shadow: 0 6px 24px rgba(0, 45, 114, 0.10);
	--ft-blob-a: 58% 42% 55% 45% / 48% 60% 40% 52%;
	--ft-blob-b: 45% 55% 40% 60% / 55% 45% 60% 40%;
	--ft-blob-c: 60% 40% 50% 50% / 50% 55% 45% 50%;
	--ft-blob-main: 52% 48% 46% 54% / 56% 44% 56% 44%;
}

body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Remove default gaps between full-width sections */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > * { margin-block: 0; }
.ft-main { margin-block: 0; }
.wp-block-post-content > .alignfull,
.ft-main > .alignfull { margin-block: 0; }

/* ---------- Sections ---------- */
.ft-section { padding-block: 96px; }
.ft-section--stats { padding-block: 72px; }
.ft-section--intro { padding-block: 88px 32px; }
.ft-section--flush-top { padding-top: 24px; }
.ft-section > * + * { margin-block-start: 44px; }
.ft-bg-light { background: var(--ft-light); }
.ft-narrow > * { max-width: 1080px; }
.ft-narrow-tl > * { max-width: 1000px; }

/* ---------- Type ---------- */
.ft-h-light { font-weight: 300; line-height: 1.2; }
.ft-h-light strong { font-weight: 800; }
.ft-h-md { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.25; }
.ft-h-sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.ft-h-red { color: var(--ft-red); }
.ft-h-red strong { color: var(--ft-navy); }
.ft-muted { color: var(--ft-muted); }
.ft-lead { font-size: 18px; line-height: 1.6; }
.ft-small { font-size: 14px; }
.ft-strong { font-weight: 700; }
.ft-kicker { font-size: 15px; font-weight: 600; color: var(--ft-muted); margin: 0; }
.ft-kicker--yellow { color: var(--ft-yellow); }
.ft-center { text-align: center; }
.ft-head { max-width: none; }
.ft-head > * { max-width: 760px; }
.ft-head > * { margin-block: 0; }
.ft-head > * + * { margin-block-start: 14px; }
.ft-head--wide > * { max-width: 880px; }
.ft-narrow .ft-head > * { max-width: 900px; }
.ft-head.ft-center > * { margin-inline: auto; }
.ft-center .ft-pill { margin-inline: auto; }
.ft-link-red a { color: var(--ft-red); font-weight: 700; }
.ft-link-red a:hover { color: var(--ft-navy); }

/* ---------- Pills ---------- */
.ft-pill {
	display: block; width: fit-content; margin: 0;
	font-size: 13px; font-weight: 700; line-height: 1.4;
	padding: 6px 14px; border-radius: 999px;
}
.ft-pill--red { background: var(--ft-red); color: #fff; }
.ft-pill--navy { background: var(--ft-navy); color: #fff; }
.ft-pill--green { background: var(--ft-green-dark); color: #fff; }
.ft-pill--yellow { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-pill--white { background: #fff; color: var(--ft-navy); }
.ft-pill--white-green { background: #fff; color: var(--ft-forest); }
.ft-pill--outline-red { background: #fff; color: var(--ft-red); box-shadow: inset 0 0 0 1.5px var(--ft-red); }
.ft-pill--outline-navy { background: #fff; color: var(--ft-navy); box-shadow: inset 0 0 0 1.5px var(--ft-navy); }
.ft-pills > * { margin: 0 !important; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background-color .15s, color .15s; }
.ft-btn-white .wp-block-button__link { background: #fff; color: var(--ft-navy); }
.ft-btn-white .wp-block-button__link:hover { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-btn-outline-white .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.ft-btn-outline-white .wp-block-button__link:hover { background: #fff; color: var(--ft-navy); }
.ft-btn-red .wp-block-button__link { background: var(--ft-red); color: #fff; }
.ft-btn-red .wp-block-button__link:hover { background: var(--ft-navy); color: #fff; }
.ft-btn-navy .wp-block-button__link { background: var(--ft-navy); color: #fff; }
.ft-btn-navy .wp-block-button__link:hover { background: var(--ft-red); color: #fff; }
.ft-btn-outline-navy .wp-block-button__link { background: transparent; color: var(--ft-navy); box-shadow: inset 0 0 0 2px var(--ft-navy); }
.ft-btn-outline-navy .wp-block-button__link:hover { background: var(--ft-navy); color: #fff; }
.ft-btn-sm .wp-block-button__link { padding: 11px 20px; font-size: 14px; white-space: nowrap; }

/* ---------- Header ---------- */
.ft-header {
	background: #fff; position: relative; z-index: 20;
	box-shadow: 0 2px 16px rgba(0, 45, 114, 0.08);
	padding-block: 12px;
}
.ft-logo { margin: 0; flex-shrink: 0; }
.ft-logo img { height: 64px; width: auto; display: block; }
.ft-nav { font-size: 15px; font-weight: 600; }
.ft-nav .wp-block-navigation__container { gap: 26px; }
.ft-nav a { color: var(--ft-navy); text-decoration: none; }
.ft-nav a:hover { color: var(--ft-red); }
.ft-nav .current-menu-item > a { color: var(--ft-red); }
.ft-header__actions { flex-shrink: 0; }
.ft-header__actions > * { margin: 0 !important; }
.ft-lang { display: flex; gap: 4px; background: var(--ft-chip); border-radius: 999px; padding: 4px; font-size: 13px; font-weight: 600; }
.ft-lang a { color: var(--ft-navy); text-decoration: none; border-radius: 999px; padding: 6px 10px; line-height: 1; }
.ft-lang a.is-active { background: var(--ft-navy); color: #fff; }

@media (max-width: 1180px) {
	.ft-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ft-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.ft-header__inner { gap: 12px !important; }
	.ft-header__inner .ft-nav { margin-left: auto; order: 3; }
	.ft-header__actions { margin-left: auto !important; }
}
.ft-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.ft-nav .is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 20px; }
@media (max-width: 781px) {
	.ft-lang { display: none; }
	.ft-logo img { height: 50px; }
}
@media (max-width: 520px) {
	.ft-header__actions .wp-block-buttons { display: none; }
	.ft-logo img { height: 44px; }
}

/* ---------- Hero ---------- */
.ft-hero {
	position: relative; overflow: hidden; background: var(--ft-navy);
	min-height: 680px; padding: 72px 16px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
}
.ft-hero--page { min-height: 520px; }
.ft-hero > .ft-hero__bg { position: absolute; inset: 0; margin: 0 !important; z-index: 0; max-width: none !important; }
.ft-hero__bg img, .ft-band__bg img, .ft-tile__bg img, .ft-cm__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-hero::before {
	content: ""; position: absolute; z-index: 1;
	width: 96px; height: 90px; background: var(--ft-red); border-radius: var(--ft-blob-c);
	left: calc(50% + min(250px, 32vw)); top: calc(50% + 150px);
}
.ft-hero--page::before { top: calc(50% + 100px); left: calc(50% + min(200px, 30vw)); width: 70px; height: 66px; }
.ft-hero__wrap { position: relative; z-index: 2; width: min(760px, 100%); margin: 0 auto !important; }
.ft-hero__wrap--page { width: min(620px, 100%); }
.ft-hero__wrap::before, .ft-hero__wrap::after { content: ""; position: absolute; z-index: 0; }
.ft-hero__wrap::before { right: 0; top: -4%; width: 150px; height: 140px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-hero__wrap::after { left: 0; bottom: 2%; width: 120px; height: 112px; background: var(--ft-green); border-radius: var(--ft-blob-b); }
.ft-hero__blob {
	position: relative; z-index: 1; margin: 0 6% !important;
	min-height: 440px; padding: 80px 13% 76px; box-sizing: border-box;
	background: rgba(0, 45, 114, 0.94); border-radius: var(--ft-blob-main);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
	text-align: center; color: #fff;
}
.ft-hero__blob > * { margin: 0 !important; }
.ft-hero__blob h1 { color: #fff; }
.ft-hero__sub { color: #E3EAF6; font-size: 18px; line-height: 1.55; max-width: 460px; }
.ft-hero__wrap--page .ft-hero__blob { min-height: 330px; padding: 56px 14%; gap: 14px; }
.ft-hero__wrap--page h1 { font-size: clamp(38px, 5vw, 56px); }
/* About page: two overlapping blobs (yellow + navy) behind the title */
.ft-hero__blob--split { background: transparent; isolation: isolate; }
.ft-hero__blob--split::before, .ft-hero__blob--split::after { content: ""; position: absolute; z-index: -1; }
.ft-hero__blob--split::before { left: -4%; top: 6%; width: 54%; height: 86%; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-hero__blob--split::after { right: -2%; top: 0; width: 58%; height: 94%; background: rgba(0, 45, 114, 0.95); border-radius: var(--ft-blob-b); }
.ft-hero__wrap--page:has(.ft-hero__blob--split)::before { display: none; }
.ft-hero .ft-crumb--hero { background: var(--ft-red); color: #fff !important; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.ft-hero .ft-crumb--hero a { color: #fff !important; text-decoration: none; }
@media (max-width: 781px) {
	.ft-hero { min-height: 560px; padding: 56px 12px; }
	.ft-hero--page { min-height: 420px; }
	.ft-hero__blob { margin: 0 !important; padding: 64px 26px 60px; min-height: 0; border-radius: 48% 52% 44% 56% / 32% 34% 66% 68%; }
	.ft-hero__wrap--page .ft-hero__blob { padding: 48px 24px; }
	.ft-hero__wrap::before { width: 90px; height: 84px; right: -10px; top: -30px; }
	.ft-hero__wrap::after { width: 70px; height: 66px; left: -10px; bottom: -20px; }
	.ft-hero::before { display: none; }
}

/* ---------- Stats ---------- */
.ft-stat { text-align: center; }
.ft-stat > * { margin: 0; }
.ft-stat__num { font-weight: 800; font-size: 52px; line-height: 1; }
.ft-stat__label { color: var(--ft-muted); font-size: 15px; margin-top: 6px !important; }
.ft-c-navy { color: var(--ft-navy); }
.ft-c-red { color: var(--ft-red); }
.ft-c-green { color: var(--ft-green-dark); }

/* ---------- Image and text rows ---------- */
.ft-split { align-items: center; }
.ft-media { position: relative; height: 440px; }
.ft-media::before { content: ""; position: absolute; z-index: 0; }
.ft-media--blob-yellow-tr::before { right: -24px; top: -28px; width: 180px; height: 170px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-media--blob-yellow-tl::before { left: -24px; top: -28px; width: 170px; height: 160px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-media--blob-green-bl::before { left: -24px; bottom: -28px; width: 170px; height: 160px; background: var(--ft-green); border-radius: var(--ft-blob-b); }
.ft-media--blob-green-br::before { right: -24px; bottom: -28px; width: 160px; height: 150px; background: var(--ft-green); border-radius: var(--ft-blob-b); }
.ft-media--blob-red-br::before { right: -20px; bottom: -24px; width: 150px; height: 140px; background: var(--ft-red); border-radius: var(--ft-blob-c); }
.ft-media__img { position: relative; z-index: 1; margin: 0 !important; height: 100%; }
.ft-media__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px; }
@media (max-width: 781px) {
	.ft-media { height: 300px; }
	.ft-media::before { transform: scale(.65); }
}
.ft-arrow { margin: 0; }
.ft-arrow a { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; color: var(--ft-navy); }
.ft-arrow a::before {
	content: ""; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
	background: var(--ft-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002D72' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ft-arrow a:hover { color: var(--ft-red); }

/* ---------- Chips ---------- */
.ft-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-chips--center { justify-content: center; }
.ft-chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; color: var(--ft-ink); border-radius: 999px; padding: 8px 14px;
	font-size: 14px; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 8px rgba(0, 45, 114, 0.08);
}
.ft-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.ft-chip--lg { padding: 11px 22px; font-size: 16px; font-weight: 700; box-shadow: none; }
.ft-chip--navy { background: var(--ft-navy); color: #fff; }
.ft-chip--green { background: var(--ft-green-dark); color: #fff; }
.ft-chip--yellow { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-chip--red { background: var(--ft-red); color: #fff; }
.ft-chip--plain { background: var(--ft-chip); color: var(--ft-navy); }
.ft-chip--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ft-line); }
.ft-chips--green .ft-chip { background: var(--ft-green); color: #fff; box-shadow: none; }
.ft-chips--navy .ft-chip { background: var(--ft-chip); color: var(--ft-navy); box-shadow: none; }

/* ---------- Colour tiles ---------- */
.ft-tiles { gap: 0 !important; }
.ft-tile { position: relative; min-height: 360px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ft-tiles--tall .ft-tile { min-height: 380px; }
.ft-tile > .ft-tile__bg { position: absolute; inset: 0; margin: 0 !important; }
.ft-pos-left img { object-position: 30% 50%; }
.ft-pos-mid img { object-position: 60% 50%; }
.ft-pos-right img { object-position: 90% 50%; }
.ft-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .86; }
.ft-tile--navy::after { background: var(--ft-navy); opacity: .8; }
.ft-tile--yellow::after { background: var(--ft-yellow); }
.ft-tile--red::after { background: var(--ft-red-deep); }
.ft-tile--green::after { background: var(--ft-green-dark); }
.ft-tile__content {
	position: relative; z-index: 2; max-width: 300px; padding: 36px; margin: 0 !important;
	display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #fff;
}
.ft-tile__content > * { margin: 0 !important; }
.ft-tile__content h3 { color: inherit; font-size: 22px; }
.ft-tile__content p { font-size: 15px; line-height: 1.55; }
.ft-tile--yellow .ft-tile__content { color: var(--ft-navy-dark); }
.ft-icon-circle { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ft-icon-circle--white { background: #fff; }
.ft-icon-circle--navy { background: var(--ft-navy); }

/* ---------- Cards ---------- */
.ft-ind-card { border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.ft-ind-card--navy { background: var(--ft-navy); }
.ft-ind-card--red { background: var(--ft-red); }
.ft-ind-card--yellow { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-ind-card--green { background: var(--ft-green-dark); }
.ft-ind-card__img { margin: 0 !important; }
.ft-ind-card__img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ft-ind-card__body { padding: 24px 26px 28px; margin: 0 !important; }
.ft-ind-card__body > * { margin: 0; }
.ft-ind-card__body p:not(.ft-card-title) { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.ft-card-title { font-weight: 800; font-size: 21px; line-height: 1.25; margin: 0; }
.ft-card-title a { color: inherit; text-decoration: none; }
.ft-card-title a:hover { text-decoration: underline; }

.ft-series-card { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--ft-shadow); display: flex; flex-direction: column; }
.ft-swatches { display: grid; grid-template-columns: repeat(5, 1fr); height: 120px; }
.ft-swatches span { display: block; }
.ft-series-card__body { padding: 26px 26px 30px; margin: 0 !important; display: flex; flex-direction: column; flex-grow: 1; }
.ft-series-card__body > * { margin-block: 0; }
.ft-series-card__body > * + * { margin-block-start: 12px; }
.ft-series-card__body .ft-arrow { margin-top: auto !important; padding-top: 12px; }
.ft-series-card .ft-arrow a::before { width: 34px; height: 34px; background-size: 16px; }
.ft-series-card p { font-size: 15px; line-height: 1.6; }

.ft-step { background: #fff; border-radius: 24px; padding: 30px; }
.ft-step > * { margin-block: 0; }
.ft-step > * + * { margin-block-start: 10px; }
.ft-step h3 { font-size: 18px; }
.ft-step p { font-size: 15px; line-height: 1.6; }
.ft-num { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ft-num--navy { background: var(--ft-navy); color: #fff; }
.ft-num--yellow { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-num--red { background: var(--ft-red); color: #fff; }
.ft-num--green { background: var(--ft-green-dark); color: #fff; }

.ft-statcard { border-radius: 24px; padding: 26px; color: #fff; }
.ft-statcard > * { margin: 0; }
.ft-statcard p:not(.ft-statcard__num) { font-size: 14px; margin-top: 4px; }
.ft-statcard__num { font-weight: 800; font-size: 34px; line-height: 1.1; }
.ft-statcard--navy { background: var(--ft-navy); }
.ft-statcard--yellow { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-statcard--red { background: var(--ft-red); }
.ft-statcard--green { background: var(--ft-green-dark); }
.ft-body-cols p { color: #3B4660; line-height: 1.75; margin: 0; }

.ft-card-white { background: #fff; border-radius: 40px; padding: 56px; box-shadow: 0 6px 24px rgba(0, 45, 114, 0.06); align-items: center; }
.ft-card-white h2 { margin-block: 0; }
.ft-logo-placeholder { height: 180px; border: 2px dashed #B9C5DA; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--ft-muted); font-weight: 700; }
@media (max-width: 781px) { .ft-card-white { padding: 32px 24px; border-radius: 28px; } }

/* ---------- Bands ---------- */
.ft-band { position: relative; overflow: hidden; padding-block: 112px; }
.ft-band > .ft-band__bg { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; opacity: .35; }
.ft-band--green { background: var(--ft-forest); color: #fff; }
.ft-band__content { position: relative; z-index: 1; }
.ft-band__content > * { max-width: 720px; margin-block: 0; }
.ft-band__content > * + * { margin-block-start: 22px; }
.ft-band h2 { color: #fff; }
.ft-band .ft-lead { color: #E1F0E5; }
.ft-band--navy { background: var(--ft-navy); color: #fff; padding-block: 96px; }
.ft-band--navy::before, .ft-band--navy::after { content: ""; position: absolute; z-index: 0; }
.ft-band--navy::before { right: -60px; top: -70px; width: 260px; height: 240px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-band--navy::after { right: 220px; bottom: -80px; width: 180px; height: 170px; background: var(--ft-red); border-radius: var(--ft-blob-c); }
.ft-band--navy > * { position: relative; z-index: 1; }

/* ---------- News ---------- */
.ft-news .wp-block-post-template { gap: 24px; }
.ft-news-card { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--ft-shadow); height: 100%; }
.ft-news-card:not(:has(.wp-block-post-featured-image))::before {
	content: ""; display: block; height: 110px;
	background: linear-gradient(90deg, var(--ft-navy) 0 25%, var(--ft-yellow) 25% 50%, var(--ft-red) 50% 75%, var(--ft-green) 75% 100%);
}
.ft-news-card .wp-block-post-featured-image { margin: 0; }
.ft-news-card .wp-block-post-featured-image img { border-radius: 0; }
.ft-news-card__body { padding: 26px; margin: 0 !important; }
.ft-news-card__body > * { margin-block: 0; }
.ft-news-card__body > * + * { margin-block-start: 12px; }
.ft-news-card__date { display: inline-block; background: var(--ft-red); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.ft-news-card h3 { font-size: 19px; line-height: 1.4; }
.ft-news-card h3 a { color: var(--ft-navy); text-decoration: none; }
.ft-news-card h3 a:hover { color: var(--ft-red); }
.ft-news-card .wp-block-post-excerpt { font-size: 15px; color: var(--ft-muted); }

/* ---------- Call to action ---------- */
.ft-section--cta { padding-block: 96px; }
.ft-cta { position: relative; overflow: hidden; background: var(--ft-navy); color: #fff; border-radius: 40px; padding: 72px 64px; }
.ft-cta::before, .ft-cta::after { content: ""; position: absolute; z-index: 0; }
.ft-cta::before { right: -40px; top: -50px; width: 220px; height: 200px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-cta::after { right: 150px; bottom: -60px; width: 150px; height: 140px; background: var(--ft-red); border-radius: var(--ft-blob-c); }
.ft-cta > * { position: relative; z-index: 1; max-width: 620px; margin-block: 0; }
.ft-cta > * + * { margin-block-start: 18px; }
.ft-cta h2 { color: #fff; }
.ft-cta .ft-lead { color: #E3EAF6; }
.ft-cta .wp-block-buttons { margin-top: 26px !important; }
@media (max-width: 781px) {
	.ft-cta { padding: 48px 28px 120px; border-radius: 28px; }
	.ft-cta::before { width: 140px; height: 130px; }
}

/* ---------- Timeline ---------- */
.ft-timeline { position: relative; }
.ft-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #E6EBF3; transform: translateX(-50%); }
.ft-tl-row { position: relative; align-items: center; margin-block: 0; }
.ft-tl-row::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; border-radius: 50%;
	border: 5px solid #fff; box-sizing: content-box; transform: translate(-50%, -50%);
	background: var(--ft-navy); box-shadow: 0 0 0 2px var(--ft-navy);
}
.ft-tl--red::after { background: var(--ft-red); box-shadow: 0 0 0 2px var(--ft-red); }
.ft-tl--yellow::after { background: var(--ft-yellow); box-shadow: 0 0 0 2px #E0C200; }
.ft-tl--green::after { background: var(--ft-green); box-shadow: 0 0 0 2px var(--ft-green); }
.ft-tl-card { background: var(--ft-light); border-radius: 24px; padding: 28px 30px; }
.ft-tl-card > * { margin: 0; }
.ft-tl-card h3 { font-size: 18px; }
.ft-tl-card p { font-size: 15px; line-height: 1.6; color: var(--ft-muted); margin-top: 8px; }
.ft-tl-year { font-weight: 800; font-size: 26px; margin: 0; color: var(--ft-navy); }
.ft-tl--red .ft-tl-year { color: var(--ft-red); }
.ft-tl--green .ft-tl-year { color: var(--ft-green-dark); }
.ft-tl-row--right .ft-tl-year { text-align: right; }
@media (max-width: 640px) {
	.ft-timeline::before { left: 11px; transform: none; }
	.ft-tl-row { grid-template-columns: 1fr !important; gap: 10px !important; padding-left: 44px; }
	.ft-tl-row::after { left: 0; top: 14px; transform: none; }
	.ft-tl-row--right .ft-tl-year { text-align: left; }
	.ft-tl-row--left .ft-tl-year { order: -1; }
}

/* ---------- Products ---------- */
.ft-intro { align-items: end; }
.ft-intro > * { margin: 0; }
.ft-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ft-filters__label { font-size: 14px; font-weight: 700; color: var(--ft-muted); margin-right: 6px; }
.ft-filter { background: var(--ft-chip); color: var(--ft-navy); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.ft-filter:hover { background: var(--ft-yellow); color: var(--ft-navy-dark); }
.ft-filter.is-active { background: var(--ft-navy); color: #fff; }

.ft-cm { gap: 0 !important; }
.ft-cm__media { position: relative; min-height: 460px; margin: 0 !important; }
.ft-cm__media > .ft-cm__img { position: absolute; inset: 0; margin: 0 !important; }
.ft-cm__panel { position: relative; overflow: hidden; background: var(--ft-navy); color: #fff; padding: 80px 64px; margin: 0 !important; }
.ft-cm__panel::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 220px; height: 200px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-cm__panel > * { position: relative; z-index: 1; max-width: 560px; }
.ft-cm__panel h2 { color: #fff; }
.ft-cm__panel .ft-lead { color: #E3EAF6; }
@media (max-width: 781px) {
	.ft-cm__media { min-height: 280px; }
	.ft-cm__panel { padding: 56px 28px 110px; }
}

/* ---------- Product detail ---------- */
.ft-crumbbar { background: var(--ft-light); padding-block: 16px; }
.ft-crumb { font-size: 14px; color: var(--ft-muted); margin: 0; }
.ft-crumb a { color: var(--ft-muted); text-decoration: none; }
.ft-crumb a:hover { color: var(--ft-red); }
.ft-crumb strong { color: var(--ft-navy); }
.ft-swatch { position: relative; height: 480px; border-radius: 32px; overflow: hidden; display: flex; align-items: flex-end; margin: 0 !important; }
.ft-swatch--red { background: #C8102E; }
.ft-swatch::before, .ft-swatch::after { content: ""; position: absolute; }
.ft-swatch--red::before { left: 12%; top: 14%; width: 46%; height: 40%; background: #D92A3F; border-radius: var(--ft-blob-main); }
.ft-swatch--red::after { right: 10%; top: 30%; width: 30%; height: 28%; background: #A80D26; border-radius: var(--ft-blob-c); }
.ft-swatch__label { position: relative; z-index: 1; padding: 28px; color: #fff; margin: 0 !important; }
.ft-swatch__label > * { margin: 0; }
.ft-swatch__note { font-size: 13px; font-weight: 600; color: #FFE3E7; }
.ft-swatch__code { font-weight: 800; font-size: 22px; margin-top: 4px !important; }
.ft-product-title { font-size: clamp(40px, 5vw, 52px); }
.ft-product-sub { font-size: 22px; font-weight: 300; color: var(--ft-red); }
.ft-fact { background: var(--ft-light); border-radius: 18px; padding: 18px 20px; }
.ft-fact > * { margin: 0; }
.ft-fact__label { font-size: 13px; color: var(--ft-muted); }
.ft-fact__value { font-weight: 700; color: var(--ft-navy); margin-top: 4px !important; }
.ft-panel { background: #fff; border-radius: 28px; padding: 40px; }
.ft-panel h2 { margin-block-end: 0; }
.ft-comp { display: flex; gap: 12px; align-items: center; background: var(--ft-light); border-radius: 18px; padding: 16px; font-weight: 700; color: var(--ft-navy); }
.ft-comp__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ft-comp__icon--navy { background: var(--ft-navy); }
.ft-comp__icon--red { background: var(--ft-red); }
.ft-comp__icon--yellow { background: var(--ft-yellow); }
.ft-comp__icon--green { background: var(--ft-green-dark); }
.ft-docs { position: relative; overflow: hidden; background: var(--ft-navy); color: #fff; border-radius: 40px; padding: 64px; align-items: center; }
.ft-docs::before { content: ""; position: absolute; right: -50px; top: -60px; width: 220px; height: 200px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-docs > * { position: relative; z-index: 1; }
.ft-docs h2 { color: #fff; margin-block: 0; }
.ft-docs .ft-lead { color: #E3EAF6; }
.ft-doc { background: #fff; color: var(--ft-ink); border-radius: 20px; padding: 20px 22px; align-items: center; }
.ft-doc > * { margin: 0 !important; }
.ft-doc__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ft-doc__icon--grey { background: var(--ft-chip); }
.ft-doc__icon--red { background: #FDE8EC; }
.ft-doc__title { font-weight: 800; color: var(--ft-navy); margin: 0; }
.ft-doc__text { font-size: 14px; color: var(--ft-muted); margin: 0; }
@media (max-width: 781px) { .ft-docs, .ft-panel { padding: 32px 24px; border-radius: 28px; } }
.ft-rel { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 45, 114, 0.08); }
.ft-rel__swatch { height: 130px; }
.ft-rel__body { padding: 20px 22px; margin: 0 !important; }
.ft-rel__body > * { margin: 0; }
.ft-rel .ft-card-title { font-size: 18px; }
.ft-head-row { align-items: flex-end; }
.ft-head-row > * { margin: 0 !important; }

/* ---------- Simple page header (news, articles, 404) ---------- */
.ft-simple-hero { position: relative; overflow: hidden; background: var(--ft-navy); color: #fff; padding-block: 88px 72px; }
.ft-simple-hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 260px; height: 240px; background: var(--ft-yellow); border-radius: var(--ft-blob-a); }
.ft-simple-hero__inner { position: relative; z-index: 1; }
.ft-simple-hero__inner > * { margin-block: 0; max-width: 820px; }
.ft-simple-hero__inner > * + * { margin-block-start: 12px; }
.ft-simple-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); }
.ft-simple-hero__date { color: var(--ft-yellow); font-weight: 600; }
.ft-single__image img { border-radius: 28px; }
.ft-single .wp-block-post-content p { font-size: 18px; }
.ft-single__back { margin-top: 48px !important; }

/* ---------- Footer ---------- */
.ft-footer { position: relative; background: var(--ft-navy-dark); color: #B9C5DA; font-size: 14px; padding-block: 70px 32px; }
.ft-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
	background: linear-gradient(90deg, var(--ft-navy) 0 25%, var(--ft-yellow) 25% 50%, var(--ft-red) 50% 75%, var(--ft-green) 75% 100%);
}
.ft-footer a { color: #B9C5DA; text-decoration: none; }
.ft-footer a:hover { color: #fff; }
.ft-footer p { margin: 0; line-height: 1.6; }
.ft-footer__title { color: #fff; font-weight: 700; }
.ft-footer__logo { background: #fff; border-radius: 16px; padding: 12px 14px; width: fit-content; margin: 0 !important; }
.ft-footer__logo img { height: 112px; width: auto; display: block; }
.ft-footer__bottom { border-top: 1px solid #2A3F66; padding-top: 24px; margin-top: 44px !important; font-size: 13px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.ft-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 32px !important; }
	.ft-stats > .ft-stat:last-child { grid-column: 1 / -1; }
	.ft-stat__num { font-size: 40px; }
	.ft-statcards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ft-statcard__num { font-size: 28px; }
	.ft-section { padding-block: 64px; }
	.ft-section > * + * { margin-block-start: 32px; }
}

/* ---------- Statement line ---------- */
.ft-statement { text-align: center; font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; line-height: 1.4; color: var(--ft-navy); max-width: 820px; margin-inline: auto !important; }
.ft-statement strong { font-weight: 800; }
