/*
Theme Name: Atmos Prayer
Theme URI: https://atmosprayer.com/
Description: Production Kadence child theme for Atmos Prayer.
Author: Atmos Prayer
Template: kadence
Version: 1.0.5
Text Domain: atmos-prayer
*/

:root {
	--atmos-red: #C6000F;
	--atmos-red-dark: #A7000D;
	--atmos-ink: #333333;
	--atmos-body: #505050;
	--atmos-muted: #747474;
	--atmos-line: #E2E2E2;
	--atmos-soft: #F7F7F5;
	--atmos-white: #FFFFFF;
	--atmos-deep: #242424;
	--atmos-max: 1140px;
	--atmos-reading: 700px;

	/* Kadence palette mapping */
	--global-palette1: #C6000F;
	--global-palette2: #A7000D;
	--global-palette3: #333333;
	--global-palette4: #505050;
	--global-palette5: #747474;
	--global-palette6: #E2E2E2;
	--global-palette7: #F7F7F5;
	--global-palette8: #FFFFFF;
	--global-palette9: #242424;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--atmos-ink);
	font-family: "Manrope", sans-serif;
	font-size: 17.5px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: "Manrope", sans-serif;
}

em,
i:not([class*="icon"]) {
	font-style: normal;
}

a {
	color: inherit;
	text-underline-offset: .18em;
}

/* =========================================================
   K8 HOMEPAGE CHROME
   Exact simple Atmos header/footer, while Kadence remains the parent theme.
========================================================= */

.atmos-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 104px;
	background: rgba(255,255,255,.98);
	border-bottom: 1px solid var(--atmos-line);
}

.atmos-shell {
	width: min(calc(100% - 48px), var(--atmos-max));
	max-width: var(--atmos-max);
	margin-inline: auto;
	box-sizing: border-box;
}

.atmos-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 24px;
}

.atmos-wordmark,
.atmos-footer-wordmark {
	margin: 0;
	line-height: 1;
}

.atmos-wordmark a,
.atmos-footer-wordmark a {
	display: inline-block;
	text-decoration: none;
	line-height: 1;
}

.atmos-logo-image {
	display: block;
	width: auto;
	height: 48px;
	max-width: 100%;
}

.atmos-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px 2px;
	border: 1px solid var(--atmos-red);
	border-radius: 6px;
	background: var(--atmos-red);
	color: #fff !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.atmos-header-button:hover {
	background: var(--atmos-red-dark);
	border-color: var(--atmos-red-dark);
	color: #fff !important;
}

/* =========================================================
   PAGE FRAME
========================================================= */

.atmos-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
}

.atmos-page > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.atmos-page .is-layout-flow > *,
.atmos-page .is-layout-constrained > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.atmos-section {
	margin: 0 !important;
	padding: clamp(92px, 8vw, 118px) 0 !important;
	background: #fff;
	border-top: 1px solid var(--atmos-line);
}

.atmos-section:first-child {
	border-top: 0;
}

.atmos-container {
	width: min(calc(100% - 48px), var(--atmos-max)) !important;
	max-width: var(--atmos-max) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

.atmos-narrow {
	max-width: var(--atmos-reading) !important;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.atmos-page h1,
.atmos-page h2,
.atmos-page h3 {
	color: var(--atmos-ink);
	font-family: "Manrope", sans-serif;
}

.atmos-page h1,
.atmos-page h2 {
	margin: 0;
	font-weight: 600;
	letter-spacing: -.048em;
}

.atmos-page h1 {
	max-width: 780px;
	font-size: clamp(3.5rem, 6vw, 4.35rem);
	line-height: 1.02;
}

.atmos-page h2 {
	font-size: clamp(2.35rem, 3.4vw, 2.75rem);
	line-height: 1.08;
}

.atmos-page h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.28;
}

.atmos-lead {
	max-width: var(--atmos-reading);
	margin: 31px 0 0 !important;
	color: var(--atmos-body);
	font-size: 19px;
	line-height: 1.72;
}

.atmos-small {
	margin: 18px 0 0 !important;
	color: var(--atmos-muted);
	font-size: 15px;
	line-height: 1.62;
}

.atmos-meta {
	margin: 0 0 13px !important;
	color: var(--atmos-red);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.atmos-rule {
	width: 48px !important;
	height: 4px !important;
	min-height: 4px;
	margin: 27px 0 0 !important;
	background: var(--atmos-red) !important;
}

/* =========================================================
   ICONS
========================================================= */

.atmos-icon {
	width: 38px !important;
	height: 38px !important;
	margin: 0 0 20px !important;
}

.atmos-icon img {
	display: block;
	width: 38px !important;
	height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

/* =========================================================
   BUTTONS
========================================================= */

.atmos-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px 2px;
	box-sizing: border-box;
	border: 1px solid var(--atmos-red);
	border-radius: 6px;
	background: var(--atmos-red);
	color: #fff !important;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.atmos-button .wp-block-button__link:hover {
	background: var(--atmos-red-dark);
	border-color: var(--atmos-red-dark);
	color: #fff !important;
}

.atmos-text-link {
	margin: 0 !important;
}

.atmos-text-link a {
	color: var(--atmos-ink);
	font-size: 15.5px;
	font-weight: 600;
	text-decoration: none;
}

.atmos-text-link a:hover {
	color: var(--atmos-red);
}

/* =========================================================
   HERO
========================================================= */

.atmos-hero {
	display: flex;
	align-items: center;
	min-height: 560px;
	padding: 0 !important;
}


.atmos-hero .wp-block-buttons {
	margin-top: 32px;
}

/* =========================================================
   CARDS
========================================================= */

.atmos-card-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px !important;
	margin-top: 48px !important;
}

.atmos-card {
	display: flex;
	flex-direction: column;
	min-height: 330px;
	padding: 34px 30px 30px !important;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--atmos-line);
	border-radius: 4px;
}

