/*
Theme Name: Per Aspera
Theme URI: https://per-aspera.hr
Author: Per Aspera d.o.o.
Description: Block theme for Per Aspera, Land Rover / Range Rover / Jaguar specialist workshop in Split. Concept 6.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: per-aspera
*/

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-block-group.pa-wrap, .pa-wrap { padding-left: 80px; padding-right: 80px; }
.pa-page { width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Type helpers ---------- */
.pa-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 6px; color: var(--wp--preset--color--olive); text-transform: uppercase; margin: 0; }
.pa-h1 { font-size: 60px; line-height: 1.04; font-weight: 700; letter-spacing: -1.5px; margin: 0; }
.pa-h2 { font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -1.5px; margin: 0; }
.pa-h3 { font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; margin: 0; }
.pa-lead { font-size: 17px; line-height: 1.65; margin: 0; }
.pa-p { font-size: 16px; line-height: 1.65; margin: 0; }
.pa-muted { color: var(--wp--preset--color--gray); }
.pa-stack { display: flex; flex-direction: column; gap: 24px; }
.pa-stack2 { display: flex; flex-direction: column; gap: 28px; }
.pa-col-stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { border-radius: 0; padding: 18px 32px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.pa-btn-dark .wp-block-button__link { background: #111111; color: #FFFFFF; }
.pa-btn-light .wp-block-button__link { background: #FFFFFF; color: var(--wp--preset--color--dark); }
.wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--olive); color: #FFFFFF; }

/* ---------- Header ---------- */
.pa-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--wp--preset--color--olive); background: var(--wp--preset--color--dark); }
.pa-nav { display: flex; align-items: center; justify-content: space-between; height: 104px; border-bottom: 1px solid #111111; background: #FFFFFF; }
.pa-brand { display: flex; align-items: center; gap: 16px; color: #111111; text-decoration: none; }
.pa-brand svg { width: 78px; height: 36px; display: block; }
.pa-brand b { font-size: 20px; font-weight: 600; letter-spacing: 6px; }
.pa-nav-links { display: flex; align-items: center; gap: 40px; font-size: 13px; font-weight: 500; letter-spacing: 1px; list-style: none; margin: 0; padding: 0; }
.pa-nav-links a { color: #111111; text-decoration: none; }
.pa-nav-links a:hover { color: var(--wp--preset--color--olive); }
.pa-lang { display: flex; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.pa-lang a { color: var(--wp--preset--color--gray); text-decoration: none; }
.pa-lang a.current { color: #111111; }
.pa-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.pa-burger svg { display: block; }
.pa-nav-mobile { display: none; }

/* ---------- Hero ---------- */
.pa-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.pa-hero-l { position: relative; overflow: hidden; background: var(--wp--preset--color--dark); color: #FFFFFF; padding: 96px 72px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.pa-hero-l .pa-hero-bg { position: absolute; inset: 0; margin: 0; }
.pa-hero-l .pa-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; display: block; }
.pa-hero-l::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,18,0.35) 0%, rgba(11,23,18,0.9) 100%); pointer-events: none; }
.pa-hero-l > * { position: relative; z-index: 1; }
.pa-hero-l .pa-h1, .pa-hero-l .pa-eyebrow { color: #FFFFFF; }
.pa-hero-l .pa-eyebrow { color: var(--wp--preset--color--olive); }
.pa-hero-r { padding: 96px 72px; border-left: 4px solid var(--wp--preset--color--olive); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; background: #FFFFFF; }
.pa-mono svg { width: 160px; height: 73px; display: block; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--wp--preset--color--olive); list-style: none; margin: 0; padding: 0; }

/* ---------- Dark info strip ---------- */
.pa-strip { background: var(--wp--preset--color--dark); color: #FFFFFF; padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pa-strip-item { display: flex; gap: 16px; align-items: flex-start; }
.pa-strip-item svg { flex: none; width: 22px; height: 22px; stroke: var(--wp--preset--color--olive); }
.pa-strip-k { font-size: 11px; letter-spacing: 2.5px; color: var(--wp--preset--color--gray); text-transform: uppercase; margin: 0; }
.pa-strip-v { font-size: 16px; font-weight: 600; margin: 4px 0 0; }
.pa-strip-s { font-size: 12px; color: var(--wp--preset--color--gray); margin: 4px 0 0; }

/* ---------- Sections ---------- */
.pa-section { padding-top: 110px; padding-bottom: 110px; border-bottom: 1px solid #111111; background: #FFFFFF; }
.pa-section.pa-last { border-bottom: none; }
.pa-strip + .pa-section { border-top: none; }
.pa-g48 { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.pa-rows { display: flex; flex-direction: column; border-top: 2px solid #111111; }
.pa-row { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid rgba(17,17,17,0.2); align-items: baseline; }
.pa-num { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--olive); letter-spacing: 2px; margin: 0; }
.pa-row-t { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin: 0; }
.pa-row-d { font-size: 15px; line-height: 1.6; margin: 0; }
.pa-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pa-col { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--wp--preset--color--olive); }
.pa-col-t { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; margin: 0; }
.pa-split2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #111111; background: #FFFFFF; }
.pa-cell { padding: 96px 80px; display: flex; flex-direction: column; gap: 24px; }
.pa-cell:first-child { border-right: 1px solid #111111; }
.pa-onama { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pa-photo { margin: 0; height: 600px; overflow: hidden; }
.pa-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.pa-fact { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 4px solid var(--wp--preset--color--olive); }
.pa-fact-v { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin: 0; }
.pa-fact-l { font-size: 11px; letter-spacing: 2.5px; color: var(--wp--preset--color--olive); font-weight: 600; text-transform: uppercase; margin: 0; }
.pa-gal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.pa-note { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--wp--preset--color--olive); text-align: right; margin: 0; }
.pa-gal.wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important; margin: 0; }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) { position: relative; width: 100%; max-width: none; height: 300px; overflow: hidden; border: 1px solid rgba(17,17,17,0.2); margin: 0; flex: none; display: block; }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) img { width: 100%; height: 100%; max-height: none; object-fit: cover; display: block; flex: none; }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 18px; background: linear-gradient(180deg, rgba(11,23,18,0) 0%, rgba(11,23,18,0.85) 100%); font-size: 11px; font-weight: 600; letter-spacing: 3px; color: #FFFFFF; text-transform: uppercase; text-align: left; box-sizing: border-box; max-height: none; }
.pa-faq { border-bottom: 1px solid rgba(17,17,17,0.2); padding: 22px 0; }
.pa-faq summary { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary::after { content: "+"; font-weight: 400; color: var(--wp--preset--color--olive); font-size: 26px; }
.pa-faq[open] summary::after { content: "–"; }
.pa-faq p { font-size: 15px; line-height: 1.6; margin: 14px 0 0; max-width: 760px; }
.pa-loc { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border-bottom: 1px solid #111111; background: #FFFFFF; }
.pa-map { background: #111111; min-height: 520px; }
.pa-map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.pa-loc-info { padding: 80px 72px; display: flex; flex-direction: column; gap: 32px; }
.pa-kv { display: flex; flex-direction: column; border-top: 1px solid #111111; list-style: none; margin: 0; padding: 0; }
.pa-kv li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(17,17,17,0.2); font-size: 15px; }
.pa-kv li span:first-child { color: var(--wp--preset--color--olive); font-weight: 600; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; }
.pa-kv li span:last-child { font-weight: 600; text-align: right; }
.pa-kv a { color: inherit; text-decoration: none; }

/* ---------- Contact form (CF7) ---------- */
.pa-form { max-width: 560px; width: 100%; justify-self: center; margin: 0 auto; }
.pa-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.pa-form .pa-field { display: flex; flex-direction: column; gap: 6px; }
.pa-form .pa-field:nth-of-type(3), .pa-form .pa-field:nth-of-type(4), .pa-form .wpcf7-form > p, .pa-form .wpcf7-response-output { grid-column: 1 / -1; }
.pa-form .wpcf7-form > p { margin: 0; }
.pa-form .pa-field label { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; color: var(--wp--preset--color--olive); text-transform: uppercase; }
.pa-form input[type="text"], .pa-form input[type="tel"], .pa-form input[type="email"], .pa-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(17,17,17,0.35); padding: 8px 0; font-size: 14px; line-height: 1.4; font-family: inherit; background: transparent; border-radius: 0; color: #111111; }
.pa-form input:focus, .pa-form textarea:focus { outline: none; border-bottom-color: var(--wp--preset--color--olive); }
.pa-form textarea { min-height: 72px; resize: vertical; }
.pa-form input[type="submit"] { margin-top: 4px; background: #111111; color: #FFFFFF; border: 0; padding: 16px 28px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-family: inherit; cursor: pointer; }
.pa-form input[type="submit"]:hover { background: var(--wp--preset--color--olive); }
.pa-form .wpcf7-not-valid-tip { font-size: 11px; color: #b3261e; }
.pa-form .wpcf7-response-output { border: 1px solid var(--wp--preset--color--olive); padding: 10px 14px; font-size: 13px; margin: 0; }
.pa-form .wpcf7-spinner { display: none; }

/* ---------- Footer ---------- */
.pa-footer { background: var(--wp--preset--color--dark); color: #FFFFFF; padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.pa-footer a { color: #FFFFFF; text-decoration: none; }
.pa-footer a:hover { color: var(--wp--preset--color--olive); }
.pa-footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.pa-footer-brand { display: flex; flex-direction: column; gap: 18px; }
.pa-footer-brand svg { width: 120px; height: 55px; display: block; }
.pa-footer-word { font-size: 26px; font-weight: 600; letter-spacing: 8px; margin: 0; }
.pa-footer-rule { width: 120px; height: 3px; background: var(--wp--preset--color--olive); }
.pa-footer-sub { font-size: 12px; letter-spacing: 3px; color: var(--wp--preset--color--gray); margin: 0; }
.pa-footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; text-align: right; }
.pa-footer-contact .pa-big { font-size: 22px; font-weight: 600; }
.pa-footer-bot { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12px; letter-spacing: 1px; color: var(--wp--preset--color--gray); }
.pa-footer-bot p { margin: 0; }

/* ---------- Scroll to top ---------- */
.pa-totop { position: fixed; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 50%; background: var(--wp--preset--color--dark); border: 1px solid var(--wp--preset--color--olive); display: flex; align-items: center; justify-content: center; z-index: 50; box-shadow: 0 6px 20px rgba(11,23,18,0.3); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; cursor: pointer; }
.pa-totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.pa-totop svg { width: 20px; height: 20px; }

/* ---------- Breakpoint: tablet ---------- */
@media (max-width: 1024px) {
  .wp-block-group.pa-wrap, .pa-wrap { padding-left: 40px; padding-right: 40px; }
  .pa-hero { min-height: 0; }
  .pa-hero-l, .pa-hero-r { padding: 64px 40px; }
  .pa-g48 { grid-template-columns: 1fr; gap: 40px; }
  .pa-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-cols3 { grid-template-columns: 1fr; gap: 32px; }
  .pa-cell { padding: 64px 40px; }
  .pa-onama { grid-template-columns: 1fr; gap: 40px; }
  .pa-photo { height: 420px; }
  .pa-loc { grid-template-columns: 1fr; } .pa-map, .pa-map iframe { min-height: 320px; } .pa-loc-info { padding: 64px 40px; }
  .pa-h1 { font-size: 48px; } .pa-h2 { font-size: 40px; }
  .pa-section { padding-top: 80px; padding-bottom: 80px; }
  .pa-nav-links { gap: 24px; font-size: 12px; }
}

/* ---------- Breakpoint: mobile ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .wp-block-group.pa-wrap, .pa-wrap { padding-left: 20px; padding-right: 20px; }
  .pa-topbar { font-size: 10px; letter-spacing: 2px; } .pa-topbar .pa-tb2 { display: none; }
  .pa-nav { height: 72px; } .pa-nav-links, .pa-nav .pa-lang { display: none; } .pa-burger { display: block; }
  .pa-brand b { font-size: 16px; letter-spacing: 4px; } .pa-brand svg { width: 60px; height: 28px; }
  .pa-nav-mobile.is-open { display: block; background: #FFFFFF; border-bottom: 1px solid #111111; padding: 12px 20px 24px; }
  .pa-nav-mobile .pa-nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 15px; }
  .pa-nav-mobile .pa-lang { display: flex; margin-top: 16px; }
  .pa-hero { grid-template-columns: 1fr; }
  .pa-hero-l, .pa-hero-r { padding: 56px 20px; gap: 32px; } .pa-hero-r { border-left: none; border-top: 4px solid var(--wp--preset--color--olive); }
  .pa-h1 { font-size: 38px; letter-spacing: -1px; } .pa-h2 { font-size: 30px; letter-spacing: -0.8px; } .pa-h3 { font-size: 26px; }
  .pa-lead { font-size: 15px; }
  .pa-strip { grid-template-columns: 1fr; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  .pa-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } .pa-row-t { font-size: 20px; }
  .pa-split2 { grid-template-columns: 1fr; } .pa-cell { padding: 48px 20px; } .pa-cell:first-child { border-right: none; border-bottom: 1px solid #111111; }
  .pa-photo { height: 260px; }
  .pa-facts { grid-template-columns: 1fr; gap: 16px; }
  .pa-gal-head { flex-direction: column; align-items: flex-start; gap: 12px; } .pa-note { text-align: left; }
  .pa-gal.wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; } .pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) { height: 160px; } .pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) figcaption { padding: 8px 10px; font-size: 9px; letter-spacing: 2px; }
  .pa-faq summary { font-size: 18px; }
  .pa-loc-info { padding: 48px 20px; } .pa-kv li { flex-direction: column; gap: 4px; } .pa-kv li span:last-child { text-align: left; }
  .pa-footer-top { flex-direction: column; align-items: flex-start; } .pa-footer-contact { text-align: left; } .pa-footer-bot { flex-direction: column; }
  .pa-section { padding-top: 56px; padding-bottom: 56px; }
  .wp-block-button, .wp-block-button .wp-block-button__link, .pa-form input[type="submit"] { width: 100%; text-align: center; }
  .pa-form .wpcf7-form { grid-template-columns: 1fr; }
  .pa-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ======================================================================
   Motion
   ====================================================================== */

/* Sticky header: topbar collapses after scrolling */
header.wp-block-template-part { position: sticky; top: 0; z-index: 40; }
.pa-topbar { max-height: 60px; overflow: hidden; transition: max-height .35s ease, padding .35s ease, opacity .35s ease; }
.pa-nav { transition: height .3s ease, box-shadow .3s ease; }
.pa-header.is-scrolled .pa-topbar { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.pa-header.is-scrolled .pa-nav { height: 80px; box-shadow: 0 10px 30px rgba(11,23,18,0.08); }
@media (max-width: 640px) { .pa-header.is-scrolled .pa-nav { height: 64px; } }

/* Nav link underline grows from the left */
.pa-nav-links a { position: relative; padding-bottom: 4px; }
.pa-nav-links li a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--wp--preset--color--olive); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.pa-nav-links li a:hover::after { transform: scaleX(1); }
.pa-lang a { transition: color .2s ease; }

/* Buttons lift */
.wp-block-button .wp-block-button__link, .pa-form input[type="submit"] { transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.wp-block-button .wp-block-button__link:hover, .pa-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,23,18,0.18); }
.wp-block-button .wp-block-button__link:active { transform: translateY(0); box-shadow: none; }

/* Service rows */
.pa-row { transition: background-color .3s ease, padding-left .3s cubic-bezier(.2,.7,.2,1); }
.pa-row:hover { background: var(--wp--preset--color--tile); padding-left: 12px; }
.pa-row .pa-num { transition: color .3s ease; }
.pa-row:hover .pa-num { color: #111111; }

/* JLR columns */
.pa-col { transition: border-color .3s ease; }
.pa-col:hover { border-top-color: #111111; }

/* Gallery zoom */
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity):hover img { transform: scale(1.06); }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) figcaption { transition: padding-bottom .35s cubic-bezier(.2,.7,.2,1); }
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity):hover figcaption { padding-bottom: 20px; }

/* O nama photo */
.pa-photo img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pa-photo:hover img { transform: scale(1.03); }

/* FAQ */
.pa-faq summary::after { transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s ease; display: inline-block; }
.pa-faq[open] summary::after { content: "+"; transform: rotate(45deg); }
.pa-faq summary:hover { color: var(--wp--preset--color--olive); }
.pa-faq[open] p { animation: pa-fade-down .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pa-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Map: greyscale until hovered */
.pa-map iframe { filter: grayscale(1) contrast(1.05); transition: filter .7s ease; }
.pa-map:hover iframe { filter: grayscale(0) contrast(1); }

/* Form fields */
.pa-form input[type="text"], .pa-form input[type="tel"], .pa-form input[type="email"], .pa-form textarea { transition: border-color .25s ease; background-image: linear-gradient(var(--wp--preset--color--olive), var(--wp--preset--color--olive)); background-size: 0% 2px; background-repeat: no-repeat; background-position: left bottom; }
.pa-form input:focus, .pa-form textarea:focus { background-size: 100% 2px; transition: background-size .35s cubic-bezier(.2,.7,.2,1); }

/* Scroll reveal (classes added by JS, so no-JS stays fully visible) */
.pa-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--pa-d, 0ms); will-change: opacity, transform; }
.pa-reveal.is-in { opacity: 1; transform: none; }
.pa-reveal.is-in.pa-reveal-done { will-change: auto; }

/* Hero entrance */
.pa-hero-l .pa-hero-bg img { transform: scale(1.08); animation: pa-hero-bg 7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes pa-hero-bg { to { transform: scale(1); } }
.pa-hero .pa-stack > *, .pa-hero .pa-stack2 > * { opacity: 0; transform: translateY(22px); animation: pa-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.pa-hero .pa-stack > :nth-child(1) { animation-delay: .15s; }
.pa-hero .pa-stack > :nth-child(2) { animation-delay: .28s; }
.pa-hero .pa-stack > :nth-child(3) { animation-delay: .41s; }
.pa-hero .pa-stack2 > :nth-child(1) { animation-delay: .55s; }
.pa-hero .pa-stack2 > :nth-child(2) { animation-delay: .7s; }
.pa-hero-r .pa-stack > :nth-child(1) { animation-delay: .3s; }
.pa-hero-r .pa-stack > :nth-child(2) { animation-delay: .43s; }
.pa-hero-r .pa-stack > :nth-child(3) { animation-delay: .56s; }
.pa-hero-r .pa-stack2 > :nth-child(1) { animation-delay: .7s; }
.pa-hero-r .pa-stack2 > :nth-child(2) { animation-delay: .85s; }
@keyframes pa-rise { to { opacity: 1; transform: none; } }
.pa-hero-r { position: relative; }
.pa-hero-r::before { content: ""; position: absolute; left: -4px; top: 0; width: 4px; height: 100%; background: var(--wp--preset--color--olive); transform: scaleY(0); transform-origin: top; animation: pa-grow-y 1.2s cubic-bezier(.2,.7,.2,1) .2s forwards; }
.pa-hero-r { border-left-color: transparent; }
@keyframes pa-grow-y { to { transform: scaleY(1); } }
@media (max-width: 640px) { .pa-hero-r::before { display: none; } .pa-hero-r { border-top-color: var(--wp--preset--color--olive); } }

/* ---------- 404: diagnostic readout ----------
   Base state of every element is its final state; keyframes only define `from`.
   No JS, reduced motion or a failed animation all land on a fully readable page. */
.pa-404 { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 164px); background: #FFFFFF; }
.pa-404-l { position: relative; overflow: hidden; background: var(--wp--preset--color--dark); color: #FFFFFF; padding: 96px 72px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.pa-404-l > * { position: relative; z-index: 1; }
.pa-404-l::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(126,137,97,0.28), rgba(126,137,97,0) 65%); }
.pa-404-l.has-pointer::before { opacity: 1; }
.pa-404-l .pa-eyebrow { color: var(--wp--preset--color--olive); }
.pa-404-top { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pa-404-diag { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 440px; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,0.18); }
.pa-404-row { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.pa-404-dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,0.35); transform: translateY(-4px); }
.pa-404-row.is-ok .pa-404-v { color: var(--wp--preset--color--olive); }
.pa-404-row.is-fail .pa-404-v { color: #FFFFFF; font-weight: 700; }
.pa-404-row.is-fail .pa-404-v::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 8px; vertical-align: -2px; background: #FFFFFF; }
.pa-404-replay { background: none; border: 0; padding: 0 0 3px; margin: 4px 0 0; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--wp--preset--color--olive); border-bottom: 1px solid var(--wp--preset--color--olive); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.pa-404-replay:hover { color: #FFFFFF; border-color: #FFFFFF; }
.pa-404-bot { display: flex; flex-direction: column; gap: 32px; }
.pa-404-odo > span { display: inline-flex; }
.pa-404-odo-w { display: block; height: 1em; overflow: hidden; font-size: 120px; line-height: 1; font-weight: 800; letter-spacing: -4px; }
.pa-404-odo-c { display: block; transform: translateY(calc(var(--n) * -1em)); }
.pa-404-odo-c b { display: block; height: 1em; font-weight: inherit; }
.pa-404-road { height: 2px; background: repeating-linear-gradient(90deg, var(--wp--preset--color--olive) 0 28px, transparent 28px 48px); background-size: 48px 2px; }
.pa-404-r { position: relative; background: #FFFFFF; padding: 96px 72px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.pa-404-r::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--wp--preset--color--olive); transform-origin: top; }
.pa-404-r .wp-block-buttons { margin-top: 8px; }
.pa-404-r .wp-block-button__link { display: inline-block; text-decoration: none; } /* core button block CSS is not enqueued on the 404 (markup comes from the shortcode) */
.pa-404-call { font-size: 15px; margin: 0; }

/* 404 motion. Left panel animations are scoped to .is-run so JS can replay them by toggling the class. */
@keyframes pa-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pa-grow-in { from { transform: scaleY(0); } }
@keyframes pa-odo { from { transform: translateY(0); } }
@keyframes pa-road { to { background-position: -48px 0; } }
@keyframes pa-blink { 50% { opacity: 0; } }
.pa-404-l.is-run .pa-eyebrow { animation: pa-in .6s cubic-bezier(.2,.7,.2,1) .1s both; }
.pa-404-l.is-run .pa-404-row { animation: pa-in .5s cubic-bezier(.2,.7,.2,1) calc(.4s + var(--i) * .35s) both; }
.pa-404-l.is-run .pa-404-row.is-fail .pa-404-v::after { animation: pa-blink 1s steps(1) 2.2s infinite; }
.pa-404-l.is-run .pa-404-replay { animation: pa-in .5s cubic-bezier(.2,.7,.2,1) 2.7s both; }
.pa-404-l.is-run .pa-404-odo-c { animation: pa-odo 1.6s cubic-bezier(.2,.7,.2,1) 2.3s both; }
.pa-404-l.is-run .pa-404-odo-w:nth-child(1) .pa-404-odo-c { animation-duration: 1.4s; }
.pa-404-l.is-run .pa-404-odo-w:nth-child(2) .pa-404-odo-c { animation-duration: 2s; }
.pa-404-l.is-run .pa-404-odo-w:nth-child(3) .pa-404-odo-c { animation-duration: 1.7s; animation-delay: 2.45s; }
.pa-404-l.is-run .pa-404-road { animation: pa-road 1.2s linear infinite, pa-in .6s cubic-bezier(.2,.7,.2,1) 2.5s both; }
.pa-404-r::before { animation: pa-grow-in 1.2s cubic-bezier(.2,.7,.2,1) .2s both; }
.pa-404-r > * { animation: pa-in .9s cubic-bezier(.2,.7,.2,1) both; }
.pa-404-r > :nth-child(1) { animation-delay: .3s; }
.pa-404-r > :nth-child(2) { animation-delay: .43s; }
.pa-404-r > :nth-child(3) { animation-delay: .56s; }
.pa-404-r > :nth-child(4) { animation-delay: .7s; }
.pa-404-r > :nth-child(5) { animation-delay: .85s; }

@media (max-width: 1024px) {
  .pa-404 { grid-template-columns: 1fr; min-height: 0; }
  .pa-404-l, .pa-404-r { padding: 64px 40px; }
  .pa-404-l { gap: 48px; }
  .pa-404-odo-w { font-size: 96px; }
  .pa-404-r::before { display: none; }
  .pa-404-r { border-top: 4px solid var(--wp--preset--color--olive); }
}
@media (max-width: 640px) {
  .pa-404-l, .pa-404-r { padding: 56px 20px; }
  .pa-404-diag { font-size: 12px; letter-spacing: 1px; }
  .pa-404-odo-w { font-size: 72px; letter-spacing: -2px; }
}

/* Reduced motion: everything static, everything visible */
@media (prefers-reduced-motion: reduce) {
  .pa-404-l::before { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pa-reveal, .pa-hero .pa-stack > *, .pa-hero .pa-stack2 > * { opacity: 1 !important; transform: none !important; }
  .pa-hero-l .pa-hero-bg img { transform: none; }
  .pa-hero-r::before { transform: none; }
  .pa-hero-r { border-left-color: var(--wp--preset--color--olive); }
  .pa-map iframe { filter: none; }
  html { scroll-behavior: auto; }
}

/* Phone links inside copy */
.pa-h2 a, .pa-faq a, .pa-404-call a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--olive); transition: color .2s ease; }
.pa-h2 a:hover, .pa-faq a:hover, .pa-404-call a:hover { color: var(--wp--preset--color--olive); }

/* Scroll-spy active nav item */
.pa-nav-links li a.is-active { color: #111111; font-weight: 600; }
.pa-nav-links li a.is-active::after { transform: scaleX(1); }
.pa-nav-links a { transition: color .2s ease; }

/* ---------- Gallery lightbox ---------- */
.pa-gal.wp-block-gallery.has-nested-images figure.wp-block-image:not(#pa-specificity) { cursor: zoom-in; }
.pa-lb { position: fixed; inset: 0; z-index: 100; background: rgba(11,23,18,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.pa-lb.is-open { opacity: 1; pointer-events: auto; }
.pa-lb-fig { margin: 0; max-width: min(1200px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pa-lb.is-open .pa-lb-fig { transform: none; }
.pa-lb-img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transition: opacity .25s ease; }
.pa-lb-img.is-swapping { opacity: 0; }
.pa-lb-cap { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: #FFFFFF; text-transform: uppercase; }
.pa-lb-cap span { color: var(--wp--preset--color--gray); margin-left: 12px; letter-spacing: 2px; }
.pa-lb-btn { position: absolute; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #FFFFFF; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.pa-lb-btn:hover { border-color: var(--wp--preset--color--olive); background: rgba(126,137,97,0.25); }
.pa-lb-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.pa-lb-close { top: 24px; right: 24px; }
.pa-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.pa-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.pa-lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pa-lb-next:hover { transform: translateY(-50%) translateX(2px); }
body.pa-lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .pa-lb-fig { max-width: 100vw; }
  .pa-lb-img { max-height: 70vh; }
  .pa-lb-btn { width: 44px; height: 44px; }
  .pa-lb-close { top: 12px; right: 12px; }
  .pa-lb-prev { left: 8px; top: auto; bottom: 20px; transform: none; }
  .pa-lb-next { right: 8px; top: auto; bottom: 20px; transform: none; }
  .pa-lb-prev:hover, .pa-lb-next:hover { transform: none; }
}

/* Footer credit */
.pa-footer-credit { text-align: right; }
.pa-footer-credit a { color: #FFFFFF; border-bottom: 1px solid var(--wp--preset--color--olive); }
.pa-footer-credit a:hover { color: var(--wp--preset--color--olive); }
