/**
 * Cup of Air — campaign polish layer (CTA grammar, chrome, motion, mobile bar).
 * Load site-wide after buttons/nav.
 */

/* ——— Typography: one stack everywhere Cup of Air owns ——— */
.coa-apps,
.coa-adv,
.coa-hw,
.coa-about,
.coa-contact,
.coa-cine-hero,
.coa-site-footer,
.coa-pd,
.coa-gws {
	font-family: "Sofia Sans", "Segoe UI", sans-serif;
}

/* ——— CTA grammar: primary = navy; secondary on dark = white ——— */
.coa-apps-cta .coa-apps-btn-primary,
.coa-apps-cta a.coa-btn--secondary {
	box-shadow: var(--coa-shadow-cta);
}

/* Kill leftover text-link CTAs that should read as buttons */
.coa-apps-inline-link a.coa-btn {
	font-weight: 700;
}

/* ——— Card media: one crop language ——— */
.coa-apps-card-media,
.coa-apps-segment-media {
	aspect-ratio: 3 / 2 !important;
	background-position: center center !important;
	background-size: cover !important;
}

.coa-apps-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coa-apps-card:hover,
.coa-apps-card:focus-within {
	transform: translateY(-3px);
	box-shadow: var(--coa-shadow-hover);
}

.coa-apps-segment {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coa-apps-segment:hover,
.coa-apps-segment:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--coa-shadow-md);
}

/* ——— Surface rhythm ——— */
.coa-apps-section,
.coa-hw section,
.coa-about section,
.coa-adv-section {
	scroll-margin-top: 96px;
}

/* ——— Nav: tighter campaign chrome ——— */
@media (min-width: 992px) {
	#sp-top-bar {
		min-height: 34px !important;
		padding-top: 4px !important;
		padding-bottom: 4px !important;
	}

	#sp-menu {
		min-height: 52px !important;
	}

	#sp-menu .sp-megamenu-parent > li > a,
	#sp-menu .sp-megamenu-parent > li > span {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}
}

/* ——— Sticky mobile campaign bar ——— */
.coa-campaign-bar {
	display: none;
}

