/* ============================================================
   Hermandad Ascendente Limited — Corporate Site
   Palette derived from the phoenix logo.
   ============================================================ */
:root {
	--navy:        #063049;
	--navy-2:      #0a3f5c;
	--navy-3:      #0d4a6b;
	--teal:        #0e7fa3;
	--teal-soft:   #1a94bd;
	--gold:        #d8a740;
	--gold-deep:   #b8892f;
	--gold-soft:   #e8c877;
	--crimson:     #b11017;
	--crimson-dk:  #8f0d12;
	--offwhite:    #f6f7f8;
	--paper:       #ffffff;
	--panel:       #eef2f4;
	--ink:         #14232d;
	--ink-soft:    #3c4c56;
	--gray:        #64757f;
	--line:        #e2e7ea;

	--display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--body:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1180px;
	--radius: 4px;
	--shadow: 0 10px 40px rgba(6, 48, 73, .10);
	--shadow-sm: 0 4px 18px rgba(6, 48, 73, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--body);
	color: var(--ink);
	background: var(--offwhite);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy); color: #dfe9ef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--panel { background: var(--panel); }
.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Eyebrow — the ascending gold tick signature */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--display);
	font-weight: 700;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 20px;
}
.section--navy .eyebrow { color: var(--gold-soft); }
.eyebrow::before {
	content: "";
	width: 34px; height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold));
	transform: skewY(-14deg);
	transform-origin: left center;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .02em;
	padding: 15px 30px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
	line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--crimson); color: #fff; }
