/* ==========================================================================
   Aerivia Care - brand layer
   Everything Elementor's free widgets can't express on their own.
   ========================================================================== */

:root {
	--aerivia-navy:        #123A6B;
	--aerivia-navy-deep:   #0F3B75;
	--aerivia-blue:        #1E4B9E;
	--aerivia-teal:        #1B9C84;
	--aerivia-teal-dark:   #15806C;
	--aerivia-teal-soft:   #E8F6F3;
	--aerivia-ink:         #4A5568;
	--aerivia-line:        #E3EBF4;
	--aerivia-mist:        #F3F8FD;
	--aerivia-shadow:      0 10px 30px rgba(18, 58, 107, .08);
}

body {
	font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	color: var(--aerivia-ink);
	background: #fff;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
	font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
	color: var(--aerivia-navy);
}

/* Anchor nav must not slide content under the sticky header. */
html {
	scroll-behavior: smooth;
}
.aerivia-anchor {
	scroll-margin-top: 104px;
}

/* --------------------------------------------------------------------------
   Sticky header (free Elementor has no sticky effect)
   -------------------------------------------------------------------------- */
.aerivia-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 1px 0 var(--aerivia-line);
	transition: box-shadow .2s ease;
}
.aerivia-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(18, 58, 107, .08);
}

/* Header nav: the design underlines the active item in teal. */
.aerivia-nav a {
	position: relative;
	color: var(--aerivia-navy);
	font-weight: 500;
	text-decoration: none;
	padding-bottom: 6px;
}
.aerivia-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--aerivia-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease;
}
.aerivia-nav a:hover::after,
.aerivia-nav a.is-active::after {
	transform: scaleX(1);
}
.aerivia-nav a.is-active {
	color: var(--aerivia-teal-dark);
}

/* --------------------------------------------------------------------------
   Section heading with the flanking rules
   -------------------------------------------------------------------------- */
.aerivia-rule-heading .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 22px;
}
.aerivia-rule-heading .elementor-heading-title::before,
.aerivia-rule-heading .elementor-heading-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 2px;
	border-radius: 2px;
	background: var(--aerivia-teal);
	opacity: .85;
}
@media (max-width: 640px) {
	.aerivia-rule-heading .elementor-heading-title::before,
	.aerivia-rule-heading .elementor-heading-title::after {
		width: 24px;
	}
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.aerivia-card {
	background: #fff;
	border: 1px solid var(--aerivia-line);
	border-radius: 14px;
	box-shadow: var(--aerivia-shadow);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.aerivia-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(18, 58, 107, .13);
}

/* The card body stretches so every CTA lands on the same baseline.
   Elementor drives container flex/margin through custom properties, so these
   have to be set there rather than on the properties themselves. */
.aerivia-card-body.e-con.e-flex {
	--flex-grow: 1;
}
.aerivia-card-body > .e-con-inner {
	height: 100%;
}
.aerivia-card-cta.e-con {
	--margin-top: auto;
}

/* Numbered badge over the service photo. */
.aerivia-card-media {
	position: relative;
}
.aerivia-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	min-width: 34px;
	height: 28px;
	padding: 0 9px;
	border-radius: 7px;
	background: var(--aerivia-teal);
	color: #fff;
	font: 600 13px/28px 'Poppins', sans-serif;
	text-align: center;
	letter-spacing: .3px;
}

/* "Best for:" lead-in line. */
.aerivia-bestfor {
	font-size: 14px;
	line-height: 1.6;
	color: var(--aerivia-ink);
}
.aerivia-bestfor strong {
	color: var(--aerivia-navy);
	font-weight: 700;
}

