/**
 * Orbit Theme Stylesheet - Backbone
 *
 * Table of Contents:
 * 1. Reset & Base Styles
 * 2. Layout & Containers
 * 3. Typography & Text
 * 4. Forms & Inputs
 * 5. Button Base
 * 6. Tooltips
 * 7. Header & Navigation (Structural)
 * 8. Mobile Navigation (Structural)
 * 9. Grid & Flex System (Gutenberg Compatible)
 * 10. Media Queries
 */


/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

#wpadminbar {top:auto;bottom:0;}

html {
    line-height: 1.1;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    overflow-x: hidden;
}

figure {
    margin: 0;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

iframe {
    display: block;
    max-width: 100%;
}

img.emoji {
    width: 16px;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

blockquote {
    margin: 0;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

details {
    display: block;
}

summary {
    display: list-item;
}


/* ==========================================================================
   2. LAYOUT & CONTAINERS
   ========================================================================== */

.wrap {
    margin: auto;
    width: 100%;
    max-width: var(--wp--style--global--content-size, 1200px);
    padding-left: var(--wp--preset--spacing--medium, 20px);
    padding-right: var(--wp--preset--spacing--medium, 20px);
}

/* ==========================================================================
   3. TYPOGRAPHY & TEXT
   ========================================================================== */

a {
    background-color: transparent;
    color: inherit;
    word-break: break-word;
    outline-offset: 2px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness:2px;
}

:root :where(a:where(:not(.wp-element-button)):hover) {
    text-decoration:none;
}

a:focus-visible {
    outline: 2px solid #276EF1;
}

b,
strong {
    font-weight: 700;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
}

pre,
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}


/* ==========================================================================
   4. FORMS & INPUTS
   ========================================================================== */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

input[type=search] {
    box-sizing: border-box;
}

button,
[type=button],
[type=reset],
[type=submit] {
    -webkit-appearance: button;
    appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0;
    border: none;
    margin: 0;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[type=checkbox],
[type=radio] {
    box-sizing: border-box;
    padding: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    appearance: button;
    font: inherit;
}

/* Placeholders */
::-moz-placeholder {
    color: inherit;
    opacity: 0.6;
}

::-ms-input-placeholder {
    color: inherit;
    opacity: 0.6;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.6;
}


/* ==========================================================================
   5. BUTTON BASE
   ========================================================================== */

.btn,
.button,
.wp-block-button__link {
    border-radius: 0;
    text-decoration: none;
    height: 50px;
    display: flex;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    padding-top: 0.667em;
    padding-right: 1.33em;
    padding-bottom: 0.667em;
    padding-left: 1.33em;
    box-sizing: border-box;
    align-items: center;
}

.btn:hover, .button:hover, .wp-block-button__link:hover {
    background-color: black!important;
    color: white!important;
    border-color: black;
}


/* ==========================================================================
   6. TOOLTIPS
   ========================================================================== */

[data-tooltip] {
    position: relative;
    z-index: 10;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    visibility: hidden;
    width: max-content;
    max-width: 150px;
    background-color: var(--wp--preset--color--black, #000);
    color: var(--wp--preset--color--white, #fff);
    text-align: center;
    padding: 8px 10px;
    border-radius: var(--wp--custom--border--radius--small, 4px);
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

[data-tooltip]::before {
    content: '';
    visibility: hidden;
    position: absolute;
    z-index: 1000;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    opacity: 0;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--wp--preset--color--black, #000);
    transition: opacity 0.2s;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-within::after,
[data-tooltip]:focus-within::before {
    visibility: visible;
    opacity: 1;
}


/* ==========================================================================
   7. HEADER & NAVIGATION (Structural)
   ========================================================================== */

.site-header {
    width: 100%;
    position: relative;
    padding: 0 var(--wp--preset--spacing--medium);
    z-index: 99999;
}

.site-header .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--medium, 20px);
    max-width: var(--wp--style--global--wide-size);
    padding: var(--wp--preset--spacing--small) 0;
}

.custom-logo-link {
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    max-width: 300px;
}

#contact-button-wrap {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

#contact-button-wrap .button {border:2px solid #000}

#contact-button-wrap .donate-btn {background: var(--wp--preset--color--secondary);color: var(--wp--preset--color--white);border: 0;}

/* Desktop Navigation */
#nav-menu {
    display: none;
}

#nav-menu ul.menu {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--medium);
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

#nav-menu .menu-item {
    position: relative;
    display: flex;
    align-items: center;
}

#nav-menu li a {
    display: block;
    font-weight: 500;
    text-decoration: none;
    padding: var(--wp--preset--spacing--small);
    outline-offset: 0;
}

#nav-menu li a:hover {color: var(--wp--preset--color--secondary);}

/* Submenu Button */
.submenu-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Submenu Dropdown */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -5px);
    background: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.51, -0.59, 0.64, 1.8);
    z-index: 9999;
}

