/*
Theme Name: Best Friend Visa
Template: hello-elementor
Description: Child theme of Hello Elementor — base brand styling for Best Friend Visa.
Version: 0.2.20
Text Domain: bestfriend-visa
*/

:root {
	--bfv-primary: #0b3d91;
	--bfv-primary-dark: #082c69;
	--bfv-primary-soft: #eaf1fc;
	--bfv-accent: #f5a524;
	--bfv-accent-soft: #fff6e5;
	--bfv-line: #06c755;
	--bfv-line-dark: #05a547;
	--bfv-text: #1f2937;
	--bfv-muted: #6b7280;
	--bfv-border: #e5e7eb;
	--bfv-bg: #ffffff;
	--bfv-bg-alt: #f7f9fc;
	--bfv-gold: #b8975a;
	--bfv-radius: 10px;
	--bfv-font: "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
	--bfv-font-head: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--bfv-font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--bfv-text);
	background: var(--bfv-bg);
}
h1, h2, h3, h4,
.site-title, .site-title a {
	font-family: var(--bfv-font-head);
	color: var(--bfv-primary-dark);
	line-height: 1.35;
	font-weight: 600;
}
a { color: var(--bfv-primary); }
a:hover { color: var(--bfv-primary-dark); }

/* ---------- Top bar ---------- */
.bfv-topbar {
	background: var(--bfv-primary-dark);
	color: #fff;
	font-size: 14px;
}
.bfv-topbar .bfv-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 38px;
}
.bfv-top-links { display: flex; align-items: center; gap: 20px; }
.bfv-top-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
	white-space: nowrap;
}
.bfv-top-item svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.bfv-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
/* TH | EN switch */
.bfv-lang {
	display: inline-flex;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1;
}
.bfv-lang a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; color: #cbd5e1; }
.bfv-lang a:not(.is-active) .bfv-flag { opacity: .7; }
.bfv-flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); flex: none; }
.bfv-lang a.is-active { background: #fff; color: var(--bfv-primary-dark); pointer-events: none; }
.bfv-topbar a:hover { color: var(--bfv-accent); }
.bfv-topbar .bfv-hours { color: #cbd5e1; }

/* Same container widths as Hello Elementor's header, so the top bar lines up with the logo */
.bfv-wrap {
	width: 100%;
	margin-inline: auto;
	padding-inline: 10px;
}
@media (min-width: 576px) { .bfv-wrap { max-width: 500px; padding-inline: 0; } }
@media (min-width: 768px) { .bfv-wrap { max-width: 600px; } }
@media (min-width: 992px) { .bfv-wrap { max-width: 800px; } }
@media (min-width: 1200px) { .bfv-wrap { max-width: 1140px; } }
@media (max-width: 991px) { .bfv-topbar .bfv-hours { display: none; } .bfv-topbar .bfv-wrap { justify-content: flex-end; } }
@media (max-width: 575px) {
	.bfv-topbar .bfv-wrap { justify-content: center; }
	.bfv-top-links { gap: 16px; }
	.bfv-top-label { display: none; }
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 3px solid var(--bfv-primary);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .site-title a {
	font-size: 24px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
/* Temporary logo mark until the client provides a real logo */
.site-header .site-title a::before {
	content: "";
	width: 40px;
	height: 40px;
	flex: none;
	background: url("assets/icons/logo-mark.svg") center / contain no-repeat;
}
.site-header .site-description { color: var(--bfv-muted); font-size: 13px; padding-left: 50px; /* aligns with the title, past the logo mark */ }
@media (max-width: 767px) {
	/* keep logo + ☰ on one row on phones */
	.site-header .site-description { display: none; }
}

.site-navigation ul.menu > li > a {
	font-family: var(--bfv-font-head);
	font-weight: 500;
	color: var(--bfv-text);
	padding: 10px 12px;
}
.site-navigation ul.menu > li > a:hover,
.site-navigation ul.menu > li.current-menu-item > a,
.site-navigation ul.menu > li.current-menu-ancestor > a { color: var(--bfv-primary); }
/* Dropdown arrow: CSS chevron centred on the text (the theme's ▾ glyph sits low with Thai fonts) */
/* The chevron is drawn over the link's right padding (pointer-events: none), so the whole item is clickable. */
.site-navigation ul.menu li.menu-item-has-children { padding-inline-end: 0; }
.site-navigation ul.menu li.menu-item-has-children > a { padding-inline-end: 32px; }
.site-navigation ul.menu li.menu-item-has-children::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--bfv-muted);
	border-bottom: 2px solid var(--bfv-muted);
	transform: translateY(-70%) rotate(45deg);
	font-size: 0;
	pointer-events: none;
}
.site-navigation ul.menu li.menu-item-has-children:hover::after { border-color: var(--bfv-primary); }
.site-navigation ul.menu li ul li.menu-item-has-children::after { transform: translateY(-50%) rotate(-45deg); }
.site-navigation ul.menu li ul li a { width: 100%; }

/* "บริการ" mega menu: each group label with its pages listed below it (no side fly-outs). */
@media (min-width: 992px) {
	/* CSS columns (not grid) so short groups don't leave gaps under them */
	.site-navigation ul.menu > li > ul.sub-menu:has(> li > ul.sub-menu) {
		column-count: 2;
		column-gap: 28px;
		width: 480px;
		padding: 18px 20px 8px;
	}
	.site-navigation ul.menu > li:hover > ul.sub-menu:has(> li > ul.sub-menu),
	.site-navigation ul.menu > li:focus-within > ul.sub-menu:has(> li > ul.sub-menu) {
		display: block;
	}
	.site-navigation ul.menu > li > ul.sub-menu > li.menu-item-has-children {
		flex-direction: column;
		align-items: stretch;
		break-inside: avoid;
	}
	.site-navigation ul.menu > li > ul.sub-menu > li.menu-item-has-children::after { display: none; }
	.site-navigation ul.menu > li > ul.sub-menu > li.menu-item-has-children > a {
		padding: 6px 10px;
		border-bottom: 2px solid var(--bfv-primary-soft);
		margin-bottom: 4px;
	}
	.site-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu {
		display: block;
		position: static;
		border: 0;
		box-shadow: none;
		min-width: 0;
		max-width: none;
		background: transparent;
		padding: 0 0 10px;
	}
	.site-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu a { padding: 5px 10px; border-radius: 6px; }
}
@media (min-width: 1200px) {
	.site-navigation ul.menu > li > ul.sub-menu:has(> li > ul.sub-menu) {
		column-count: 3;
		width: 690px;
	}
}
.site-navigation ul.menu li ul {
	background: #fff;
	border: 1px solid var(--bfv-border);
	border-radius: var(--bfv-radius);
	box-shadow: 0 10px 30px rgba(11, 61, 145, .12);
	min-width: 240px;
}
.site-navigation ul.menu li ul li a { color: var(--bfv-text); font-size: 15px; }
.site-navigation ul.menu li ul li a:hover { background: var(--bfv-primary-soft); color: var(--bfv-primary); }
.site-navigation ul.menu li ul li > a[href="#"] {
	font-weight: 700;
	color: var(--bfv-primary-dark);
	cursor: default;
}

/* ---------- Mobile menu (☰ dropdown) ---------- */
.site-navigation-dropdown ul.menu { box-shadow: 0 16px 32px rgba(11, 61, 145, .15); }
.site-navigation-dropdown ul.menu li a {
	color: var(--bfv-text);
	font-family: var(--bfv-font-head);
	font-weight: 500;
	padding: 14px 20px;
	box-shadow: inset 0 -1px 0 var(--bfv-border);
}
.site-navigation-dropdown ul.menu li.current-menu-item a,
.site-navigation-dropdown ul.menu li.current-menu-item > a {
	background: var(--bfv-primary-soft);
	color: var(--bfv-primary);
}
.site-navigation-dropdown ul.menu > li.menu-item-has-children > a { position: relative; padding-right: 48px; }
.site-navigation-dropdown ul.menu > li.menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--bfv-muted);
	border-bottom: 2px solid var(--bfv-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s;
}
.site-navigation-dropdown ul.menu > li.elementor-active > a::after { transform: translateY(-30%) rotate(225deg); }
.site-navigation-dropdown ul.menu li li a { background: var(--bfv-bg-alt); font-size: 15px; padding-left: 36px; }
.site-navigation-dropdown ul.menu li li > a[href="#"] { color: var(--bfv-primary-dark); font-weight: 600; pointer-events: none; }
.site-navigation-dropdown ul.menu li li li a { background: #fff; padding-left: 52px; font-family: var(--bfv-font); }
/* opening "บริการ" shows every group's pages at once (no second tap on the group label) */
.site-navigation-dropdown ul.menu li.elementor-active li li { max-height: 100vh; transform: scaleY(1); }

/* ---------- Page layout ---------- */
.site-main .page-header,
.site-main .page-content {
	max-width: 880px;
	margin-inline: auto;
}
.page-header {
	padding-top: 32px;
}
.page-header .entry-title {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 8px;
}
.page-content { padding-bottom: 48px; }
.page-content h2 {
	font-size: clamp(22px, 3vw, 28px);
	margin-top: 44px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--bfv-primary-soft);
}
.page-content h3 { font-size: 20px; margin-top: 28px; }
.page-content hr {
	border: 0;
	border-top: 1px solid var(--bfv-border);
	margin: 36px 0;
}
.page-content > p:first-child { font-size: 19px; }

/* ---------- CTA buttons ---------- */
.bfv-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 28px;
}
.page-content a.bfv-btn,
.page-content a.bfv-btn:hover {
	text-decoration: none;
}
.bfv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: var(--bfv-font-head);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.bfv-btn:hover { transform: translateY(-1px); }
.bfv-btn-line { background: var(--bfv-line); color: #fff; }
.bfv-btn-line:hover { background: var(--bfv-line-dark); color: #fff; }
.bfv-btn-call { background: var(--bfv-primary); color: #fff; }
.bfv-btn-call:hover { background: var(--bfv-primary-dark); color: #fff; }

/* ---------- Notice / callout boxes ---------- */
.page-content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: var(--bfv-accent-soft);
	border-left: 5px solid var(--bfv-accent);
	border-radius: 0 var(--bfv-radius) var(--bfv-radius) 0;
	font-style: normal;
	color: var(--bfv-text);
}
.page-content blockquote p { margin: 4px 0; }

/* ---------- Tables ---------- */
.page-content table {
	width: 100%;
	border-collapse: separate; /* collapse ignores border-radius */
	border-spacing: 0;
	margin: 24px 0;
	font-size: 16px;
	border: 1px solid rgba(184, 151, 90, .35);
	border-radius: var(--bfv-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 4px rgba(10, 31, 68, .04), 0 14px 32px rgba(10, 31, 68, .10);
}
@media (max-width: 600px) {
	/* let wide tables scroll sideways instead of stretching the page */
	.page-content table { display: block; overflow-x: auto; }
}
.page-content thead th {
	background: #0a1f44;
	color: #f3e9d2;
	font-family: var(--bfv-font-head);
	font-weight: 500;
	text-align: center;
	letter-spacing: .02em;
	padding-block: 18px;
	border-bottom: 1px solid var(--bfv-gold);
}
/* tables written with an empty header row (e.g. homepage stats) */
.page-content thead:not(:has(th:not(:empty))) { display: none; }
.page-content th, .page-content td {
	padding: 16px 22px;
	border-bottom: 1px solid #efe8da;
	vertical-align: top;
}
.page-content tbody td:first-child { font-weight: 600; color: var(--bfv-primary-dark); }
.page-content tbody tr:last-child td { border-bottom: 0; }
.page-content tbody tr:hover td { background: #faf6ee; }

/* ---------- Map embed (contact page) ---------- */
.bfv-map {
	border-radius: var(--bfv-radius);
	overflow: hidden;
	border: 1px solid var(--bfv-border);
	aspect-ratio: 16 / 9;
}
.bfv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Lists (checklists + steps) ---------- */
.page-content ul li { margin-bottom: 4px; }
.page-content ul:has(> li.bfv-check) { list-style: none; padding-left: 0; }
.page-content li.bfv-check {
	position: relative;
	padding: 6px 0 6px 34px;
	border-bottom: 1px dashed var(--bfv-border);
}
.page-content li.bfv-check::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 8px;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--bfv-primary-soft);
	color: var(--bfv-primary);
	font-weight: 700;
	font-size: 14px;
	display: grid;
	place-items: center;
}
.page-content ol { counter-reset: bfv-step; list-style: none; padding-left: 0; }
.page-content ol > li {
	counter-increment: bfv-step;
	position: relative;
	padding: 10px 0 10px 52px;
	border-bottom: 1px dashed var(--bfv-border);
}
.page-content ol > li::before {
	content: counter(bfv-step);
	position: absolute;
	left: 0;
	top: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bfv-primary);
	color: #fff;
	font-weight: 700;
	display: grid;
	place-items: center;
}

/* ---------- Homepage sections (content "## [NAME]" markers → .bfv-sec-name) ---------- */
body { overflow-x: clip; }
.bfv-sec { padding-block: 56px; }
.bfv-sec > h2 {
	text-align: center;
	border-bottom: 0;
	margin-top: 0;
	font-size: clamp(26px, 3.4vw, 34px);
}
.bfv-sec > h2 + p { text-align: center; color: var(--bfv-muted); max-width: 640px; margin-inline: auto; }
/* full-bleed tinted band without horizontal overflow */
.bfv-sec-service-categories,
.bfv-sec-how-we-work,
.bfv-sec-why-choose-us,
.bfv-sec-faq {
	background: var(--bfv-bg-alt);
	box-shadow: 0 0 0 100vmax var(--bfv-bg-alt);
	clip-path: inset(0 -100vmax);
}

/* Hero */
.home .page-content > blockquote:first-child { margin-top: 16px; }
.bfv-sec-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 560px;
	padding-block: 64px;
	margin-top: 8px;
	isolation: isolate;
}
.bfv-sec-hero .bfv-sec-img {
	position: absolute;
	inset: 0 calc(50% - 50vw);
	width: 100vw;
	max-width: none; /* theme caps img at 100% of the container */
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
	z-index: -2;
}
.bfv-sec-hero::before {
	content: "";
	position: absolute;
	inset: 0 calc(50% - 50vw);
	background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 34%, rgba(255, 255, 255, 0) 52%);
	z-index: -1;
}
.bfv-sec-hero .bfv-sec-body { max-width: 500px; }
.bfv-sec-hero h1 {
	font-size: clamp(30px, 3.6vw, 44px);
	line-height: 1.25;
	margin: 0 0 16px;
}
.bfv-sec-hero p { font-size: 18px; }
@media (min-width: 1200px) {
	/* widen the homepage so the hero text sits on the image's empty left side */
	.home .site-main .page-content { max-width: 1140px; }
}
@media (max-width: 767px) {
	.bfv-sec-hero { min-height: 0; padding-top: 0; }
	.bfv-sec-hero::before { display: none; }
	.bfv-sec-hero .bfv-sec-img {
		position: static;
		width: calc(100% + 20px);
		margin-inline: -10px;
		height: 240px;
		margin-top: 24px; /* below the text, so the headline is the first thing seen */
	}
}

