/* ==========================================================================
   Components: header + nav, footer, quote band, WhatsApp, mobile bar, cards
   ========================================================================== */

/* Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: var(--s5); min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 500; font-size: 1.34rem; letter-spacing: -.015em; }
.brand__place { font-size: .86rem; color: var(--ink-soft); }
.brand--lg .brand__name { font-size: 1.6rem; }
.brand--lg .brand__place { font-size: 1rem; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s1); }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { display: block; padding: var(--s2) var(--s3); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li.is-current > a { color: var(--accent); }
.nav-list > li.is-current > a { box-shadow: inset 0 -2px 0 var(--accent); }
.sub-toggle { background: none; border: 0; padding: 0; width: 28px; height: 44px; margin-left: -8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); cursor: pointer; }
.sub-toggle svg { transition: transform .15s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub {
	position: absolute; top: 100%; left: 0; min-width: 300px; padding: var(--s2);
	background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(29, 33, 38, .10); opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub a { display: block; padding: var(--s2) var(--s3); color: var(--ink); text-decoration: none; border-radius: 3px; font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: var(--accent-tint); color: var(--accent-deep); }
.sub-all { border-top: 1px solid var(--rule); margin-top: var(--s1); padding-top: var(--s1); }
.sub-all a { font-weight: 600; color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: var(--s3); }
.head-phone { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius-btn); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 1.6px; background: var(--ink); position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav__mobile-cta { display: none; }

@media (max-width: 1180px) {
	.nav-list > li > a { padding-inline: var(--s2); }
}
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.head-phone span { display: none; }
	.site-nav {
		position: fixed; top: var(--head-h); left: 0; right: 0; margin: 0;
		max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain;
		background: var(--surface); border-bottom: 1px solid var(--rule); padding: var(--s3) var(--gutter) var(--s6);
		display: none; box-shadow: 0 16px 32px rgba(29, 33, 38, .12);
	}
	html.nav-open { overflow: hidden; }
	html.nav-open .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
	.nav-list > li > a { flex: 1; padding: var(--s4) 0; font-size: 1.06rem; }
	.nav-list > li.is-current > a { box-shadow: none; }
	.sub-toggle { width: 44px; height: 52px; margin: 0; border-left: 1px solid var(--rule); }
	/* Mobile submenu: restyled, never the desktop dropdown skin. */
	.sub { position: static; min-width: 0; width: 100%; padding: 0 0 var(--s3) var(--s4); background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
	.has-sub.is-open > .sub { display: block; }
	.sub a { padding: var(--s3) var(--s2); border-left: 1px solid var(--rule); border-radius: 0; }
	.site-nav__mobile-cta { display: grid; gap: var(--s3); margin-top: var(--s5); }
}
@media (max-width: 520px) {
	.head-cta { display: none; }
	.brand__name { font-size: 1.08rem; }
	.brand .logo-mark { width: 34px; height: 34px; }
}

/* Breadcrumbs --------------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s2); }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Quote band ---------------------------------------------------------------- */
.quote-band { position: relative; overflow: hidden; background: var(--surface); padding-block: var(--pad-sec); border-top: 1px solid var(--rule); }
.quote-band__photo { position: absolute; inset: 0 50% 0 0; }
.quote-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.quote-band__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.6) 60%, #fff); }
.quote-band__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.quote-band__copy { padding-top: var(--s5); }
.quote-band__title { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 3.8rem); max-width: 9ch; line-height: 1.04; }
.quote-band__lede { margin-top: var(--s4); max-width: 42ch; color: var(--ink-soft); }
.quote-band .eyebrow { margin-bottom: var(--s2); text-transform: none; letter-spacing: .01em; font-size: .95rem; font-family: var(--f-sans); font-weight: 600; }
.reassure { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.reassure li { display: flex; align-items: center; gap: var(--s3); font-size: .92rem; font-weight: 500; }
.reassure .ico { color: var(--ink); flex-shrink: 0; }
.crm-panel { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3); box-shadow: 0 1px 2px rgba(29,33,38,.06); min-height: 644px; }
.crm-panel__loading { position: absolute; inset: var(--s3); display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); color: var(--ink-soft); background: var(--bg); border-radius: 3px; }
.crm-panel__loading strong { color: var(--ink); font-size: 1.2rem; }
.crm-panel iframe { position: relative; z-index: 1; background: transparent; }
@media (max-width: 960px) {
	.quote-band__grid { grid-template-columns: minmax(0, 1fr); }
	.quote-band__photo { inset: 0 0 auto 0; height: 420px; }
	.quote-band__photo::after { background: linear-gradient(180deg, rgba(255,255,255,.82), #fff); }
	.crm-panel { padding: var(--s2); }
}

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); padding-top: var(--pad-sec); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--s7); }
.site-footer__tag { margin-top: var(--s4); color: var(--ink-soft); max-width: 36ch; font-size: .95rem; }
.site-footer__contact { margin-top: var(--s4); }
.site-footer__contact a { color: var(--ink); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: var(--s6); }
.fcol__title { font-weight: 600; margin-bottom: var(--s3); }
.fcol li + li { margin-top: var(--s2); }
.fcol a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.fcol a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; border-top: 1px solid var(--rule); margin-top: var(--s7); padding-block: var(--s5); font-size: .88rem; color: var(--ink-soft); }
.site-footer__bottom a { color: var(--ink); }
.footer-builtby { margin-left: auto; }
.footer-builtby a { color: var(--accent); font-family: var(--f-serif); font-style: italic; font-size: 1.15em; }
@media (max-width: 860px) {
	.site-footer__top { grid-template-columns: minmax(0, 1fr); }
	.footer-builtby { margin-left: 0; }
}
/* Clearance for the fixed mobile bar sits on the last band, never on body. */
@media (max-width: 1080px) { .site-footer__bottom { padding-bottom: calc(var(--s5) + 72px); } }

