/* ==========================================================================
   Greenwood Investments — main stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	/* Brand */
	--gw-green: #0c271a;
	--gw-green-deep: #081c12;
	--gw-green-soft: #143324;
	--gw-gold: #c9aa5e;
	--gw-gold-bright: #dcc99b;
	--gw-cream: #f6f1e8;
	--gw-cream-soft: #fbf8f1;

	/* Neutrals */
	--gw-white: #ffffff;
	--gw-ink: #0c271a;
	--gw-text: #5c6970;
	--gw-text-light: #c4cec8;
	--gw-line: #eae3d5;
	--gw-line-dark: rgba(255, 255, 255, 0.12);

	/* Type */
	--gw-serif: "Inria Serif", Georgia, serif;
	--gw-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Layout */
	--gw-container: 1200px;
	--gw-radius: 16px;
	--gw-radius-sm: 10px;
	--gw-header-h: 76px;

	/* Motion */
	--gw-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--gw-header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--gw-sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--gw-text);
	background: var(--gw-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--gw-serif);
	color: var(--gw-ink);
	margin: 0 0 0.4em;
	line-height: 1.18;
	font-weight: 400;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.gw-container {
	width: 100%;
	max-width: var(--gw-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.gw-section {
	padding-block: 96px;
}

.gw-section--tight {
	padding-block: 64px;
}

.gw-section--cream {
	background: var(--gw-cream);
}

.gw-section--green {
	background: var(--gw-green);
	color: var(--gw-text-light);
}

.gw-section--green h1,
.gw-section--green h2,
.gw-section--green h3 {
	color: var(--gw-white);
}

.gw-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}

.gw-measure {
	max-width: 720px;
}

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */

/* Eyebrow pill */
.gw-pill {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 999px;
	color: #9a7d3c;
	background: rgba(201, 170, 94, 0.14);
	border: 1px solid rgba(201, 170, 94, 0.35);
}

.gw-section--green .gw-pill {
	color: var(--gw-gold-bright);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
}

/* Buttons */
.gw-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--gw-sans);
	font-size: 15.5px;
	font-weight: 600;
	padding: 15px 30px;
	border-radius: var(--gw-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s var(--gw-ease), background 0.2s var(--gw-ease),
		color 0.2s var(--gw-ease), border-color 0.2s var(--gw-ease);
}

.gw-btn:hover {
	transform: translateY(-2px);
}

.gw-btn--gold {
	background: var(--gw-gold);
	color: var(--gw-green);
}

.gw-btn--gold:hover {
	background: var(--gw-gold-bright);
}

.gw-btn--ghost {
	background: transparent;
	color: var(--gw-white);
	border-color: rgba(255, 255, 255, 0.45);
}

.gw-btn--ghost:hover {
	border-color: var(--gw-white);
	background: rgba(255, 255, 255, 0.06);
}

.gw-btn--dark {
	background: var(--gw-green);
	color: var(--gw-white);
}

.gw-btn--dark:hover {
	background: var(--gw-green-soft);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.gw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(12, 39, 26, 0.97);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--gw-header-h);
}

.gw-brand {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	font-family: var(--gw-serif);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--gw-white);
	white-space: nowrap;
}

.gw-brand__b {
	color: var(--gw-gold);
}

.gw-brand--image img {
	max-height: 46px;
	width: auto;
}

/* Nav */
.gw-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.gw-nav__list a {
	display: inline-block;
	padding: 9px 14px;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.86);
	border-radius: 8px;
	transition: color 0.2s var(--gw-ease), background 0.2s var(--gw-ease);
}

.gw-nav__list a:hover,
.gw-nav__list .current-menu-item > a {
	color: var(--gw-gold);
	background: rgba(255, 255, 255, 0.06);
}

.gw-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Mobile toggle */
.gw-burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	cursor: pointer;
}

.gw-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--gw-white);
	position: relative;
	transition: background 0.2s var(--gw-ease);
}

.gw-burger span::before,
.gw-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--gw-white);
	transition: transform 0.25s var(--gw-ease);
}

.gw-burger span::before {
	top: -6px;
}

.gw-burger span::after {
	top: 6px;
}

.gw-header.is-open .gw-burger span {
	background: transparent;
}

.gw-header.is-open .gw-burger span::before {
	transform: translateY(6px) rotate(45deg);
}

.gw-header.is-open .gw-burger span::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.gw-footer {
	background: var(--gw-green-deep);
	color: var(--gw-text-light);
	padding-block: 64px 28px;
}

.gw-footer a {
	color: var(--gw-text-light);
	transition: color 0.2s var(--gw-ease);
}

.gw-footer a:hover {
	color: var(--gw-gold);
}

.gw-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 40px;
}

.gw-footer h4 {
	font-family: var(--gw-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--gw-gold);
	margin-bottom: 14px;
}

.gw-footer__links li + li {
	margin-top: 9px;
}

.gw-footer__bottom {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--gw-line-dark);
	text-align: center;
	font-size: 13.5px;
	color: #8a9b95;
}

.gw-footer__about {
	font-size: 14.5px;
	color: #9fb0aa;
	max-width: 340px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.gw-hero {
	background: var(--gw-green);
	color: var(--gw-text-light);
	padding-block: 120px 110px;
	position: relative;
	overflow: hidden;
}

.gw-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -55% auto;
	width: 620px;
	height: 620px;
	background: radial-gradient(circle, rgba(201, 170, 94, 0.16), transparent 68%);
	pointer-events: none;
}

.gw-hero__inner {
	position: relative;
	z-index: 1;
}

.gw-hero h1 {
	font-size: clamp(34px, 5.2vw, 62px);
	color: var(--gw-white);
	margin: 0;
}

.gw-hero h1 em {
	font-style: normal;
	color: var(--gw-gold);
}

.gw-hero__lead {
	font-size: 18px;
	color: var(--gw-text-light);
}

.gw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 6px;
}

/* --------------------------------------------------------------------------
   8. Generic page content
   -------------------------------------------------------------------------- */
.gw-page {
	padding-block: 72px;
}

.gw-page__title {
	font-size: clamp(30px, 4vw, 46px);
	margin-bottom: 24px;
}

.gw-prose h2,
.gw-prose h3 {
	margin-top: 1.4em;
}

.gw-prose a {
	color: var(--gw-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.gw-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 860px) {
	.gw-burger {
		display: inline-flex;
	}

	.gw-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--gw-green);
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding: 10px 24px 18px;
		display: none;
	}

	.gw-header.is-open .gw-nav {
		display: block;
	}

	.gw-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.gw-nav__list a {
		padding: 12px 10px;
	}

	.gw-header__actions .gw-btn {
		display: none;
	}
}

@media (max-width: 640px) {
	.gw-section {
		padding-block: 64px;
	}

	.gw-hero {
		padding-block: 84px 72px;
	}

	.gw-footer__grid {
		grid-template-columns: 1fr;
	}

	.gw-footer__about {
		max-width: none;
	}
}