/* Bullet lists inside the service cards. */
.aerivia-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.aerivia-list li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 9px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--aerivia-ink);
}
.aerivia-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--aerivia-teal);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.aerivia-hero {
	background:
		radial-gradient(900px 420px at 88% 18%, #EAF5FF 0%, rgba(234, 245, 255, 0) 70%),
		linear-gradient(180deg, #F6FAFE 0%, #FFFFFF 100%);
}
.aerivia-badge-pill .elementor-heading-title {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--aerivia-teal-soft);
	color: var(--aerivia-teal-dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2px;
}
.aerivia-hero-h1 .elementor-heading-title em {
	font-style: normal;
	color: var(--aerivia-teal);
}

/* The stats card that overlaps the hero photo. */
.aerivia-stats-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 16px 44px rgba(18, 58, 107, .14);
	position: relative;
	z-index: 2;
}
@media (min-width: 1025px) {
	/* Overhangs the photo's lower-left corner, as in the design. */
	.aerivia-stats-card.e-con {
		--margin-top: -58px;
		--margin-left: -96px;
		--width: calc(100% + 96px);
	}
}

.aerivia-cta-note {
	font-size: 12px;
	color: var(--aerivia-teal-dark);
}

/* --------------------------------------------------------------------------
   Why Choose Us - hairline separators between the three columns
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.aerivia-why-col + .aerivia-why-col {
		border-left: 1px solid var(--aerivia-line);
	}
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.aerivia-newsletter {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.aerivia-newsletter input[type="email"] {
	flex: 1 1 240px;
	min-width: 0;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--aerivia-line);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--aerivia-navy);
}
.aerivia-newsletter input[type="email"]:focus {
	outline: none;
	border-color: var(--aerivia-teal);
	box-shadow: 0 0 0 3px rgba(27, 156, 132, .15);
}
.aerivia-newsletter button {
	height: 46px;
	padding: 0 30px;
	border: 0;
	border-radius: 8px;
	background: var(--aerivia-navy-deep);
	color: #fff;
	font: 600 14px/1 'Poppins', sans-serif;
	cursor: pointer;
	transition: background .18s ease;
}
.aerivia-newsletter button:hover {
	background: var(--aerivia-blue);
}
.aerivia-newsletter-note {
	margin: 10px 0 0;
	font-size: 13px;
}
.aerivia-newsletter-ok {
	color: var(--aerivia-teal-dark);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Enquiry dialog - opened by the service card CTAs
   `:target` is what makes it work with JavaScript off: the buttons link to
   #enquiry, so the dialog opens on the hash alone. theme.js adds `is-open`
   on top of that so it can also capture which card was clicked.
   -------------------------------------------------------------------------- */
.aerivia-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	padding: 24px 16px;
	overflow-y: auto;
}
.aerivia-modal:target,
.aerivia-modal.is-open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
/* Once theme.js is running it owns open/closed. history.replaceState() does
   not clear :target, so without this the close button can't shut a dialog
   that was reached through a #enquiry URL (e.g. the thank-you panel). */
.aerivia-modal.is-js:not(.is-open) {
	display: none;
}
.aerivia-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(10, 30, 56, .55);
	backdrop-filter: blur(2px);
}
.aerivia-modal-panel {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin: auto;
	padding: 30px 30px 26px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(10, 30, 56, .28);
	animation: aerivia-modal-in .22s ease both;
}
@keyframes aerivia-modal-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.aerivia-modal-panel { animation: none; }
}
.aerivia-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--aerivia-ink);
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.aerivia-modal-close:hover,
.aerivia-modal-close:focus {
	background: var(--aerivia-mist);
	color: var(--aerivia-navy);
}
.aerivia-modal-panel h2 {
	margin: 0 30px 6px 0;
	font-size: 22px;
	line-height: 1.3;
}
.aerivia-modal-intro {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
}
.aerivia-modal-error {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 8px;
	border-left: 3px solid #d63638;
	background: #fdf0f0;
	color: #a02123;
	font-size: 13.5px;
}

