/* ==========================================================================
   Advocix — base: fonts, tokens, reset, typography, shared components
   Desktop values come from the Figma frame (1600px wide, 1300px container).
   ========================================================================== */

@font-face {
	font-family: "Prata";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/prata-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Prata";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/prata-latin-ext.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Colors (Figma variables) */
	--c-dark: #071832;
	--c-gold: #a68847;
	--c-gold-dark: #8c7238;
	--c-white: #fff;
	--c-body: #535956;
	--c-cream: #f5f2e9;
	--c-sand: #efeadd;
	--c-tan: #cdba90;
	--c-ink-70: rgba(7, 24, 50, 0.7);
	--c-ink-20: rgba(7, 24, 50, 0.2);
	--c-ink-15: rgba(7, 24, 50, 0.15);

	/* Type */
	--f-serif: "Prata", "Times New Roman", Georgia, serif;
	--f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-display: clamp(40px, 4vw + 16px, 80px); /* hero H1 80 */
	--fs-h2: clamp(36px, 3vw + 12px, 60px);      /* 60 */
	--fs-h3: clamp(32px, 2.5vw + 12px, 52px);    /* 52 */
	--fs-h4: clamp(30px, 2vw + 12px, 44px);      /* 44 */
	--fs-step: clamp(24px, 1.5vw + 12px, 36px);  /* 36 */
	--fs-h5: clamp(24px, 1vw + 16px, 32px);      /* 32 */
	--fs-h6: clamp(22px, 0.75vw + 16px, 28px);   /* 28 */
	--fs-lead: clamp(18px, 0.5vw + 14px, 22px);  /* 22 */

	/* Layout */
	--container: 1300px;
	--gutter: clamp(20px, 4vw, 40px);
	--section-y: clamp(80px, 10vw, 160px);
	--stack-lg: clamp(48px, 4.5vw, 72px);
	--radius-sm: 4px;
	--radius: 6px;
	--radius-lg: 8px;
	--header-h: 99px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-dark);
	font-family: var(--f-sans);
	font-size: 18px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img.icon { flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

.screen-reader-text,
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	position: fixed !important; top: 12px; left: 12px; z-index: 1000;
	padding: 12px 20px; background: var(--c-white); color: var(--c-dark);
	border-radius: var(--radius); box-shadow: 0 8px 24px rgba(7, 24, 50, 0.2);
}

/* Layout helpers --------------------------------------------------------- */
.container {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--c-cream); }
.section--sand { background: var(--c-sand); }
.section--dark { background: var(--c-dark); color: var(--c-white); }

/* Typography ------------------------------------------------------------- */
.serif,
.h-display, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--f-serif);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
}
.h-display { font-size: var(--fs-display); line-height: 1.3; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.h5 { font-size: var(--fs-h5); }
.h6 { font-size: var(--fs-h6); }
.capitalize { text-transform: capitalize; }
.text-center { text-align: center; }

.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.02em; }
.muted { opacity: 0.7; }
.eyebrow {
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Section header bar: (01)  (ABOUT US)  © 2026 ---------------------------- */
.sec-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--c-ink-20);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-dark);
}
.sec-head__num { display: inline-flex; align-items: center; gap: 8px; }
.sec-head__icon { width: 20px; height: 20px; }
.sec-head__label { text-align: center; opacity: 0.8; }
.sec-head__year { justify-self: end; }
.sec-head--dark { color: var(--c-white); border-top-color: rgba(255, 255, 255, 0.15); }
.sec-head--dark .sec-head__num,
.sec-head--dark .sec-head__year { opacity: 0.8; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 4px 4px 4px 40px;
	border-radius: var(--radius);
	background: var(--c-gold);
	color: var(--c-white);
	font-family: var(--f-sans);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn__tile {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: var(--radius-sm);
	background: var(--c-white);
	overflow: hidden;
}
.btn__arrow {
	width: 16px;
	height: 16px;
	transform: rotate(-90deg);
	transition: transform 0.35s var(--ease);
}
.btn:hover { background: var(--c-gold-dark); }
.btn:hover .btn__arrow { transform: rotate(-90deg) translate(2px, 2px) scale(1.08); }

.btn--sm { gap: 16px; padding-left: 30px; font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; }
.btn--sm .btn__tile { width: 44px; height: 44px; }

.btn--white { background: var(--c-white); color: var(--c-dark); }
.btn--white .btn__tile { background: var(--c-gold); }
.btn--white:hover { background: var(--c-cream); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Text link with diagonal arrow ("Read More ↗") */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--c-dark);
}
.arrow-link__icon { width: 13px; height: 13px; margin: 3.5px; transform: rotate(-90deg); transition: transform 0.3s var(--ease); }
.arrow-link:hover .arrow-link__icon,
a:hover .arrow-link .arrow-link__icon,
article:hover .arrow-link .arrow-link__icon { transform: rotate(-90deg) translate(2px, 2px); }
.arrow-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Pills / tags ----------------------------------------------------------- */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
	background: var(--c-sand);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: rgba(7, 24, 50, 0.8);
	white-space: nowrap;
}
a.tag:hover { background: #e6dfcd; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* Post meta ("By Advocix Team · 6 min read") */
.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: rgba(7, 24, 50, 0.6);
}
.meta__item { display: inline-flex; align-items: center; gap: 8px; }
.meta__item .icon { width: 20px; height: 20px; opacity: 0.6; }

/* Image frames ----------------------------------------------------------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #d9d9d9; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb pill -------------------------------------------------------- */
.crumbs ol {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 12px;
	list-style: none;
	border-radius: var(--radius-sm);
	background: var(--c-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-dark);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li:not([aria-current]) { opacity: 0.5; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: currentColor; opacity: 0.6; }
.crumbs li[aria-current]::before { background: rgba(7, 24, 50, 0.3); opacity: 1; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a img { width: 20px; height: 20px; }
.crumbs li:not([aria-current]):hover { opacity: 0.8; }
.crumbs [aria-current] { color: var(--c-dark); }
.crumbs--dark ol { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px); }
.crumbs--dark [aria-current], .crumbs--dark a:hover { color: var(--c-white); }

/* Reveal-on-scroll (progressive: only hidden once JS marks the page ready) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Responsive tweaks for shared parts ------------------------------------- */
@media (max-width: 767px) {
	body { font-size: 17px; }
	.sec-head { grid-template-columns: auto 1fr auto; font-size: 13px; gap: 10px; }
	.btn { gap: 20px; padding-left: 24px; font-size: 16px; }
	.btn__tile { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
	.sec-head__year { display: none; }
	.sec-head { grid-template-columns: auto 1fr; }
	.sec-head__label { text-align: right; }
}