/* Trust stats: table rows → stat tiles */
.bfv-sec-trust-stats { padding-block: 32px; }
.bfv-sec-trust-stats table,
.bfv-sec-trust-stats tbody { display: grid; border: 0; overflow: visible; }
.bfv-sec-trust-stats table { box-shadow: none; background: none; border-radius: 0; }
.bfv-sec-trust-stats tbody { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bfv-sec-trust-stats tr { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bfv-border); border-radius: var(--bfv-radius); padding: 18px; text-align: center; }
.bfv-sec-trust-stats td { border: 0; padding: 0; background: none !important; }
.bfv-sec-trust-stats tbody td:first-child { font-family: var(--bfv-font-head); font-size: 28px; font-weight: 500; color: var(--bfv-primary); }
.bfv-sec-trust-stats td:last-child { color: var(--bfv-muted); font-size: 15px; }
/* Same stat tiles for any "| | |" table with an empty header row (e.g. About page numbers) */
.page-content table:has(th:empty) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	border: 0;
	box-shadow: none;
	background: none;
	overflow: visible;
}
.page-content table:has(th:empty) tbody { display: contents; }
@media (min-width: 576px) {
	/* narrow content column → 2×2; the homepage band keeps one row of 4 */
	.page-content table:has(th:empty) { grid-template-columns: repeat(2, 1fr); }
	.page-content .bfv-sec-trust-stats table:has(th:empty) { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.page-content table:has(th:empty) tr { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bfv-border); border-radius: var(--bfv-radius); padding: 18px; text-align: center; }
.page-content table:has(th:empty) td { border: 0; padding: 0; background: none !important; }
.page-content table:has(th:empty) td:first-child { font-family: var(--bfv-font-head); font-size: 28px; font-weight: 500; color: var(--bfv-primary); }
.page-content table:has(th:empty) td:last-child { color: var(--bfv-muted); font-size: 15px; }
.bfv-sec-trust-stats > p { text-align: center; color: var(--bfv-muted); font-size: 14px; margin-top: 16px; }

/* Cards (### blocks inside a section, and article cards) */
.bfv-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 28px;
}
.bfv-card {
	background: #fff;
	border: 1px solid var(--bfv-border);
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 4px 16px rgba(11, 61, 145, .06);
	transition: box-shadow .15s, transform .15s;
}
.bfv-card:hover { box-shadow: 0 10px 28px rgba(11, 61, 145, .12); transform: translateY(-2px); }
@media (min-width: 992px) {
	.bfv-sec-service-categories .bfv-cards,
	.bfv-post-cards { grid-template-columns: repeat(3, 1fr); }
}
.bfv-card h3 { margin: 0 0 6px; font-size: 20px; }
.bfv-card p { color: var(--bfv-muted); font-size: 15px; margin: 0 0 10px; }
.bfv-card ul { margin: 0; padding-left: 18px; }
.bfv-card li { font-size: 15px; }

