/* ==========================================================================
   Summer of Savings — Campaign Landing Page
   Standalone styles. Loaded only on page-templetes/page-summer-campaign.php.
   All rules scoped under .sa-summer-campaign so nothing leaks site-wide.
   Brand tokens mirror new-theme.css; summer accents added on top.
   ========================================================================== */

.sa-summer-campaign {
	/* Brand (from new-theme.css) */
	--ss-blue:        #0051a3;
	--ss-blue-dark:   #003366;
	--ss-red:         #ee3a44;
	--ss-red-hover:   #d63238;

	/* Summer accents (from hero artwork) */
	--ss-orange:      #f5870a;
	--ss-amber:       #f59e0b;
	--ss-yellow:      #fcc419;

	/* Neutrals */
	--ss-ink:         #0f2942;
	--ss-slate:       #475569;
	--ss-cream:       #fffaf0;
	--ss-line:        #e7e2d6;
	--ss-white:       #ffffff;

	--ss-radius:      18px;
	--ss-radius-sm:   12px;
	--ss-shadow:      0 18px 45px rgba(15, 41, 66, 0.16);
	--ss-shadow-sm:   0 8px 24px rgba(15, 41, 66, 0.10);
	--ss-container:   1180px;
	--ss-ease:        0.25s ease;

	font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ss-ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.sa-summer-campaign * { box-sizing: border-box; }

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

/* ---- Shared type ------------------------------------------------------- */
.sa-summer-campaign .sa-summer-h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ss-blue-dark);
	text-transform: uppercase;
}
.sa-summer-campaign .sa-summer-h2 {
	margin: 12px 0 0;
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.1;
	font-weight: 800;
	color: var(--ss-blue-dark);
}
.sa-summer-lead {
	margin: 18px 0 0;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.55;
	color: var(--ss-slate);
	max-width: 42ch;
}

/* ---- Eyebrow / pill label --------------------------------------------- */
.sa-summer-eyebrow {
	display: inline-flex;
	align-self: flex-start; /* don't stretch to full width inside flex columns */
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 9999px;
	background: linear-gradient(90deg, var(--ss-orange), var(--ss-amber));
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.sa-summer-eyebrow i { font-size: 0.9em; }
.sa-summer-eyebrow--center { align-self: center; margin: 0 auto; }

.sa-summer-section-head {
	text-align: center;
	margin-bottom: 44px;
}

/* ---- Buttons ----------------------------------------------------------- */
.sa-summer-campaign .sa-summer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border-radius: 9999px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform var(--ss-ease), background-color var(--ss-ease), color var(--ss-ease), box-shadow var(--ss-ease);
}
.sa-summer-campaign .sa-summer-btn--call {
	background: var(--ss-red);
	color: #fff;
	box-shadow: 0 8px 20px rgba(238, 58, 68, 0.32);
}
.sa-summer-campaign .sa-summer-btn--call:hover {
	background: var(--ss-red-hover);
	transform: translateY(-2px);
}
.sa-summer-campaign .sa-summer-btn--ghost {
	background: transparent;
	color: var(--ss-blue-dark);
	border-color: var(--ss-blue-dark);
}
.sa-summer-campaign .sa-summer-btn--ghost:hover {
	background: var(--ss-blue-dark);
	color: #fff;
	transform: translateY(-2px);
}
.sa-summer-campaign .sa-summer-btn--ghost-light {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}
.sa-summer-campaign .sa-summer-btn--ghost-light:hover {
	background: #fff;
	color: var(--ss-blue-dark);
	border-color: #fff;
}
.sa-summer-campaign .sa-summer-btn--block { width: 100%; }

/* ==========================================================================
   HERO
   ========================================================================== */
.sa-summer-hero {
	position: relative;
	background-color: var(--ss-amber);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* No bottom padding — the foreground art is anchored flush to the bottom. */
	padding: clamp(40px, 7vw, 80px) 0 0;
}
/* Hero content width. */
.sa-summer-hero .sa-summer-container { max-width: 1280px; }

.sa-summer-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: stretch;
	gap: 40px;
}
/* Copy block: no background card — white text on the gradient instead.
   Floats vertically centered against the bottom-anchored truck.
   order: 2 places the copy on the right, truck on the left. */
.sa-summer-hero-card {
	order: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.sa-summer-hero-card .sa-summer-eyebrow { margin-bottom: 18px; }

/* White hero copy with drop shadows for legibility on the gradient. */
.sa-summer-campaign .sa-summer-hero .sa-summer-h1 {
	color: #fff;
	text-shadow: 0 2px 14px rgba(15, 41, 66, 0.45), 0 1px 2px rgba(15, 41, 66, 0.55);
}
.sa-summer-hero .sa-summer-lead {
	color: #fff;
	text-shadow: 0 1px 10px rgba(15, 41, 66, 0.45);
}

.sa-summer-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}
.sa-summer-hero-cta--center { justify-content: center; }

.sa-summer-hero-art {
	order: 1; /* truck on the left, copy on the right */
	position: relative;
	align-self: stretch;
	display: flex;
	justify-content: center;
	align-items: flex-end; /* anchor the truck to the bottom of the section */
}
.sa-summer-hero-art img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 480px;
	height: auto;
	margin-bottom: 0;
	filter: drop-shadow(0 8px 9px rgba(15, 41, 66, 0.30));
}
/* Ground shadow under the wheels so the truck reads as parked / anchored. */
.sa-summer-hero-art::after {
	content: "";
	position: absolute;
	z-index: 0;
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: min(80%, 400px);
	height: 28px;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(15, 41, 66, 0.45) 0%, rgba(15, 41, 66, 0) 72%);
	filter: blur(3px);
}

