/*
Theme Name: PUPI
Template: twentytwentyfive
Description: PUPI brand theme. Child of Twenty Twenty-Five, built entirely with blocks.
Version: 1.0.1
Requires at least: 6.7
Text Domain: pupi
*/

/* Base */
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--burgundy); outline-offset: 3px; }
img { display: block; }

/* Label style (paragraph / heading) */
.is-style-label {
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: var(--wp--preset--font-size--label) !important;
	line-height: 16px !important;
	font-weight: 400 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
}

/* Buttons */
.wp-block-button .wp-block-button__link { transition: background .25s, color .25s, border-color .25s; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--ink); padding: 15px 30px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-light > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--paper); border-color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-paper > .wp-block-button__link { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--burgundy); border-color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-paper > .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--paper); }
.wp-block-buttons.is-full .wp-block-button, .wp-block-button.is-full { width: 100%; }
.wp-block-button.is-full > .wp-block-button__link { width: 100%; min-height: 52px; }

/* Header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.pupi-header { border-bottom: 1px solid var(--wp--custom--hairline); }
body.admin-bar header.wp-block-template-part { top: 32px; }
.pupi-header .wp-block-site-logo img { height: 22px; width: auto; }
.pupi-header .wp-block-navigation a { padding: 14px 0; border-bottom: 1px solid transparent; }
.pupi-header .wp-block-navigation .current-menu-item > a { border-bottom-color: var(--wp--preset--color--ink); }
.pupi-header .wp-block-navigation__responsive-container-open,
.pupi-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--paper) !important; padding: 24px clamp(16px, 4vw, 56px) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 4px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-size: 16px; padding: 10px 0; }
@media (max-width: 781px) {
	html { scroll-padding-top: 80px; }
	.pupi-header > .wp-block-group { flex-direction: row !important; justify-content: space-between !important; }
	.pupi-header .wp-block-site-logo img { height: 18px; }
}
@media (max-width: 782px) { body.admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { body.admin-bar header.wp-block-template-part { top: 0; } }

/* Hero */
.pupi-hero { overflow: hidden; }
.pupi-hero .wp-block-cover__image-background { object-position: 50% 18%; animation: pupi-zoom 14s ease-out both; }
@keyframes pupi-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.pupi-hero .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; }
.pupi-hero .pupi-hero-logo img { width: min(560px, 72vw) !important; height: auto; }

/* Cards (query loops) */
.pupi-cards .wp-block-post-featured-image a { display: block; }

.pupi-cards .wp-block-post-featured-image { width: 100%; flex-shrink: 0; overflow: hidden; background: var(--wp--preset--color--stone); }
.pupi-cards .wp-block-post-featured-image img { width: 100%; height: auto !important; transition: transform .8s ease; }
.pupi-cards li:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.pupi-cards .wp-block-post-title { font-size: var(--wp--preset--font-size--card) !important; line-height: 1.2; }
.pupi-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--ink); }
.pupi-cards .wp-block-post-template { row-gap: 56px !important; }
@media (max-width: 600px) { .pupi-cards .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr 1fr !important; column-gap: 12px !important; row-gap: 32px !important; } .pupi-cards .wp-block-post-title { font-size: 15px !important; } .pupi-cards .wp-block-post-terms { display: none; } }

/* Image hover */
.is-style-zoom { overflow: hidden; }
.is-style-zoom img { transition: transform .8s ease; }
.is-style-zoom:hover img { transform: scale(1.04); }

/* Section rule head */
.pupi-rule { border-bottom: 1px solid var(--wp--custom--rule); padding-bottom: 24px; }
.pupi-rule-top { border-top: 1px solid var(--wp--custom--rule); }

/* Filter bar (categories block as terms list) */
.pupi-filters { border-top: 1px solid var(--wp--custom--rule); border-bottom: 1px solid var(--wp--custom--rule); }
.pupi-filters > * { margin: 0 !important; }
.wp-block-categories.is-style-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 36px; }
.pupi-header-bar { padding-top: 22px; }
@media (max-width: 781px) { .pupi-header-bar { padding-top: 0; min-height: 64px; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; } }
.wp-block-categories.is-style-filters li { margin: 0; }
.wp-block-categories.is-style-filters a { display: inline-flex; align-items: center; min-height: 48px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-underline-offset: 6px; }
.wp-block-categories.is-style-filters .current-cat a, .wp-block-categories.is-style-filters a:hover { text-decoration: underline; color: var(--wp--preset--color--ink); }
.pupi-filter-all a { display: inline-flex; align-items: center; min-height: 48px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-underline-offset: 6px; }
.post-type-archive-pupi_model .pupi-filter-all a { text-decoration: underline; }

/* Steps / tiles */
.pupi-tiles .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Instagram strip */
.pupi-insta.wp-block-gallery.has-nested-images { gap: 0 !important; }
.pupi-insta.wp-block-gallery.has-nested-images figure.wp-block-image { width: calc(100% / 6) !important; flex-grow: 0 !important; }
.pupi-insta.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1/1; object-fit: cover; transition: opacity .3s; }
.pupi-insta.wp-block-gallery figure.wp-block-image a:hover img { opacity: .8; }
@media (max-width: 781px) { .pupi-insta.wp-block-gallery.has-nested-images figure.wp-block-image { width: calc(100% / 3) !important; } }

/* Split image columns: image fills its column */
.pupi-split { align-items: stretch !important; }
.pupi-split > .wp-block-column { box-sizing: border-box; align-self: stretch !important; display: flex; flex-direction: column; justify-content: center; }
.pupi-split > .wp-block-column > * { margin-block: 0; }
.pupi-split > .wp-block-column.is-layout-flow > * + * { margin-block-start: 28px; }
.pupi-split .pupi-fill, .pupi-split .pupi-fill img { height: 100%; }
.pupi-split .pupi-fill img { width: 100%; min-height: 420px; max-height: 780px; object-fit: cover; }

