/*
Theme Name: Divine Mama Doula
Theme URI: https://divinemama.encylia.com
Description: Child theme of Twenty Twenty-Five for Divine Mama Doula. Colors, fonts, spacing and buttons live in theme.json, and pages are built from core blocks so they can be edited in the block editor.
Author: benny Vasquez
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: divine-mama
*/

/*
 * Keep this file small. Anything a block setting or theme.json can do belongs there instead.
 * Fonts: Cormorant Garamond and Jost, both SIL Open Font License 1.1, served from assets/fonts.
 */

/* Sticky header. Set on the template part wrapper because a sticky block inside it has no room to stick. */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

/* A photo slot in a stretched column fills the column height, and rounded cards clip their photos to the corners. */
.wp-block-column.is-vertically-aligned-stretch > .wp-block-cover {
	height: 100%;
}

.wp-block-group.has-border-color:has(> .wp-block-cover, > .wp-block-columns > .wp-block-column > .wp-block-cover) {
	overflow: hidden;
}

/* Contact form shortcode output ([dm_contact_form]). */

.dm-form-card {
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	padding: clamp(24px, 4vw, 44px);
}

.dm-form {
	display: grid;
	gap: 22px;
}

.dm-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 22px;
}

.dm-form label {
	display: grid;
	gap: 8px;
}

.dm-form label > span {
	font-size: var(--wp--preset--font-size--tiny);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe);
}

.dm-form input,
.dm-form select,
.dm-form textarea {
	width: 100%;
	min-width: 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line-warm);
	border-radius: 0;
	background: transparent;
	padding: 10px 2px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 300;
	color: var(--wp--preset--color--contrast);
}

.dm-form input:focus,
.dm-form select:focus,
.dm-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	border-bottom-color: var(--wp--preset--color--gold);
}

.dm-form textarea {
	resize: vertical;
}

.dm-form ::placeholder {
	color: #9c8780;
}

.dm-form button {
	justify-self: start;
	margin-top: 8px;
	cursor: pointer;
}

/* Honeypot: hidden from people, visible to bots. */
.dm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dm-form-message {
	padding: 18px 22px;
	border-radius: 6px;
	margin: 0 0 24px;
	font-size: var(--wp--preset--font-size--small);
}

.dm-form-message--ok {
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--cocoa);
	border: 1px solid var(--wp--preset--color--blush-deep);
}

.dm-form-message--err {
	background: #fbeaea;
	color: #8a3f45;
	border: 1px solid #f0cfd1;
}

/* Long words and email addresses shouldn't push the page sideways on phones. */
.entry-content,
.wp-block-post-content {
	overflow-wrap: break-word;
}