.bfv-post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--bfv-text); }
.bfv-post-card:hover { color: var(--bfv-text); }
.bfv-post-card p { flex: 1; }
.bfv-tag { align-self: flex-start; background: var(--bfv-primary-soft); color: var(--bfv-primary); font-size: 13px; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.bfv-more { color: var(--bfv-primary); font-weight: 600; }
.bfv-sec-latest-articles > p:last-child { text-align: center; margin-top: 24px; }

/* Sections with a side image (not the hero): image left, content right on desktop */
.bfv-sec:not(.bfv-sec-hero) .bfv-sec-img {
	display: block;
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(11, 61, 145, .12);
	margin-top: 24px;
}
.bfv-sec-fig { margin: 0; position: relative; }
/* the hero image is positioned against the whole section, not its figure */
.bfv-sec-hero .bfv-sec-fig { position: static; }

/* Card icons */
.bfv-card-icon { display: block; width: 56px; height: 56px; margin-bottom: 12px; }
.bfv-card p:has(> .bfv-card-icon) { margin: 0; }

/* Country page banner (full-bleed illustration) */
/* Page photos are shown at their own aspect ratio — never cropped */
.bfv-banner { margin: 0 0 28px; }
.bfv-banner img { display: block; width: 100%; height: auto; border-radius: 16px; }
/* very wide (8:3) country photos run edge to edge */
.bfv-banner-wide { margin: 0 calc(50% - 50vw) 28px; }
.bfv-banner-wide img { width: 100vw; max-width: none; border-radius: 0; }

/* QR tracking mockup (phone) */
.bfv-phone {
	width: min(300px, 80%);
	margin-inline: auto;
	padding: 12px;
	border-radius: 38px;
	background: #0b2554;
	box-shadow: 0 24px 48px rgba(11, 37, 84, .28);
}
.bfv-phone-screen {
	background: #fff;
	border-radius: 28px;
	padding: 22px 18px 18px;
	font-size: 14px;
	line-height: 1.4;
}
.bfv-track-head { display: flex; flex-direction: column; margin-bottom: 14px; }
.bfv-track-head strong { font-family: var(--bfv-font-head); color: var(--bfv-primary-dark); font-size: 17px; }
.bfv-track-head small, .bfv-step small, .bfv-qr small { color: var(--bfv-muted); font-size: 12px; }
.bfv-track { position: relative; padding-left: 26px; }
.bfv-track::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--bfv-border); }
.bfv-step { position: relative; display: flex; flex-direction: column; padding-bottom: 12px; }
.bfv-step::before {
	content: "";
	position: absolute;
	left: -24px;
	top: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--bfv-border);
}
.bfv-step.done::before { background: var(--bfv-line); border-color: var(--bfv-line); }
.bfv-step.now::before { background: #fff; border: 4px solid var(--bfv-accent); }
.bfv-step b { color: var(--bfv-text); font-weight: 600; }
.bfv-step.now b { color: var(--bfv-accent); }
.bfv-qr { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--bfv-border); padding-top: 12px; }
.bfv-qr svg { width: 64px; height: 64px; flex: none; }

