/**
 * Simpson Real Estate Services — design tokens + base
 *
 * Single source of truth for the brand palette, type scale, and spacing,
 * extracted from the Figma build (file sK7c0qxHSDP3K3uaStrzSI). Component and
 * section styles live in main.css; this file is tokens + reset + shared
 * utilities only.
 */

/* Inter — the entire design is Inter (400/500/600/700/900). Loaded via Google
   Fonts in functions.php; this @import is a belt-and-suspenders fallback. */

:root {
	/* ---- Palette ---- */
	--c-navy:        #0e1b32; /* darkest — headings, footer, dark sections */
	--c-navy-hero:   #1a3660; /* hero base before gradient */
	--c-navy-bright: #1e4d8c; /* gradient mid / link accent on dark */
	--c-orange:      #ea5a2b; /* primary accent */
	--c-orange-dark: #d24a1f; /* button hover */
	--c-cream:       #faf8f5; /* card + alternating section background */
	--c-border:      #e3e3e3; /* hairline borders */
	--c-body:        #4a5469; /* body copy on light */
	--c-muted:       #6b7689; /* secondary copy */
	--c-white:       #ffffff;

	/* on-dark text */
	--c-on-dark:        rgba(255, 255, 255, 0.90);
	--c-on-dark-muted:  rgba(255, 255, 255, 0.60);
	--c-on-dark-faint:  rgba(255, 255, 255, 0.15);

	/* ---- Type ---- */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* ---- Layout ---- */
	--container-max: 1440px;
	--gutter: 80px;
	--content-max: 1280px;  /* container-max minus 2*gutter */
	--section-pad: 120px;   /* default vertical section padding */
	--radius: 4px;
	--radius-lg: 8px;
}

/* ------------------------------------------------------------------ reset */

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-body);
	background: var(--c-white);
	/* Playbook: match Figma's grayscale rendering, not the browser's heavier
	   subpixel default on macOS. Changes no weights — a render hint only. */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--c-orange); text-decoration: none; }
a:hover { color: var(--c-orange-dark); }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--c-navy);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

/* ------------------------------------------------------------- utilities */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--cream { background: var(--c-cream); }
.section--navy  { background: var(--c-navy); color: var(--c-on-dark); }

/* Eyebrow / kicker — orange uppercase label above headings */
.eyebrow {
	display: inline-block;
	margin: 0 0 20px;
	color: var(--c-orange);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.eyebrow--rule { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.eyebrow--rule::before {
	content: "";
	width: 40px;
	height: 3px;
	background: var(--c-orange);
}

/* Section heading */
.section-heading {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--c-navy);
}
.section--navy .section-heading { color: var(--c-white); }

.lead {
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-body);
}
.section--navy .lead { color: var(--c-on-dark); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 32px;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
	white-space: nowrap;
}
.btn--primary { background: var(--c-orange); color: var(--c-white); }
.btn--primary:hover { background: var(--c-orange-dark); color: var(--c-white); }

.btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--c-white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: var(--c-white); }

.btn--outline {
	background: transparent;
	border-color: var(--c-navy);
	color: var(--c-navy);
}
.btn--outline:hover { background: var(--c-navy); color: var(--c-white); }

.btn__arrow { font-size: 16px; line-height: 1; }

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	background: var(--c-white); color: var(--c-navy); padding: 12px 20px;
	border-radius: var(--radius);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	:root { --gutter: 40px; --section-pad: 80px; }
}
@media (max-width: 640px) {
	:root { --gutter: 20px; --section-pad: 56px; }
	body { font-size: 16px; }
	.btn { padding: 15px 24px; }
}
