/*
Theme Name: Designed by Nature
Theme URI: https://dnal.base44.app/
Author: Designed by Nature Assisted Living
Description: Block theme for Designed by Nature Assisted Living / Sarah House (Baltimore). Converted from the Base44 site. Every page, header, footer, color, font and pattern is editable in the WordPress Site Editor and Page Editor. Includes a fully editable "Request a Visit" form block that emails you and saves each request in the dashboard.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: designed-by-nature
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, wide-blocks, one-column
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ivory); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:where(.wp-site-blocks) main { margin-block-start: 0; }

/* ---------- Header ---------- */
.dnal-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(253, 252, 248, 0.8);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.admin-bar .dnal-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dnal-header { top: 0; } }
.dnal-header .wp-block-navigation__container { gap: 2rem; }
.dnal-header .wp-block-navigation .wp-block-navigation-item.dnal-nav-cta > a,
.dnal-header .wp-block-navigation .dnal-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ivory) !important;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-weight: 500;
	transition: background-color .2s ease;
}
.dnal-header .wp-block-navigation .dnal-nav-cta > a:hover { background: var(--wp--preset--color--forest); }
.dnal-brand-tag {
	font-size: 10px !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1 !important;
}

/* ---------- Footer ---------- */
.dnal-footer a { text-decoration: none; color: inherit; transition: color .15s ease; }
.dnal-footer a:hover { color: var(--wp--preset--color--ivory); }
.is-style-plain-links { list-style: none; padding-left: 0; margin: 0; }
.is-style-plain-links li + li { margin-top: 0.625rem; }

/* ---------- Paragraph styles ---------- */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.75rem !important;
	font-weight: 500;
	line-height: 1rem !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
}
.is-style-lede {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-style: italic;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.35;
	color: var(--wp--preset--color--forest-soft);
}
.is-style-number-badge {
	width: 3rem; height: 3rem;
	margin-left: auto !important; margin-right: auto !important;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(180, 150, 98, 0.4);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: 1.125rem !important;
	color: var(--wp--preset--color--gold);
}
.is-style-big-number {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: 3rem !important;
	line-height: 1 !important;
	color: rgba(180, 150, 98, 0.4);
}

/* ---------- Group styles ---------- */
.is-style-card {
	background: var(--wp--preset--color--ivory);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	padding: 1.75rem;
}
.is-style-panel {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	padding: clamp(2rem, 4vw, 2.5rem);
}
.is-style-tile-grid {
	gap: 1px !important;
	background: var(--wp--preset--color--border);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}
.is-style-tile-grid > * {
	background: var(--wp--preset--color--ivory);
	padding: clamp(2rem, 4vw, 2.5rem);
	margin: 0 !important;
}
.is-style-accent-border {
	border-left: 2px solid rgba(180, 150, 98, 0.4);
	padding: 0.5rem 0 0.5rem 1.5rem;
}
.is-style-quote-divider { }
@media (min-width: 782px) {
	.is-style-quote-divider { border-left: 1px solid var(--wp--preset--color--border); padding-left: 3rem; }
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: all .2s ease; text-decoration: none; }
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 0.5rem;
	transition: margin .2s ease;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { margin-left: 0.75rem; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--forest) !important;
	border: 1px solid rgba(27, 48, 34, 0.25);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--forest) !important;
	color: var(--wp--preset--color--ivory) !important;
}
.is-style-text-link a, a.is-style-text-link {
	color: var(--wp--preset--color--forest);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.is-style-text-link a:hover { color: var(--wp--preset--color--gold); }

/* ---------- Ordered list: numbered circle steps ---------- */
ol.is-style-steps { list-style: none; padding-left: 0; counter-reset: dnal-step; }
ol.is-style-steps > li {
	counter-increment: dnal-step;
	position: relative;
	padding-left: 3.5rem;
	min-height: 2.25rem;
	padding-top: 0.35rem;
}
ol.is-style-steps > li + li { margin-top: 1.25rem; }
ol.is-style-steps > li::before {
	content: counter(dnal-step);
	position: absolute; left: 0; top: 0;
	width: 2.25rem; height: 2.25rem;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(180, 150, 98, 0.4);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	color: var(--wp--preset--color--gold);
}
ol.is-style-steps.is-compact > li { padding-left: 2.75rem; font-size: 0.875rem; }
ol.is-style-steps.is-compact > li::before { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details { padding: 0; }
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--forest);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	flex-shrink: 0;
	width: 0.6rem; height: 0.6rem;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 1.25rem; padding-right: 1rem; }
