/*
Theme Name: Aster Agency (Divi Child)
Theme URI: https://aster-agency.com
Description: Child theme for Divi — holds Aster Agency custom functions and CSS.
Author: Hawke Media
Template: Divi
Version: 1.0.5
*/

/* Office phone tel: link — blend with surrounding address text
   (white in the footer, dark on the contact page) instead of the
   default blue/underline. Underline on hover for affordance. */
a[href^="tel:"] {
	color: inherit !important;
	text-decoration: none !important;
}

a[href^="tel:"]:hover,
a[href^="tel:"]:focus {
	text-decoration: underline !important;
}

/* ---- Case study styling (NIQ, GK, etc.) ---- */
.cs-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 28px 0;
}
.cs-stat {
	flex: 1 1 200px;
	min-width: 170px;
	padding: 24px;
	border-radius: 10px;
	color: #fff;
}
.cs-stat:nth-child(4n+1) { background: #b5347f; }
.cs-stat:nth-child(4n+2) { background: #3f64c3; }
.cs-stat:nth-child(4n+3) { background: #6a3d9a; }
.cs-stat:nth-child(4n+4) { background: #e0872e; }
.cs-stat-num {
	display: block;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 8px;
}
.cs-stat-label {
	display: block;
	font-size: 0.95rem;
	line-height: 1.35;
}
.cs-callout {
	background: #1f3d2e;
	color: #fff;
	padding: 24px 28px;
	border-radius: 8px;
	margin: 28px 0;
}
.cs-callout strong { color: #e0a73a; }
.cs-cta {
	background: #1f3d2e;
	color: #fff;
	padding: 32px;
	border-radius: 10px;
	margin: 36px 0;
	text-align: center;
}
.cs-cta h2 { color: #fff; margin-top: 0; }
.cs-cta a { color: #e0a73a; font-weight: 700; }

/* Case-study "What this means for you" callout (Divi CTA/promo) — keep padded + centered */
.single-case-study .et_pb_promo,
.single-case-study .et_pb_cta {
	padding: 40px 60px;
	text-align: center;
}

/* ---- Newsletter sign-up (HubSpot) ---- */

/* Popup modal */
.aster-hs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(22, 22, 34, 0.6);
}
.aster-hs-modal.is-open {
	display: flex;
}
.aster-hs-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	padding: 44px 40px 36px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.aster-hs-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #666;
	cursor: pointer;
}
.aster-hs-modal__close:hover {
	color: #000;
}
.aster-hs-modal__title {
	margin: 0 0 6px;
}
.aster-hs-modal__sub {
	margin: 0 0 22px;
	font-size: 0.95rem;
	color: #555;
}

/* Inline embed (Resources) */
.aster-hs-inline {
	margin: 8px 0;
}

/* Tidy HubSpot's default form styles a touch in both contexts */
.aster-hs-modal__form .hs-form-field,
.aster-hs-inline .hs-form-field {
	margin-bottom: 14px;
}
.aster-hs-modal__form .hs-input:not([type="checkbox"]):not([type="radio"]),
.aster-hs-inline .hs-input:not([type="checkbox"]):not([type="radio"]) {
	width: 100%;
	box-sizing: border-box;
}