#nav-menu li.menu-item-has-children:hover .submenu,
#nav-menu li.menu-item-has-children:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0px);
}

#nav-menu li .submenu-inner-wrap {
    min-width: 250px;
    padding: 10px;
}

#nav-menu li .submenu-inner .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#nav-menu li .submenu-inner .menu-items li a {padding: 10px 15px;}

/* Mobile Toggle */
#toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 9999;
}

#toggle {
    height: 50px;
    width: 50px;
    position: relative;
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#toggle .bar {
    height: 3px;
    width: 30px;
    position: absolute;
    background-color: currentColor;
    transition: 0.3s;
}

#toggle .bar:nth-of-type(1) {
    top: 16px;
}

#toggle .bar:nth-of-type(2) {
    top: 24px;
    opacity: 1;
}

#toggle .bar:nth-of-type(3) {
    top: 32px;
}

.active #toggle .bar:nth-of-type(1) {
    top: 24px;
    transform: rotate(45deg);
}

.active #toggle .bar:nth-of-type(2) {
    opacity: 0;
}

.active #toggle .bar:nth-of-type(3) {
    top: 24px;
    transform: rotate(-45deg);
}


/* ==========================================================================
   8. MOBILE NAVIGATION (Structural)
   ========================================================================== */

#mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    z-index: 900;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    overflow-y: auto;
    padding-top: 110px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    padding-left: 30px;
    padding-right: 30px;
}

.active #mobile-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu > li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#mobile-menu li {
    position: relative;
}

#mobile-menu a,
#mobile-menu span {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--wp--preset--color--white);
    font-weight: 500;
    font-size: 18px;
    transition: background 0.2s ease;
}
body.active .custom-logo {
    filter: brightness(0) invert(1);
}
#mobile-menu a:hover,
#mobile-menu a:focus {
    background: rgba(255, 255, 255, 0.1);
}

#mobile-menu li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#mobile-menu li.menu-item-has-children>a {
    flex: 1;
}

#mobile-menu li ul {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--wp--preset--color--secondary);
}

#mobile-menu li ul a {
    font-size: 16px;
    padding: 12px 15px;
}
body.active #toggle .bar {
    background: white;
}
#mobile-menu .mobile-submenu-toggle {
    background: transparent;
    border: 0;
    /* border-left: 1px solid rgba(255, 255, 255, 0.15); */
    padding: 15px;
    cursor: pointer;
    color: var(--wp--preset--color--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

#mobile-menu .mobile-submenu-toggle:hover {
    /* background: rgba(255, 255, 255, 0.1); */
}

#mobile-menu .mobile-submenu-toggle::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--wp--preset--color--white);
    border-bottom: 2px solid var(--wp--preset--color--white);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

#mobile-menu .mobile-submenu-toggle.active::after {
    transform: rotate(-135deg);
}


/* ==========================================================================
   9. GRID & FLEX SYSTEM (Gutenberg Compatible)
   ========================================================================== */

/* Grid Base */
.grid,
.is-layout-grid {
    display: grid;
    gap: var(--wp--preset--spacing--medium, 24px);
}

/* Flex Columns Base */
.flex-row {
    display: flex;
    flex-wrap: wrap;
}