.is-style-faq-compact.wp-block-details summary { font-size: var(--wp--preset--font-size--large); }

/* ---------- Photo placeholder tiles (Cover block) ---------- */
.is-style-photo-tile.wp-block-cover {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
	min-height: 0 !important;
	aspect-ratio: 4 / 3;
	text-align: center;
}
.is-style-photo-tile.is-feature { aspect-ratio: 16 / 12; }
.is-style-photo-tile.is-portrait { aspect-ratio: 4 / 5; }
.is-style-photo-tile .wp-block-cover__inner-container > * { margin-block: 0.25rem; }
.is-style-photo-tile .dnal-owner-note {
	font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
	color: rgba(118, 132, 101, 0.6); margin-top: 0.75rem !important;
}
@media (min-width: 1024px) {
	.dnal-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.dnal-gallery > .is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (max-width: 1023px) and (min-width: 600px) {
	.dnal-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 599px) {
	.dnal-gallery { grid-template-columns: 1fr !important; }
}

/* ---------- Responsive grid helpers ---------- */
@media (max-width: 781px) {
	.dnal-grid-4, .dnal-grid-3, .dnal-grid-2 { grid-template-columns: 1fr !important; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.dnal-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Hero ---------- */
.dnal-hero .wp-block-cover__inner-container { max-width: 72rem; }
.dnal-settle { animation: dnal-settle .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes dnal-settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dnal-settle { animation: none; } }

/* ---------- Visit form ---------- */
.dnal-form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.dnal-form label, .dnal-form legend {
	display: block; font-size: 0.875rem; font-weight: 500;
	color: var(--wp--preset--color--forest); margin-bottom: 0.5rem;
}
.dnal-form input[type="text"], .dnal-form input[type="email"], .dnal-form input[type="tel"], .dnal-form textarea {
	width: 100%; box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	background: var(--wp--preset--color--ivory);
	padding: 0.75rem 1rem;
	font: inherit; color: var(--wp--preset--color--forest);
}
.dnal-form input:focus, .dnal-form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(180, 150, 98, 0.4); }
.dnal-form input[readonly] { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--muted); cursor: not-allowed; }
.dnal-form textarea { min-height: 8rem; resize: vertical; }
.dnal-form fieldset { border: 0; padding: 0; margin: 0; }
.dnal-method { display: flex; gap: 0.75rem; }
.dnal-method label {
	flex: 1; margin: 0; cursor: pointer; text-align: center;
	border: 1px solid var(--wp--preset--color--border); border-radius: 6px;
	padding: 0.75rem 1rem; font-weight: 400; color: var(--wp--preset--color--muted);
	transition: all .15s ease;
}
.dnal-method input { position: absolute; opacity: 0; pointer-events: none; }
.dnal-method label:has(input:checked) {
	background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--ivory);
}
.dnal-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.dnal-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--wp--preset--color--forest); }
.dnal-check span { font-size: 0.875rem; color: var(--wp--preset--color--muted); line-height: 1.6; }
.dnal-notice {
	display: flex; gap: 0.75rem; align-items: flex-start;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	padding: 1rem; font-size: 0.75rem; color: var(--wp--preset--color--muted); line-height: 1.6;
}
.dnal-notice::before { content: "!"; flex-shrink: 0; width: 1rem; height: 1rem; border: 1.5px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); border-radius: 50%; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dnal-submit {
	justify-self: start;
	display: inline-flex; align-items: center; gap: 0.5rem;
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ivory);
	border: 0; border-radius: 6px; padding: 1rem 2rem;
	font: 500 1rem/1.5 var(--wp--preset--font-family--body); cursor: pointer;
	transition: all .2s ease;
}
.dnal-submit:hover { background: var(--wp--preset--color--forest); gap: 0.75rem; }
.dnal-hp { position: absolute !important; left: -9999px !important; }
.dnal-form-message {
	border-radius: var(--wp--custom--radius); padding: 1.25rem 1.5rem; margin-top: 2rem;
	background: var(--wp--preset--color--ivory-deep); border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--forest);
}
.dnal-form-message.is-error { border-color: #e7b4b4; background: #fdf3f2; }
.dnal-hidden { display: none !important; }

/* ---------- Generic content (blog posts etc.) ---------- */
.wp-block-post-content.is-layout-constrained > p,
.entry-content > p { color: var(--wp--preset--color--muted); }
