/* ==========================================================================
   Lopaz theme styles
   Palette and fonts live in theme.json; this file adds texture, the hero
   circle, the labelled diagram, the story, use cases, videos and timeline.
   ========================================================================== */

:root {
	--lopaz-grain: url(../images/paper-grain.png);
	--lopaz-cream: #E7D3B6;
	--lopaz-warm: #F5EAD8;
	--lopaz-off: #FBF6EE;
	--lopaz-orange: #DF7235;
	--lopaz-burnt: #943F17;
	--lopaz-brown: #463733;
	--lopaz-espresso: #2B221E;
	--lopaz-grey: #62564B;
	--lopaz-taupe: #B3A391;
	--lopaz-parchment: #E9D9C0;
	--lopaz-line: rgba(70, 55, 51, 0.2);
}

body { background-image: var(--lopaz-grain); }

/* Header, page and footer sit flush: no default block gap between them,
   so a coloured last section runs straight into the footer. */
.wp-site-blocks > * + * { margin-block-start: 0; }
main > .entry-content > :last-child,
main > .wp-block-post-content > :last-child { margin-block-end: 0; }

/* Textured section backgrounds ------------------------------------------- */
.lopaz-light { background-color: var(--lopaz-warm); background-image: var(--lopaz-grain); }
.lopaz-dark { background-color: var(--lopaz-brown); background-image: var(--lopaz-grain); color: var(--lopaz-warm); }
.lopaz-orange { background-color: var(--lopaz-orange); background-image: var(--lopaz-grain); color: var(--lopaz-espresso); }
.lopaz-dark a:where(:not(.wp-element-button)) { color: var(--lopaz-orange); }
.lopaz-dark a:where(:not(.wp-element-button)):hover { color: var(--lopaz-warm); }
.lopaz-orange a:where(:not(.wp-element-button)) { color: var(--lopaz-espresso); }

/* Section spacing ---------------------------------------------------------- */
.lopaz-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.lopaz-section-bottom { padding-bottom: var(--wp--preset--spacing--60) !important; }
.lopaz-section-cta { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.lopaz-card-pad { padding: 2.5rem !important; }
.lopaz-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.lopaz-orange h2 { font-size: clamp(2.25rem, 4vw, 3.4rem); }
.lopaz-orange .lopaz-waitlist__note { color: var(--lopaz-espresso); }
/* On the orange band the Join button is dark so it stands out. */
.lopaz-orange .lopaz-waitlist__button { background: var(--lopaz-espresso); color: var(--lopaz-warm); }
.lopaz-orange .lopaz-waitlist__button:hover { background: var(--lopaz-brown); color: var(--lopaz-warm); }

/* Small type helpers ------------------------------------------------------ */
.lopaz-eyebrow { font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lopaz-grey); }
.lopaz-dark .lopaz-eyebrow { color: var(--lopaz-taupe); }
.lopaz-hand { font-family: var(--wp--preset--font-family--hand); font-weight: 700; line-height: 1.05; }
.lopaz-muted { color: var(--lopaz-grey); }
.lopaz-dark .lopaz-muted { color: var(--lopaz-parchment); }
.lopaz-accent { color: var(--lopaz-burnt); }
.lopaz-dark .lopaz-accent { color: var(--lopaz-orange); }

/* Buttons ------------------------------------------------------------------ */
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.lopaz-btn-dark .wp-block-button__link { background: var(--lopaz-espresso); color: var(--lopaz-warm); }
.lopaz-btn-dark .wp-block-button__link:hover { background: var(--lopaz-brown); color: var(--lopaz-warm); }