/* Individual Column */
.col,
.wp-block-column {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Column Widths (Grid) */
.columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Flex Column Width Utilities */
.col-100 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-75 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-66 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-50 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-33 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-25 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-20 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Gutenberg specific flex column overrides */
.wp-block-columns.has-2-columns>.wp-block-column {
    flex-basis: calc(50% - (var(--wp--preset--spacing--medium, 24px) / 2));
}

.wp-block-columns.has-3-columns>.wp-block-column {
    flex-basis: calc(33.33333% - (var(--wp--preset--spacing--medium, 24px) * 2 / 3));
}

.wp-block-columns.has-4-columns>.wp-block-column {
    flex-basis: calc(25% - (var(--wp--preset--spacing--medium, 24px) * 3 / 4));
}

.wp-block-columns.has-5-columns>.wp-block-column {
    flex-basis: calc(20% - (var(--wp--preset--spacing--medium, 24px) * 4 / 5));
}

.wp-block-columns.has-6-columns>.wp-block-column {
    flex-basis: calc(16.66666% - (var(--wp--preset--spacing--medium, 24px) * 5 / 6));
}

/* Utility Alignment */
.v-align {
    align-items: center;
}

.h-align {
    justify-content: center;
}


/* ==========================================================================
   10. TEAM ARCHIVE
   ========================================================================== */

.team-archive-wrap {
    padding-top: var(--wp--preset--spacing--large, 48px);
    padding-bottom: var(--wp--preset--spacing--large, 48px);
}

.team-group {
    margin-bottom: var(--wp--preset--spacing--x-large, 64px);
}

.team-group:last-child {
    margin-bottom: 0;
}

.team-group-title {
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--medium, 24px);
    padding-bottom: var(--wp--preset--spacing--small, 12px);
    border-bottom: 2px solid var(--wp--preset--color--grey, #e5e5e5);
}

.team-grid {
    align-items: start;
}

@media (max-width: 1023px) {
    .team-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .team-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {

	#contact-button-wrap{display:none;}
}
/* Desktop (1024px+) */
@media (min-width: 1024px) {


    #nav-menu {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        border-top: 2px solid var(--wp--preset--color--grey);
        border-bottom: 2px solid white;
        padding: 0 var(--wp--preset--spacing--medium);
    }

    #nav-menu .wrap {max-width:var(--wp--style--global--wide-size);padding: 0;}

    #mobile-nav-menu {
        display: none !important;
    }

    #toggle-wrap {
        display: none;
    }
}

/* WordPress Admin Bar Fixes */
@media (max-width: 782px) {
    #wpadminbar {
        display: none !important;
    }
}

/* Mobile Fallbacks container spacing */
@media (max-width: 782px) {
    .is-layout-grid[class*="columns-"] {
        grid-template-columns: 1fr;
    }

    .wp-block-columns.is-layout-flex {
        flex-direction: column;
    }

    .wp-block-columns.is-layout-flex>.wp-block-column {
        flex-basis: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .wp-block-column.has-reverse-mobile {
        order: 2;
    }
}


/* ==========================================================================
   11. 404 PAGE
   ========================================================================== */

.error-404--hero {
    position: relative;
    overflow: hidden;
    padding: var(--wp--preset--spacing--xx-large) var(--wp--preset--spacing--medium);
    background: linear-gradient(180deg, #ffffff 0%, var(--wp--preset--color--quaternary) 100%);
}

.error-404__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.error-404__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.75;
}

.error-404__blob--cream {
    width: clamp(280px, 38vw, 560px);
    height: clamp(280px, 38vw, 560px);
    background: var(--wp--preset--color--quaternary);
    top: -120px;
    right: -120px;
}

.error-404__blob--blue {
    width: clamp(220px, 28vw, 420px);
    height: clamp(220px, 28vw, 420px);
    background: var(--wp--preset--color--primary-50);
    bottom: -140px;
    left: -100px;
    opacity: 0.6;
}

.error-404__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--wp--preset--spacing--x-large);
    align-items: center;
    max-width: 1150px;
    margin: 0 auto;
}

.error-404__content {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--small);
    position: relative;
    z-index: 2;
}

