/*
Theme Name: Airmaxx Plus
Theme URI: https://example.com/airmaxx-plus
Author: Airmaxx Plus
Author URI: https://example.com
Description: A clean, conversion-focused WordPress theme built for HVAC, heating & cooling companies. Features a full-width hero photo area, service showcase, and click-to-call header. Fully compatible with the Elementor page builder so you can design every page visually. Installable via ZIP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airmaxx-plus
Tags: business, elementor, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, footer-widgets, block-styles, wide-blocks, threaded-comments, translation-ready
*/

/* =========================================================
   Airmaxx Plus — Design tokens
   Change these in the Customizer (Appearance → Customize → Colors)
   ========================================================= */
:root {
	--am-primary: #0d5ea8;   /* Cooling blue  */
	--am-primary-dark: #094a85;
	--am-accent: #f04e23;    /* Heating orange */
	--am-accent-dark: #d13d16;
	--am-dark: #10233a;
	--am-body: #33475b;
	--am-muted: #6b7c8f;
	--am-light: #f4f8fc;
	--am-border: #e2e9f1;
	--am-white: #ffffff;

	--am-radius: 10px;
	--am-shadow: 0 12px 30px rgba(16, 35, 58, 0.10);
	--am-shadow-sm: 0 4px 14px rgba(16, 35, 58, 0.08);
	--am-container: 1180px;
	--am-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--am-heading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--am-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--am-body);
	background: var(--am-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--am-heading-font);
	color: var(--am-dark);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.25em; }

a {
	color: var(--am-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: var(--am-primary-dark); }

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

.am-container {
	width: 100%;
	max-width: var(--am-container);
	margin: 0 auto;
	padding: 0 24px;
}

.am-section { padding: 72px 0; }
.am-section--tight { padding: 48px 0; }
.am-bg-light { background: var(--am-light); }
.am-bg-dark  { background: var(--am-dark); color: #cdd7e2; }
.am-bg-dark h1, .am-bg-dark h2, .am-bg-dark h3 { color: #fff; }

.am-text-center { text-align: center; }
.am-lead { font-size: 1.15rem; color: var(--am-muted); }
.am-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--am-accent);
	margin-bottom: 12px;
}
.am-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* =========================================================
   Buttons
   ========================================================= */
.am-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: var(--am-radius);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
	text-align: center;
}
.am-btn:hover { transform: translateY(-2px); }
.am-btn--primary { background: var(--am-accent); color: #fff; box-shadow: 0 8px 20px rgba(240,78,35,0.28); }
.am-btn--primary:hover { background: var(--am-accent-dark); color: #fff; }
.am-btn--secondary { background: var(--am-primary); color: #fff; }
.am-btn--secondary:hover { background: var(--am-primary-dark); color: #fff; }
.am-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.am-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* =========================================================
   Top bar
   ========================================================= */
.am-topbar {
	background: var(--am-primary-dark);
	color: #dbe7f4;
	font-size: 0.9rem;
}
.am-topbar .am-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 42px;
	gap: 16px;
	flex-wrap: wrap;
}
.am-topbar a { color: #fff; }
.am-topbar__meta { display: flex; gap: 22px; flex-wrap: wrap; }
.am-topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }

/* =========================================================
   Header
   ========================================================= */
.am-header {
	background: var(--am-white);
	box-shadow: var(--am-shadow-sm);
	position: sticky;
	top: 0;
	z-index: 999;
}
.am-header .am-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 96px;
	gap: 24px;
}
.am-branding { display: flex; align-items: center; gap: 12px; }
/* Proportional logo: fix the height, let the width follow the image's own
   aspect ratio, and never clamp the width — so it can never stretch or squash. */
.am-branding__logo { display: inline-flex; align-items: center; }
.am-branding .custom-logo,
.am-branding__logo img {
	display: block;
	height: 72px;
	width: auto;
	max-width: none;
}
@media (max-width: 560px) {
	.am-branding .custom-logo,
	.am-branding__logo img { height: 50px; }
}
.am-site-title { font-size: 1.5rem; font-weight: 800; margin: 0; color: var(--am-dark); }
.am-site-title a { color: inherit; }
.am-site-desc { font-size: 0.82rem; color: var(--am-muted); margin: 0; }

.am-header__actions { display: flex; align-items: center; gap: 20px; }
.am-header__phone { font-weight: 800; font-size: 1.15rem; color: var(--am-dark); white-space: nowrap; }
.am-header__phone span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--am-accent); text-transform: uppercase; letter-spacing: 0.08em; }

/* Navigation */
.am-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.am-nav li { position: relative; }
.am-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--am-dark);
	font-weight: 600;
	border-radius: 8px;
}
.am-nav a:hover, .am-nav .current-menu-item > a { color: var(--am-primary); background: var(--am-light); }
.am-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 210px;
	box-shadow: var(--am-shadow);
	border-radius: 10px;
	padding: 8px;
	display: none;
	flex-direction: column;
	z-index: 1000;
}
.am-nav li:hover > .sub-menu { display: flex; }