/* The form itself - two columns on desktop, one on a phone. */
.aerivia-enquiry {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}
.aerivia-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.aerivia-field-wide {
	grid-column: 1 / -1;
}
.aerivia-field label {
	color: var(--aerivia-navy);
	font: 600 13px/1.3 'Poppins', sans-serif;
}
.aerivia-req {
	color: var(--aerivia-teal-dark);
}
.aerivia-optional {
	color: #8a97a8;
	font-weight: 400;
}
.aerivia-enquiry input,
.aerivia-enquiry select,
.aerivia-enquiry textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--aerivia-line);
	border-radius: 8px;
	background: #fff;
	font: 400 14px/1.4 'Inter', sans-serif;
	color: var(--aerivia-navy);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.aerivia-enquiry textarea {
	resize: vertical;
	min-height: 84px;
}
.aerivia-enquiry input:focus,
.aerivia-enquiry select:focus,
.aerivia-enquiry textarea:focus {
	outline: none;
	border-color: var(--aerivia-teal);
	box-shadow: 0 0 0 3px rgba(27, 156, 132, .15);
}
/* The service is set by the button that opened the dialog, not typed. */
.aerivia-enquiry input[readonly] {
	background: var(--aerivia-teal-soft);
	border-color: transparent;
	color: var(--aerivia-teal-dark);
	font-weight: 600;
	cursor: default;
}
/* T&C checkbox above the submit button. */
.aerivia-field-terms label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--aerivia-ink);
	font: 400 13.5px/1.55 'Inter', sans-serif;
	cursor: pointer;
}
.aerivia-enquiry .aerivia-field-terms input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	padding: 0;
	accent-color: var(--aerivia-teal);
	cursor: pointer;
}
.aerivia-field-terms a {
	color: var(--aerivia-teal-dark);
	font-weight: 600;
	text-decoration: underline;
}
.aerivia-terms-staff,
.aerivia-enquiry.is-staff .aerivia-terms-customer {
	display: none;
}
.aerivia-enquiry.is-staff .aerivia-terms-staff {
	display: inline;
}
.aerivia-field-submit {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 2px;
}
.aerivia-modal-submit {
	display: inline-block;
	padding: 13px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--aerivia-navy-deep);
	color: #fff;
	font: 600 14px/1 'Poppins', sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease;
}
.aerivia-modal-submit:hover,
.aerivia-modal-submit:focus {
	background: var(--aerivia-blue);
	color: #fff;
}
/* Disabled until the T&C box is ticked (theme.js). */
.aerivia-modal-submit:disabled,
.aerivia-modal-submit:disabled:hover {
	background: #b8c3d1;
	color: #fff;
	cursor: not-allowed;
}
.aerivia-modal-note {
	font-size: 13px;
	color: #8a97a8;
}
/* Honeypot - off-screen rather than display:none, which some bots skip. */
.aerivia-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Thank-you panel. */
.aerivia-modal-sent {
	text-align: center;
	padding: 14px 0 6px;
}
.aerivia-modal-sent h2 {
	margin: 0 0 8px;
}
.aerivia-modal-sent p {
	margin: 0 auto 20px;
	max-width: 420px;
	font-size: 14px;
	line-height: 1.65;
}
.aerivia-modal-tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--aerivia-teal-soft);
	color: var(--aerivia-teal-dark);
	font-size: 26px;
}