/* Header -------------------------------------------------------------------- */
/* Header: flat colour (no paper texture) so it reads separately from the hero. */
.lopaz-header { border-bottom: 1px solid var(--lopaz-line); background-color: var(--lopaz-warm); background-image: var(--lopaz-grain); }
.lopaz-logo { display: block; color: var(--lopaz-orange); line-height: 0; }
/* Header and footer logo: one size, used in both places. */
.lopaz-logo svg { height: 38px; width: 96px; display: block; }
.lopaz-footer .lopaz-footer__logo { color: var(--lopaz-orange); margin-bottom: 1rem; display: inline-block; }
.lopaz-footer .lopaz-footer__logo:hover { color: var(--lopaz-warm); text-decoration: none; }
.lopaz-header .wp-block-navigation { font-size: 0.9375rem; font-weight: 500; }
.lopaz-header .wp-block-navigation { color: var(--lopaz-brown); }
.lopaz-header .wp-block-navigation a { color: var(--lopaz-brown) !important; text-decoration: none; }
.lopaz-header .wp-block-navigation a:hover { color: var(--lopaz-burnt) !important; }
.lopaz-header .wp-block-navigation-item.lopaz-nav-cta a { background: var(--lopaz-orange); color: var(--lopaz-espresso) !important; font-weight: 600; padding: 0.7rem 1.25rem; border-radius: 999px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.lopaz-header .wp-block-navigation-item.lopaz-nav-cta a:hover { background: var(--lopaz-brown); color: var(--lopaz-warm) !important; }
/* The mobile menu overlay strips link padding; keep the button roomy there too. */
.lopaz-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.lopaz-nav-cta a { padding: 0.7rem 1.4rem !important; margin-top: 0.5rem; }
.lopaz-header .wp-block-navigation__responsive-container-open,
.lopaz-header .wp-block-navigation__responsive-container-close { color: var(--lopaz-brown); }
.wp-block-navigation__responsive-container.is-menu-open { background-color: var(--lopaz-warm) !important; background-image: var(--lopaz-grain); color: var(--lopaz-brown) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

/* Hero circle ------------------------------------------------------------------ */
.wp-site-blocks { overflow-x: clip; }
.lopaz-hero-art { position: relative; isolation: isolate; }
/* One standard circle on every page. The render is scaled and offset so the
   pillbox itself (not the image file's empty space) sits centred inside the
   disc, with the whole box within it. Measured from the render files:
   angled render: body centre at 48.3% / 49.3% of the image;
   front render:  body centre at 50.3% / 51.6% of the image. */
.lopaz-hero-art { width: min(92%, 32rem); aspect-ratio: 1 / 1; margin: 2.5rem auto; }
.lopaz-hero-art > .wp-block-image { position: static; margin: 0; }
.lopaz-hero-art::before,
.lopaz-hero-art::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.lopaz-hero-art::before { inset: 0; background-color: var(--lopaz-warm); background-image: var(--lopaz-grain); box-shadow: inset 0 -18px 40px rgba(70, 55, 51, 0.08), 0 30px 60px rgba(70, 55, 51, 0.14); }
.lopaz-hero-art::after { inset: -5.5%; border: 1.5px dashed rgba(70, 55, 51, 0.25); }
.lopaz-hero-art img { position: absolute; left: 50%; top: 50%; width: 125% !important; max-width: none; height: auto; transform: translate(-48.3%, -49.3%); filter: drop-shadow(0 22px 20px rgba(70, 55, 51, 0.22)); }
/* Same spot on every page: the circle's column always starts at the top of
   the hero, whatever the length of the text beside it. */
@media (min-width: 782px) {
	.lopaz-hero .wp-block-column:has(> .lopaz-hero-art) { align-self: flex-start !important; }
}
.lopaz-hero-art--front img { width: 108% !important; transform: translate(-50.3%, -51.6%); }
.lopaz-lead { font-size: 1.125rem !important; line-height: 1.6; max-width: 34rem; }
@media (max-width: 781px) {
	.lopaz-hero-art { width: min(84%, 32rem); margin: 2.5rem auto 3rem; }
}

/* Waitlist form (Brevo) ------------------------------------------------------------ */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.lopaz-waitlist { max-width: 600px; }
.lopaz-waitlist__row { display: flex; flex-wrap: wrap; gap: 10px; }
.lopaz-waitlist__field { flex: 1 1 240px; min-width: 0; }
.lopaz-waitlist__row > .sib-form-block:last-child { flex: none; }
.lopaz-waitlist__button { white-space: nowrap; }
/* Email fields: soft outline like the cards, darkening when you type in them. */
.lopaz-waitlist .input { width: 100%; min-height: 52px; box-sizing: border-box; padding: 0 20px; border: 1.5px solid rgba(70, 55, 51, 0.16); border-radius: 999px; background: var(--lopaz-off); font: inherit; color: var(--lopaz-brown); box-shadow: 0 6px 16px rgba(70, 55, 51, 0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.lopaz-waitlist .input:focus { outline: none; border-color: var(--lopaz-brown); box-shadow: 0 0 0 3px rgba(70, 55, 51, 0.15); }
.lopaz-orange .lopaz-waitlist .input { border-color: transparent; }
.lopaz-waitlist .input::placeholder { color: var(--lopaz-grey); }
.lopaz-waitlist__button { min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--lopaz-orange); color: var(--lopaz-espresso); font: inherit; font-weight: 600; cursor: pointer; }
.lopaz-waitlist__button:hover { background: var(--lopaz-brown); color: var(--lopaz-warm); }
.lopaz-waitlist { position: relative; }
.lopaz-waitlist__captcha { position: absolute; z-index: 20; left: 0; top: calc(100% - 1.5rem); background: var(--lopaz-off); border: 1.5px solid var(--lopaz-brown); border-radius: 20px; padding: 0.9rem 1rem 1rem; box-shadow: 0 20px 44px rgba(70, 55, 51, 0.22); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; }
.lopaz-waitlist__captcha.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.lopaz-waitlist__captcha::before { content: ""; position: absolute; top: -9px; left: 2.5rem; width: 16px; height: 16px; background: var(--lopaz-off); border-left: 1.5px solid var(--lopaz-brown); border-top: 1.5px solid var(--lopaz-brown); transform: rotate(45deg); }
.lopaz-waitlist__captcha-title { margin: 0 0 0.6rem; font-weight: 600; font-size: 0.9375rem; color: var(--lopaz-brown); }
.lopaz-orange .lopaz-waitlist__captcha { color: var(--lopaz-brown); }
.lopaz-waitlist__note { margin: 8px 0 0 4px; font-size: 0.875rem; color: var(--lopaz-grey); }
.lopaz-waitlist .input--hidden { display: none !important; }
.lopaz-waitlist .entry__error { display: block; font-size: 0.875rem; color: #8A1F11; margin: 6px 0 0 8px; }
.lopaz-waitlist .entry__error:empty { display: none; }
.lopaz-waitlist__msg { display: none; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; font-weight: 600; }
.lopaz-waitlist__msg--error { background: #FBE3DD; color: #6E1A0E; }
.lopaz-waitlist__msg--ok { background: var(--lopaz-off); color: var(--lopaz-brown); border: 1.5px solid var(--lopaz-brown); }
.sib-form-message-panel--active { display: block !important; }
.lopaz-waitlist .sib-hide-loader-icon { display: none; }
.lopaz-waitlist__button { display: inline-flex; align-items: center; gap: 0.5rem; }
.lopaz-waitlist__button svg { width: 18px; height: 18px; fill: currentColor; animation: lopaz-spin 0.9s linear infinite; }
.lopaz-waitlist__button[disabled] { opacity: 0.75; cursor: progress; }
@keyframes lopaz-spin { to { transform: rotate(360deg); } }

/* Labelled diagram (on the dark band) -------------------------------------------- */
.lopaz-diagram { position: relative; margin-top: 2rem; }
.lopaz-diagram > img { width: 100%; height: auto; display: block; filter: drop-shadow(0 34px 30px rgba(0, 0, 0, 0.45)); }
.lopaz-diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lopaz-diagram__lines path { fill: none; stroke: var(--lopaz-parchment); stroke-width: 0.18; stroke-linecap: round; }
.lopaz-diagram__dot { position: absolute; width: 12px; height: 12px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; background: var(--lopaz-orange); border: 2.5px solid var(--lopaz-warm); }
.lopaz-diagram__label { position: absolute; margin: 0; max-width: 220px; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.05; color: var(--lopaz-warm); }
.lopaz-diagram__label--lid { left: 0; top: 0; }
.lopaz-diagram__label--compartments { left: 0; top: 40%; max-width: 200px; }
.lopaz-diagram__label--senses { right: 0; top: 12%; max-width: 200px; text-align: right; }
.lopaz-diagram__label--lights { left: 6%; bottom: 0; max-width: 240px; }
.lopaz-diagram__label--plug { right: 0; bottom: 4%; max-width: 200px; text-align: right; }
.lopaz-diagram__list { display: none; }
.lopaz-diagram__kicker { margin-top: 2.5rem !important; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--lopaz-orange); }

@media (max-width: 781px) {
	.lopaz-diagram__label, .lopaz-diagram__lines, .lopaz-diagram__dot { display: none; }
	.lopaz-diagram__list { display: block; margin: 1rem 0 0; padding: 0; list-style: none; }
	.lopaz-diagram__list li { font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.5rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(233, 217, 192, 0.25); }
	.lopaz-diagram__list li::before { content: "●"; color: var(--lopaz-orange); font-size: 0.8rem; margin-right: 0.6rem; vertical-align: middle; }
}

.lopaz-steps { border-top: 1px solid #857669; }
.lopaz-steps .lopaz-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; color: var(--lopaz-orange); margin-bottom: 0.25rem; }

/* Story: one morning, two places ----------------------------------------------- */
.lopaz-story { position: relative; margin-top: 2.5rem; }
.lopaz-story__heads, .lopaz-story__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: stretch; }
.lopaz-story__heads { margin-bottom: 0.75rem; }
.lopaz-story__heads p { margin: 0; }
.lopaz-story__heads p:last-child { grid-column: 3; text-align: left; }
.lopaz-story::before { content: ""; position: absolute; left: 50%; top: 2.5rem; bottom: 1rem; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--lopaz-taupe) 0 6px, transparent 6px 12px); }
.lopaz-story__row { margin-bottom: 1rem; }
.lopaz-story__card { border-radius: 24px; padding: 1.4rem 1.6rem; }
.lopaz-story__card p { margin: 0; }
.lopaz-story__card--here { background: var(--lopaz-warm); }
.lopaz-story__card--there { background: var(--lopaz-brown); color: var(--lopaz-warm); }
.lopaz-story__time { position: relative; z-index: 1; align-self: center; justify-self: center; background: var(--lopaz-off); border: 1.5px solid var(--lopaz-brown); border-radius: 999px; padding: 0.3rem 0.9rem; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--lopaz-burnt); }
.lopaz-story__time--last { background: var(--lopaz-orange); border-color: var(--lopaz-orange); color: var(--lopaz-espresso); }
.lopaz-story__kicker { margin-top: 1.5rem; text-align: center; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.9rem; color: var(--lopaz-burnt); }

