/* Golden Dragon Capital Limited — site stylesheet */

/* ---------- Fonts ---------- */

/* Only the 600 weight is self-hosted, so all Montserrat text renders at 600. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: fallback;
	src: url("/fonts/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w7Y3tcoqK5.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 700;
	font-display: block;
	src: url("/fonts/IBMPlexMono-Bold.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
	--navy: #050829;
	--gold: #f7b321;
	--white: #ffffff;
	--black: #000000;

	--font-sans: "Montserrat", sans-serif;
	--font-mono: "IBM Plex Mono", monospace;

	--fs-small: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.169), 1rem);
	--fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.169), 1.125rem);
	--fs-large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.169), 1.875rem);
	--fs-x-large: 2.25rem;

	--space-30: clamp(1.5rem, 5vw, 2rem);
	--space-40: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
	--space-70: clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem);
	--gap: 1.5rem;

	--content-width: 650px;
	--wide-width: 1500px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 10px 0;
	background-color: var(--navy);
	color: var(--white);
	font-family: var(--font-sans);
	font-size: var(--fs-small);
	line-height: 1.8;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible {
	text-decoration: underline dashed;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.5;
}

h1 {
	font-size: clamp(2.032rem, 2.032rem + ((1vw - 0.2rem) * 2.16), 3.625rem);
	line-height: 1.2;
}

h2 {
	font-size: clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem);
	line-height: 1.2;
}

h3 { font-size: var(--fs-x-large); }
h4 { font-size: var(--fs-large); }

hr {
	width: 100px;
	border: 0;
	border-top: 2px solid currentColor;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--white);
	color: var(--black);
}

.skip-link:focus {
	left: 0.5rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Layout ---------- */

/* Narrow centred column; direct children are spaced by --gap. */
.container {
	max-width: calc(var(--content-width) + 2 * var(--space-30));
	margin: 0 auto;
	padding: 0 var(--space-30);
}

.container > * {
	margin-top: var(--gap);
	margin-bottom: 0;
}

.container > :first-child {
	margin-top: 0;
}

.text-center {
	text-align: center;
}

/* ---------- Header ---------- */

.site-header {
	padding: var(--space-30);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	max-width: var(--wide-width);
	margin: 0 auto;
}

.site-title {
	margin: 0;
	font-size: var(--fs-large);
}

.site-title span {
	color: var(--gold);
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.menu-toggle svg {
	display: block;
	fill: currentColor;
}

.menu-toggle .icon-close {
	display: none;
}

/* Small screens: the header menu becomes a full-screen overlay. */
@media (max-width: 599px) {
	.menu-toggle {
		display: block;
		position: relative;
		z-index: 20;
	}

	.site-nav .nav-list {
		display: none;
	}

	.site-nav.is-open .nav-list {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 10;
		flex-direction: column;
		align-items: flex-end;
		padding: calc(var(--space-30) + 3rem) var(--space-30) var(--space-30);
		background: var(--navy);
		font-size: var(--fs-medium);
	}

	.site-nav.is-open .icon-open { display: none; }
	.site-nav.is-open .icon-close { display: block; }

	html.menu-open {
		overflow: hidden;
	}
}

/* ---------- Buttons ---------- */

.buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 50px;
}

.button {
	display: inline-block;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	background-color: var(--gold);
	color: var(--black);
	font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.085), 15px);
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
}

.button:hover,
.button:focus-visible {
	background-color: var(--white);
	color: var(--black);
	text-decoration: none;
}

.page .button:hover,
.page .button:focus-visible {
	background-color: var(--navy);
	color: var(--white);
}

/* ---------- Social links ---------- */

.social-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 36px;
}

.social-links a {
	display: block;
	padding: 0.25em;
	border-radius: 9999px;
	line-height: 0;
}

.social-links svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.social-links .whatsapp { background: #25d366; color: var(--white); }
.social-links .mail { background: #f0f0f0; color: #444; }
.social-links .linkedin { background: #0d66c2; color: var(--white); }

.social-links a:hover {
	transform: scale(1.1);
	transition: transform 0.1s ease;
}

/* ---------- Footer ---------- */

.site-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap);
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: var(--space-40) var(--space-30);
	text-align: center;
}

.site-footer .nav-list {
	justify-content: center;
}

.site-footer p {
	margin: 0;
}

/* ---------- Home ---------- */

.hero img {
	display: block;
	width: 100%;
	height: 100vh;
	object-fit: cover;
}

.home-intro {
	margin-top: var(--space-40);
	margin-bottom: var(--gap);
}

.home-intro h2 {
	font-size: var(--fs-large);
	line-height: 1.5;
}

.home-intro .buttons {
	margin-top: calc(var(--gap) * 2);
}

/* ---------- Inner pages (white panel) ---------- */

.page {
	padding: var(--space-30) 0 var(--space-40);
	background-color: var(--white);
	color: var(--black);
}

.page h1 {
	margin-bottom: var(--space-40);
}

.page ul,
.page ol {
	padding-left: 2em;
}

.page figure {
	margin-left: 0;
	margin-right: 0;
}

.page figure img {
	display: block;
}

.page figcaption {
	margin: 0.5em 0 1em;
}

.portrait img {
	width: 318px;
}

.cta {
	font-size: var(--fs-large);
	text-align: center;
}

.cta a {
	color: var(--gold);
}

/* ---------- Research gallery ---------- */

.section-title {
	font-size: var(--fs-large);
	font-weight: 700;
	line-height: 1.5;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap);
	margin: var(--gap) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 731 / 945;
	object-fit: cover;
	border: 1px solid var(--black);
}

.gallery a:hover img {
	opacity: 0.85;
}

/* ---------- Contact card ---------- */

.contact-card {
	padding: 2rem;
	border-radius: 12px;
	background: var(--navy);
	color: var(--white);
}

.contact-card__title {
	margin: 0 0 1.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.contact-card__list {
	display: grid;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-card__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: rgba(247, 179, 33, 0.14);
	color: var(--gold);
}

.contact-card__label {
	margin: 0 0 0.2rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--gold);
}

.contact-card__value {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	font-style: normal;
	overflow-wrap: anywhere;
}

.contact-card a.contact-card__value:hover,
.contact-card a.contact-card__value:focus-visible {
	color: var(--gold);
	text-decoration: underline;
}

.contact-card__value--large {
	font-size: 1.375rem;
	font-weight: 700;
}

.contact-card__map {
	margin-top: 1.75rem;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: rgba(255, 255, 255, 0.06);
}

.contact-card__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.contact-card__maplink {
	display: inline-block;
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold);
}

@media (max-width: 480px) {
	.contact-card {
		padding: 1.5rem;
	}
}
