/* ==========================================================
   Elibra Group Limited — shared stylesheet
   ========================================================== */
:root {
	--ink: #0f1d22;
	--slate: #1f3a40;          /* evolved from the original darkslategrey */
	--slate-2: #2f4f4f;        /* darkslategrey */
	--slate-3: #3d6363;
	--mist: #e8eeee;
	--paper: #f7f8f6;
	--brass: #c39a5b;
	--brass-dark: #9c7a43;
	--white: #ffffff;
	--muted: #5c6f72;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 29, 34, 0.12);
	--max: 1120px;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--sans: "Segoe UI", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-3); }
a:hover { color: var(--brass-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
	position: absolute; left: -999px; top: 0;
	background: var(--brass); color: var(--ink); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid rgba(31, 58, 64, 0.1);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; min-height: 72px;
}
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a {
	color: var(--slate); text-decoration: none; font-size: .92rem;
	letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
	padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: var(--white);
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(195, 154, 91, 0.22), transparent 60%),
		linear-gradient(160deg, var(--slate) 0%, var(--slate-2) 55%, #24403f 100%);
	overflow: hidden;
}
.hero::after { /* subtle horizon line motif — sea and sky */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
	background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
	pointer-events: none;
}
.hero .wrap { padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7rem); position: relative; z-index: 1; }
.eyebrow {
	display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
	color: var(--brass); font-weight: 700; margin-bottom: 1rem;
}
.hero h1 {
	font-family: var(--serif); font-weight: 500;
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem);
	line-height: 1.1; margin: 0 0 1.25rem; max-width: 18ch;
}
.hero p.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 60ch; color: rgba(255,255,255,.86); margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
	text-decoration: none; font-size: .98rem; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #d4ad6f; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head h2 {
	font-family: var(--serif); font-weight: 500; color: var(--slate);
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; margin: 0 0 .75rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head .eyebrow { color: var(--brass-dark); }
.alt { background: var(--white); }
.dark { background: var(--slate); color: var(--white); }
.dark .section-head h2 { color: var(--white); }
.dark .section-head p { color: rgba(255,255,255,.78); }
.dark .eyebrow { color: var(--brass); }

/* ---------- Company cards ---------- */
.companies {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 1.5rem;
}
.company {
	display: flex; flex-direction: column;
	background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden;
	text-decoration: none; color: inherit;
	border: 1px solid rgba(31,58,64,.06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.company:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,29,34,.18); color: inherit; }
.company .logo-box {
	background: var(--slate-2);
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 9; padding: 1.5rem;
}
.company .logo-box img { max-height: 100%; width: auto; max-width: 85%; object-fit: contain; }
.company .body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.company .tag {
	font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted); font-weight: 700;
}
.company .function {
	font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brass-dark); font-weight: 700; margin: .2rem 0 .6rem;
}
.company h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 .5rem; color: var(--slate); }
.company p { margin: 0 0 1.1rem; color: var(--muted); font-size: .97rem; flex: 1; }
.company .visit { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--slate-3); font-size: .93rem; }
.company:hover .visit { color: var(--brass-dark); }

/* ---------- Pillars / values ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; }
.pillar { border-top: 2px solid var(--brass); padding-top: 1.1rem; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 .5rem; }
.pillar p { margin: 0; color: rgba(255,255,255,.78); }
.alt .pillar p, .pillar.light p { color: var(--muted); }
.alt .pillar h3 { color: var(--slate); }

/* ---------- Two-column ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split p { color: var(--muted); }

/* ---------- Structure diagram ---------- */
.structure { display: flex; flex-direction: column; align-items: center; gap: 0; }
.structure .parent {
	background: var(--slate); color: var(--white); border-radius: 10px;
	padding: 1rem 2rem; font-family: var(--serif); font-size: 1.2rem; text-align: center;
}
.structure .stem { width: 2px; height: 28px; background: var(--brass); }
.structure .children {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 1rem; width: 100%; position: relative; padding-top: 28px;
	border-top: 2px solid var(--brass);
}
.structure .child {
	background: var(--white); border: 1px solid rgba(31,58,64,.15); border-radius: 10px;
	padding: .9rem 1rem; text-align: center; box-shadow: 0 4px 14px rgba(15,29,34,.06);
}
.structure .child strong { display: block; color: var(--slate); font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.structure .child em { display: block; margin-top: .4rem; font-style: normal; font-size: .9rem; color: var(--ink); line-height: 1.4; }
.structure .child span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Key facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.fact { background: var(--white); border-radius: 12px; padding: 1.25rem 1.35rem; border: 1px solid rgba(31,58,64,.1); }
.fact dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.fact dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--slate); }

