/* ==========================================================================
   Swift Shell — Global Stylesheet
   Site-wide only: reset, tokens, typography, containers, buttons,
   header, footer, forms, utilities. No homepage-specific rules here.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
	/* Colour */
	--color-bg: #F5F1EA;
	--color-surface: #FFFFFF;
	--color-surface-muted: #ECE7DD;
	--color-text: #1B1915;
	--color-text-muted: #6B655C;
	--color-dark: #14120F;
	--color-charcoal: #1D1A16;
	--color-gold: #C79A65;
	--color-gold-light: #E4C79A;
	--color-border: #E1DACB;
	--color-border-dark: rgba(255, 255, 255, 0.12);
	--color-on-dark: #F5F1EA;
	--color-on-dark-muted: rgba(245, 241, 234, 0.62);

	/* Typography */
	--font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	/* Layout */
	--container-width: 1280px;
	--container-gutter: 32px;

	/* Radius */
	--radius-small: 4px;
	--radius-medium: 10px;
	--radius-large: 22px;

	/* Spacing */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 40px;
	--space-xl: 72px;
	--space-2xl: 112px;

	/* Motion */
	--transition-fast: 150ms ease;
	--transition-normal: 300ms ease;
}

/* -------------------------------------------------------------------------
   2. Reset / normalisation
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button, input, textarea, select {
	font: inherit;
	color: inherit;
}

button { cursor: pointer; }

a {
	color: inherit;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

main { display: block; }

:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--color-dark);
	color: var(--color-on-dark);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-small);
}

.skip-link:focus {
	left: var(--space-sm);
	top: var(--space-sm);
}

/* -------------------------------------------------------------------------
   4. Typography system
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.12;
	color: var(--color-text);
}

.display {
	font-size: clamp(2.6rem, 4.4vw, 4.1rem);
	line-height: 1.08;
}

h1, .h1 { font-size: clamp(2.2rem, 3.4vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.7rem, 2.4vw, 2.35rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.4vw, 1.5rem); }
h4, .h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--color-text-muted); }

.lede {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--color-text-muted);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin-bottom: var(--space-sm);
}

.eyebrow::before {
	content: '';
	width: 18px;
	height: 1px;
	background: var(--color-gold);
}

small, .caption {
	font-size: 0.82rem;
	color: var(--color-text-muted);
}

.section--dark .eyebrow,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--color-on-dark);
}

.section--dark p,
.section--dark .lede {
	color: var(--color-on-dark-muted);
}

/* -------------------------------------------------------------------------
   5. Layout primitives
   ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-gutter);
}

.section {
	padding-block: var(--space-2xl);
	background: var(--color-bg);
}

.section--surface { background: var(--color-surface); }
.section--muted { background: var(--color-surface-muted); }

.section--dark {
	background: var(--color-dark);
	color: var(--color-on-dark);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.grid {
	display: grid;
	gap: var(--space-lg);
}

.stack > * + * { margin-top: var(--space-md); }

.cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md);
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 14px 26px;
	font-size: 0.92rem;
	font-weight: 600;
	border-radius: var(--radius-small);
	border: 1px solid transparent;
	transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
	white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
	background: var(--color-gold);
	color: var(--color-dark);
}
.btn--primary:hover { background: var(--color-gold-light); }

.btn--dark {
	background: var(--color-dark);
	color: var(--color-on-dark);
}
.btn--dark:hover { background: #262219; }

.btn--light {
	background: var(--color-surface);
	color: var(--color-text);
	border-color: var(--color-border);
}
.btn--light:hover { border-color: var(--color-gold); }

.btn--outline {
	background: transparent;
	color: var(--color-on-dark);
	border-color: var(--color-border-dark);
}
.btn--outline:hover { border-color: var(--color-gold); color: var(--color-gold-light); }

.btn--text {
	padding: 0;
	background: none;
	color: var(--color-text);
	font-weight: 600;
	gap: 6px;
}
.btn--text .link-arrow { transition: transform var(--transition-fast); }
.btn--text:hover .link-arrow { transform: translateX(3px); }

.section--dark .btn--text { color: var(--color-on-dark); }

.link-arrow { width: 15px; height: 9px; }

/* -------------------------------------------------------------------------
   7. Forms (foundation for future contact page)
   ------------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
	padding: 12px 14px;
	font-size: 0.95rem;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	border-color: var(--color-gold);
}

.form-field--checkbox,
.form-field--radio {
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.form-message {
	font-size: 0.85rem;
	padding: 10px 14px;
	border-radius: var(--radius-small);
}

.form-message--error {
	background: #FBEAE7;
	color: #A23B2C;
}

.form-message--success {
	background: #E8F0E4;
	color: #33622D;
}

/* -------------------------------------------------------------------------
   8. Site header
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	padding-block: 18px;
}

.site-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo__link {
	display: inline-flex;
	align-items: center;
	color: inherit;
	line-height: 1;
}

.site-logo__image {
	display: block;
	width: auto;
	height: 34px;
	max-width: 220px;
	object-fit: contain;
}

@media (max-width: 767px) {
	.site-logo__image {
		height: 30px;
		max-width: 190px;
	}
}

.main-navigation { display: none; }

.nav-menu {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	font-size: 0.92rem;
}

.nav-menu a {
	color: var(--color-text);
	transition: color var(--transition-fast);
}
.nav-menu a:hover { color: var(--color-gold); }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-small);
}

.menu-toggle__bars {
	position: relative;
	width: 18px;
	height: 12px;
}

.menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: var(--color-text);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__bars span:nth-child(3) { bottom: 0; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
	transform: translateY(5.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
	transform: translateY(-5.25px) rotate(-45deg);
}

.mobile-navigation {
	display: none;
	position: fixed;
	inset: 0;
	top: 66px;
	background: var(--color-bg);
	z-index: 99;
	padding: var(--space-lg) var(--space-gutter, var(--container-gutter));
	overflow-y: auto;
}

.mobile-navigation.is-open { display: block; }

.mobile-navigation .nav-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	font-size: 1.3rem;
	font-family: var(--font-heading);
}

.mobile-navigation__cta { margin-top: var(--space-xl); }

@media (min-width: 1024px) {
	.main-navigation { display: block; }
	.menu-toggle { display: none; }
	.mobile-navigation { display: none !important; }
}

/* -------------------------------------------------------------------------
   9. Site footer
   ------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-bg);
	border-top: 1px solid var(--color-border);
	padding-block: var(--space-lg) var(--space-md);
}

.site-footer__top {
	display: grid;
	gap: var(--space-md) var(--space-lg);
	grid-template-columns: 1.5fr repeat(4, 1fr);
	padding-bottom: var(--space-lg);
}

.site-footer__brand .site-logo { margin-bottom: var(--space-sm); }

.site-footer__brand p {
	max-width: 34ch;
	font-size: 0.92rem;
}

.footer-col__title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
	font-size: 0.92rem;
	color: var(--color-text);
	transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-gold); }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-sm);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
	font-size: 0.82rem;
	color: var(--color-text-muted);
}

.site-footer__legal {
	display: flex;
	gap: var(--space-md);
}

@media (min-width: 1024px) {
	.site-footer__top { grid-template-columns: 1.5fr repeat(4, 1fr); }
}

@media (max-width: 1023px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
	.site-footer__top { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   10. Utilities
   ------------------------------------------------------------------------- */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}

.text-muted { color: var(--color-text-muted); }
.text-gold { color: var(--color-gold); }

@media (max-width: 767px) {
	:root { --container-gutter: 20px; }
	.section { padding-block: var(--space-xl); }
}