.error-404__eyebrow {
    display: inline-block;
    width: fit-content;
    color: var(--wp--preset--color--tertiary);
    font-size: var(--wp--preset--font-size--tiny);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-404__code {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 12px);
    color: var(--wp--preset--color--primary);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0;
}

.error-404__digit { display: inline-block; }

.error-404__paw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95em;
    height: 0.95em;
    transform: rotate(-8deg) translateY(4%);
}

.error-404__paw img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: rotate(8deg);
    margin-top: -30px;
}

.error-404__title {
    margin: 0;
    color: var(--wp--preset--color--primary);
    font-size: var(--wp--preset--font-size--colossal);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 18ch;
}

.error-404__message {
    margin: 0;
    color: var(--wp--preset--color--charcoal);
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.5;
    max-width: 48ch;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--preset--spacing--medium);
    margin-top: var(--wp--preset--spacing--small);
}

.error-404__button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    height: auto !important;
    padding: 14px 28px !important;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: 0;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: var(--wp--preset--font-size--normal);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.error-404__button:hover,
.error-404__button:focus-visible {
    background-color: #000 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.error-404__button svg { transition: transform 0.2s ease; }
.error-404__button:hover svg { transform: translateX(-3px); }

.error-404__quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.error-404__quick-links li { position: relative; }

.error-404__quick-links li + li::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--wp--preset--color--tertiary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.error-404__quick-links a {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.error-404__quick-links a:hover { color: var(--wp--preset--color--secondary); }

/* --- Custom search --- */
.error-404__search {
    margin-top: var(--wp--preset--spacing--medium);
    max-width: 560px;
}

.error-404__search-label {
    margin: 0 0 12px;
    color: var(--wp--preset--color--charcoal);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}

.error-404__search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 18px;
    background: #fff;
    border: 1.5px solid var(--wp--preset--color--primary-50);
    border-radius: 999px;
    box-shadow: 0 6px 24px -12px rgba(0, 36, 125, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.error-404__search-form:focus-within {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 10px 30px -14px rgba(0, 36, 125, 0.45);
    transform: translateY(-1px);
}

.error-404__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--primary);
    flex: 0 0 auto;
}

.error-404__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 4px;
    font: inherit;
    font-size: var(--wp--preset--font-size--normal);
    color: var(--wp--preset--color--black);
}

.error-404__search-input::placeholder {
    color: var(--wp--preset--color--charcoal);
    opacity: 0.75;
}

.error-404__search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 22px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: var(--wp--preset--font-size--normal);
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-404__search-submit:hover,
.error-404__search-submit:focus-visible {
    background: var(--wp--preset--color--secondary);
    transform: translateX(2px);
}

.error-404__search-submit svg { transition: transform 0.2s ease; }
.error-404__search-submit:hover svg { transform: translateX(2px); }

/* --- Desktop: paw trail bounded in right column --- */
.error-404__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.error-404__visual::before {
    content: "";
    position: absolute;
    inset: 8% 8%;
    background: var(--wp--preset--color--quaternary);
    border-radius: 50%;
    z-index: 0;
}

.error-404__paw-trail {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
}

.error-404__paw-trail-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: auto;
    opacity: 0.85;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    animation: error-404-paw-in 0.6s ease both;
    animation-delay: calc(0.1s * var(--i, 0));
}

.error-404__paw-trail-item.is-accent {
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgba(255, 171, 25, 0.35));
    animation-name: error-404-paw-in-accent;
}

@keyframes error-404-paw-in {
    from { opacity: 0; }
    to   { opacity: 0.85; }
}

@keyframes error-404-paw-in-accent {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .error-404__paw-trail-item { animation: none; }
}