/* LINE alert section: image on the right, with sample notification cards over it */
.bfv-notifs {
	position: absolute;
	left: -12px;
	bottom: 18px;
	display: grid;
	gap: 10px;
	width: min(300px, 78%);
}
.bfv-notif {
	background: rgba(255, 255, 255, .97);
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.45;
}
.bfv-notif:nth-child(2) { margin-left: 28px; }
.bfv-notif-head { display: flex; align-items: center; gap: 6px; color: var(--bfv-muted); font-size: 12px; margin-bottom: 2px; }
.bfv-notif-app { background: var(--bfv-line); color: #fff; font-weight: 700; font-size: 9px; padding: 2px 5px; border-radius: 5px; }
.bfv-notif strong { display: block; color: var(--bfv-text); font-size: 14px; }
.bfv-notif p { margin: 0; color: var(--bfv-muted); font-size: 13px; }
@media (min-width: 992px) {
	.bfv-sec-feature-line-alert { grid-template-columns: 6fr 5fr !important; }
	.bfv-sec-feature-line-alert > .bfv-sec-fig { order: 1 !important; }
}
@media (max-width: 600px) {
	.bfv-notifs { position: static; width: auto; margin-top: -40px; padding-inline: 12px; }
	.bfv-notif:nth-child(2) { margin-left: 0; }
}
@media (min-width: 992px) {
	.bfv-sec:not(.bfv-sec-hero):has(> .bfv-sec-fig) {
		display: grid;
		grid-template-columns: 5fr 6fr;
		gap: 48px;
		align-items: center;
	}
	.bfv-sec:not(.bfv-sec-hero) > .bfv-sec-fig { order: -1; }
	.bfv-sec:not(.bfv-sec-hero) .bfv-sec-img { margin-top: 0; }
	.bfv-sec:not(.bfv-sec-hero) > .bfv-sec-body > h2,
	.bfv-sec:not(.bfv-sec-hero) > .bfv-sec-body > h2 + p { text-align: left; margin-inline: 0; }
	.bfv-sec:not(.bfv-sec-hero) > .bfv-sec-body ul { max-width: none; }
	.bfv-sec:not(.bfv-sec-hero) > .bfv-sec-body .bfv-cta { justify-content: flex-start; }
}
.bfv-sec-body > h2 {
	border-bottom: 0;
	margin-top: 0;
	font-size: clamp(26px, 3.4vw, 34px);
	text-align: center;
}
.bfv-sec-body > h2 + p { text-align: center; color: var(--bfv-muted); }

/* Checklist + features: centred lists */
.bfv-sec-checklist ul,
.bfv-sec-feature-line-alert ul,
.bfv-sec-feature-document-tracking ul,
.bfv-sec-why-choose-us ul { max-width: 720px; margin-inline: auto; }
.bfv-sec-feature-line-alert > p,
.bfv-sec-feature-document-tracking > p { text-align: center; }
/* Section lists start with their own emoji (🔔 ✅ 📄), so no bullet dots */
.bfv-sec-feature-line-alert ul,
.bfv-sec-feature-document-tracking ul,
.bfv-sec-why-choose-us ul { list-style: none; padding-left: 0; }
.bfv-sec-feature-line-alert li,
.bfv-sec-feature-document-tracking li,
.bfv-sec-why-choose-us li { margin-bottom: 8px; }
.bfv-sec .bfv-cta { justify-content: center; }
.bfv-sec-hero .bfv-cta { justify-content: flex-start; }
.bfv-sec-how-we-work ol { max-width: 720px; margin-inline: auto; }
.bfv-sec-faq > h2 + p { text-align: left; color: var(--bfv-text); max-width: 760px; }
.bfv-sec-faq > p { max-width: 760px; margin-inline: auto; background: #fff; border-radius: var(--bfv-radius); padding: 16px 20px; border: 1px solid var(--bfv-border); }

/* Final CTA band */
.bfv-sec-final-cta {
	background: var(--bfv-primary);
	box-shadow: 0 0 0 100vmax var(--bfv-primary);
	clip-path: inset(0 -100vmax);
	color: #fff;
	text-align: center;
}
.bfv-sec-final-cta strong { color: #fff; font-family: var(--bfv-font-head); font-size: 26px; }
.bfv-sec-final-cta em { color: #cbd5e1; font-size: 13px; }
.bfv-sec-final-cta .bfv-btn-call { background: #fff; color: var(--bfv-primary); }
.home .page-content { padding-bottom: 0; }
.home .bfv-contact-strip { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- Footer contact strip ---------- */
.bfv-contact-strip {
	background: var(--bfv-primary);
	color: #fff;
	margin-top: 24px;
}
.bfv-contact-strip .bfv-wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	padding-block: 32px;
}
.bfv-contact-strip h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.bfv-contact-strip p { margin: 0; font-size: 15px; }
.bfv-contact-strip a { color: #fff; font-weight: 600; }
.site-footer { background: var(--bfv-primary-dark); color: #cbd5e1; }
.site-footer a, .site-footer .site-title a,
.site-footer .site-navigation ul.menu li a { color: #fff; }
.site-footer .site-navigation ul.menu li a:hover { color: var(--bfv-accent); }

/* ---------- Floating buttons ---------- */
.bfv-float {
	position: fixed;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 100;
}
.bfv-float a {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.bfv-float .bfv-float-line { background: var(--bfv-line); }
.bfv-float .bfv-float-call { background: var(--bfv-primary); }
.bfv-float svg { width: 26px; height: 26px; fill: #fff; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.bfv-topbar .bfv-hours { display: none; }
	.bfv-btn { width: 100%; justify-content: center; }
}

/* ---------- English pages: longer words → tighter type ---------- */
html[lang="en-US"] .site-navigation ul.menu > li > a { padding-inline: 8px; font-size: 15px; }
html[lang="en-US"] .site-navigation ul.menu > li.menu-item-has-children > a { padding-inline-end: 26px; }
html[lang="en-US"] .site-navigation ul.menu li.menu-item-has-children::after { right: 9px; }
html[lang="en-US"] .bfv-sec-hero h1 { font-size: clamp(28px, 3vw, 38px); }
html[lang="en-US"] .bfv-sec-hero .bfv-sec-body { max-width: 470px; }
html[lang="en-US"] .page-content table:has(th:empty) td:first-child { font-size: 24px; }

/* =================================================================
   Motion & polish (assets/motion.js adds .bfv-reveal / .is-in)
   ================================================================= */
:root { --bfv-ease: cubic-bezier(.2, .7, .2, 1); }

/* Scroll reveal — only hidden once JS has marked the element */
.bfv-js .bfv-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .8s var(--bfv-ease) var(--bfv-delay, 0ms), transform .8s var(--bfv-ease) var(--bfv-delay, 0ms);
}
.bfv-js .bfv-reveal.is-in { opacity: 1; transform: none; }
.bfv-js .bfv-banner.bfv-reveal { transform: scale(.98); }
.bfv-js .bfv-banner.bfv-reveal.is-in { transform: none; }

/* Hero: slow zoom on the photo, text rises in on load */
.bfv-sec-hero .bfv-sec-img { animation: bfv-kenburns 18s var(--bfv-ease) both; transform-origin: 70% 50%; }
@keyframes bfv-kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.bfv-sec-hero .bfv-sec-body > * { animation: bfv-rise .9s var(--bfv-ease) both; }
.bfv-sec-hero .bfv-sec-body > :nth-child(2) { animation-delay: .12s; }
.bfv-sec-hero .bfv-sec-body > :nth-child(3) { animation-delay: .24s; }
.bfv-sec-hero .bfv-sec-body > :nth-child(4) { animation-delay: .36s; }
@keyframes bfv-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.bfv-sec-hero h1 {
	background: linear-gradient(100deg, var(--bfv-primary-dark) 0%, var(--bfv-primary) 55%, #2f6fd6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Header: frosted glass + compact once scrolled */
.site-header { transition: padding .3s var(--bfv-ease), box-shadow .3s, background-color .3s; }
.bfv-scrolled .site-header {
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	backdrop-filter: blur(14px) saturate(1.5);
	box-shadow: 0 10px 30px rgba(11, 61, 145, .10);
	padding-block: .45rem;
}
.site-header .site-description { transition: opacity .3s, max-height .3s; max-height: 40px; overflow: hidden; }
.bfv-scrolled .site-header .site-description { opacity: 0; max-height: 0; }

/* Section headings: accent line draws in */
.bfv-sec > h2::after,
.bfv-sec-body > h2::after {
	content: "";
	display: block;
	width: 0;
	height: 4px;
	margin: 14px auto 0;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--bfv-accent), #ffd27a);
	transition: width .9s var(--bfv-ease) .25s;
}
.bfv-sec-body > h2::after { margin-left: 0; }
@media (max-width: 991px) { .bfv-sec-body > h2::after { margin-inline: auto; } }
.bfv-sec.is-in > h2::after,
.bfv-sec.is-in .bfv-sec-body > h2::after,
html:not(.bfv-js) .bfv-sec > h2::after { width: 64px; }

/* Buttons: depth + a light sweep on hover */
.bfv-btn { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 6px 18px rgba(11, 61, 145, .18); }
.bfv-btn-line { box-shadow: 0 6px 18px rgba(6, 199, 85, .30); }
.bfv-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .75s var(--bfv-ease);
	z-index: -1;
}
.bfv-btn:hover::after { transform: translateX(120%); }
.bfv-btn:hover { transform: translateY(-2px); }

/* Floating LINE button: soft ripple */
.bfv-float a { transition: transform .2s var(--bfv-ease); }
.bfv-float a:hover { transform: scale(1.08); }
.bfv-float .bfv-float-line { position: relative; }
.bfv-float .bfv-float-line::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--bfv-line);
	animation: bfv-ripple 2.4s ease-out infinite;
	z-index: -1;
}
@keyframes bfv-ripple { from { transform: scale(1); opacity: .55; } to { transform: scale(1.7); opacity: 0; } }

/* Cards: lift, gradient edge, icon bounce */
.bfv-card { position: relative; transition: transform .35s var(--bfv-ease), box-shadow .35s var(--bfv-ease); }
.bfv-card::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: linear-gradient(135deg, var(--bfv-primary), var(--bfv-accent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .35s;
	pointer-events: none;
}
.bfv-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 61, 145, .14); }
.bfv-card:hover::before { opacity: 1; }
.bfv-card:hover .bfv-card-icon { animation: bfv-bounce .6s var(--bfv-ease); }
@keyframes bfv-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-6px) rotate(-6deg); } 70% { transform: translateY(1px); } }
.bfv-js .bfv-card.bfv-reveal.is-in:hover { transform: translateY(-6px); }

/* Stat tiles */
.page-content table:has(th:empty) tr { transition: transform .35s var(--bfv-ease), box-shadow .35s var(--bfv-ease); }
.page-content table:has(th:empty) tr:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 61, 145, .12); }
.page-content table:has(th:empty) td:first-child {
	background: linear-gradient(100deg, var(--bfv-primary-dark), #2f6fd6) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent;
}

/* Mega/dropdown menu: slide down */
.site-navigation ul.menu li:hover > ul,
.site-navigation ul.menu li:focus-within > ul { animation: bfv-drop .22s var(--bfv-ease); }
@keyframes bfv-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Banner photos: gentle zoom on hover */
.bfv-banner { overflow: hidden; border-radius: 16px; }
.bfv-banner-wide { border-radius: 0; }
.bfv-banner img { transition: transform 1.2s var(--bfv-ease); }
.bfv-banner:hover img { transform: scale(1.03); }

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
	.bfv-js .bfv-reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.bfv-sec > h2::after, .bfv-sec-body > h2::after { width: 64px; }
}
/* keep the zooming hero photo inside the hero band (sides stay full-bleed) */
.bfv-sec-hero { clip-path: inset(0 -100vmax); }