/* Model page */
.pupi-sticky { position: sticky; top: 140px; }
@media (max-width: 781px) { .pupi-sticky { position: static; } }
.pupi-model-hero img { width: 100%; height: auto; background: var(--wp--preset--color--stone); }
.single-pupi_model .wp-block-post-content .wp-block-gallery { gap: 12px !important; }
.single-pupi_model .wp-block-post-content .wp-block-gallery.has-nested-images { align-items: flex-start; }
.single-pupi_model .wp-block-post-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { align-self: flex-start; }
.single-pupi_model .wp-block-post-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { height: auto; object-fit: contain; flex: none; }
.pupi-specs > .wp-block-group { border-bottom: 1px solid var(--wp--custom--rule); padding: 14px 0; margin: 0 !important; }
.pupi-specs { border-top: 1px solid var(--wp--custom--rule); }
.pupi-specs .is-style-label { color: var(--wp--preset--color--muted); min-width: 120px; padding-top: 4px; }

/* Values row */
.pupi-values > .wp-block-column { padding-top: 32px; padding-right: 24px; }

/* Contact Form 7 */
.wpcf7 form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.wpcf7 .pupi-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.wpcf7 .pupi-field.full, .wpcf7 .pupi-consent, .wpcf7 .pupi-submit, .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; }
.wpcf7 label { font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); display: flex; flex-direction: column; gap: 4px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
	font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--ink); background: transparent;
	border: 0; border-bottom: 1px solid var(--wp--custom--rule); border-radius: 0; padding: 12px 0; min-height: 48px; width: 100%; box-sizing: border-box;
}
.wpcf7 select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wp--preset--color--ink) 50%), linear-gradient(135deg, var(--wp--preset--color--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-bottom-color: var(--wp--preset--color--ink); box-shadow: 0 1px 0 var(--wp--preset--color--ink); }
.wpcf7 .pupi-consent { font-size: 13px; line-height: 20px; color: var(--wp--preset--color--muted); }
.wpcf7 .pupi-consent .wpcf7-list-item { margin: 0; }
.wpcf7 .pupi-consent label { flex-direction: row; gap: 12px; align-items: flex-start; font-size: 13px; letter-spacing: 0; text-transform: none; }
.wpcf7 .pupi-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wp--preset--color--ink); }
.wpcf7 input[type=submit] { font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; min-height: 52px; padding: 0 40px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--ink); border-radius: 0; cursor: pointer; transition: background .25s; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--burgundy); border-color: var(--wp--preset--color--burgundy); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 16px; vertical-align: middle; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--burgundy); margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 24px 28px; border: 0 !important; background: var(--wp--preset--color--burgundy); color: var(--wp--preset--color--paper); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: transparent; color: var(--wp--preset--color--burgundy); border: 1px solid var(--wp--preset--color--burgundy) !important; }
.wpcf7 form.sent .pupi-field, .wpcf7 form.sent .pupi-consent, .wpcf7 form.sent .pupi-submit { display: none; }

/* Footer */
.pupi-footer a { color: var(--wp--preset--color--paper); text-decoration: none; }
.pupi-footer a:hover { color: var(--wp--preset--color--paper); text-decoration: underline; text-underline-offset: 4px; }
.pupi-footer .is-style-label { color: rgba(239,240,232,.72); }
.pupi-footer .pupi-base { border-top: 1px solid rgba(239,240,232,.25); color: rgba(239,240,232,.72); }
.pupi-dark-aside .is-style-label { color: rgba(239,240,232,.72); }
.pupi-dark-aside a { color: var(--wp--preset--color--paper); }
.pupi-dark-aside .wp-block-buttons, .pupi-dark-aside .wp-block-button, .pupi-dark-aside .wp-block-button__link { width: 100%; }
.pupi-dark-aside .wp-block-button.is-style-paper > .wp-block-button__link { color: var(--wp--preset--color--burgundy); }
.pupi-dark-aside .wp-block-button.is-style-paper > .wp-block-button__link:hover { color: var(--wp--preset--color--paper); }
.pupi-dark-aside .pupi-rows { border-top: 1px solid rgba(239,240,232,.25); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pupi-hero .wp-block-cover__image-background { animation: none; }
	.pupi-cards .wp-block-post-featured-image img, .is-style-zoom img { transition: none; }
}

.wpcf7 .pupi-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Model page on phones: main photo, then title and Inquire, then the gallery */
@media (max-width: 781px) {
	.pupi-model-cols { flex-direction: column; row-gap: 32px !important; }
	.pupi-model-cols > .wp-block-column:first-child { display: contents; }
	.pupi-model-cols .pupi-model-hero { order: 1; margin: 0 !important; }
	.pupi-model-cols > .wp-block-column:last-child { order: 2; }
	.pupi-model-cols .wp-block-post-content { order: 3; margin: 0 !important; }
}

/* Cloudflare Turnstile: hidden unless a visitor needs a check, then shown above the button */
.wpcf7 .pupi-submit .wpcf7-turnstile { max-width: 400px; }
.wpcf7 .pupi-submit .wpcf7-turnstile { margin-bottom: 16px; }

/* Model main photo (image block) */
.pupi-model-hero.wp-block-image { width: 100%; align-self: stretch; margin: 0; flex-shrink: 0; }
.pupi-model-hero.wp-block-image img { width: 100% !important; height: auto; }
.wp-lightbox-overlay .scrim { background-color: var(--wp--preset--color--paper) !important; }