@media (max-width: 781px) {
	.lopaz-story::before, .lopaz-story__heads { display: none; }
	.lopaz-story__row { grid-template-columns: 1fr; gap: 0.5rem; }
	.lopaz-story__time { justify-self: start; order: -1; }
	.lopaz-story__card::before { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.25rem; opacity: 0.75; }
	.lopaz-story__card--here::before { content: "At Mum's"; }
	.lopaz-story__card--there::before { content: "Where you are"; }
}

/* How it works: numbered steps beside a phone showing the real app ----------- */
.lopaz-how__steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.lopaz-how__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
.lopaz-how__step > * { margin: 0 !important; }
.lopaz-how__num { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--lopaz-orange); color: var(--lopaz-espresso); display: flex !important; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.3rem; }
.lopaz-how__step h3 { font-size: 1.35rem; margin-bottom: 0.3rem !important; }

.lopaz-phone-stage { position: relative; padding: 16px 0 0; }
.lopaz-phone { position: relative; width: 280px; max-width: 78%; margin: 0 auto; border: 10px solid var(--lopaz-espresso); border-bottom: 0; border-radius: 48px 48px 0 0; overflow: hidden; background: #E8D3B6; box-shadow: 0 30px 60px rgba(70, 55, 51, 0.22); -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
.lopaz-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: var(--lopaz-espresso); z-index: 1; }
.lopaz-phone img { display: block; width: 100%; height: auto; padding-top: 34px; background: #E8D3B6; box-sizing: content-box; }
/* App annotations: same style as the pillbox diagram (handwritten labels,
   curved lines, orange dots), in brown for the light background. Drawn on a
   fixed 560px stage so the dots sit on the right parts of the screen. */
.lopaz-phone__lines, .lopaz-phone__dot, .lopaz-phone__label { display: none; }
@media (min-width: 1100px) {
	.lopaz-phone-stage { width: 560px; max-width: 100%; margin: 0 auto; }
	.lopaz-phone__lines { display: block; position: absolute; left: 0; top: 0; width: 560px; height: 520px; pointer-events: none; z-index: 2; }
	.lopaz-phone__lines path { fill: none; stroke: var(--lopaz-grey); stroke-width: 1.8; stroke-linecap: round; }
	.lopaz-phone__dot { display: block; position: absolute; z-index: 3; width: 12px; height: 12px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; background: #9D9085; border: 2.5px solid var(--lopaz-off); box-shadow: 0 1px 4px rgba(70, 55, 51, 0.3); }
	.lopaz-phone__label { display: block; position: absolute; z-index: 3; margin: 0; width: 118px; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.55rem; line-height: 1.05; color: var(--lopaz-grey); }
	.lopaz-phone__label--done { left: 0; top: 140px; text-align: right; }
	.lopaz-phone__label--todo { left: 446px; top: 196px; }
	.lopaz-phone__label--next { left: 0; top: 402px; text-align: right; }
}
@media (max-width: 781px) { .lopaz-phone { width: 270px; } .lopaz-phone-stage { margin-top: 1rem; } }

/* Use cases ---------------------------------------------------------------------- */
.lopaz-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
/* Each card's icon, quote, title and text share rows across the whole row of
   cards (subgrid), so every title and paragraph starts at the same height. */
.lopaz-use { position: relative; background: var(--lopaz-warm); border-radius: 28px; padding: 1.75rem 1.75rem 1.9rem; box-shadow: 0 14px 32px rgba(70, 55, 51, 0.08); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.6rem; align-content: start; }
.lopaz-uses { row-gap: 1rem; }
/* Four cards use the wide width (1280px) so every title fits on one line; below
   the width where they'd be squeezed, they go two-up, then one-up on phones. */
.lopaz-uses { max-width: var(--wp--style--global--wide-size) !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1319px) { .lopaz-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lopaz-uses { grid-template-columns: 1fr; } }
.lopaz-use__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--lopaz-cream); display: flex; align-items: center; justify-content: center; color: var(--lopaz-brown); }
.lopaz-use__icon svg { width: 28px; height: 28px; }
.lopaz-use__quote { margin: 0.4rem 0 0; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.65rem; line-height: 1.05; color: var(--lopaz-burnt); }
.lopaz-use h3 { margin: 0; font-size: 1.35rem; }
.lopaz-use p { margin: 0; }
.lopaz-use__body { color: var(--lopaz-grey); }

