/*
	Philly PTAC site stylesheet
	Bootstrap 5.3 handles layout. This file sets brand colors and site-specific components.

	BRAND COLORS: verify against the live airdistributors.com stylesheet before launch.
	The main site brands around a red arrow logo, so red is the primary. The secondary and
	accent values below are working choices, not pulled from the live CSS.
*/

:root {
	--brand-primary: #c8102e;      /* VERIFY: red from the ADC arrow logo */
	--brand-primary-dark: #a30d25;
	--brand-secondary: #1f2a37;    /* VERIFY: dark slate for headings, nav, footer */
	--brand-accent: #f0a500;       /* VERIFY: amber accent for highlights */
	--brand-light: #f4f6f8;
	--brand-text: #1f2a37;
	--brand-muted: #5b6673;

	/* Map Bootstrap's primary to the brand */
	--bs-primary: var(--brand-primary);
	--bs-primary-rgb: 200, 16, 46;
	--bs-link-color: var(--brand-primary);
	--bs-link-color-rgb: 200, 16, 46;
	--bs-link-hover-color: var(--brand-primary-dark);
	--bs-link-hover-color-rgb: 163, 13, 37;
	--bs-body-color: var(--brand-text);
	--bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
	padding-bottom: 4.5rem; /* room for the fixed mobile CTA bar */
}
@media (min-width: 992px) {
	body { padding-bottom: 0; }
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
	color: var(--brand-secondary);
	font-weight: 700;
	letter-spacing: -0.01em;
}
h1, .h1 { font-size: calc(1.5rem + 1.2vw); }
h2, .h2 { font-size: calc(1.25rem + 0.6vw); }

.btn-primary {
	--bs-btn-bg: var(--brand-primary);
	--bs-btn-border-color: var(--brand-primary);
	--bs-btn-hover-bg: var(--brand-primary-dark);
	--bs-btn-hover-border-color: var(--brand-primary-dark);
	--bs-btn-active-bg: var(--brand-primary-dark);
	--bs-btn-active-border-color: var(--brand-primary-dark);
	--bs-btn-focus-shadow-rgb: 200, 16, 46;
	font-weight: 600;
}
.btn-outline-primary {
	--bs-btn-color: var(--brand-primary);
	--bs-btn-border-color: var(--brand-primary);
	--bs-btn-hover-bg: var(--brand-primary);
	--bs-btn-hover-border-color: var(--brand-primary);
	--bs-btn-active-bg: var(--brand-primary);
	--bs-btn-active-border-color: var(--brand-primary);
	font-weight: 600;
}

.skip-link:focus {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2000;
	padding: 0.5rem 1rem;
	background: #fff;
	color: var(--brand-secondary);
}

/* Top bar */
.topbar {
	background: var(--brand-secondary);
	color: #fff;
	font-size: 0.875rem;
	padding: 0.4rem 0;
}
.topbar-tagline { opacity: 0.9; }
.topbar-phone {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.topbar-phone:hover { color: var(--brand-accent); }

/* Header and nav */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e3e7ec;
	position: sticky;
	top: 0;
	z-index: 1030;
}
.navbar-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--brand-secondary);
}
.brand-mark {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 0.6rem solid transparent;
	border-bottom: 0.6rem solid transparent;
	border-left: 1rem solid var(--brand-primary);
}
.brand-text {
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}
.brand-sub {
	font-size: 0.75rem;
	color: var(--brand-muted);
	border-left: 1px solid #d5dbe1;
	padding-left: 0.6rem;
}
.navbar-nav .nav-link {
	color: var(--brand-secondary);
	font-weight: 500;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--brand-primary); }

/* Breadcrumbs */
.crumbs { padding-top: 0.75rem; font-size: 0.875rem; }
.crumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--brand-muted); }

/* Hero */
.hero {
	background: var(--brand-light);
	padding: 2.5rem 0;
	border-bottom: 1px solid #e3e7ec;
}
@media (min-width: 992px) {
	.hero { padding: 4rem 0; }
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { color: var(--brand-text); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Page sections */
.section { padding: 2.5rem 0; }
@media (min-width: 992px) {
	.section { padding: 3.5rem 0; }
}
.section-alt { background: var(--brand-light); }

/* Cards */
.card-brand {
	border: 1px solid #e3e7ec;
	border-top: 4px solid var(--brand-primary);
	height: 100%;
}
.card-brand .card-title { color: var(--brand-secondary); }
.card-area { border: 1px solid #e3e7ec; height: 100%; }
.card-area:hover { border-color: var(--brand-primary); }

/* Trust strip */
.trust-strip {
	background: var(--brand-secondary);
	color: #fff;
	padding: 1.25rem 0;
}
.trust-strip .trust-item {
	font-weight: 600;
	font-size: 0.95rem;
}
.trust-strip .trust-item::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--brand-accent);
	margin-right: 0.5rem;
	vertical-align: middle;
}

/* Spec lists on brand pages */
.spec-list dt { font-weight: 600; color: var(--brand-secondary); }
.spec-list dd { margin-bottom: 0.75rem; }

/* Checklist boxes */
.checklist {
	background: var(--brand-light);
	border-left: 4px solid var(--brand-primary);
	padding: 1.25rem 1.5rem;
	border-radius: 0.25rem;
}
.checklist ul { margin-bottom: 0; }

/* Article body */
.article-body { max-width: 46rem; }
.article-body h2 { margin-top: 2rem; }
.article-meta { color: var(--brand-muted); font-size: 0.875rem; }

/* Placeholder images. Plain img tags; the JPGs in /assets/img are labeled placeholders until final photos replace them. */
.img-placeholder {
	background: #e3e7ec;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Quote CTA band */
.quote-cta {
	background: var(--brand-secondary);
	color: #fff;
	padding: 2.5rem 0;
}
.quote-cta h2 { color: #fff; }
.quote-cta a:not(.btn) { color: var(--brand-accent); }

/* Quote form */
.quote-form .form-label { font-weight: 600; }
.quote-form .required::after { content: " *"; color: var(--brand-primary); }
.form-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* FAQ accordion */
.accordion-button:not(.collapsed) {
	background: var(--brand-light);
	color: var(--brand-secondary);
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25); }

/* Footer */
.site-footer {
	background: var(--brand-secondary);
	color: #d5dbe1;
	padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-accent); }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin-top: 1.5rem;
	padding-top: 1rem;
	color: #aab3bd;
}

/* Fixed mobile CTA bar */
.mobile-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border-top: 1px solid #e3e7ec;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
.mobile-cta .btn { font-weight: 600; }