.atmos-card.prayer-card::before {
	content: "";
	display: block;
	width: 30px;
	height: 4px;
	margin-bottom: 24px;
	background: var(--atmos-red);
}

.atmos-card p:not(.atmos-meta):not(.atmos-text-link) {
	margin: 16px 0 0;
	color: var(--atmos-body);
	font-size: 17.5px;
	line-height: 1.7;
}

.atmos-card .atmos-text-link {
	margin-top: auto !important;
	padding-top: 26px;
}

.atmos-section-action {
	margin-top: 34px !important;
}

/* Hope card meta treatment */
.atmos-card .atmos-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atmos-card .atmos-meta::before {
	content: "";
	width: 22px;
	height: 3px;
	background: var(--atmos-red);
	flex: 0 0 auto;
}

/* =========================================================
   CENTERED PRAYER SECTION
========================================================= */

.atmos-centered {
	text-align: center;
}

.atmos-centered .atmos-icon,
.atmos-centered .atmos-rule,
.atmos-centered .atmos-lead {
	margin-left: auto !important;
	margin-right: auto !important;
}

.atmos-centered .wp-block-buttons {
	justify-content: center;
	margin-top: 30px;
}

/* =========================================================
   BE STILL
========================================================= */

.atmos-still-grid {
	display: grid !important;
	grid-template-columns: 5fr 7fr;
	gap: clamp(50px, 8vw, 96px) !important;
	align-items: start;
}

.atmos-still-copy {
	padding-top: 4px;
}

.atmos-still-copy .atmos-lead {
	margin-top: 0 !important;
}

.atmos-still-copy .wp-block-buttons {
	margin-top: 28px;
}

/* =========================================================
   GIFT
========================================================= */

.atmos-gift-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0 !important;
}

.atmos-gift-copy {
	padding-right: clamp(44px, 6vw, 82px) !important;
}

.atmos-gift-form-wrap {
	padding-left: clamp(44px, 6vw, 82px) !important;
	border-left: 1px solid var(--atmos-line);
}

.atmos-gift-copy > p:not(.atmos-lead) {
	margin: 1em 0 0;
	color: var(--atmos-body);
}

.atmos-form {
	display: grid;
	gap: 18px;
}

.atmos-field label {
	display: block;
	margin-bottom: 8px;
	color: var(--atmos-ink);
	font-size: 15px;
	font-weight: 600;
}

.atmos-field input {
	width: 100%;
	min-height: 56px;
	padding: 0 15px;
	box-sizing: border-box;
	border: 1px solid #D4D4D4;
	border-radius: 0;
	background: #fff;
	color: var(--atmos-ink);
	font: inherit;
	font-size: 16px;
	outline: none;
}

.atmos-field input:focus {
	border-color: rgba(198,0,15,.55);
	box-shadow: 0 0 0 3px rgba(198,0,15,.06);
}

.atmos-form-note {
	margin: 0;
	color: var(--atmos-muted);
	font-size: 15px;
	line-height: 1.58;
}