/* Videos -------------------------------------------------------------------------- */
.lopaz-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.lopaz-video { margin: 0; }
.lopaz-video__play { all: unset; box-sizing: border-box; cursor: pointer; display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--lopaz-brown); }
.lopaz-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.lopaz-video__play:hover img { transform: scale(1.03); }
.lopaz-video__play:focus-visible { outline: 3px solid var(--lopaz-brown); outline-offset: 3px; }
.lopaz-video__icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--lopaz-orange); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.lopaz-video__icon::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--lopaz-espresso); }
.lopaz-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 22px; display: block; }
/* Shorts: portrait cards and a portrait player */
/* Six Shorts fill one row on desktop; three-up (two full rows) on tablets;
   two-up on phones, where only the first four show so every row is full. */
.lopaz-videos--shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 1rem; }
@media (max-width: 1099px) { .lopaz-videos--shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .lopaz-videos--shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lopaz-videos--shorts .lopaz-video:nth-child(n+5) { display: none; } }
@media (max-width: 600px) { .lopaz-videos--shorts .lopaz-video__title { font-size: 0.95rem; } .lopaz-videos--shorts .lopaz-video__icon { transform: scale(0.8); } }
.lopaz-videos--shorts .lopaz-video__play,
.lopaz-videos--shorts .lopaz-video iframe { aspect-ratio: 9 / 16; border-radius: 26px; }
.lopaz-videos--shorts .lopaz-video__play img { object-position: center; }
.lopaz-video figcaption { margin-top: 0.75rem; display: flex; flex-direction: column; }
.lopaz-video__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.lopaz-video__date { font-size: 0.875rem; color: var(--lopaz-grey); }

