/* ==========================================================================
   ERMBC Advisors — main stylesheet
   Palette from the logo: black, white, building gold.
   Headings: Anton (two-scale "big & small" letters). Body: Helvetica Neue.
   ========================================================================== */

:root {
	--ink: #000000;
	--ink-2: #151515;
	--paper: #ffffff;
	--mist: #f3f2ef;
	--line: #e3e1dc;
	--muted: #5b5b60;
	--gold: #f9b54c;
	--gold-deep: #e8a32f;
	--gold-ink: #6b4500; /* gold-family text on light backgrounds (AA contrast) */
	--display: "Anton", "Impact", "Arial Narrow", sans-serif;
	--body: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wrap: 1200px;
	--radius: 4px;
	--header-h: 92px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700;
}

/* Two-scale display headings */
.display {
	font-family: var(--display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .01em;
	font-size: clamp(2.1rem, 4.4vw, 3.6rem);
	line-height: 1.02;
}
.display .sm {
	display: inline-block;
	font-size: .5em;
	letter-spacing: .08em;
	color: var(--gold-ink);
	vertical-align: .55em;
	margin-right: .15em;
}
.section--dark .display .sm, .section--black .display .sm, .section-head--light .display .sm,
.hero .display .sm, .page-head .display .sm, .cta-band .display .sm, .site-footer .display .sm { color: var(--gold); }
.display-sm { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; letter-spacing: .02em; }
.eyebrow {
	font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
	color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .lead, .section--black .lead, .section-head--light .lead, .hero .lead { color: rgba(255,255,255,.82); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border: 2px solid var(--gold); border-radius: var(--radius);
	font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
	text-decoration: none; transition: background .2s, color .2s, transform .2s, border-color .2s;
	cursor: pointer; font-family: var(--body); line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.text-link { font-weight: 700; color: var(--gold-ink); text-decoration: none; letter-spacing: .02em; }
.text-link:hover { text-decoration: underline; }
.section--black .text-link, .cta-band .text-link { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--paper); /* no backdrop-filter: it would trap the fixed mobile menu inside the header */
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand__img { width: 170px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu a {
	display: block; padding: 10px 12px; text-decoration: none;
	font-weight: 800; font-size: .92rem; letter-spacing: -.03em; /* condensed, bold labels */
	text-transform: uppercase;
}
.primary-nav .menu > li > a:hover, .primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a, .primary-nav .current-page-ancestor > a { color: var(--gold-ink); }
.submenu-toggle {
	background: none; border: 0; padding: 4px; margin-left: -8px; cursor: pointer; font-size: .7rem; color: inherit;
}
.sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 260px;
	background: var(--ink); box-shadow: var(--shadow); border-top: 3px solid var(--gold);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.sub-menu a { color: var(--paper); padding: 10px 20px !important; font-size: .85rem !important; letter-spacing: 0 !important; }
.sub-menu a:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-ctas { display: grid; justify-items: stretch; gap: 4px; text-align: center; }
.header-phone {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font-weight: 800; font-size: .85rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 15px; height: 15px; color: var(--gold-deep); }
.nav-toggle { display: none; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--dark, .section--black { background: var(--ink); color: var(--paper); }
.section--image {
	position: relative; color: var(--paper);
	background: linear-gradient(rgba(0,0,0,.84), rgba(0,0,0,.9)), var(--bg) center / cover no-repeat;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--light { color: var(--paper); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.split__media--pair .photo:last-child { margin-bottom: -30px; }

/* Framed photos: white border, offset gold frame, some with transparency */
.photo { position: relative; margin: 0 14px 14px 0; isolation: isolate; }
.photo::after {
	content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); z-index: -1;
}
.photo img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	border: 8px solid var(--paper); box-shadow: var(--shadow);
}
.photo--soft img { opacity: .88; filter: saturate(.85); }
.photo--tall img { aspect-ratio: 3 / 4; }
.section--mist .photo img { border-color: var(--paper); }
.split .photo { isolation: isolate; }

/* Revolving icons */
.revolve { animation: revolve 7s cubic-bezier(.45, 0, .55, 1) infinite; transform-style: preserve-3d; }
.reveal:nth-child(2n) .revolve { animation-delay: -1.75s; }
.reveal:nth-child(3n) .revolve { animation-delay: -3.5s; }
@keyframes revolve {
	0%, 55% { transform: rotateY(0deg); }
	85%, 100% { transform: rotateY(360deg); }
}
.icon-badge {
	display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: var(--ink); color: var(--gold); flex: none;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--gold, .section--black .icon-badge, .section--image .icon-badge { background: var(--gold); color: var(--ink); }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist__icon {
	display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; margin-top: 1px;
	background: var(--gold); color: var(--ink); border-radius: 3px;
}
.checklist__icon svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.cards--compact .card { padding: 22px; }
.cards--compact .icon-badge { width: 46px; height: 46px; }
.cards--compact .icon-badge svg { width: 22px; height: 22px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 28px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 1.6rem; margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps--light .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.steps--light .step p { color: rgba(255,255,255,.78); }

/* Feature box (dark callout) */
.feature-box {
	margin-top: 48px; padding: clamp(28px, 5vw, 56px); background: var(--ink); color: var(--paper);
	border-radius: var(--radius); position: relative; overflow: hidden;
}
.feature-box::before {
	content: ""; position: absolute; right: -60px; bottom: -40px; width: 300px; height: 300px;
	background: url("../img/logo-mark.png") center / contain no-repeat; opacity: .08;
}
.feature-box > div { position: relative; max-width: 820px; }
.feature-box__tag { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; color: var(--gold); letter-spacing: .02em; }
.checklist--light .checklist__icon { background: var(--gold); }

.fine-print { font-size: .72rem; line-height: 1.5; color: var(--muted); margin-top: 18px; }
.feature-box .fine-print, .section--image .fine-print, .section--black .fine-print { color: rgba(255,255,255,.6); }
.section--image .fine-print { margin-top: 32px; }

/* ---------- Hero (inner pages) ---------- */
.hero {
	position: relative; min-height: clamp(460px, 72vh, 720px); display: grid; align-items: end;
	color: var(--paper); background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
		linear-gradient(0deg, rgba(0,0,0,.55), transparent 50%);
}
.hero__content { position: relative; padding: 120px 0 72px; max-width: 760px; margin-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.hero .display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 620px; }
/* Services-video heroes: text block sits higher and wider, over the presenters' faces */
.hero--services { align-items: center; }
.hero--services .hero__content { padding: 120px 0 90px; }
.hero--services .hero__media::after { background: rgba(0,0,0,.62); }
/* Investors photo must not be cropped tightly */
.hero--contain .hero__media img { object-fit: cover; object-position: center 40%; }
.hero--short { min-height: clamp(360px, 52vh, 520px); }

/* ---------- Home ---------- */
.logo-banner { background: var(--ink); display: grid; place-items: center; padding: 26px 20px 18px; margin-bottom: -1px; position: relative; z-index: 1; } /* -1px hides a sub-pixel seam */
.logo-banner img { width: min(460px, 80vw); }
.home-hero { padding: 40px 0 0; overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.home-hero__copy { padding: 40px 0 80px; }
.home-hero .display { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.home-hero__art img { width: 100%; max-width: 560px; margin-left: auto; mask-image: radial-gradient(circle at 50% 55%, #000 55%, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 55%, transparent 72%); }

.audience { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.audience__tile {
	display: flex; flex-direction: column; gap: 10px; padding: 28px 22px; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.audience__tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.audience__tile h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; margin: 8px 0 0; }
.audience__tile p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.note-card {
	display: flex; gap: 22px; align-items: flex-start; margin-top: 28px; padding: 30px;
	background: var(--ink); color: var(--paper); border-radius: var(--radius);
}
.note-card p { color: rgba(255,255,255,.8); margin: 0; }
.note-card .icon-badge { background: var(--gold); color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillar { position: relative; padding: 34px 28px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); border-radius: var(--radius); }
.pillar h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .03em; margin-top: 18px; }
.pillar p { color: rgba(255,255,255,.8); margin: 0; }
.pillar__num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-size: 2.6rem; color: rgba(249,181,76,.35); }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why__item .photo { margin-bottom: 26px; }
.why__item .photo img { aspect-ratio: 4 / 5; }
.why__num { font-family: var(--display); color: var(--gold-ink); font-size: 1.1rem; letter-spacing: .1em; }
.why__item p { color: var(--muted); font-size: .96rem; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
	display: flex; flex-direction: column; gap: 14px; padding: 32px 26px; border-radius: var(--radius);
	background: var(--ink-2); border: 1px solid rgba(255,255,255,.12); transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.service-card p { color: rgba(255,255,255,.75); flex: 1; margin: 0; }
.service-card .btn { align-self: stretch; text-align: center; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.quote { margin: 0; padding: 40px 36px 32px; background: var(--paper); border-radius: var(--radius); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -14px; left: 26px; font-family: var(--display); font-size: 5rem; color: var(--gold); line-height: 1; }
.quote p { font-size: 1.15rem; }
.quote cite { font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-ink); }

/* CTA band */
.cta-band { background: var(--gold); color: var(--ink); padding: 64px 0; }
.cta-band__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.cta-band__mark { width: 74px; filter: brightness(0); opacity: .85; }
.cta-band .display { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 640px; }
.cta-band__actions { display: grid; gap: 12px; justify-items: center; }
.cta-band .btn--solid { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.cta-band .btn--solid:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .text-link { color: var(--ink); }

/* Services overview tiles */
.service-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service-tile { grid-column: span 2; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.service-tile:nth-child(4), .service-tile:nth-child(5) { grid-column: span 3; }
.service-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-tile__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .92; transition: opacity .25s; }
.service-tile:hover .service-tile__img img { opacity: 1; }
.service-tile__body { display: flex; flex-direction: column; gap: 10px; padding: 0 26px 28px; }
.service-tile__body .icon-badge { margin-top: -29px; border: 4px solid var(--paper); box-sizing: content-box; }
.service-tile__title { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; line-height: 1.1; }
.service-tile__text { color: var(--muted); flex: 1; }

.banner-photo { margin-bottom: 56px; }
.banner-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border: 8px solid var(--paper); box-shadow: var(--shadow); }

/* About */
.story-mark { background: var(--mist); padding: clamp(30px, 6vw, 70px); border-radius: var(--radius); }
.pull { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.2; color: var(--ink); border-left: 4px solid var(--gold); padding-left: 18px; margin-top: 26px; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.team .member { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
@media (max-width: 860px) { .team .member { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 600px) { .team .member { flex-basis: 100%; } }
.member { background: var(--paper); border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--line); }
.member__mono {
	display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
	background: var(--ink); color: var(--gold); font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; margin-bottom: 18px;
}
.member h3 { font-size: 1.05rem; margin-bottom: 4px; }
.member__role { color: var(--gold-ink); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.member__role span { display: block; color: var(--muted); font-weight: 400; }
.member__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .86rem; }
.member__contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; word-break: break-all; }
.member__contact a:hover { color: var(--gold-ink); }
.member__contact svg { width: 15px; height: 15px; flex: none; color: var(--gold-deep); }

/* Contact */
.contact { display: grid; justify-items: center; gap: 34px; }
.contact__card { width: min(760px, 100%); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(26px, 5vw, 52px); border-radius: var(--radius); margin-top: -140px; position: relative; z-index: 2; }
.contact__card .display { text-align: center; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; text-align: center; }
.contact__direct p { margin: 0; width: 100%; font-weight: 700; }
.contact__direct a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.contact__direct svg, .contact__intl svg { width: 18px; height: 18px; color: var(--gold-deep); }
.contact__intl { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 400 !important; justify-content: center; }

/* Forms */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.field em { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .signup input {
	width: 100%; font: inherit; font-weight: 400; padding: 13px 14px; border: 1.5px solid #c9c6bf;
	border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, .signup input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(249,181,76,.45); }
.field--checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.field--checks legend { font-weight: 700; margin-bottom: 8px; width: 100%; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-deep); }
.form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; background: #fff6e4; border-left: 4px solid var(--gold); margin: 0; }
.notice--error { background: #fdecea; border-color: #b3261e; }

/* Portal + generic page head */
.page-head { padding: clamp(80px, 12vw, 140px) 0 clamp(50px, 7vw, 80px); }
.page-head .display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-head .lead { max-width: 680px; }
.portal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.portal__uses { list-style: none; padding: 0; margin: 22px 0 32px; display: grid; gap: 16px; }
.portal__uses li { display: flex; gap: 16px; align-items: center; font-weight: 700; }
.portal__uses .icon-badge { width: 48px; height: 48px; }
.portal__uses .icon-badge svg { width: 22px; height: 22px; }
.portal__new { background: var(--mist); padding: 34px; border-radius: var(--radius); }

/* Prose (legal pages) */
.prose > * { max-width: 860px; }
.prose h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; letter-spacing: .02em; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--gold-ink); }
.legal-date { color: var(--muted); font-size: .88rem; font-style: italic; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legal-toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .85rem; font-weight: 700; color: var(--ink) !important; }
.legal-toc a:hover { border-color: var(--gold); background: #fff6e4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 70px 0 30px; font-size: .95rem; }
.footer-signup {
	display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
	padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-signup .display { color: var(--paper); font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .2em; }
.footer-signup p { margin: 0; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 240px; background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }
.signup input::placeholder { color: rgba(255,255,255,.55); }
.signup .notice { width: 100%; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 34px; }
.footer-brand img { width: 220px; margin-bottom: 14px; }
.footer-col h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-size: 1.1rem; }
.footer-col ul, .footer-social { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-social { display: flex; gap: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 46px 0 22px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-legal a { padding: 4px 22px; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.footer-legal a + a { border-left: 1px solid rgba(255,255,255,.3); }
.footer-fine { font-size: .7rem; line-height: 1.55; color: rgba(255,255,255,.55); text-align: center; max-width: 980px; margin: 0 auto; }
.footer-fine a { text-decoration: underline !important; }
.footer-copy { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .78rem; }
.footer-copy .ehl svg { width: 16px; height: 16px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.revolve { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .card:hover, .audience__tile:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-grid; place-items: center; margin-left: auto; width: 48px; height: 48px;
		background: var(--ink); border: 0; border-radius: var(--radius); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 2px; background: var(--gold); position: relative; transition: .2s;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
	.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
		padding: 20px; gap: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s, visibility .3s; margin: 0;
		visibility: hidden;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
	.submenu-toggle { width: 44px; height: 44px; font-size: .9rem; }
	.sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
	.menu-item-has-children:hover > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.header-ctas { grid-template-columns: 1fr; max-width: 360px; }
	.header-ctas .btn { padding: 13px; font-size: .9rem; }
	.header-phone { order: -1; font-size: 1.05rem; padding: 6px 0; }

	.audience { grid-template-columns: repeat(3, 1fr); }
	.services-grid, .why, .team, .cards--4, .pillars--4 { grid-template-columns: repeat(2, 1fr); }
	.steps--5 { grid-template-columns: repeat(3, 1fr); }
	.steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	:root { --header-h: 76px; }
	.brand__img { width: 130px; }
	.split, .home-hero__grid, .portal, .footer-signup, .quotes { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.home-hero__copy { padding: 10px 0 0; }
	.home-hero__art img { margin: 0 auto; max-width: 420px; }
	.audience, .cards--3, .pillars { grid-template-columns: repeat(2, 1fr); }
	.service-list { grid-template-columns: 1fr 1fr; }
	.service-tile, .service-tile:nth-child(4), .service-tile:nth-child(5) { grid-column: span 1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta-band__inner { grid-template-columns: 1fr; text-align: left; }
	.cta-band__actions { justify-items: start; }
	.cta-band__mark { display: none; }
	.hero__content { padding: 100px 0 56px; }
	.contact__card { margin-top: -80px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { width: calc(100% - 32px); }
	.hero__content { margin-left: 16px; margin-right: 16px; }
	.audience, .cards--2, .cards--3, .cards--4, .services-grid, .why, .team, .pillars, .pillars--4,
	.steps--4, .steps--5, .service-list, .form__grid, .footer-grid { grid-template-columns: 1fr; }
	.split__media--pair { grid-template-columns: 1fr 1fr; gap: 12px; }
	.photo { margin: 0 10px 10px 0; }
	.photo::after { inset: 10px -10px -10px 10px; }
	.photo img { border-width: 5px; }
	.note-card { flex-direction: column; padding: 24px; }
	.footer-legal a { padding: 4px 12px; }
	.btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ==========================================================================
   Real Estate Application
   ========================================================================== */
.app-head__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem) !important; max-width: 1000px; }
.app-head .lead { max-width: 900px; font-size: 1.05rem; }
.service-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.service-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: .98rem; }

.app-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.app-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.app-aside .display { font-size: clamp(2rem, 3vw, 2.6rem); }
.app-aside p { color: var(--muted); }
.app-aside__steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.app-aside__steps li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.app-aside__steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-family: var(--display); }

.af { display: grid; gap: 22px; counter-reset: afsec; }
.af-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 0; background: var(--paper); box-shadow: 0 10px 30px -22px rgba(0,0,0,.4); min-width: 0; }
.af-section:not([hidden]) { counter-increment: afsec; }
.af-section__title {
	float: left; width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 26px; margin: 0;
	background: var(--ink); color: var(--paper); font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.3rem;
	border-radius: var(--radius) var(--radius) 0 0;
}
.af-section__num::before { content: counter(afsec); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1rem; }
.af-section__body { clear: both; padding: 24px 26px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.af-field { grid-column: 1 / -1; margin-bottom: 20px; min-width: 0; }
.af-email, .af-tel, .af-currency, .af-percent, .af-number, .af-date, .af-select, .af-calc { grid-column: span 1; }
.af-field[hidden] { display: none; }
.af-label, .af-field > label, .af-field legend { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.af-label--plain { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.af-req { color: #b3261e; }
.af-field input[type=text], .af-field input[type=email], .af-field input[type=tel], .af-field input[type=date], .af-field select, .af-field textarea {
	width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #c9c6bf; border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(249,181,76,.45); }
.af-input { display: block; position: relative; }
.af-affix { position: absolute; top: 50%; transform: translateY(-50%); left: 14px; color: var(--muted); font-weight: 700; pointer-events: none; }
.af-affix--end { left: auto; right: 14px; }
.af-input--affix input { padding-left: 30px !important; }
.af-percent .af-input--affix input { padding-left: 14px !important; padding-right: 34px !important; }
.af-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.af-choices--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.af-choices--inline legend { width: 100%; }
.af-choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; font-size: .96rem; }
.af-choice:hover { border-color: var(--gold); }
.af-choice:has(input:checked) { border-color: var(--ink); background: #fff6e4; }
.af-choice input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.af-choice--single { background: var(--mist); }
.af-split, .af-address { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-split legend, .af-address legend { grid-column: 1 / -1; }
.af-address { grid-template-columns: 2fr 1fr 1fr; }
.af-address__street { grid-column: 1 / -1; }
.af-split label span, .af-address label span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.af-calc { background: var(--mist); border-radius: var(--radius); padding: 12px 16px; }
.af-calc .af-calc { padding: 0; background: none; }
.af-calc output { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.af-calc output.is-flag { color: #b3261e; }
.af-note { padding: 16px 18px; border-radius: var(--radius); background: var(--mist); }
.af-note p:last-child { margin-bottom: 0; }
.af-note--gold { background: #fff6e4; border: 1.5px solid var(--gold); }
.af-note--warn { background: #fdecea; border: 1.5px solid #e2a19b; }
.af-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.af-small { font-size: .9rem; color: var(--muted); }
.af-help { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.af-error { color: #b3261e; font-size: .85rem; font-weight: 700; margin: 6px 0 0; min-height: 0; }
.af-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea, .has-error .af-choice { border-color: #b3261e !important; }
.af-submit { display: grid; gap: 10px; justify-items: start; }
.af-submit[hidden] { display: none; }
.af-submit .btn { padding: 16px 34px; font-size: 1rem; }
.af-done { padding: 34px; border: 1.5px solid var(--gold); background: #fff6e4; border-radius: var(--radius); }

.faq-wrap { max-width: 980px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.08rem; }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); flex: none; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

.bookings__frame { width: 100%; min-height: 900px; border: 1px solid var(--line); border-radius: var(--radius); }
.bookings__embed iframe { width: 100%; min-height: 900px; border: 0; }
.bookings__admin { padding: 14px 16px; background: #fdecea; border-left: 4px solid #b3261e; margin-bottom: 24px; font-size: .92rem; }
.bookings__fallback { display: flex; gap: 22px; align-items: flex-start; padding: 34px; background: var(--mist); border-radius: var(--radius); max-width: 820px; }
.bookings__contact { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.bookings__contact a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; }
.bookings__contact svg { width: 18px; height: 18px; color: var(--gold-deep); }

@media (max-width: 1180px) {
	.app-layout { grid-template-columns: 1fr; gap: 28px; }
	.app-aside { position: static; }
	.app-aside__steps { display: flex; flex-wrap: wrap; gap: 12px 24px; }
	.service-checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.service-checks, .af-section__body, .af-split, .af-address { grid-template-columns: 1fr; }
	.af-field { grid-column: 1 / -1 !important; }
	.af-section__title { padding: 16px 18px; font-size: 1.1rem; }
	.af-section__body { padding: 20px 18px 4px; }
	.bookings__fallback { flex-direction: column; padding: 24px; }
	.af-submit .btn { width: 100%; }
}
/* ==========================================================================
   v1.3: language switcher, mobile action bar, reviews band, tap targets
   ========================================================================== */
picture { display: contents; }

/* Language switcher (EN | ES) */
.primary-nav { order: 2; }
.lang-switch {
	order: 3; display: inline-flex; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch__link {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px;
	font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-decoration: none; color: var(--ink);
}
.lang-switch__link:hover { color: var(--gold-ink); }
.lang-switch__link.is-current { background: var(--ink); color: var(--gold); }
.lang-switch__link:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; }

/* Reviews band (links to Google Business Profile) */
.reviews-band__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.reviews-band__inner .display { margin-bottom: .2em; }
.reviews-band__inner .lead { margin: 0; }
.reviews-band .quotes { margin-top: 36px; }
.topic-links { margin-top: 14px; font-size: .95rem; }
.quotes--3 { grid-template-columns: repeat(3, 1fr); }
.quote__stars { color: var(--gold-deep); letter-spacing: .12em; font-size: 1rem !important; margin-bottom: .4em; }
@media (max-width: 1180px) { .quotes--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .quotes--3 { grid-template-columns: 1fr; } }

/* Footer: Spanish pages */
.footer-legal__note { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .75; }
.footer-fine__official { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }

/* Mobile quick-action bar (hidden on desktop) */
.action-bar { display: none; }

@media (max-width: 1180px) {
	.lang-switch { order: 0; margin-left: auto; }
	.lang-switch + .nav-toggle { margin-left: 12px; }
}

@media (max-width: 860px) {
	.reviews-band__inner { grid-template-columns: 1fr; gap: 18px; }

	/* Footer tap targets: at least 44px tall on touch screens */
	.footer-col ul { gap: 0; }
	.footer-col a, .footer-social a { display: inline-flex; align-items: center; min-height: 44px; }
	.footer-social { gap: 4px 18px; flex-wrap: wrap; }
	.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }

	.action-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: repeat(3, 1fr);
		background: var(--ink); border-top: 2px solid var(--gold);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	.action-bar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
		color: var(--paper); text-decoration: none; font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
	}
	.action-bar__item svg { width: 18px; height: 18px; color: var(--gold); }
	.action-bar__item--primary { background: var(--gold); color: var(--ink); }
	.action-bar__item--primary svg { color: var(--ink); }
	.action-bar__item:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
	.nav-open .action-bar { display: none; }
}

@media print { .action-bar, .lang-switch { display: none !important; } }