/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author URI: https://amalyx.co.uk
Template: astra
Version: 1.0.0
*/

/*HOME
/* HERO HEADING - MOBILE FIX */

@media (max-width: 600px) {

    .home h1 {
        font-size: 42px;
        line-height: 1.08;
        letter-spacing: -0.02em;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
}

@media (max-width: 781px) {
#post-10 .wp-block-cover {
    padding-bottom: 10px;
    padding-top: 10px;
}
}


@media (max-width: 781px) {

    .amalyx-hero {
        display: flex;
        flex-direction: column;
    }

    .amalyx-hero .wp-block-media-text__content {
        order: 1;
    }

    .amalyx-hero .wp-block-media-text__media {
        order: 2;
    }

    /* Hide empty media area */
    .amalyx-hero .wp-block-media-text__media:empty {
        display: none;
    }
}    

@media (max-width: 600px) {

    .amalyx-hero .wp-block-media-text__content {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .amalyx-hero h1 {
        margin-bottom: 18px;
    }

    .amalyx-hero p {
        margin-bottom: 14px;
    }

    .amalyx-hero .wp-block-buttons {
        margin-top: 8px;
    }
}

/*Global mobile
@media (max-width: 600px) {

    .home h1 {


/* ==========================================================
   AMALYX BETA MODAL
   ========================================================== */

.amalyx-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;

	display: none;
	align-items: center;
	justify-content: center;

	padding: 20px;
}

/* Open popup when URL targets #amalyx-beta */
.amalyx-modal:target {
	display: flex;
}

/* Stop page scrolling behind modal on modern browsers */
body:has(#amalyx-beta:target) {
	overflow: hidden;
}


/* ---------- BACKDROP ---------- */

.amalyx-modal-backdrop {
	position: absolute;
	inset: 0;

	display: block;

	background: rgba(20, 18, 50, 0.68);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}


/* ---------- DIALOG ---------- */

.amalyx-modal-dialog {
	position: relative;
	z-index: 1;

	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;

	padding: 38px;

	background: #ffffff;
	color: #27216a;

	border-radius: 22px;

	box-shadow:
		0 24px 70px rgba(20, 18, 50, 0.28),
		0 0 0 1px rgba(39, 33, 106, 0.05);
}


/* ---------- CLOSE BUTTON ---------- */

.amalyx-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;

	color: #27216a;

	font-size: 30px;
	line-height: 1;

	text-decoration: none;

	border-radius: 50%;

	transition:
		background 0.15s ease,
		transform 0.15s ease;
}

.amalyx-modal-close:hover,
.amalyx-modal-close:focus {
	color: #27216a;
	background: rgba(39, 33, 106, 0.07);
	transform: scale(1.04);
}


/* ==========================================================
   AMALYX BETA FORM
   ========================================================== */

.amalyx-beta-form {
	width: 100%;
}

.amalyx-beta-form h2 {
	margin: 0 45px 8px 0;

	color: #27216a;

	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
}

.amalyx-beta-subtitle {
	margin: 0 0 28px;

	color: rgba(39, 33, 106, 0.75);

	font-size: 18px;
	line-height: 1.5;
}

.amalyx-required-note {
	margin: 0 0 14px;

	color: rgba(39, 33, 106, 0.60);

	font-size: 12px;
}

.amalyx-field {
	margin-bottom: 18px;
}

.amalyx-field label {
	display: block;

	margin-bottom: 7px;

	color: #27216a;

	font-weight: 600;
}

.amalyx-field input[type="text"],
.amalyx-field input[type="email"] {
	display: block;

	width: 100%;
	min-height: 52px;

	box-sizing: border-box;

	padding: 12px 16px;

	color: #27216a;

	font: inherit;

	background: #ffffff;

	border: 1px solid rgba(39, 33, 106, 0.20);
	border-radius: 12px;

	outline: none;

	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.amalyx-field input[type="text"]:focus,
.amalyx-field input[type="email"]:focus {
	border-color: #904493;

	box-shadow:
		0 0 0 3px rgba(144, 68, 147, 0.12);
}


/* ---------- GDPR ---------- */

.amalyx-gdpr {
	margin-top: 8px;
}

.amalyx-gdpr-title {
	display: block;

	margin-bottom: 8px;

	color: #27216a;

	font-size: 18px;
	font-weight: 700;
}

.amalyx-gdpr p {
	margin: 6px 0 14px;

	color: rgba(39, 33, 106, 0.78);

	line-height: 1.5;
}

.amalyx-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;

	margin: 14px 0 18px;

	cursor: pointer;
}

.amalyx-checkbox input {
	flex: 0 0 auto;

	width: 18px;
	height: 18px;

	margin-top: 3px;

	accent-color: #904493;
}

.amalyx-checkbox span {
	line-height: 1.4;
}

.amalyx-mailchimp-legal {
	margin-top: 18px;

	color: rgba(39, 33, 106, 0.60);

	font-size: 12px;
	line-height: 1.45;
}

.amalyx-mailchimp-legal a {
	color: inherit;
	text-decoration: underline;
}


/* ---------- SUBMIT BUTTON ---------- */

.amalyx-beta-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 52px;

	margin-top: 10px;
	padding: 13px 30px;

	color: #ffffff;

	font: inherit;
	font-weight: 700;

	background: #27216a;

	border: 0;
	border-radius: 12px;

	cursor: pointer;

	transition:
		transform 0.15s ease,
		opacity 0.15s ease;
}

.amalyx-beta-submit:hover,
.amalyx-beta-submit:focus {
	color: #ffffff;

	transform: translateY(-1px);
	opacity: 0.92;
}


/* ---------- ACCESSIBILITY / BOT FIELD ---------- */

.amalyx-honeypot {
	position: absolute !important;

	left: -5000px !important;

	width: 1px !important;
	height: 1px !important;

	overflow: hidden !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

	.amalyx-modal {
		padding: 12px;
	}

	.amalyx-modal-dialog {
		max-height: calc(100vh - 24px);

		padding: 30px 22px 24px;

		border-radius: 18px;
	}

	.amalyx-beta-form h2 {
		font-size: 28px;
	}

	.amalyx-beta-subtitle {
		font-size: 16px;
	}

	.amalyx-beta-submit {
		width: 100%;
	}
	
#mc_embed_signup #mc-embedded-subscribe:hover,
#mc_embed_signup #mc-embedded-subscribe:focus,
#mc_embed_signup #mc-embedded-subscribe:active {
    background: #27216a !important;
    color: #ffffff !important;
}

}