/* Timeline -------------------------------------------------------------------------- */
.lopaz-timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 1.25rem; margin-top: 2.5rem; padding-top: 3.25rem; padding-bottom: 0.5rem; }
.lopaz-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 3.25rem; height: 3px; margin-top: -1.5px; background: var(--lopaz-brown); border-radius: 3px; }
.lopaz-timeline > .lopaz-timeline__item { position: relative; margin: 0 !important; padding-top: 1.75rem; }
.lopaz-timeline__item::before { content: ""; position: absolute; left: 0; top: -9px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--lopaz-orange); border: 3px solid var(--lopaz-cream); box-shadow: 0 0 0 2px var(--lopaz-brown); }
.lopaz-timeline__date { position: absolute; left: 0; top: -3.1rem; margin: 0 !important; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--lopaz-burnt); white-space: nowrap; }
.lopaz-timeline__card { background: var(--lopaz-warm); border-radius: 22px; padding: 1rem 1rem 1.05rem; box-shadow: 0 14px 30px rgba(70, 55, 51, 0.1); height: 100%; box-sizing: border-box; }
.lopaz-timeline > .lopaz-timeline__item { display: flex; flex-direction: column; }
.lopaz-timeline__item > .lopaz-timeline__card { flex: 1; }
.lopaz-timeline__card h3 { margin: 0 0.25rem 0.35rem; font-size: 1.2rem; }
.lopaz-timeline__card .lopaz-photo-slot + h3, .lopaz-timeline__card .wp-block-image + h3 { margin-top: 0.9rem; }
.lopaz-timeline__card p { margin: 0 0.25rem; font-size: 0.95rem; color: var(--lopaz-grey); }
.lopaz-timeline__card .wp-block-image { margin: 0; }
.lopaz-timeline__card .wp-block-image img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lopaz-photo-slot { aspect-ratio: 4 / 3; border-radius: 14px; border: 1.5px dashed var(--lopaz-taupe); display: flex !important; align-items: center; justify-content: center; text-align: center; padding: 0.75rem !important; box-sizing: border-box; font-size: 0.8125rem; color: var(--lopaz-grey); margin: 0 !important; }
.lopaz-timeline__item--next::before { background: var(--lopaz-cream); box-shadow: 0 0 0 2px var(--lopaz-brown); border-style: dashed; }
.lopaz-timeline__item--next .lopaz-timeline__card { background: transparent; box-shadow: none; border: 2px dashed var(--lopaz-brown); display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; }
.lopaz-timeline__item--next .lopaz-timeline__card h3 { margin-top: 0; }