@media (max-width: 600px) {
	.aerivia-modal {
		padding: 12px;
	}
	.aerivia-modal-panel {
		padding: 26px 20px 22px;
	}
	.aerivia-enquiry {
		grid-template-columns: 1fr;
	}
	.aerivia-modal-submit {
		width: 100%;
		text-align: center;
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.aerivia-footer-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.aerivia-footer-links li {
	margin-bottom: 11px;
}
.aerivia-footer-links a {
	color: var(--aerivia-ink);
	font-size: 14px;
	text-decoration: none;
	transition: color .15s ease;
}
.aerivia-footer-links a:hover {
	color: var(--aerivia-teal-dark);
}

/* --------------------------------------------------------------------------
   Buttons - the design uses two fills and one outline
   -------------------------------------------------------------------------- */
.elementor-button {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	letter-spacing: .1px;
}
.aerivia-btn-navy .elementor-button {
	background: var(--aerivia-navy-deep);
	color: #fff;
}
.aerivia-btn-navy .elementor-button:hover {
	background: var(--aerivia-blue);
	color: #fff;
}
.aerivia-btn-teal .elementor-button {
	background: var(--aerivia-teal);
	color: #fff;
}
.aerivia-btn-teal .elementor-button:hover {
	background: var(--aerivia-teal-dark);
	color: #fff;
}
.aerivia-btn-ghost .elementor-button {
	background: transparent;
	color: var(--aerivia-teal-dark);
	border: 1px solid var(--aerivia-teal);
}
.aerivia-btn-ghost .elementor-button:hover {
	background: var(--aerivia-teal-soft);
	color: var(--aerivia-teal-dark);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.aerivia-anchor { scroll-margin-top: 84px; }
	.aerivia-nav { gap: 18px !important; }
}
@media (max-width: 880px) {
	.aerivia-stats-card { margin-top: 18px; }
}

/* Header on tablet and phone: logo | phone button | hamburger, one row.
   The Royal menu widget switches to its hamburger at this width ("Show On:
   Tablet"); its dropdown opens full-width below the header. */
/* !important on the custom properties: Elementor writes each container's
   own width / wrap with an element-id selector that would otherwise win. */
@media (max-width: 1024px) {
	.aerivia-header-row.e-con {
		--flex-wrap: nowrap !important;
		--row-gap: 0px !important;
		--column-gap: 12px !important;
		--gap: 0px 12px !important;
	}
	.aerivia-header-logo.e-con {
		--width: auto !important;
		--flex-grow: 1 !important;
		--flex-shrink: 1 !important;
		min-width: 0;
	}
	.aerivia-header-logo img {
		max-width: 100%;
		height: auto;
	}
	.aerivia-header-cta.e-con {
		--width: auto !important;
		--flex-shrink: 0 !important;
		order: 2;
	}
	.aerivia-nav.e-con {
		--width: auto !important;
		--flex-shrink: 0 !important;
		--gap: 0px !important;
		order: 3;
	}
}
@media (max-width: 1024px) {
	/* Let the logo scale down rather than be clipped by its column. */
	.aerivia-header-logo .elementor-widget-image,
	.aerivia-header-logo .elementor-widget-image a {
		min-width: 0;
		max-width: 100%;
	}
}
@media (max-width: 480px) {
	/* Phones: the call button becomes a round phone icon so the
	   logo keeps its room. The number is still one tap away. */
	.aerivia-header-cta .elementor-button-text {
		display: none;
	}
	.aerivia-header-cta .elementor-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0 !important;
		border-radius: 50% !important;
	}
	.aerivia-header-cta .elementor-button-content-wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		gap: 0;
	}
	.aerivia-header-cta .elementor-button .elementor-button-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 !important;
		font-size: 15px !important;
		line-height: 1;
	}
	.aerivia-header-cta .elementor-button .elementor-button-icon svg,
	.aerivia-header-cta .elementor-button .elementor-button-icon i {
		width: 15px;
		height: 15px;
		margin: 0;
	}
	.aerivia-header-logo img {
		max-width: 190px;
	}
}

@media (max-width: 767px) {
	/* The phone button's own content is wider than the column it sits in,
	   and a flex item won't shrink past that - which widens the document
	   and pushes every section off-screen. Shrink the button instead. */
	.aerivia-header .elementor-button {
		padding: 11px 13px;
		font-size: 12px;
	}
	.aerivia-header .elementor-button-text {
		white-space: nowrap;
	}
	.aerivia-header .elementor-button .elementor-button-icon {
		font-size: 12px;
	}
	.aerivia-hero-h1 .elementor-heading-title {
		font-size: 27px;
	}
}