/* ---------- Cookie consent (PDPA) ---------- */
.bfv-consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 200;
	width: min(440px, calc(100vw - 32px));
	padding: 18px 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 18px 50px rgba(11, 37, 84, .25);
	border: 1px solid var(--bfv-border);
	font-size: 14px;
	animation: bfv-rise .5s var(--bfv-ease) both;
}
.bfv-consent[hidden] { display: none; }
.bfv-consent p { margin: 0 0 12px; color: var(--bfv-text); line-height: 1.6; }
.bfv-consent-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bfv-consent .bfv-btn { padding: 8px 18px; font-size: 15px; width: auto; }
.bfv-consent-no {
	background: none;
	border: 1px solid var(--bfv-border);
	border-radius: 999px;
	padding: 8px 16px;
	font: inherit;
	color: var(--bfv-muted);
	cursor: pointer;
}
.bfv-consent-no:hover { border-color: var(--bfv-muted); color: var(--bfv-text); }
.bfv-legal { font-size: 13px; opacity: .85; margin-top: 8px !important; }

/* Map placeholder until consent */
.bfv-map { position: relative; background: var(--bfv-bg-alt); }
.bfv-map-gate {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 10px;
	text-align: center;
	padding: 20px;
	color: var(--bfv-muted);
	background: repeating-linear-gradient(45deg, var(--bfv-bg-alt) 0 14px, #eef2f8 14px 28px);
}
.bfv-map-gate p { margin: 0; }
/* Hello's default button colours (pink) → brand colours for our <button> elements */
button.bfv-btn { border: 0; cursor: pointer; }
button.bfv-btn-call:hover, button.bfv-btn-call:focus { background: var(--bfv-primary-dark); color: #fff; }
.bfv-consent-no:hover, .bfv-consent-no:focus { background: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--bfv-accent); outline-offset: 2px; }