@media (max-width: 1023px) {
	.lopaz-timeline { grid-auto-flow: row; grid-auto-columns: auto; padding-top: 0; padding-left: 2rem; gap: 2rem; max-width: 560px; }
	.lopaz-timeline::before { left: 8px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; margin: 0; }
	.lopaz-timeline > .lopaz-timeline__item { padding-top: 2.25rem; }
	.lopaz-timeline__item::before { left: -2rem; top: 0.2rem; }
	.lopaz-timeline__date { top: 0; }
}

/* FAQ (core Details block) ------------------------------------------------------------ */
.lopaz-faq > h2 { margin-bottom: 1.4rem !important; }
.lopaz-faq .wp-block-details { border-top: 1px solid rgba(70, 55, 51, 0.3); padding: 1.25rem 0; margin: 0; }
.lopaz-faq .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; min-height: 44px; font-size: 1.2rem; font-weight: 600; }
.lopaz-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.lopaz-faq .wp-block-details summary::after { content: "+"; font-size: 1.75rem; font-weight: 400; color: var(--lopaz-burnt); transition: transform 0.2s; }
.lopaz-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.lopaz-faq .wp-block-details p { color: var(--lopaz-grey); margin-top: 0.6rem; }

/* Plain text pages (privacy, cookies, terms) -------------------------------------- */
.lopaz-page h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.lopaz-page .lopaz-lead { max-width: none; }
.lopaz-page h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0.5rem; }
.lopaz-page ul { padding-left: 1.2rem; }
.lopaz-page li { margin-bottom: 0.6rem; }

/* About page ------------------------------------------------------------------------- */
.lopaz-person__photo { width: 120px; height: 120px; border-radius: 50%; border: 1.5px dashed var(--lopaz-grey); display: flex !important; align-items: center; justify-content: center; text-align: center; font-size: 0.75rem; color: var(--lopaz-grey); padding: 0.75rem !important; box-sizing: border-box; margin: 0 0 1rem !important; }
.lopaz-person .wp-block-image { margin: 0 0 1rem !important; }
.lopaz-person .wp-block-image img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; }
.lopaz-person__name { font-size: 2rem !important; margin-bottom: 0.25rem !important; }
.lopaz-person .lopaz-eyebrow { margin-top: 0 !important; }
.lopaz-value { background: var(--lopaz-warm); border-radius: 24px; padding: 1.75rem !important; box-shadow: 0 14px 30px rgba(70, 55, 51, 0.08); }
.lopaz-value .lopaz-step-num { color: var(--lopaz-burnt); }