/* Belt and braces: nothing on a one-page landing site should scroll sideways. */
body {
	overflow-x: hidden;
}

/* Used by swap-logo.php when an uploaded logo already contains the wordmark. */
.aerivia-hide {
	display: none !important;
}

/* Body-copy links (About / Terms / Privacy) - the default red is off-brand. */
.elementor-widget-text-editor a {
	color: var(--aerivia-teal-dark);
	text-decoration: none;
	border-bottom: 1px solid rgba(27, 156, 132, .35);
	transition: border-color .15s ease;
}
.elementor-widget-text-editor a:hover {
	border-bottom-color: var(--aerivia-teal-dark);
}
.aerivia-footer-links a,
.elementor-widget-icon-list a {
	border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Enquiry dialog extras - Baby Care age, Join Aerivia uploads
   -------------------------------------------------------------------------- */
/* Baby's age shows only when the dialog was opened from Baby Care. */
.aerivia-field-baby {
	display: none;
}
.aerivia-enquiry.is-baby .aerivia-field-baby {
	display: flex;
}
.aerivia-docs {
	padding: 14px 16px;
	border: 1px dashed #c9d6e4;
	border-radius: 10px;
	background: var(--aerivia-mist);
	gap: 10px;
}
.aerivia-docs-title {
	margin: 0;
	color: var(--aerivia-navy);
	font: 600 14px/1.3 'Poppins', sans-serif;
}
.aerivia-docs-hint {
	margin: -4px 0 2px;
	font-size: 12.5px;
	color: #8a97a8;
}
.aerivia-doc {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.aerivia-doc label {
	color: var(--aerivia-navy);
	font: 600 13px/1.3 'Poppins', sans-serif;
}
.aerivia-enquiry input[type="file"] {
	padding: 8px 10px;
	background: #fff;
	font-size: 13px;
	cursor: pointer;
}
.aerivia-enquiry input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 6px 12px;
	border: 0;
	border-radius: 6px;
	background: var(--aerivia-teal-soft);
	color: var(--aerivia-teal-dark);
	font: 600 12.5px/1.2 'Poppins', sans-serif;
	cursor: pointer;
}
/* The application form is longer - give it a little more room. */
#join-team .aerivia-modal-panel {
	max-width: 680px;
}

/* --------------------------------------------------------------------------
   Mother Care & Baby Care cards (photo left, details right)
   -------------------------------------------------------------------------- */
.aerivia-care-card {
	background: #fff;
	border: 1px solid var(--aerivia-line);
	border-radius: 14px;
	box-shadow: var(--aerivia-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.aerivia-care-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(18, 58, 107, .13);
}
.aerivia-care-media .elementor-widget-image,
.aerivia-care-media .elementor-widget-image .elementor-widget-container {
	height: 100%;
}
.aerivia-care-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	border-radius: 10px;
}
.aerivia-care-body.e-con.e-flex {
	--flex-grow: 1;
}
.aerivia-care-card .elementor-icon-box-icon .elementor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #EAF1FB;
}
.aerivia-care-card .elementor-icon-box-description {
	margin-top: 4px;
}
@media (max-width: 767px) {
	.aerivia-care-media img {
		height: 220px;
	}
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.aerivia-contact-card {
	transition: border-color .15s ease, box-shadow .15s ease;
}
.aerivia-contact-card:hover {
	border-color: rgba(27, 156, 132, .45) !important;
	box-shadow: var(--aerivia-shadow);
}
.aerivia-contact-card .elementor-icon-box-title a {
	color: inherit;
	border: 0;
}
.aerivia-city-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}
.aerivia-city-pills span {
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--aerivia-teal-soft);
	color: var(--aerivia-teal-dark);
	font: 600 13.5px/1.2 'Poppins', sans-serif;
}
