/* ============================================================
   Swift Tree & Landscape — Brand Tokens
   Logo palette + Orbitron/Inter typography + base utility styles.
   ============================================================ */

/* Metric-matched fallback: Arial overridden to match Inter Tight's box
   metrics so text does not reflow when the web font swaps in (kills CLS). */
@font-face {
	font-family: 'Inter Tight Fallback';
	src: local('Arial');
	ascent-override: 90%;
	descent-override: 22.43%;
	line-gap-override: 0%;
	size-adjust: 107.64%;
}

/* Ethnocentric Bold — used for hero subtitle chips (.swift-eyebrow family).
   Drop ethnocentric-bold.woff2/.woff into /assets/fonts/ to activate. */
@font-face {
	font-family: 'Ethnocentric';
	src: url('../fonts/ethnocentric-bold.woff2') format('woff2'),
	     url('../fonts/ethnocentric-bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* ---------- Brand palette (exact from logo brand sheet) ---------- */
	--color-forest-oak:    #14463A;
	--color-pine-needle:   #0D2F26;
	--color-golden-aspen:  #FFB91D;
	--color-birch-bark:    #FDECD5;
	--color-cedar-ember:   #745233;
	--color-white:         #FFFFFF;
	--color-emergency:     #B71C1C;

	/* ---------- Semantic roles ---------- */
	--color-primary:       var(--color-forest-oak);
	--color-primary-dk:    var(--color-pine-needle);
	--color-accent:        var(--color-golden-aspen);
	--color-surface:       var(--color-birch-bark);
	--color-surface-soft:  #FFF7E8;
	--color-text:          var(--color-pine-needle);
	--color-text-muted:    var(--color-cedar-ember);
	--color-bg:            var(--color-white);
	--color-border:        rgba(13, 47, 38, 0.12);

	/* ---------- Typography — Inter Tight, single family, weight-based hierarchy ---------- */
	/* 'Inter Tight Fallback' is Arial metric-matched to Inter Tight (see @font-face
	   below) so headings occupy the SAME space before the web font swaps in —
	   eliminating the font-swap reflow / CLS without changing the final design. */
	--ff-display: 'Inter Tight', 'Inter Tight Fallback', 'Helvetica Neue', Arial, sans-serif;
	--ff-heading: 'Inter Tight', 'Inter Tight Fallback', 'Helvetica Neue', Arial, sans-serif;
	--ff-body:    'Inter Tight', 'Inter Tight Fallback', 'Helvetica Neue', Arial, sans-serif;

	--fs-h1: clamp(2rem, 5vw, 3.5rem);
	--fs-h2: clamp(1.5rem, 3.5vw, 2.5rem);
	--fs-h3: clamp(1.125rem, 2vw, 1.375rem);
	--fs-h4: 1.125rem;
	--fs-body: 1rem;
	--fs-small: 0.875rem;

	--lh-tight: 1.15;
	--lh-snug: 1.35;
	--lh-body: 1.6;

	/* ---------- Layout ---------- */
	--container-max: 1360px;
	--space-section: clamp(48px, 8vw, 96px);
	--space-block: clamp(24px, 4vw, 48px);
	--radius-sm: 4px;
	--radius-card: 12px;
	--radius-pill: 999px;

	--shadow-card:       0 4px 12px rgba(13, 47, 38, 0.08);
	--shadow-card-hover: 0 10px 24px rgba(13, 47, 38, 0.16);
	--shadow-inset:      inset 0 -3px 0 var(--color-golden-aspen);

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Base
   ============================================================ */

html { scroll-behavior: smooth; }

body {
	font-family: var(--ff-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2 {
	font-family: var(--ff-display);
	color: var(--color-primary);
	line-height: var(--lh-tight);
	letter-spacing: -0.02em;
	font-weight: 800;
}

h3, h4, h5, h6 {
	font-family: var(--ff-heading);
	color: var(--color-primary);
	line-height: var(--lh-snug);
	letter-spacing: -0.01em;
	font-weight: 700;
}

h1 { font-size: var(--fs-h1); font-weight: 800; margin: 0 0 0.5em; }
h2 { font-size: var(--fs-h2); font-weight: 700; margin: 0 0 0.6em; }
h3 { font-size: var(--fs-h3); font-weight: 600; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

a {
	color: var(--color-primary);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color .2s var(--ease);
}
a:hover { color: var(--color-primary-dk); text-decoration-thickness: 3px; }

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

/* ============================================================
   Buttons (overrides Elementor defaults)
   ============================================================ */

.elementor-button,
.swift-btn {
	font-family: var(--ff-display);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	padding: 14px 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform .3s cubic-bezier(.4,0,.2,1),
	            box-shadow .3s cubic-bezier(.4,0,.2,1),
	            background-color .3s cubic-bezier(.4,0,.2,1),
	            color .3s cubic-bezier(.4,0,.2,1),
	            border-color .3s cubic-bezier(.4,0,.2,1),
	            gap .3s cubic-bezier(.4,0,.2,1);
	border: 2px solid transparent;
	text-decoration: none;
	will-change: transform;
}
.swift-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.swift-btn:hover { gap: 14px; }
.swift-btn:hover svg { transform: translateX(3px) scale(1.08); }
.swift-btn:active { transform: translateY(0) scale(0.97); }

/* Primary — Golden Aspen on Pine Needle text — 7.1:1 contrast (AAA) */
.elementor-button.is-primary,
.swift-btn-primary {
	background: var(--color-accent);
	color: var(--color-pine-needle);
}
.elementor-button.is-primary:hover,
.swift-btn-primary:hover {
	background: #f5ac00;
	transform: translateY(-2px);
	box-shadow: var(--shadow-card-hover);
}

/* Secondary — outline on dark backgrounds */
.swift-btn-secondary {
	background: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}
.swift-btn-secondary:hover {
	background: var(--color-white);
	color: var(--color-pine-needle);
}

/* Tertiary — ghost on light backgrounds */
.swift-btn-ghost {
	background: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}
.swift-btn-ghost:hover {
	background: var(--color-primary);
	color: var(--color-white);
}

/* ============================================================
   Accessibility
   ============================================================ */

/* ============================================================
   Scroll-reveal animations
   ============================================================ */
.swift-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
	will-change: opacity, transform;
}
.swift-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.swift-no-reveal .swift-reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
	.swift-reveal { opacity: 1; transform: none; transition: none; }
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: var(--color-pine-needle);
	color: var(--color-white);
	padding: 12px 16px;
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

/* FAQ summary should not show the yellow focus ring — opening it already
   gives clear visual feedback. Keep it accessible via the open state. */
.swift-faq-item summary:focus,
.swift-faq-item summary:focus-visible {
	outline: none;
	box-shadow: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
   Utilities used inside Elementor HTML widgets
   ============================================================ */

.swift-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	color: var(--color-birch-bark);
	overflow: hidden;
}
.swift-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, rgba(13, 47, 38, 0.92) 0%, rgba(13, 47, 38, 0.65) 50%, transparent 100%);
	z-index: 1;
}
.swift-hero > * { position: relative; z-index: 2; }

@media (max-width: 767px) {
	.swift-hero { min-height: 70vh; }
}

.swift-trust-badge {
	max-height: 56px;
	width: auto;
	filter: grayscale(15%);
	transition: filter .2s var(--ease), transform .2s var(--ease);
}
.swift-trust-badge:hover { filter: none; transform: scale(1.05); }

.swift-wedge-card {
	background: var(--color-white);
	border-radius: var(--radius-card);
	padding: 28px;
	box-shadow: var(--shadow-card);
	border-top: 4px solid var(--color-accent);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
	height: 100%;
}
.swift-wedge-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}
.swift-wedge-card h3 {
	color: var(--color-primary);
	margin-bottom: 12px;
}
.swift-wedge-card .swift-wedge-number {
	font-family: var(--ff-display);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--color-accent);
	line-height: 1;
	display: block;
	margin-bottom: 8px;
}

.swift-service-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 24px;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
	height: 100%;
}
.swift-service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
	border-color: var(--color-primary);
}
.swift-service-card .swift-service-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	color: var(--color-primary);
}

.swift-emergency-strip {
	background: var(--color-emergency);
	color: var(--color-white);
	text-align: center;
	padding: 10px 16px;
	font-weight: 600;
	font-size: var(--fs-small);
	display: none;
}
.swift-emergency-strip a {
	color: var(--color-white);
	text-decoration-color: var(--color-white);
}

@media (max-width: 767px) {
	.swift-emergency-strip { display: block; }
}

.swift-section-surface { background: var(--color-surface); }
.swift-section-dark    { background: var(--color-pine-needle); color: var(--color-birch-bark); }
.swift-section-dark h2,
.swift-section-dark h3 { color: var(--color-birch-bark); }

.swift-phone-link {
	font-family: var(--ff-display);
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.swift-tag-aspen {
	display: inline-block;
	background: var(--color-accent);
	color: var(--color-pine-needle);
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
}

/* ============================================================
   Print
   ============================================================ */

@media print {
	.swift-hero::before { display: none; }
	.swift-emergency-strip,
	nav,
	footer { display: none; }
	body { color: #000; background: #fff; }
}