.am-menu-toggle {
	display: none;
	background: var(--am-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 1rem;
	cursor: pointer;
}

/* =========================================================
   Hero photo area
   ========================================================= */
.am-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-color: var(--am-dark);
	color: #fff;
	overflow: hidden;
}
.am-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(9,37,66,0.92) 0%, rgba(9,37,66,0.72) 45%, rgba(9,37,66,0.25) 100%);
}
.am-hero__inner { position: relative; z-index: 2; max-width: 640px; padding: 80px 0; }
.am-hero h1 { color: #fff; margin-bottom: 18px; }
.am-hero__sub { font-size: 1.2rem; color: #e3ecf5; margin-bottom: 30px; }
.am-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.am-hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: 0.92rem; }
.am-hero__badges span { display: inline-flex; align-items: center; gap: 8px; color: #dceafc; }
.am-hero__badges strong { color: #fff; }

/* =========================================================
   Feature strip
   ========================================================= */
.am-featurestrip {
	background: var(--am-accent);
	color: #fff;
}
.am-featurestrip .am-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding-top: 26px;
	padding-bottom: 26px;
}
.am-featurestrip__item { display: flex; align-items: center; gap: 14px; }
.am-featurestrip__item strong { display: block; font-size: 1.05rem; }
.am-featurestrip__item small { opacity: 0.9; }
.am-featurestrip .am-icon { font-size: 1.8rem; line-height: 1; }

/* =========================================================
   Services
   ========================================================= */
.am-grid { display: grid; gap: 26px; }
.am-grid--3 { grid-template-columns: repeat(3, 1fr); }
.am-grid--4 { grid-template-columns: repeat(4, 1fr); }

.am-card {
	background: #fff;
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	padding: 30px 28px;
	box-shadow: var(--am-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.am-card:hover { transform: translateY(-4px); box-shadow: var(--am-shadow); }
.am-card__icon {
	width: 58px; height: 58px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 14px;
	background: var(--am-light);
	color: var(--am-primary);
	font-size: 1.7rem;
	margin-bottom: 18px;
}
.am-card h3 { margin-bottom: 10px; }
.am-card p { color: var(--am-muted); margin-bottom: 0; font-size: 0.98rem; }

/* =========================================================
   CTA band
   ========================================================= */
.am-ctaband {
	background: linear-gradient(120deg, var(--am-primary) 0%, var(--am-primary-dark) 100%);
	color: #fff;
	text-align: center;
}
.am-ctaband h2 { color: #fff; }
.am-ctaband .am-lead { color: #d6e6f6; }
.am-ctaband__phone { font-size: 2rem; font-weight: 800; margin: 8px 0 22px; }
.am-ctaband__phone a { color: #fff; }

/* =========================================================
   Content / pages
   ========================================================= */
.am-content { padding: 60px 0; }
.am-content .am-container { max-width: 820px; }
.page-template-template-full-width .am-content .am-container,
.am-full .am-container { max-width: var(--am-container); }

.entry-header { margin-bottom: 30px; }
.entry-title { margin-bottom: 8px; }
.entry-meta { color: var(--am-muted); font-size: 0.9rem; }
.entry-content img { border-radius: var(--am-radius); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

.am-postgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.am-post-card { background:#fff; border:1px solid var(--am-border); border-radius: var(--am-radius); overflow:hidden; box-shadow: var(--am-shadow-sm); }
.am-post-card__thumb img { width:100%; height:200px; object-fit:cover; }
.am-post-card__body { padding: 22px 24px; }
.am-post-card h3 { font-size:1.2rem; }

/* =========================================================
   Footer
   ========================================================= */
.am-footer { background: var(--am-dark); color: #a9b8c9; padding-top: 64px; }
.am-footer a { color: #d2ddea; }
.am-footer a:hover { color: #fff; }
.am-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.am-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 48px;
}
.am-footer .widget { margin-bottom: 24px; }
.am-footer ul { list-style: none; margin: 0; padding: 0; }
.am-footer li { margin-bottom: 10px; }
.am-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 22px 0;
	font-size: 0.88rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* Sticky mobile call bar */
.am-callbar {
	display: none;
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: var(--am-accent);
	z-index: 1000;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.am-callbar a {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	color: #fff; font-weight: 800; padding: 15px; font-size: 1.05rem;
}

/* =========================================================
   WordPress core / alignment helpers
   ========================================================= */
.alignwide { max-width: 1180px; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--am-muted); }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background:#fff; padding:10px 16px; z-index:100000; border-radius:6px; }

.am-pagination { display:flex; gap:8px; margin-top:40px; flex-wrap:wrap; }
.am-pagination .page-numbers { padding:9px 15px; border:1px solid var(--am-border); border-radius:8px; color:var(--am-dark); }
.am-pagination .current { background:var(--am-primary); color:#fff; border-color:var(--am-primary); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
	.am-footer__cols { grid-template-columns: 1fr 1fr; }
	.am-grid--4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
	.am-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		box-shadow: var(--am-shadow);
		padding: 12px;
	}
	.am-nav.is-open { display: block; }
	.am-nav ul { flex-direction: column; gap: 2px; }
	.am-nav .sub-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
	.am-menu-toggle { display: inline-block; }
	.am-header__phone { display: none; }
	.am-featurestrip .am-container { grid-template-columns: 1fr; }
	.am-grid--3, .am-grid--4 { grid-template-columns: 1fr; }
	.am-postgrid { grid-template-columns: 1fr; }
	.am-callbar { display: block; }
	body { padding-bottom: 58px; }
}
@media (max-width: 560px) {
	.am-footer__cols { grid-template-columns: 1fr; }
	.am-section { padding: 52px 0; }
	.am-hero { min-height: 460px; }
}
