/* ==========================================================================
   BEST Estate — main stylesheet
   Mobile-first. Sections:
   1. Tokens  2. Base  3. Typography  4. Layout  5. Buttons  6. Header & nav
   7. Heroes  8. Sections  9. Cards  10. Forms  11. Footer & mobile bar
   12. Articles  13. Placeholders & utilities  14. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Brand (from logo guideline) */
	--c-blue: #138ed3;
	--c-green: #54b435;
	--c-yellow: #f1b900;
	--c-logo-gray: #58595b;

	/* Accessible shades for text-bearing UI (WCAG AA on white) */
	--c-blue-700: #0b6fa8;
	--c-blue-800: #095a88;
	--c-green-700: #2e7d18;
	--c-green-800: #256613;
	--c-navy: #0a2a40;
	--c-navy-2: #0f3a58;

	/* Neutrals */
	--c-ink: #17222b;
	--c-text: #3d4852;
	--c-muted: #5f6b76;
	--c-line: #e2e8ee;
	--c-surface: #f3f6f9;
	--c-white: #fff;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(10, 42, 64, .06), 0 2px 8px rgba(10, 42, 64, .05);
	--shadow: 0 10px 30px rgba(10, 42, 64, .10);

	--container: 1200px;
	--gutter: 16px;
	--header-h: 64px;
	--section-y: clamp(56px, 8vw, 104px);
	--mobile-bar-h: 64px;

	--hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root { --gutter: 24px; --header-h: 76px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) { body { padding-bottom: 0; } }

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-blue-700); text-underline-offset: .18em; }
a:hover { color: var(--c-blue-800); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	margin: 0 0 .9rem;
	font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--c-blue-700);
}
.eyebrow::before { content: ""; width: 10px; height: 11px; background: var(--c-yellow); clip-path: var(--hex); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--light { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--light .section-title, .section-head--light .section-lead { color: #fff; }
.section-head--light .eyebrow { color: var(--c-yellow); }
.section-title { margin-bottom: .45em; }
.section-lead { font-size: 1.075rem; color: var(--c-muted); margin: 0; }

.prose { color: var(--c-text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.25em; border-left: 4px solid var(--c-green); background: var(--c-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.fineprint { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 24px; }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .5); }
.section--tinted { background: var(--c-surface); }
.section--dark { background: var(--c-navy); color: #c9d6e0; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: #b8c7d3; }
.section--dark .eyebrow { color: var(--c-yellow); }
.section--center { text-align: center; }

.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }

.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--2, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid { gap: 28px; } }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em; max-width: 100%; text-align: center;
	min-height: 48px; padding: .7em 1.35em;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-blue-700); color: #fff; }
.btn--primary:hover { background: var(--c-blue-800); color: #fff; }
.btn--wa { background: var(--c-green-700); color: #fff; }
.btn--wa:hover { background: var(--c-green-800); color: #fff; }
.btn--secondary { background: #fff; color: var(--c-blue-700); border-color: var(--c-blue-700); }
.btn--secondary:hover { background: var(--c-blue-700); color: #fff; }
.btn--light { background: #fff; color: var(--c-navy); }
.btn--light:hover { background: var(--c-yellow); color: var(--c-ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn--ghost-light:hover { background: #fff; color: var(--c-navy); }
.btn--block { width: 100%; }
.site-header .btn { white-space: nowrap; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-group--center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--c-blue-700); }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon--arrow-right { transform: translateX(3px); }
.text-link--wa { color: var(--c-green-700); }
.text-link--wa:hover { color: var(--c-green-800); }

/* 6. Header & navigation --------------------------------------------------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.announce { background: var(--c-yellow); color: var(--c-ink); font-size: .85rem; font-weight: 500; }
.announce__inner { display: flex; align-items: center; gap: 10px; min-height: 38px; padding-block: 6px; }
.announce p { margin: 0; flex: 1; }
.announce__dot { width: 9px; height: 10px; background: var(--c-navy); clip-path: var(--hex); flex: none; }

/* No backdrop-filter/transform here: those would make the header the containing block of the fixed mobile nav. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.site-header__logo { display: block; flex: none; }
.site-header__logo .logo { width: auto; height: 38px; }
@media (min-width: 768px) { .site-header__logo .logo { height: 44px; } }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header__brochure { display: none; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; font-size: .9rem; font-weight: 500; color: var(--c-text); text-decoration: none; white-space: nowrap; border-radius: 10px; }
.site-header__brochure span { display: none; }
@media (min-width: 1440px) { .site-header__brochure span { display: inline; } }
.site-header__brochure:hover { color: var(--c-blue-700); }
.site-header__cta { display: none; min-height: 42px; padding-block: .5em; font-size: .92rem; }
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }

.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--c-ink); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile nav: off-canvas panel */
.nav {
	position: fixed; top: var(--nav-top, var(--header-h)); right: 0; bottom: 0; left: 0; z-index: 99;
	display: flex; flex-direction: column; gap: 20px;
	padding: 8px var(--gutter) calc(var(--mobile-bar-h) + env(safe-area-inset-bottom) + 24px);
	background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line); }
.nav__link { flex: 1; padding: 14px 0; font-weight: 500; color: var(--c-ink); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--c-blue-700); }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--c-muted); }
.nav__toggle .icon { transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { list-style: none; width: 100%; margin: 0 0 10px; padding: 0 0 0 14px; display: none; border-left: 2px solid var(--c-yellow); }
.nav__item.is-expanded > .nav__sub { display: block; }
.nav__sub .nav__item { border: 0; }
.nav__sub .nav__link { padding: 9px 0; font-size: .95rem; }
.nav__mobile-extra { display: grid; gap: 10px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1180px) {
	.nav-toggle, .nav__mobile-extra { display: none; }
	.site-header__brochure { display: inline-flex; }
	.nav { position: static; inset: auto; flex-direction: row; padding: 0; opacity: 1; transform: none; visibility: visible; background: none; overflow: visible; margin-left: auto; }
	.nav__list { display: flex; align-items: center; gap: 2px; }
	.nav__item { border: 0; flex-wrap: nowrap; }
	.nav__link { padding: 8px; font-size: .9rem; border-radius: 8px; white-space: nowrap; }
	.nav__link:hover { color: var(--c-blue-700); background: var(--c-surface); }
	.nav__toggle { width: 22px; height: 32px; margin-left: -6px; }
	.nav__sub {
		position: absolute; top: 100%; left: 0; min-width: 230px; margin: 0; padding: 8px;
		background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow);
	}
	.nav__item--parent:hover > .nav__sub, .nav__item--parent:focus-within > .nav__sub, .nav__item.is-expanded > .nav__sub { display: block; }
	.nav__sub .nav__link { display: block; padding: 9px 12px; }
	.site-header__actions { margin-left: 8px; }
}

.lang-switch { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 600; }
.lang-switch a { padding: 2px 6px; border-radius: 6px; text-decoration: none; color: inherit; }
.lang-switch a[aria-current="true"] { background: var(--c-navy); color: #fff; }

/* 7. Heroes ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--c-navy); color: #fff; }
.hero--slider { display: grid; }
.hero__slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: center;
	min-height: clamp(560px, 82vh, 780px); padding-block: 72px 110px;
	opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg .media, .hero__bg .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 42, 64, .92) 0%, rgba(10, 42, 64, .72) 45%, rgba(10, 42, 64, .25) 100%); pointer-events: none; }
.hero__bg .ph { align-items: flex-end; justify-content: flex-start; padding: 20px var(--gutter); text-align: right; }
.hero__bg .ph__hint { display: none; }
@media (min-width: 768px) { .hero__bg .ph__hint { display: block; } }
.hero__bg .ph > * { position: relative; z-index: 1; }
.hero__content { position: relative; z-index: 1; }
.hero__title { max-width: 15ch; color: #fff; font-size: clamp(2.1rem, 5vw, 3.75rem); font-weight: 700; margin-bottom: .45em; }
.hero__text { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d7e2ea; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .3s, width .3s; }
.hero__dot.is-active { width: 56px; background: var(--c-yellow); }

.page-hero { background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%); padding-block: 28px var(--section-y); }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
.page-hero__title { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 18ch; }
.page-hero__text { font-size: 1.1rem; color: var(--c-muted); max-width: 560px; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .page-hero { padding-top: 36px; } }

.page-header { background: var(--c-surface); padding-block: 28px 44px; }
.page-header__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-header__lead { margin-top: 12px; color: var(--c-muted); max-width: 640px; }
.page-header .search-form { margin-top: 20px; max-width: 520px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 20px; padding: 0; font-size: .85rem; color: var(--c-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #aab5bf; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-blue-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 500; }

/* Hexagon-cornered media frame (echoes the logo) */
.hex-frame { position: relative; }
.hex-frame .media, .hex-frame .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hex-frame::after { content: ""; position: absolute; right: -10px; bottom: -14px; width: 64px; height: 72px; background: var(--c-yellow); clip-path: var(--hex); z-index: -1; }
.hex-frame::before { content: ""; position: absolute; left: -12px; top: -14px; width: 42px; height: 48px; background: var(--c-green); clip-path: var(--hex); z-index: 1; opacity: .9; }

/* 8. Sections -------------------------------------------------------------- */
/* Intro */
.intro__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
	.intro__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
	.intro--image-left .intro__media { order: -1; }
}
.proof-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.proof-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--c-ink); }
.proof-list .icon { color: #fff; background: var(--c-green-700); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 1px; }
.key-message { margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--c-yellow); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.key-message p { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--c-ink); }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } .feature-grid { gap: 24px; } }
.feature { padding: 28px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.section--tinted .feature { border-color: transparent; box-shadow: var(--shadow-sm); }
.section--dark .feature { background: var(--c-navy-2); border-color: rgba(255, 255, 255, .08); }
.section--dark .feature__text { color: #b8c7d3; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 58px; margin-bottom: 18px; color: #fff; background: var(--c-blue-700); }
.feature:nth-child(3n+2) .feature__icon { background: var(--c-green-700); }
.feature:nth-child(3n+3) .feature__icon { background: var(--c-yellow); color: var(--c-ink); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature__title { margin-bottom: .4em; font-size: 1.08rem; }
.feature__text { margin: 0; font-size: .95rem; color: var(--c-muted); }
.hex { clip-path: var(--hex); }

/* Units: two cards stay a comfortable width */
.units .card-grid--2 { max-width: 980px; margin-inline: auto; }

/* Location */
.location__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .location__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.access-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.access-list__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
.access-list__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 44px; background: rgba(255, 255, 255, .12); color: #fff; }
.access-list__name { font-weight: 600; color: #fff; }
.access-list__note { font-size: .88rem; color: #b8c7d3; }
.access-list__item.is-highlight { background: rgba(241, 185, 0, .12); border-color: rgba(241, 185, 0, .45); }
.access-list__item.is-highlight .access-list__icon { background: var(--c-yellow); color: var(--c-ink); }
.access-list__item.is-highlight .access-list__note { color: var(--c-yellow); font-weight: 600; }
.location__map iframe, .location__map .ph, .map-section__map iframe, .map-section__map .ph { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); }

/* Banner */
.banner { display: grid; overflow: hidden; border-radius: var(--radius-lg); }
.banner--blue { background: linear-gradient(120deg, var(--c-blue-800), var(--c-blue-700)); color: #e3f1fa; }
.banner--dark { background: var(--c-navy); color: #c9d6e0; }
.banner--light { background: var(--c-surface); }
.banner__content { padding: clamp(28px, 5vw, 56px); }
.banner--blue .banner__title, .banner--dark .banner__title { color: #fff; }
.banner--blue .eyebrow, .banner--dark .eyebrow { color: var(--c-yellow); }
.banner__title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.banner__text { max-width: 520px; margin: 0; }
.banner__media .media, .banner__media .ph { width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: 0; }
@media (min-width: 900px) { .banner { grid-template-columns: 1.1fr .9fr; } }

/* Sub-banners */
.subbanners { display: grid; gap: 20px; }
@media (min-width: 768px) { .subbanners--2 { grid-template-columns: repeat(2, 1fr); } .subbanners--3, .subbanners--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .subbanners--3 { grid-template-columns: repeat(3, 1fr); } .subbanners--4 { grid-template-columns: repeat(4, 1fr); } }
.subbanner { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.subbanner__media .media, .subbanner__media .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.subbanner__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 26px; flex: 1; }
.subbanner__title { font-size: 1.2rem; margin: 0; }
.subbanner__text { margin: 0 0 8px; color: var(--c-muted); font-size: .95rem; flex: 1; }

/* Checklist */
.checklist__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .checklist__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.check-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: check; }
.check-cards li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--c-surface); border-radius: var(--radius); font-weight: 500; color: var(--c-ink); }
.check-cards .icon { color: var(--c-green-700); width: 24px; height: 24px; }

/* Matrix */
.matrix__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.matrix__row { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.matrix__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 54px; background: var(--c-blue-700); color: #fff; }
.matrix__feature { margin: 0; font-size: 1.05rem; align-self: end; }
.matrix__benefit { margin: 0; color: var(--c-muted); }
@media (min-width: 900px) {
	.matrix__row { grid-template-columns: auto minmax(220px, 1fr) 1.4fr; align-items: center; padding: 18px 24px; }
	.matrix__icon { grid-row: auto; }
	.matrix__feature { align-self: center; }
}

/* Specs */
.specs__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .specs__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.spec-list { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.spec-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--c-line); }
.spec-list__row:last-child { border-bottom: 0; }
.spec-list dt { color: var(--c-muted); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--c-ink); text-align: right; }
.spec-list__row.is-pending dd { font-weight: 500; color: var(--c-blue-700); }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.compare-table thead th { background: var(--c-navy); color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.compare-table tbody th { color: var(--c-ink); }
.compare-table__code { display: block; font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* Phones: each unit becomes a stacked card instead of a sideways-scrolling table. */
@media (max-width: 719px) {
	.table-wrap { overflow: visible; box-shadow: none; background: none; }
	.compare-table { min-width: 0; }
	.compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
	.compare-table tr { margin-bottom: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
	.compare-table tbody th { padding: 16px 20px; background: var(--c-navy); color: #fff; font-size: 1.1rem; border: 0; }
	.compare-table tbody th .compare-table__code { color: #b8c7d3; }
	.compare-table td { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 12px 20px; }
	.compare-table td[data-label]::before { content: attr(data-label); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
	.compare-table td:last-child { display: block; border-bottom: 0; }
}

/* FAQ */
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.faq__item[open] { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq__q .icon { color: var(--c-blue-700); transition: transform .2s var(--ease); }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { padding: 0 22px 18px; color: var(--c-text); }
.faq__a p:last-child { margin: 0; }

/* Newsletter */
.newsletter__card { display: grid; gap: 24px; padding: clamp(24px, 4vw, 44px); background: var(--c-surface); border-radius: var(--radius-lg); border: 1px solid var(--c-line); }
.newsletter__title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.newsletter__intro p { margin: 0; color: var(--c-muted); }
.newsletter__form { display: grid; gap: 12px; align-items: end; }
@media (min-width: 768px) { .newsletter__form { grid-template-columns: 1fr 1fr 1fr auto; } }
@media (min-width: 1024px) { .newsletter__card { grid-template-columns: .8fr 1.6fr; align-items: center; } }

/* Contact CTA */
.contact-cta__card { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px); text-align: center; border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, var(--c-blue-700) 0%, var(--c-navy) 60%); }
.contact-cta__mark { position: absolute; right: -40px; bottom: -50px; width: 240px; opacity: .08; }
.contact-cta__mark .logo { width: 100%; height: auto; }
.contact-cta .section-head { margin-bottom: 0; }

/* Survey form */
.survey__grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .survey__grid { grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; } }
.survey__form-card { padding: clamp(24px, 4vw, 44px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.survey__form-card .section-head { margin-bottom: 28px; }
.contact-card { padding: 28px; background: var(--c-navy); color: #c9d6e0; border-radius: var(--radius-lg); position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card .eyebrow { color: var(--c-yellow); }
.contact-card__lead { color: #fff; font-weight: 500; }
.contact-card .contact-list { margin-top: 24px; }
.contact-card .contact-list a { color: #fff; }

/* Map section */
.map-section__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .map-section__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* 9. Cards ----------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; display: block; }
.card__media .media, .card__media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 22px; flex: 1; }
.card__eyebrow { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-blue-700); }
.card__title { margin: 0; font-size: 1.2rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__text { margin: 4px 0 0; color: var(--c-muted); font-size: .95rem; flex: 1; }
.card__meta { margin: 8px 0 0; font-size: .82rem; color: var(--c-muted); }
.card__price { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--c-line); font-size: .9rem; color: var(--c-muted); }
.card__price strong { color: var(--c-ink); font-size: 1.15rem; }
.card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.card--unit .card__title { font-size: 1.4rem; }
.card--upcoming:hover { transform: none; box-shadow: none; }
.badge { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--c-yellow); color: var(--c-ink); font-size: .78rem; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--c-line); font-size: .9rem; font-weight: 500; color: var(--c-text); text-decoration: none; background: #fff; }
.chip:hover { border-color: var(--c-blue-700); color: var(--c-blue-700); }
.chip.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.pagination .page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.empty-state { padding: 40px; text-align: center; background: var(--c-surface); border-radius: var(--radius); color: var(--c-muted); }

/* 10. Forms ---------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--c-ink); }
.field label small { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1px solid #cfd8e0; border-radius: 10px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-blue-700); box-shadow: 0 0 0 4px rgba(19, 142, 211, .18); }
.form-note { margin: 12px 0 0; font-size: .88rem; color: var(--c-text); text-align: center; }
.form-note--muted { color: var(--c-muted); font-size: .8rem; margin-top: 6px; }
.form-alert { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form.is-submitting button[type="submit"] { opacity: .7; pointer-events: none; }

.search-form { display: flex; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 16px; border: 0; background: transparent; }
.search-form input:focus { outline: none; }
.search-form button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--c-muted); cursor: pointer; }
.search-form:focus-within { border-color: var(--c-blue-700); box-shadow: 0 0 0 3px rgba(19, 142, 211, .18); }

/* 11. Footer & mobile bar -------------------------------------------------- */
.site-footer { background: var(--c-surface); border-top: 4px solid var(--c-blue); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 36px; padding-block: 56px 36px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr .8fr .8fr 1.1fr; gap: 48px; } }
.site-footer__logo { width: auto; height: 52px; margin-bottom: 18px; }
.site-footer__brand p { color: var(--c-muted); max-width: 380px; }
.site-footer__developer { font-size: .85rem; }
.site-footer__title { margin-bottom: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--c-text); text-decoration: none; }
.footer-links a:hover { color: var(--c-blue-700); text-decoration: underline; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--c-blue-700); }
.contact-card .contact-list .icon, .section--dark .contact-list .icon { color: var(--c-yellow); }
.contact-list a { color: var(--c-text); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--c-blue-700); text-decoration: underline; }
.site-footer__utility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--c-line); }
.site-footer__utility .search-form { width: 100%; max-width: 360px; }
.site-footer__utility-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.site-footer__utility-links a { color: var(--c-text); }
.site-footer__bottom { background: var(--c-navy); color: #9fb2c1; font-size: .85rem; }
.site-footer__bottom p { margin: 0; padding-block: 16px; }

.mobile-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgba(10, 42, 64, .08);
}
.mobile-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: var(--mobile-bar-h); font-size: .75rem; font-weight: 600; line-height: 1.2; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.mobile-bar__item + .mobile-bar__item { border-left: 1px solid var(--c-line); }
.mobile-bar__item--wa + .mobile-bar__item { border-left: 0; }
.mobile-bar__item .icon { width: 22px; height: 22px; }
.mobile-bar__item--wa { background: var(--c-green-700); color: #fff; }
.mobile-bar__item--wa:hover { color: #fff; background: var(--c-green-800); }
.mobile-bar__item--survey { color: var(--c-blue-700); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* 12. Articles ------------------------------------------------------------- */
.article__header { padding-block: 32px 28px; background: var(--c-surface); }
.article__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .4em; }
.article__meta { display: flex; gap: 8px; margin: 0; color: var(--c-muted); font-size: .9rem; }
.article__media { margin-top: 32px; }
.article__media .media { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); }
.article__content { padding-block: 40px; font-size: 1.05rem; }
.article-cta { display: grid; gap: 16px; align-items: center; margin-bottom: var(--section-y); padding: 28px; background: var(--c-navy); color: #c9d6e0; border-radius: var(--radius-lg); }
.article-cta__title { color: #fff; font-size: 1.35rem; margin-bottom: .3em; }
.article-cta p { margin: 0; }
@media (min-width: 768px) { .article-cta { grid-template-columns: 1fr auto; padding: 32px 40px; } }

.not-found .btn-group { margin-top: 32px; }

/* 13. Placeholders & utilities -------------------------------------------- */
.ph {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
	min-height: 180px; padding: 16px;
	background-color: var(--c-navy-2);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17Z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E"),
		linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue-800) 100%);
	border-radius: var(--radius);
	color: #fff;
}
.ph__tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--c-yellow); color: var(--c-ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ph__tag .icon { width: 14px; height: 14px; }
.ph__hint { max-width: 36ch; font-size: .85rem; line-height: 1.4; color: #d3e0ea; }
.ph--map { justify-content: center; align-items: center; text-align: center; }

.editor-note { display: flex; gap: 12px; margin-block: 16px; padding: 14px 18px; background: #fff8dc; border: 1px dashed #d4a300; border-radius: var(--radius-sm); color: #5c4700; font-size: .9rem; }
.editor-note .icon { flex: none; margin-top: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* WordPress core alignment classes for article content */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }

/* 14. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