/* ---------- Documents list ---------- */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(31,58,64,.12); }
.docs li {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1rem 0; border-bottom: 1px solid rgba(31,58,64,.12); flex-wrap: wrap;
}
.docs .doc-title { font-weight: 600; color: var(--slate); }
.docs .doc-meta { font-size: .88rem; color: var(--muted); }
.pill {
	font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
	padding: .3rem .75rem; border-radius: 999px; background: var(--mist); color: var(--muted);
}

/* ---------- Contact band ---------- */
.contact-band { text-align: center; }
.contact-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0 0 .75rem; }
.contact-band p { color: rgba(255,255,255,.8); margin: 0 auto 1.75rem; max-width: 56ch; }

/* ---------- Notice (FCA-style disclaimer) ---------- */
.notice {
	background: var(--mist); border-left: 4px solid var(--brass);
	padding: 1.1rem 1.35rem; border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5); }


@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Policy page ---------- */
.policy { max-width: 860px; }
.policy h2 { font-family: var(--serif); font-weight: 500; color: var(--slate); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin: 2.75rem 0 .9rem; scroll-margin-top: 90px; }
.policy h3 { font-family: var(--serif); font-weight: 500; color: var(--slate); font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.policy p, .policy li { color: #34474a; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: .45rem; }
.policy-toc { background: var(--white); border: 1px solid rgba(31,58,64,.1); border-radius: 12px; padding: 1.25rem 1.5rem; }
.policy-toc strong { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark); }
.policy-toc ol { margin: .6rem 0 0; padding-left: 1.25rem; columns: 2 220px; column-gap: 2rem; }
.policy-toc li { margin-bottom: .3rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.policy table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid rgba(31,58,64,.12); }
.policy th { background: var(--slate); color: var(--white); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.policy tbody tr:nth-child(even) td { background: #f3f5f4; }


/* ==========================================================
   Responsive: tablet and mobile
   ========================================================== */
.menu-toggle { display: none; }

/* Tablet and smaller */
@media (max-width: 900px) {
	section { padding: clamp(3rem, 7vw, 4.5rem) 0; }
	.section-head { margin-bottom: 2rem; }
	.structure .children { grid-template-columns: repeat(2, 1fr); }
}

/* Phones and small tablets: collapsible menu */
@media (max-width: 760px) {
	.site-header .wrap { flex-direction: row; justify-content: space-between; min-height: 64px; padding-top: 0; padding-bottom: 0; }
	.brand img { height: 40px; }
	.menu-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px;
		background: transparent; cursor: pointer;
	}
	.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--slate); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
	.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 0; background: var(--white);
		border-bottom: 1px solid rgba(31,58,64,.12); box-shadow: 0 12px 24px rgba(15,29,34,.12);
		padding: .5rem 1.25rem 1rem;
	}
	.nav-open .nav { display: flex; }
	.nav a { font-size: .95rem; padding: .85rem 0; border-bottom: 1px solid rgba(31,58,64,.08); }
	.nav a:last-child { border-bottom: 0; }
	.nav a[aria-current="page"] { color: var(--brass-dark); border-bottom-color: rgba(31,58,64,.08); }
}

/* Phones */
@media (max-width: 600px) {
	.hero .wrap { padding-top: 3rem; padding-bottom: 3.5rem; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn { justify-content: center; }
	.company .logo-box { aspect-ratio: 2 / 1; padding: 1rem; }
	.company .body { padding: 1.15rem 1.2rem 1.3rem; }
	.pillars { gap: 1.5rem; }
	/* Structure chart becomes a vertical list */
	.structure .children { grid-template-columns: 1fr; border-top: 0; padding-top: 0; gap: .75rem; position: relative; }
	.structure .stem { height: 20px; }
	.structure .child { text-align: left; padding: .9rem 1.1rem; border-left: 3px solid var(--brass); }
	.contact-band .btn { width: 100%; justify-content: center; }
	.docs li { align-items: flex-start; }
	.facts { grid-template-columns: 1fr 1fr; }
	.fact dd { font-size: 1.05rem; overflow-wrap: anywhere; }
	/* Policy tables become stacked cards */
	.policy table, .policy tbody, .policy tr, .policy td { display: block; width: 100%; }
	.policy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.policy tr { border: 1px solid rgba(31,58,64,.12); border-radius: 10px; margin-bottom: .75rem; overflow: hidden; background: var(--white); }
	.policy tbody tr:nth-child(even) td { background: var(--white); }
	.policy td { border-bottom: 1px solid rgba(31,58,64,.08); padding: .6rem .9rem; }
	.policy td:last-child { border-bottom: 0; }
	.policy td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brass-dark); margin-bottom: .2rem; }
	.policy-toc ol { columns: 1; }
	.footer-grid { gap: 1.5rem; }
}

@media (max-width: 380px) {
	.facts { grid-template-columns: 1fr; }
}