/* Link cards (Shop holding page, 404) ---------------------------------------------- */
.lopaz-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.lopaz-link { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: var(--lopaz-brown); background: var(--lopaz-warm); border-radius: 24px; padding: 1.4rem 1.5rem; box-shadow: 0 12px 28px rgba(70, 55, 51, 0.08); border: 1.5px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.lopaz-link:hover { border-color: var(--lopaz-brown); transform: translateY(-2px); color: var(--lopaz-brown); }
.lopaz-link strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; }
.lopaz-link span { color: var(--lopaz-grey); font-size: 0.95rem; }
.lopaz-link em { font-style: normal; font-weight: 600; color: var(--lopaz-burnt); margin-top: auto; padding-top: 0.5rem; }

/* Consulting projects ----------------------------------------------------------------- */
.lopaz-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lopaz-chips p { margin: 0 !important; border: 1.5px solid var(--lopaz-brown); border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; font-size: 0.9rem; }
.lopaz-project { background: var(--lopaz-warm); border-radius: 28px; padding: 1.25rem !important; box-shadow: 0 14px 32px rgba(70, 55, 51, 0.08); margin-bottom: 1.25rem !important; }
.lopaz-project .lopaz-photo-slot { aspect-ratio: 16 / 10; }
.lopaz-project .wp-block-image { margin: 0; }
.lopaz-project .wp-block-image img { border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.lopaz-project h3 { font-size: 1.75rem; margin: 0.25rem 0 0.5rem; }
.lopaz-project p { margin: 0 0 0.75rem; }
.lopaz-project .lopaz-eyebrow { margin-bottom: 0; }
.lopaz-notice { border: 1.5px dashed var(--lopaz-brown); border-radius: 20px; padding: 1rem 1.25rem !important; }

/* "Under NDA" tile: stands in for a project image until it can be shown. */
.lopaz-nda { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; color: var(--lopaz-warm); text-align: center; background-color: var(--lopaz-brown); background-image: var(--lopaz-grain), repeating-linear-gradient(135deg, rgba(245, 234, 216, 0.05) 0 14px, transparent 14px 28px); }
.lopaz-nda::after { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(245, 234, 216, 0.28); border-radius: 12px; pointer-events: none; }
.lopaz-nda__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--lopaz-orange); display: flex; align-items: center; justify-content: center; color: var(--lopaz-warm); }
.lopaz-nda__icon svg { width: 28px; height: 28px; }
.lopaz-nda__title { margin: 0.2rem 0 0 !important; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lopaz-warm); }
.lopaz-nda__note { margin: 0 !important; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: 1.35rem; color: var(--lopaz-taupe); }
/* The tile grows with its content (never squashing it), with room inside the
   dashed border; on small phones the padlock and lettering shrink a little. */
.lopaz-nda { padding: 2rem 1.5rem; box-sizing: border-box; }
@media (max-width: 480px) {
	.lopaz-nda { aspect-ratio: auto; min-height: 200px; gap: 0.4rem; }
	.lopaz-nda__icon { width: 52px; height: 52px; }
	.lopaz-nda__icon svg { width: 24px; height: 24px; }
	.lopaz-nda__title { font-size: 1.35rem; }
	.lopaz-nda__note { font-size: 1.2rem; }
}

/* Project status badges */
.lopaz-badge { display: inline-flex !important; align-items: center; gap: 0.45rem; width: fit-content; margin: 0.25rem 0 0.6rem !important; padding: 0.3rem 0.85rem !important; border-radius: 999px; font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.lopaz-badge--done { background: var(--lopaz-brown); color: var(--lopaz-warm); }
.lopaz-badge--done::before { content: "✓"; font-size: 0.9rem; }
.lopaz-badge--progress { border: 1.5px solid var(--lopaz-orange); color: var(--lopaz-burnt); }
.lopaz-badge--progress::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lopaz-orange); animation: lopaz-pulse 1.6s ease-in-out infinite; }
@keyframes lopaz-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .lopaz-badge--progress::before { animation: none; } }