.atmos-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	min-height: 50px;
	padding: 0 24px 2px;
	border: 1px solid var(--atmos-red);
	border-radius: 6px;
	background: var(--atmos-red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

/* =========================================================
   FINAL CTA
========================================================= */

.atmos-final {
	text-align: center;
	padding-block: clamp(105px, 11vw, 155px) !important;
}

.atmos-final .atmos-icon,
.atmos-final .atmos-rule,
.atmos-final .atmos-lead {
	margin-left: auto !important;
	margin-right: auto !important;
}

.atmos-final .wp-block-buttons {
	justify-content: center;
	margin-top: 30px;
}

/* =========================================================
   FOOTER
========================================================= */

.atmos-footer {
	padding: 76px 0 36px;
	background: #fff;
	border-top: 1px solid var(--atmos-line);
	text-align: center;
}

.atmos-footer-wordmark .atmos-logo-image {
	height: 58px;
	margin-inline: auto;
}

.atmos-footer-tagline {
	max-width: 520px;
	margin: 15px auto 0;
	color: #666;
	font-size: 16px;
}

.atmos-footer-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 34px;
}

.atmos-footer-nav a {
	color: #444;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.atmos-footer-nav a:hover {
	color: var(--atmos-red);
}

.atmos-footer-rule {
	height: 1px;
	margin: 42px 0 26px;
	background: var(--atmos-line);
}

.atmos-copyright {
	margin-top: 32px;
	color: #777;
	font-size: 14px;
}

/* =========================================================
   BLOCK EDITOR
========================================================= */

.editor-styles-wrapper {
	font-family: "Manrope", sans-serif !important;
	color: var(--atmos-body);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
	.atmos-card {
		padding-inline: 26px !important;
	}

	.atmos-still-grid {
		grid-template-columns: 1fr 1fr;
		gap: 44px !important;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 16.5px;
	}

	.atmos-header {
		height: 88px;
	}

	.atmos-shell,
	.atmos-container {
		width: min(calc(100% - 30px), var(--atmos-max)) !important;
	}

	.atmos-logo-image {
		height: 40px;
	}

	.atmos-footer-wordmark .atmos-logo-image {
		height: 48px;
	}

	.atmos-header-button {
		min-height: 48px;
		padding: 0 18px 2px;
		font-size: 15px;
	}

	.atmos-section {
		padding: 70px 0 !important;
	}

	.atmos-hero {
		min-height: 520px;
		padding: 0 !important;
	}


	.atmos-page h1 {
		font-size: clamp(2.75rem, 12vw, 3.5rem);
	}

	.atmos-page h2 {
		font-size: 2.25rem;
	}

	.atmos-icon,
	.atmos-icon img {
		width: 34px !important;
		height: 34px !important;
		max-width: 34px !important;
		max-height: 34px !important;
	}

	.atmos-card-grid {
		grid-template-columns: 1fr;
		gap: 16px !important;
	}

	.atmos-card {
		min-height: 0;
		padding: 30px 22px !important;
	}

	.atmos-still-grid {
		grid-template-columns: 1fr;
		gap: 30px !important;
	}

	.atmos-gift-grid {
		grid-template-columns: 1fr;
	}

	.atmos-gift-copy {
		padding-right: 0 !important;
	}

	.atmos-gift-form-wrap {
		margin-top: 38px;
		padding: 38px 0 0 !important;
		border-left: 0;
		border-top: 1px solid var(--atmos-line);
	}

	.atmos-button .wp-block-button__link,
	.atmos-form button {
		min-height: 48px;
		padding: 0 20px 2px;
	}
}


/* =========================================================
   K8 GRID CORRECTION
   Hero aligns to the same left grid line as the sections below.
========================================================= */

.atmos-hero > .atmos-container {
	width: min(calc(100% - 48px), var(--atmos-max)) !important;
	max-width: var(--atmos-max) !important;
	margin-inline: auto !important;
	padding-block: 104px;
}

