/*
	airdistributors.com site stylesheet
	Bootstrap 5.3 handles layout. This file sets brand colors and site-specific components.

	BRAND COLORS: taken from the live airdistributors.com site.
	Navy #001F55 for headings, top bar, and footer. Blue #014D87 for buttons and links.
	Red #DA0B13 from the logo for accents.
*/

:root {
	--brand-primary: #014d87;      /* AirD blue: buttons, links */
	--brand-primary-dark: #013a66;
	--brand-secondary: #001f55;    /* AirD navy: headings, nav text, top bar, footer */
	--brand-accent: #da0b13;       /* AirD red: brand mark, bullets, required markers */
	--brand-accent-on-dark: #8fc3ff; /* link and hover color on navy backgrounds */
	--brand-light: #f3f6fa;
	--brand-text: #1b2533;
	--brand-muted: #5b6673;

	/* Map Bootstrap's primary to the brand */
	--bs-primary: var(--brand-primary);
	--bs-primary-rgb: 1, 77, 135;
	--bs-link-color: var(--brand-primary);
	--bs-link-color-rgb: 1, 77, 135;
	--bs-link-hover-color: var(--brand-primary-dark);
	--bs-link-hover-color-rgb: 1, 58, 102;
	--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: 1, 77, 135;
	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-on-dark); }

/* 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-accent);
}
.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-accent);
	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-on-dark); }

/* Quote form */
.quote-form .form-label { font-weight: 600; }
.quote-form .required::after { content: " *"; color: var(--brand-accent); }
.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(1, 77, 135, 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-on-dark); }
.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; }

/* ---------- airdistributors.com additions ---------- */

/* Logo in the nav */
.brand-logo { height: 46px; width: auto; }
@media (max-width: 575.98px) { .brand-logo { height: 36px; } }

/* Mega menu for PTAC Units */
@media (min-width: 992px) {
	.navbar .has-megamenu { position: static; }
	.navbar .megamenu {
		left: 0;
		right: 0;
		width: 100%;
		margin-top: 0;
		padding: 1.25rem 1.5rem;
		border-top: 3px solid var(--brand-primary);
	}
}
.megamenu .dropdown-header,
.dropdown-menu .dropdown-header {
	color: var(--brand-secondary);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	padding-left: 1rem;
}
.megamenu .dropdown-item { white-space: normal; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.dropdown-item.active, .dropdown-item:active { background-color: var(--brand-primary); }

/* Converted WordPress content */
.content-block { margin-bottom: 1.25rem; }
.content-block h2 { margin-top: 1.5rem; }
.content-block h2:first-child, .content-block h1:first-child { margin-top: 0; }
.content-block h3 { font-size: 1.15rem; margin-top: 1.25rem; color: var(--brand-secondary); }
.content-block img { max-width: 100%; height: auto; }
.page-product .section:first-of-type { padding-top: 1.5rem; }
.table-responsive { margin-bottom: 1.25rem; }
.table-responsive table p { margin-bottom: 0; }
.table thead th, .table tr:first-child td strong { color: var(--brand-secondary); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro-block img { max-height: 120px; width: auto; }

/* Product cards on the home page */
.card-product { border: 1px solid #e3e7ec; }
.card-product .card-img-top { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 0.75rem; }
.card-product .card-title { color: var(--brand-secondary); }

/* Series cards on brand overview pages such as /applied-comfort-ptacs */
.card-series { border-radius: 0.5rem; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.card-series:hover, .card-series:focus-within { transform: translateY(-3px); box-shadow: 0 0.5rem 1.25rem rgba(0, 31, 85, 0.12); border-color: var(--brand-primary); }
.card-series .card-img-top { border-bottom: 1px solid #e3e7ec; }
.card-series .card-title { margin: 0.5rem 0 0.5rem; }
.card-series .card-footer { background: #fff; border-top: 0; padding: 0 1rem 1rem; }
.card-series .badge { align-self: flex-start; font-weight: 600; letter-spacing: 0.02em; }
.card-badge-standard { background: var(--brand-primary); }
.card-badge-legacy { background: var(--brand-secondary); }
.card-badge-parts { background: var(--brand-accent); }
@media (prefers-reduced-motion: reduce) { .card-series, .card-series:hover { transition: none; transform: none; } }

/* Industry tiles on the home page link to /industries */
.industry-tile { position: relative; border: 1px solid #e3e7ec; border-left: 4px solid var(--brand-accent); padding: 1rem 1.25rem; border-radius: 0.25rem; height: 100%; }
.industry-tile:hover { border-color: var(--brand-primary); }
.industry-tile p:last-child { margin-bottom: 0; }

/* Site-wide contact section */
.contact-section {
	background: var(--brand-light);
	border-top: 1px solid #e3e7ec;
	padding: 2.5rem 0;
}
@media (min-width: 992px) { .contact-section { padding: 3.5rem 0; } }
.contact-form .form-label { font-weight: 600; }
.contact-form .required::after { content: " *"; color: var(--brand-accent); }

/* Documents page */
.doc-list li { margin-bottom: 0.35rem; }

/* Blog */
.post-body { max-width: 48rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 0.25rem; }
.post-body h2 { margin-top: 2rem; }
.post-hero { max-height: 420px; width: 100%; object-fit: cover; border-radius: 0.25rem; }