@media (max-width: 991px) {
	.coa-campaign-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1040;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(1, 42, 64, 0.96);
		backdrop-filter: blur(10px);
		box-shadow: 0 -8px 24px rgba(1, 58, 88, 0.22);
	}

	.coa-campaign-bar .coa-btn {
		flex: 1 1 0;
		min-height: 46px;
		font-size: 15px;
		padding-left: 12px;
		padding-right: 12px;
	}

	body {
		padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	/* Cookie bar sits above campaign bar when open */
	body.coa-cookiebar .coa-campaign-bar {
		bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.coa-apps-card,
	.coa-apps-segment {
		transition: none;
	}

	.coa-apps-card:hover,
	.coa-apps-segment:hover {
		transform: none;
	}
}

/* ——— About hero: portrait product photo ——— */
.coa-about-hero-photo {
	background-position: 55% 20% !important;
}

@media (max-width: 900px) {
	.coa-about-hero-photo {
		background-position: center 18% !important;
	}
}

/* ——— Contact form submit = primary button ——— */
.sppb-section.coa-contact-main .sppb-btn,
.sppb-section.coa-contact-main button[type="submit"],
.sppb-section.coa-contact-main .btn.btn-primary,
.sppb-section.coa-contact-main input[type="submit"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 50px !important;
	padding: 13px 28px !important;
	border-radius: 10px !important;
	border: 2px solid #013a58 !important;
	background: #013a58 !important;
	color: #fff !important;
	font-family: "Sofia Sans", "Segoe UI", sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	box-shadow: var(--coa-shadow-cta) !important;
	text-transform: none !important;
	width: auto !important;
	max-width: 100%;
}

.sppb-section.coa-contact-main .sppb-btn:hover,
.sppb-section.coa-contact-main button[type="submit"]:hover,
.sppb-section.coa-contact-main .btn.btn-primary:hover,
.sppb-section.coa-contact-main input[type="submit"]:hover {
	background: #012a40 !important;
	border-color: #012a40 !important;
	color: #fff !important;
}

/* ——— Product cards: capacity badge rhythm ——— */
.coa-pd-card,
.sppb-addon-articles .sppb-addon-article {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ——— Apps hub hero: denser first viewport ——— */
.coa-apps-hero--surface {
	min-height: clamp(480px, 64vh, 620px) !important;
}

.coa-apps-hero--surface .coa-apps-hero-inner > p:not(.coa-apps-kicker):not(.coa-apps-lead) {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 992px) {
	.coa-apps-hero--surface .coa-apps-hero-inner > p:not(.coa-apps-kicker):not(.coa-apps-lead) {
		-webkit-line-clamp: 2;
	}
}

/* ——— Contact form: denser rhythm + success state ——— */
.sppb-section.coa-contact-main .sppb-addon-form-builder-form {
	gap: 12px 14px !important;
}

.sppb-section.coa-contact-main .sppb-form-group label,
.sppb-section.coa-contact-main .sppb-addon-form-builder label {
	font-family: "Sofia Sans", "Segoe UI", sans-serif !important;
	font-weight: 650 !important;
	color: var(--coa-navy, #013a58) !important;
	margin-bottom: 6px !important;
}

.sppb-section.coa-contact-main .sppb-form-control,
.sppb-section.coa-contact-main input[type="text"],
.sppb-section.coa-contact-main input[type="email"],
.sppb-section.coa-contact-main input[type="tel"],
.sppb-section.coa-contact-main select,
.sppb-section.coa-contact-main textarea {
	min-height: 46px !important;
	border-radius: 10px !important;
	border-color: rgba(1, 58, 88, 0.16) !important;
	font-family: "Sofia Sans", "Segoe UI", sans-serif !important;
}

.sppb-section.coa-contact-main textarea {
	min-height: 120px !important;
}

.sppb-section.coa-contact-main .sppb-addon-form-builder .sppb-text-success,
.sppb-section.coa-contact-main .sppb-ajax-contact-status,
.sppb-section.coa-contact-main .sppb-form-builder-status {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(115, 195, 196, 0.18);
	color: var(--coa-navy, #013a58);
	font-weight: 650;
}

/* Hide sticky bar on contact pages (also class-scoped) */
body.coa-contact-page .coa-campaign-bar,
.coa-contact ~ .coa-campaign-bar {
	display: none !important;
}

/* ——— Product listing cards ——— */
body.coa-product-listing .sppb-addon-article,
body.coa-product-listing .coa-pd-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.coa-product-listing .sppb-addon-article:hover,
body.coa-product-listing .coa-pd-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--coa-shadow-hover);
}

body.coa-product-listing .sppb-addon-article .sppb-article-intro-image,
body.coa-product-listing .sppb-addon-article .sppb-img-responsive {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* ——— Motion pack: CTA shadow ——— */
.coa-cine-hero-actions .coa-btn--primary,
.coa-hw-hero-ctas .coa-btn--primary,
.coa-apps-actions .coa-btn--primary,
.coa-apps-actions .coa-btn--secondary {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.coa-cine-hero-actions .coa-btn--primary:hover,
.coa-hw-hero-ctas .coa-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: var(--coa-shadow-cta);
}

@media (prefers-reduced-motion: reduce) {
	.coa-cine-hero-actions .coa-btn--primary:hover,
	.coa-hw-hero-ctas .coa-btn--primary:hover,
	body.coa-product-listing .sppb-addon-article:hover {
		transform: none;
	}
}

/* ——— Top social strip: quieter campaign week ——— */
@media (min-width: 992px) {
	#sp-top-bar .sp-contact-info,
	#sp-top-bar .social-icons {
		opacity: 0.88;
	}

	#sp-top-bar .social-icons li a {
		font-size: 13px !important;
	}
}

/* ——— Apps detail uses list: slightly denser for lean landings ——— */
.coa-apps-list {
	margin-top: 8px;
}
