/*
Theme Name: Aesthete
Description: Aesthete Photography (Houston newborn & maternity) block theme. Ivory/linen/cocoa palette, Cormorant Garamond + Jost.
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: aesthete
*/

/* ---------- Sections ---------- */
.ae-sec { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.ae-sec-top { padding-top: clamp(16px, 3vw, 32px); }
.ae-sec-tight { padding-top: 48px; padding-bottom: 48px; }
.ae-sec-flush { padding-top: 0; }
.ae-sec-strip { padding-top: 26px; padding-bottom: 26px; }
:where(.wp-site-blocks) > main > .wp-block-post-content > .ae-sec:first-child { margin-top: 0; }
.wp-block-post-content > .ae-sec { margin-block-start: 0; }

/* Dark sections */
.ae-dark, .ae-dark h1, .ae-dark h2, .ae-dark h3 { color: var(--wp--preset--color--ivory); }
.ae-dark p, .ae-dark li { color: #D9CFC5; }
.ae-dark a:not(.wp-element-button) { color: var(--wp--preset--color--ivory); }

/* ---------- Typography helpers ---------- */
.ae-eyebrow { font-family: var(--wp--preset--font-family--jost) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wp--preset--color--taupe); line-height: 1.5 !important; margin: 0; }
.ae-dark .ae-eyebrow { color: #D9C7B4; }
.ae-clay { color: var(--wp--preset--color--clay) !important; letter-spacing: 0.18em; }
.ae-display { font-family: var(--wp--preset--font-family--cormorant); font-weight: 500; font-size: var(--wp--preset--font-size--display) !important; line-height: 1.05; margin: 0; }
.ae-lead { font-size: clamp(17px, 1rem + 0.3vw, 19px); color: var(--wp--preset--color--umber); max-width: 540px; }
.ae-center .ae-lead { margin-left: auto; margin-right: auto; }
.ae-muted, .ae-muted li { color: var(--wp--preset--color--umber); font-size: 15px; }
.ae-small { font-size: 14px; color: var(--wp--preset--color--taupe); }
.ae-dark .ae-small { color: #D9CFC5; }
.ae-feature { font-size: 26px !important; margin: 0 0 6px; }
.ae-price-sm { font-size: 15px; letter-spacing: 0.08em; margin: 0; }
.ae-price { font-family: var(--wp--preset--font-family--cormorant); font-size: 44px; line-height: 1; margin: 0; }
.ae-tag { font-size: 12px; letter-spacing: 0.2em; color: var(--wp--preset--color--taupe); min-height: 18px; margin: 0; }
.ae-who { font-size: 15px; opacity: 0.9; }
.ae-note { background: var(--wp--preset--color--linen); padding: 18px 22px; font-size: 15px; color: var(--wp--preset--color--umber); }
.ae-note strong { font-weight: 500; color: var(--wp--preset--color--cocoa); }
.ae-strip { font-size: 15px; letter-spacing: 0.04em; margin: 0; }
.ae-step-num { font-family: var(--wp--preset--font-family--cormorant); font-size: 44px; color: #D9C7B4 !important; margin: 0; line-height: 1.2; }
.ae-step-title { font-size: 20px; color: var(--wp--preset--color--ivory) !important; margin: 8px 0 0; }
.ae-step-body { font-size: 15px; margin-top: 8px; }
.ae-bundle-title { font-family: var(--wp--preset--font-family--cormorant); font-size: 26px; color: var(--wp--preset--color--ivory) !important; margin: 0; }
.ae-stat-num { font-family: var(--wp--preset--font-family--cormorant); font-size: 48px; line-height: 1; margin: 0; }
.ae-center { align-items: center !important; text-align: center; gap: 10px; margin-bottom: 40px; }
.ae-center:last-child { margin-bottom: 0; }
.ae-center > * { margin: 0; }

/* ---------- Columns that wrap fluidly (like the design's flex-wrap rows) ---------- */
/* Even grids: 1 column on phones, 2 on tablets, 3 or 4 on desktop, never a lone orphan card. */
.wp-block-columns.ae-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.wp-block-columns.ae-wrap > .wp-block-column { min-width: 0; }
.wp-block-columns.ae-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .wp-block-columns.ae-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 782px) { .wp-block-columns.ae-wrap:has(> .wp-block-column:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .wp-block-columns.ae-wrap:has(> .wp-block-column:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wp-block-columns.ae-cards { align-items: stretch; gap: 20px; }
.wp-block-columns.ae-cards > .wp-block-column { display: flex; }
.wp-block-columns.ae-cards > .wp-block-column > .ae-card { flex: 1; }
.wp-block-columns.ae-gallery { gap: 16px; margin-bottom: 16px; }
.wp-block-columns.ae-hero { gap: 48px; align-items: center; }
.wp-block-columns.ae-hero > .wp-block-column { flex: 1 1 420px; }
.wp-block-columns.ae-hero > .wp-block-column > * + * { margin-top: 20px; }
.wp-block-columns.ae-hero > .wp-block-column > .ae-display { margin-top: 12px; }
.wp-block-columns.ae-split { align-items: flex-end; }
.wp-block-columns.ae-pair { gap: 14px; flex-wrap: nowrap !important; }
@media (max-width: 781px) {
	.wp-block-columns.ae-hero, .wp-block-columns.ae-split { gap: 24px; }
	.ae-btns-right { justify-content: flex-start !important; }
	.wp-block-columns.ae-hero-flip > .wp-block-column:first-child { order: 2; }
}

/* ---------- Photo placeholders (replace with Image blocks) ---------- */
.ae-ph { background: var(--wp--preset--color--sand); display: flex !important; align-items: center; justify-content: center; text-align: center; padding: 20px; box-sizing: border-box; }
.ae-ph p { color: var(--wp--preset--color--taupe) !important; font-size: 14px; margin: 0 auto; max-width: 320px; }
.ae-ph-dark { background: #DCCDBD; }
.ae-dark .ae-ph { background: #5A4C44; }
.ae-dark .ae-ph-dark { background: #4A3D35; }
.ae-dark .ae-ph p { color: #D9CFC5 !important; }
.ae-ph-s { min-height: 300px; }
.ae-ph-m { min-height: 340px; }
.ae-ph-l { min-height: 380px; }
.ae-ph-xl { min-height: clamp(360px, 45vw, 560px); }
@media (max-width: 600px) { .ae-ph-s, .ae-ph-m { min-height: 240px; } .ae-ph-l { min-height: 300px; } }

/* ---------- Cards ---------- */
.ae-card { padding: 32px 28px !important; display: flex !important; flex-direction: column; gap: 14px; }
.ae-card > * { margin: 0 !important; }
.ae-card h3 { margin: 0; }
.ae-card .wp-block-list { padding-left: 18px; font-size: 15px; flex-grow: 1; }
.ae-card .wp-block-list li + li { margin-top: 6px; }
.ae-card-dark, .ae-card-dark h3, .ae-card-dark p, .ae-card-dark li { color: var(--wp--preset--color--ivory); }
.ae-card-dark .ae-tag { color: #D9C7B4; }
.ae-card-line { border: 1px solid #DDD0C2; background: transparent; height: 100%; }
.ae-dark .ae-card-line { border-color: #5A4C44; }
.ae-btns-fill, .ae-btns-fill .wp-block-button { width: 100%; }
.ae-btns-fill .wp-block-button__link { width: 100%; text-align: center; }
.ae-btns-center { justify-content: center; }
.ae-btns-right { justify-content: flex-end; }
.ae-note-box { padding: 24px !important; }
.ae-note-box > * + * { margin-top: 12px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--clay); border: 1px solid var(--wp--preset--color--clay); padding: 14px 29px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--clay); color: #fff; }
.wp-block-button.ae-btn-light > .wp-block-button__link { background: var(--wp--preset--color--ivory); color: var(--wp--preset--color--cocoa); }
.wp-block-button.ae-btn-light > .wp-block-button__link:hover { background: #fff; }
.wp-block-button.ae-btn-link > .wp-block-button__link { background: none; color: var(--wp--preset--color--clay); padding: 0; text-decoration: underline; text-underline-offset: 4px; letter-spacing: 0.1em; }
.wp-block-button.ae-btn-link > .wp-block-button__link:hover { color: var(--wp--preset--color--cocoa); }
.ae-dark .wp-block-button.ae-btn-link > .wp-block-button__link { color: var(--wp--preset--color--ivory); }
.wp-element-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.ae-btn-link .wp-element-button { min-height: 0; }

/* ---------- Reviews ---------- */
.wp-block-quote.ae-review { border: 0; margin: 0; padding: 32px; background: var(--wp--preset--color--ivory); height: 100%; box-sizing: border-box; }
.ae-dark .wp-block-quote.ae-review { background: transparent; text-align: center; padding: 0 0 24px; }
.ae-review p:not(.ae-stars) { font-family: var(--wp--preset--font-family--cormorant); font-size: 24px; line-height: 1.35; color: inherit; }
.ae-dark .ae-review p:not(.ae-stars) { font-size: clamp(26px, 2vw + 1rem, 34px); color: var(--wp--preset--color--ivory); }
.ae-review cite { font-size: 14px; font-style: normal; color: var(--wp--preset--color--taupe); display: block; margin-top: 14px; }
.ae-dark .ae-review cite { color: #D9CFC5; }
.ae-stars { color: var(--wp--preset--color--clay) !important; letter-spacing: 0.15em; font-size: 14px; margin: 0; }
.ae-dark .ae-stars { color: #D9C7B4 !important; }

/* ---------- FAQ ---------- */
.wp-block-details.ae-faq { border-top: 1px solid #DDD0C2; padding: 18px 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-block-details.ae-faq:last-of-type { border-bottom: 1px solid #DDD0C2; }
.ae-faq summary { cursor: pointer; font-size: 19px; }
.ae-faq p { color: var(--wp--preset--color--umber); margin: 12px 0 0; }

/* ---------- Book page rows ---------- */
.ae-book-cat { font-size: 30px !important; margin-top: 40px !important; }
.ae-book-cat:first-child { margin-top: 0 !important; }
.ae-row { padding: 20px 24px !important; margin-top: 12px !important; }
.ae-row .wp-block-columns { margin: 0; align-items: center; gap: 16px; flex-wrap: wrap !important; }
.ae-row .wp-block-column:first-child { flex: 1 1 280px !important; }
.ae-row .wp-block-column:not(:first-child) { flex: 0 0 auto !important; }
.ae-row p { margin: 0; }
.ae-row-name { font-size: 19px; }
.ae-row-price { font-family: var(--wp--preset--font-family--cormorant); font-size: 30px; }

/* ---------- About stats ---------- */
.ae-stats p { margin: 0; }

/* ---------- Header / footer ---------- */
.ae-announce { background: var(--wp--preset--color--cocoa); color: var(--wp--preset--color--ivory); text-align: center; padding: 10px 20px; font-size: 14px; letter-spacing: 0.06em; margin: 0; }
.ae-announce a { color: var(--wp--preset--color--ivory); }
.ae-header { padding-top: 22px; padding-bottom: 22px; }
.ae-logo { text-decoration: none; color: var(--wp--preset--color--cocoa) !important; display: inline-flex; flex-direction: column; gap: 2px; }
.ae-logo-word { font-family: var(--wp--preset--font-family--cormorant); font-size: 30px; letter-spacing: 0.22em; font-weight: 500; line-height: 1; }
.ae-logo-sub { font-size: 11px; letter-spacing: 0.3em; color: var(--wp--preset--color--taupe); }
.ae-header p { margin: 0; }
.ae-header .wp-block-navigation { font-size: 15px; letter-spacing: 0.06em; gap: 8px 28px; }
.ae-header .wp-block-navigation a { color: var(--wp--preset--color--cocoa); }
.ae-header .wp-block-navigation .current-menu-item > a, .ae-header .wp-block-navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.ae-header .wp-block-button__link { font-size: 14px; min-height: 44px; padding: 10px 22px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ivory) !important; }
.ae-footer { padding-top: 56px; padding-bottom: 56px; }
.ae-footer, .ae-footer p { color: #D9CFC5; font-size: 15px; margin: 0; }
.ae-footer a { color: var(--wp--preset--color--ivory); }
.ae-footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ae-footer .ae-logo-word { color: var(--wp--preset--color--ivory); font-size: 26px; display: block; margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.ae-form { display: flex; flex-direction: column; gap: 16px; background: #fff; padding: clamp(24px, 4vw, 40px); }
.ae-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ae-form input, .ae-form select, .ae-form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #CFC0B1; background: var(--wp--preset--color--ivory); color: var(--wp--preset--color--cocoa); border-radius: 0; width: 100%; box-sizing: border-box; }
.ae-form .ae-form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ae-form .ae-form-row > label { flex: 1 1 200px; }
.ae-form button { font: inherit; font-size: 15px; letter-spacing: 0.12em; background: var(--wp--preset--color--clay); color: #fff; border: 0; min-height: 54px; cursor: pointer; }
.ae-form button:hover { background: var(--wp--preset--color--cocoa); }
.ae-form .ae-hp { position: absolute; left: -9999px; }
.ae-form .cf-turnstile { min-height: 65px; }
.ae-form-msg { padding: 16px 20px; background: var(--wp--preset--color--linen); }
@media (max-width: 599px) { .wp-block-columns.ae-gallery:has(> .wp-block-column:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photos that replaced the placeholders (same box sizes) ---------- */
.wp-block-image.ae-photo { margin: 0; }
.wp-block-image.ae-photo img { width: 100%; height: 340px; object-fit: cover; display: block; }
.wp-block-image.ae-photo-s img { height: 300px; }
.wp-block-image.ae-photo-l img { height: 380px; }
.wp-block-image.ae-photo-xl img { height: clamp(360px, 45vw, 560px); }
@media (max-width: 600px) {
	.wp-block-image.ae-photo-s img, .wp-block-image.ae-photo-m img { height: 240px; }
	.wp-block-image.ae-photo-l img { height: 300px; }
}
.ae-gallery .wp-block-image.ae-photo-s img { height: clamp(200px, 22vw, 300px); }

/* Two-word logo: scales down on small screens so it stays on one line. */
.ae-header .ae-logo-word { font-size: clamp(19px, 1.2rem + 0.9vw, 30px); letter-spacing: 0.18em; white-space: nowrap; }
.ae-footer .ae-logo-word { font-size: clamp(19px, 1.1rem + 0.6vw, 26px); }

/* Maternity hero: anchor the crop to the bottom so the model sits higher in the frame. */
.wp-block-image.ae-photo img[src*="AA5A4675"] { object-position: 50% 100%; }

/* Privacy policy page */
.ae-legal h1 { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); margin-bottom: 0; }
.ae-legal h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin-top: 2.2rem; }
.ae-legal p, .ae-legal li { color: var(--wp--preset--color--umber); }
@media (max-width: 440px) {
	.ae-header .ae-logo-word { font-size: 18px; letter-spacing: 0.12em; }
	.ae-logo-sub { letter-spacing: 0.22em; }
}