.atmos-hero-copy {
	width: 100%;
	max-width: var(--atmos-reading) !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Real separator blocks replace empty Group blocks for heading rules. */
hr.atmos-rule {
	display: block;
	width: 48px !important;
	height: 4px !important;
	min-height: 4px;
	margin: 27px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: var(--atmos-red) !important;
	opacity: 1 !important;
}

/* Editor cleanup: no gray section framing. */
.editor-styles-wrapper .atmos-section {
	outline: none !important;
}

.editor-styles-wrapper hr.atmos-rule {
	border: 0 !important;
	background: var(--atmos-red) !important;
}

@media (max-width: 760px) {
	.atmos-hero > .atmos-container {
		width: min(calc(100% - 30px), var(--atmos-max)) !important;
		padding-block: 78px 86px;
	}
}


/* =========================================================
   K8 KADENCE GIFT FORM
========================================================= */

.atmos-gift-form-wrap .wp-block-kadence-advanced-form,
.wp-block-kadence-advanced-form.atmos-gift-form-wrap .wp-block-kadence-advanced-form,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form {
	display: grid;
	gap: 18px;
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form label,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kb-field-label,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kadence-blocks-form-field label {
	display: block;
	margin-bottom: 8px;
	color: var(--atmos-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form input[type="text"],
.atmos-gift-form-wrap .wp-block-kadence-advanced-form input[type="email"],
.atmos-gift-form-wrap .wp-block-kadence-advanced-form input[type="tel"],
.atmos-gift-form-wrap .wp-block-kadence-advanced-form textarea,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form select {
	width: 100%;
	min-height: 56px;
	padding: 0 15px;
	box-sizing: border-box;
	border: 1px solid #D4D4D4;
	border-radius: 0;
	background: #fff;
	color: var(--atmos-ink);
	font: inherit;
	font-size: 16px;
	outline: none;
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form textarea {
	min-height: 120px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form input:focus,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form textarea:focus,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form select:focus {
	border-color: rgba(198,0,15,.55);
	box-shadow: 0 0 0 3px rgba(198,0,15,.06);
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kb-form-submit,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kadence-blocks-form-field button,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	min-height: 50px;
	padding: 0 24px 2px;
	border: 1px solid var(--atmos-red);
	border-radius: 6px;
	background: var(--atmos-red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kb-form-submit:hover,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form .kadence-blocks-form-field button:hover,
.atmos-gift-form-wrap .wp-block-kadence-advanced-form button[type="submit"]:hover {
	background: var(--atmos-red-dark);
	border-color: var(--atmos-red-dark);
}

.atmos-gift-form-wrap .wp-block-kadence-advanced-form .atmos-form-note {
	margin: 0;
	color: var(--atmos-muted);
	font-size: 15px;
	line-height: 1.58;
}


/* =========================================================
   PRODUCTION CONSOLIDATION
========================================================= */

.atmos-gift-form-wrap .wp-block-kadence-advanced-form {
	width: 100%;
}

.atmos-gift-form-wrap .kb-advanced-form {
	display: grid;
	gap: 18px;
}

.atmos-gift-form-wrap .kb-adv-form-field {
	margin: 0;
}

.atmos-gift-form-wrap .kb-adv-form-label {
	display: block;
	margin: 0 0 8px;
	color: var(--atmos-ink);
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.atmos-gift-form-wrap .kb-adv-form-required {
	color: var(--atmos-red);
	margin-left: 3px;
}

.atmos-gift-form-wrap .kb-advanced-form input[type="text"],
.atmos-gift-form-wrap .kb-advanced-form input[type="email"] {
	width: 100%;
	min-height: 56px;
	padding: 0 15px;
	box-sizing: border-box;
	border: 1px solid #D4D4D4;
	border-radius: 0;
	background: #fff;
	color: var(--atmos-ink);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	outline: none;
	box-shadow: none;
}

.atmos-gift-form-wrap .kb-advanced-form input[type="text"]:focus,
.atmos-gift-form-wrap .kb-advanced-form input[type="email"]:focus {
	border-color: rgba(198,0,15,.55);
	box-shadow: 0 0 0 3px rgba(198,0,15,.06);
}

.atmos-gift-form-wrap .atmos-form-note {
	margin: 0;
	color: var(--atmos-muted);
	font-size: 15px;
	line-height: 1.58;
}

.atmos-gift-form-wrap .atmos-form-note a {
	color: var(--atmos-ink);
	text-decoration: underline;
}

.atmos-gift-form-wrap .kb-submit-field {
	display: flex;
	justify-content: flex-start;
}

.atmos-gift-form-wrap .kb-submit-field .kb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px 2px;
	border: 1px solid var(--atmos-red);
	border-radius: 6px;
	background: var(--atmos-red);
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
}

.atmos-gift-form-wrap .kb-submit-field .kb-button:hover,
.atmos-gift-form-wrap .kb-submit-field .kb-button:focus {
	border-color: var(--atmos-red-dark);
	background: var(--atmos-red-dark);
	color: #fff;
	box-shadow: none;
}

.atmos-gift-form-wrap .kb-adv-form-message {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid var(--atmos-line);
	background: var(--atmos-soft);
	color: var(--atmos-ink);
	font-size: 15px;
	line-height: 1.5;
}

.atmos-form-setup-note {
	padding: 14px 16px;
	border: 1px solid var(--atmos-line);
	background: var(--atmos-soft);
	color: var(--atmos-body);
	font-size: 15px;
}