/* --- Mobile: switch design. Trail becomes a full-bleed muted background behind content. --- */
@media screen and (max-width: 900px) {
    .error-404--hero {
        padding: clamp(40px, 10vw, 72px) 18px;
    }

    .error-404__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--wp--preset--spacing--medium);
    }

    .error-404__content {
        align-items: center;
    }

    .error-404__title,
    .error-404__message,
    .error-404__search {
        max-width: none;
    }

    .error-404__eyebrow,
    .error-404__code,
    .error-404__actions,
    .error-404__quick-links {
        justify-content: center;
    }

    .error-404__search {
        margin-left: auto;
        margin-right: auto;
    }

    /* Lift visual out of the grid flow into a full-bleed layer behind content. */
    .error-404__visual {
        position: absolute;
        inset: 0;
        min-height: 0;
        z-index: 0;
        pointer-events: none;
    }

    /* Hide the desktop circles on mobile — bg blobs handle the decoration instead. */
    .error-404__visual::before,
    .error-404__visual::after {
        display: none;
    }

    .error-404__paw-trail {
        position: absolute;
        inset: 0;
        max-width: none;
        aspect-ratio: auto;
    }

    /* Mute so text stays readable when a paw sits behind it. */
    .error-404__paw-trail-item {
        opacity: 0.22 !important;
        filter: grayscale(0.15);
        /* Scale paws up so they cover the full hero nicely on phones. */
        width: calc(var(--paw-w, 60px) * 1.1) !important;
    }

    .error-404__paw-trail-item.is-accent {
        opacity: 0.55 !important;
        filter: drop-shadow(0 4px 10px rgba(255, 171, 25, 0.35));
    }

    @keyframes error-404-paw-in {
        from { opacity: 0; }
        to   { opacity: 0.22; }
    }

    @keyframes error-404-paw-in-accent {
        from { opacity: 0; }
        to   { opacity: 0.55; }
    }
}

@media screen and (max-width: 600px) {
    .error-404__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .error-404__button { justify-content: center; }
    .error-404__quick-links { justify-content: center; }

    .error-404__search-form {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 10px;
        gap: 8px;
    }

    .error-404__search-input {
        flex: 1 1 100%;
        padding: 10px 8px;
    }

    .error-404__search-submit {
        flex: 1 1 100%;
        justify-content: center;
    }

    .error-404__search-icon {
        padding-left: 8px;
    }
}

/* ==========================================================================
   11b. SEARCH RESULTS (reuses 404 hero design)
   ========================================================================== */

.error-404--search {
    padding-top: var(--wp--preset--spacing--x-large);
    padding-bottom: var(--wp--preset--spacing--x-large);
}

.error-404--search .error-404__title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    max-width: 22ch;
}

.error-404--search .error-404__search-term {
    display: inline-block;
    color: var(--wp--preset--color--secondary);
    word-break: break-word;
}

.error-404--search .error-404__message strong {
    color: var(--wp--preset--color--primary);
}

body.search main.site-main {
    padding: var(--wp--preset--spacing--x-large) 0;
    background: var(--wp--preset--color--primary-10);
}

body.search main.site-main .wrap {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wp--preset--spacing--medium);
    padding-right: var(--wp--preset--spacing--medium);
}

@media (max-width: 900px) {
    body.search .posts.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body.search .posts.columns-3 {
        grid-template-columns: 1fr;
    }

    body.search main.site-main {
        padding-left: var(--wp--preset--spacing--small);
        padding-right: var(--wp--preset--spacing--small);
    }
}

/* ==========================================================================
   11c. THANK YOU PAGE (reuses 404 hero design)
   ========================================================================== */

.error-404--thankyou {
    padding-top: var(--wp--preset--spacing--x-large);
    padding-bottom: var(--wp--preset--spacing--x-large);
}

.error-404--thankyou .error-404__title {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    max-width: 20ch;
}

.thankyou__tick {
    display: inline-flex;
    color: var(--wp--preset--color--primary);
    width: 72px;
    height: 72px;
}

.thankyou__tick-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: thankyou-circle 0.7s ease forwards;
}

.thankyou__tick-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: thankyou-check 0.45s 0.55s ease forwards;
}

@keyframes thankyou-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes thankyou-check {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .thankyou__tick-circle,
    .thankyou__tick-check {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.thankyou__message {
    max-width: 56ch;
}

.thankyou__message p {
    margin: 0 0 0.75em;
}

.thankyou__message :last-child {
    margin-bottom: 0;
}


@media screen and (max-width: 600px) {
    .error-404--search .error-404__title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
    }
}