/* ==========================================================================
   FEATURED OFFER  (Coupon Campaign only — banner directly below the hero)
   ========================================================================== */
/* Contained, compact white banner on the cream offers background — matches the
   coupon cards. Sits below the hero with breathing room above (no overlap). */
.sa-summer-featured {
	background: var(--ss-cream);
	padding: clamp(40px, 5vw, 64px) 0 0;
}
.sa-summer-featured .sa-summer-container {
	padding-top: 0;
	padding-bottom: 0;
}
.sa-summer-featured-card {
	margin-top: 30px;
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.5vw, 28px);
	padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 40px);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	background: var(--ss-white);
	box-shadow: var(--ss-shadow-sm);
	color: var(--ss-ink);
}
.sa-summer-featured-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--ss-orange), var(--ss-yellow));
	color: #fff;
	font-size: 1.5rem;
	box-shadow: 0 8px 18px rgba(245, 135, 10, 0.32);
}
.sa-summer-featured-body {
	flex: 1;
	min-width: 0;
}
.sa-summer-featured-eyebrow {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ss-red-hover);
}
.sa-summer-campaign .sa-summer-featured-title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	font-weight: 800;
	line-height: 1.12;
	color: var(--ss-blue-dark);
}
.sa-summer-featured-text {
	margin: 6px 0 0;
	max-width: 64ch;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ss-slate);
}
.sa-summer-featured-cta {
	flex: none;
}
/* Tighten the gap between the featured banner and the offers below it
   (only when the banner is present — Summer Savings is unaffected). */
.sa-summer-featured + .sa-summer-offers {
	padding-top: clamp(20px, 3vw, 32px);
}

@media (max-width: 760px) {
	.sa-summer-featured-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.sa-summer-featured-body { width: 100%; }
	.sa-summer-featured-text { max-width: none; }
	.sa-summer-featured-cta  { width: 100%; }
}

/* ==========================================================================
   OFFERS
   ========================================================================== */
.sa-summer-offers {
	background: var(--ss-cream);
	padding: clamp(56px, 8vw, 90px) 0;
}
.sa-summer-offer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.sa-summer-offer {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--ss-white);
	border: 1px solid var(--ss-line);
	border-radius: var(--ss-radius);
	box-shadow: var(--ss-shadow-sm);
	padding: 40px 28px 32px;
	transition: transform var(--ss-ease), box-shadow var(--ss-ease);
}
.sa-summer-offer:hover {
	transform: translateY(-4px);
	box-shadow: var(--ss-shadow);
}
/* Coupon ticket notches */
.sa-summer-offer::before,
.sa-summer-offer::after {
	content: "";
	position: absolute;
	bottom: 86px;
	width: 22px;
	height: 22px;
	background: var(--ss-cream);
	border: 1px solid var(--ss-line);
	border-radius: 50%;
}
.sa-summer-offer::before { left: -12px; }
.sa-summer-offer::after  { right: -12px; }

.sa-summer-offer-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	margin-bottom: 20px;
	background: linear-gradient(140deg, var(--ss-orange), var(--ss-yellow));
	color: #fff;
	font-size: 1.7rem;
	box-shadow: 0 8px 18px rgba(245, 135, 10, 0.32);
}
.sa-summer-campaign .sa-summer-offer-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--ss-blue-dark);
}
.sa-summer-offer-detail {
	margin: 8px 0 0;
	font-size: 1.02rem;
	line-height: 1.4;
	color: var(--ss-slate);
}
.sa-summer-offer-cut {
	display: block;
	width: 100%;
	margin: 22px 0;
	border-top: 2px dashed var(--ss-line);
}
.sa-summer-offer .sa-summer-btn { margin-top: auto; }

.sa-summer-disclaimer {
	max-width: 880px;
	margin: 40px auto 0;
	text-align: center;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #8a8576;
}

/* Coupon Campaign — vertical gap between category groups (HVAC / Plumbing). */
.sa-summer-offer-group + .sa-summer-offer-group {
	margin-top: clamp(48px, 7vw, 72px);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.sa-summer-why {
	background: var(--ss-white);
	padding: clamp(56px, 8vw, 90px) 0;
}
.sa-summer-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.sa-summer-feature {
	text-align: center;
	padding: 8px;
}
.sa-summer-feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: rgba(0, 81, 163, 0.08);
	color: var(--ss-blue);
	font-size: 1.5rem;
}
.sa-summer-campaign .sa-summer-feature h4 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ss-blue-dark);
}
.sa-summer-feature p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--ss-slate);
}

/* ==========================================================================
   FINAL CTA
   --------------------------------------------------------------------------
   Uses the site-wide .cta-section component (styled in new-theme.css) so it
   matches every other page template exactly. No local styles needed.
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
	/* Stacked layout: truck on top, restore bottom spacing under the copy. */
	.sa-summer-hero { padding-bottom: clamp(40px, 7vw, 80px); }
	.sa-summer-hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.sa-summer-hero-art  { order: -1; align-items: center; }
	.sa-summer-hero-art img { max-width: 360px; }
	.sa-summer-offer-grid   { grid-template-columns: repeat(2, 1fr); }
	.sa-summer-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
}

@media (max-width: 600px) {
	.sa-summer-container    { padding: 30px 18px 0; }
	.sa-summer-offer-grid   { grid-template-columns: 1fr; }
	.sa-summer-hero-cta     { flex-direction: column; }
	.sa-summer-hero-cta .sa-summer-btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sa-summer-campaign * { transition: none !important; }
	.sa-summer-offer:hover,
	.sa-summer-campaign .sa-summer-btn:hover { transform: none; }
}