/* WhatsApp widget ------------------------------------------------------------ */
.wa { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 90; }
.wa__fab { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5) 0 var(--s4); border: 0; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(29,33,38,.2); transition: transform .15s, opacity .2s; }
.wa__fab:hover { background: #196438; }
.wa.is-tucked .wa__fab { transform: translateY(140%); opacity: 0; pointer-events: none; }
.wa__panel { position: absolute; right: 0; bottom: 60px; width: min(360px, calc(100vw - 32px)); max-height: min(620px, calc(100dvh - 120px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 18px 48px rgba(29,33,38,.2); }
.wa__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s4) var(--s3); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); }
.wa__title { font-weight: 600; }
.wa__close { width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; cursor: pointer; color: var(--ink-soft); }
.wa__form { display: grid; gap: var(--s1); padding: var(--s4); }
.wa__form label { font-size: .86rem; font-weight: 500; margin-top: var(--s2); }
.wa__form input, .wa__form textarea, .wa__form select { width: 100%; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-btn); background: var(--surface); min-height: 44px; }
.wa__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--s3); }
.btn--wa { margin-top: var(--s4); background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { background: #196438; color: #fff; }
.wa__note { font-size: .8rem; color: var(--ink-soft); margin-top: var(--s2); }
@media (max-width: 1080px) {
	.wa { bottom: 84px; right: var(--s4); }
	.wa__label { display: none; }
	.wa__fab { padding: 0; width: 52px; justify-content: center; }
}

/* Mobile bar: visible from the first pixel, no scroll threshold (§7d.4). */
.mbar { display: none; }
@media (max-width: 1080px) {
	.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: var(--s2); padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgba(29,33,38,.08); }
	.mbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; border-radius: var(--radius-btn); border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; }
	.mbar__btn--primary { background: var(--accent); color: #fff; flex: 1.4; }
	.mbar__btn--primary:hover { color: #fff; background: var(--accent-deep); }
	.wa .wa__fab { display: none; }
}

/* Cards, chips, map ----------------------------------------------------------- */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, border-color .15s; height: 100%; }
.card:hover { border-color: var(--accent); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.card__meta { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.card__title { font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.card__text { color: var(--ink-soft); font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.map { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #EEF1F3; }
.map__canvas { width: 100%; height: clamp(320px, 42vw, 460px); }
.map .leaflet-tile-pane { filter: grayscale(1) brightness(1.08) contrast(.82); }
.map .leaflet-container { font-family: var(--f-sans); background: #EEF1F3; }
.vs-pin { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: .8rem; font-weight: 500; color: var(--ink); }
.vs-pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; flex-shrink: 0; }
.vs-pin span { background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 2px; }
.vs-pin--home i { width: 18px; height: 18px; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--accent); }
.vs-pin--home span { font-weight: 700; }
a.vs-pin:hover span { color: var(--accent); text-decoration: underline; }
.vs-pin.is-hidden-label span { display: none; }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