.btn--cta:hover { background: var(--crimson-dk); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------------- Header ---------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1; }
.brand-fallback .b1 { font-family: var(--display); font-weight: 800; letter-spacing: .04em; color: var(--navy); font-size: 1.02rem; }
.brand-fallback .b2 { font-family: var(--display); font-weight: 600; letter-spacing: .32em; color: var(--gold-deep); font-size: .62rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
	font-family: var(--display);
	font-weight: 600;
	font-size: .9rem;
	color: var(--ink-soft);
	position: relative;
	padding: 6px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after {
	content: ""; position: absolute; left: 0; bottom: -2px;
	width: 100%; height: 2px; background: var(--gold);
}
.nav .btn { padding: 11px 20px; font-size: .85rem; }

.nav-toggle {
	display: none; background: none; border: none; cursor: pointer;
	width: 44px; height: 44px; padding: 10px; color: var(--navy);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* ---------------- Hero ---------------- */
.hero {
	position: relative;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 46%, var(--teal) 130%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.hero__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: 0; z-index: -2;
	transition: opacity .6s ease;
}
.hero__bg.loaded { opacity: .34; }
.hero::after { /* darkening veil so text stays legible over any uploaded photo */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(6,48,73,.55), rgba(6,48,73,.78));
}
.hero__phoenix {
	position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
	width: min(560px, 52vw); opacity: .10; z-index: -1; pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 118px; padding-bottom: 118px; }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero__sub { font-size: 1.18rem; color: #e2edf2; max-width: 620px; margin: 22px 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Pillars ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius);
	padding: 38px 32px;
	box-shadow: var(--shadow-sm);
	transition: transform .16s ease, box-shadow .16s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 20px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------------- Story ---------------- */
.story-lead { font-size: 1.22rem; color: var(--ink-soft); }
.pullquote {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	color: #fff;
	line-height: 1.3;
	max-width: 900px;
	position: relative;
	padding-left: 30px;
}
.pullquote::before {
	content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
	width: 4px; background: linear-gradient(var(--gold), transparent);
}
.pullquote span { color: var(--gold-soft); }
.byline { font-family: var(--display); font-weight: 600; color: var(--gold-deep); letter-spacing: .04em; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; }
.prose { max-width: 780px; }

/* ---------------- Portfolio profiles ---------------- */
.profile {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
	margin-bottom: 56px;
}
.profile:nth-child(even) .profile__media { order: 2; }
.profile__media {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
	position: relative; overflow: hidden;
	box-shadow: var(--shadow);
	display: flex; align-items: center; justify-content: center;
}
.profile__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.profile__placeholder {
	color: rgba(255,255,255,.72); font-family: var(--display); font-weight: 600;
	font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; padding: 20px;
}
.profile__placeholder svg { width: 54px; height: 54px; margin: 0 auto 12px; display: block; opacity: .85; }
.profile__tag {
	display: inline-block; font-family: var(--display); font-weight: 700; font-size: .72rem;
	letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
	background: rgba(216,167,64,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.profile__body p { color: var(--ink-soft); }

/* ---------------- Notice ---------------- */
.notice-legal {
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	background: var(--paper);
	border-radius: var(--radius);
	padding: 24px 28px;
	color: var(--ink-soft);
	font-size: .95rem;
}
.notice-legal strong { color: var(--navy); font-family: var(--display); }

/* ---------------- Diaspora cards ---------------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.svc-card__num {
	font-family: var(--display); font-weight: 800; color: var(--gold);
	font-size: 1.1rem; letter-spacing: .1em;
}
.svc-card__icon { width: 44px; height: 44px; color: var(--teal); margin: 10px 0 18px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

.feature-band {
	background: linear-gradient(135deg, var(--navy), var(--navy-3));
	color: #dfeaf0; border-radius: var(--radius); padding: 48px 44px;
	display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
}
.feature-band svg { width: 64px; height: 64px; color: var(--gold); }
.feature-band h3 { color: #fff; }
.feature-band p { margin: 0; }

/* ---------------- Compliance block ---------------- */
.compliance {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px;
}
.compliance dt { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.compliance dd { margin: 0 0 4px; color: var(--ink); font-weight: 600; }
.section--navy .compliance dt { color: var(--gold-soft); }
.section--navy .compliance dd { color: #fff; }

/* ---------------- Forms ---------------- */
.form-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 40px; box-shadow: var(--shadow); max-width: 720px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
	font-family: var(--body); font-size: 1rem; color: var(--ink);
	padding: 13px 14px; border: 1px solid #cfd8dd; border-radius: var(--radius);
	background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,127,163,.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #e7f4ec; color: #1a5e35; border: 1px solid #b6ddc4; }
.form-msg.err { display: block; background: #fbeaea; color: #8f2020; border: 1px solid #eec3c3; }

/* Contact info block */
.info-block { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row svg { width: 24px; height: 24px; color: var(--gold-deep); flex: none; margin-top: 3px; }
.info-row .k { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.info-row .v { font-weight: 600; color: var(--navy); }
.info-row .v a { color: var(--navy); }

/* ---------------- CTA band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--teal)); color: #fff; border-radius: var(--radius); padding: 60px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9eaf1; max-width: 560px; margin: 0 auto 28px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #04283b; color: #a9c1cf; padding: 66px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 44px; margin-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand .b1 { font-family: var(--display); font-weight: 800; letter-spacing: .04em; color: #fff; font-size: 1.15rem; }
.footer-brand .b2 { font-family: var(--display); letter-spacing: .28em; color: var(--gold-soft); font-size: .62rem; margin-top: 3px; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #a9c1cf; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-compliance dt { font-family: var(--display); font-weight: 700; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.footer-compliance dd { margin: 0 0 12px; color: #cfe0ea; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }

/* ---------------- Two-column responsive layouts ---------------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.pillars, .svc-cards { grid-template-columns: 1fr; }
	.split-2, .contact-layout { grid-template-columns: 1fr; }
	.profile { grid-template-columns: 1fr; gap: 24px; }
	.profile:nth-child(even) .profile__media { order: 0; }
	.footer-top { grid-template-columns: 1fr; gap: 30px; }
	.feature-band { grid-template-columns: 1fr; text-align: left; }
	.cta-band { padding: 44px 28px; }
}
@media (max-width: 760px) {
	.nav {
		position: fixed; inset: 74px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 8px 24px 20px; transform: translateY(-140%); transition: transform .28s ease;
		box-shadow: var(--shadow);
	}
	.nav.open { transform: translateY(0); }
	.nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav a[aria-current="page"]::after { display: none; }
	.nav .btn { margin-top: 14px; }
	.nav-toggle { display: block; }
	.form-grid { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__bg { transition: none; }
}