/* Contact page ----------------------------------------------------------------------- */
.lopaz-contact-form { background: var(--lopaz-warm); border-radius: 28px; padding: 2rem !important; box-shadow: 0 14px 32px rgba(70, 55, 51, 0.08); }
.lopaz-contact__field { margin: 0 0 1rem; }
.lopaz-contact__field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.lopaz-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lopaz-contact__note { font-size: 0.875rem; color: var(--lopaz-grey); margin: 0.5rem 0 0; }
.lopaz-contact-msg { border-radius: 16px; padding: 0.9rem 1.1rem; font-weight: 600; }
.lopaz-contact-msg--ok { background: var(--lopaz-warm); border: 1.5px solid var(--lopaz-brown); }
.lopaz-contact-msg--error { background: #FBE3DD; color: #6E1A0E; }
.lopaz-contact-form select { width: 100%; box-sizing: border-box; border: 1.5px solid rgba(70, 55, 51, 0.2); border-radius: 16px; padding: 0.75rem 1rem; background: #fff; font: inherit; color: var(--lopaz-brown); min-height: 48px; }
.lopaz-contact-form input:focus, .lopaz-contact-form textarea:focus, .lopaz-contact-form select:focus { outline: none; border-color: var(--lopaz-brown); box-shadow: 0 0 0 3px rgba(70, 55, 51, 0.15); }
.lopaz-contact-form input[type="text"], .lopaz-contact-form input[type="email"], .lopaz-contact-form textarea { width: 100%; box-sizing: border-box; border: 1.5px solid rgba(70, 55, 51, 0.2); border-radius: 16px; padding: 0.75rem 1rem; background: #fff; font: inherit; color: var(--lopaz-brown); }
.lopaz-contact-form button, .lopaz-contact-form input[type="submit"] { background: var(--lopaz-orange); color: var(--lopaz-espresso); border: 0; border-radius: 999px; padding: 0.85rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }
.lopaz-contact-form button:hover, .lopaz-contact-form input[type="submit"]:hover { background: var(--lopaz-brown); color: var(--lopaz-warm); }

/* Cards (consulting / about teasers) ------------------------------------------------- */
/* Cards are always plain light cream (no paper texture), so every card on the
   site matches; the texture stays on page and section backgrounds only. */
.lopaz-card { border-radius: 28px; background-color: var(--lopaz-warm) !important; background-image: none !important; box-shadow: 0 14px 32px rgba(70, 55, 51, 0.08); }
/* Boxes sitting on a light cream section stay white so they stand out. */
.lopaz-light :is(.lopaz-use, .lopaz-timeline__card, .lopaz-story__card--here, .lopaz-value, .lopaz-link, .lopaz-project, .lopaz-contact-form) { background: var(--lopaz-off); }
.lopaz-light .lopaz-card { background-color: var(--lopaz-off) !important; }
.lopaz-headshot-img { flex: none; margin: 0 !important; }
.lopaz-headshot-img img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.lopaz-headshot { width: 72px; height: 72px; flex: none; border-radius: 50%; border: 1.5px dashed var(--lopaz-grey); display: flex !important; align-items: center; justify-content: center; font-size: 0.6875rem; color: var(--lopaz-grey); margin: 0 !important; }

/* Footer -------------------------------------------------------------------------------- */
.lopaz-footer { background: var(--lopaz-espresso); color: var(--lopaz-parchment); font-size: 0.9375rem; }
.lopaz-footer a { color: var(--lopaz-parchment); text-decoration: none; }
.lopaz-footer a:hover { color: var(--lopaz-orange); text-decoration: underline; }
.lopaz-footer > .wp-block-columns { margin-bottom: 0; }
.lopaz-footer .lopaz-footer__brand { color: var(--lopaz-orange); font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.75rem; margin: 0; }
.lopaz-footer .lopaz-footer__email a { color: var(--lopaz-orange); }
.lopaz-footer h2 { font-family: var(--wp--preset--font-family--body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--lopaz-warm); margin-bottom: 0.5rem; }
.lopaz-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.lopaz-footer__legal { border-top: 1px solid #3A2E28; font-size: 0.8125rem; color: var(--lopaz-taupe); }

/* Respect reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.lopaz-video__play img, .lopaz-faq .wp-block-details summary::after { transition: none; }
}
