/* ═══════════════════════════════════════════════════════════
   Big Bear Home Maintenance — Master Stylesheet 2026
   WordPress Theme Edition
   ═══════════════════════════════════════════════════════════ */
:root {
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --brand-light: #fef2f2;
    --ink: #0f172a;
    --subtle: #475569;
    --surface: #f8fafc;
    --radius: 1rem;
    --header-h: 6rem;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Shell ─────────────────────────────────────────────── */
.shell {
    margin-inline: auto;
    width: 100%;
    max-width: 84rem;
    padding-inline: 1rem;
}

@media(min-width:640px) {
    .shell {
        padding-inline: 1.5rem;
    }
}

@media(min-width:1024px) {
    .shell {
        padding-inline: 2rem;
    }
}

/* ── Top Progress ──────────────────────────────────────── */
.top-progress {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .1s ease-out;
}

/* ── Glass Header ──────────────────────────────────────── */
.glass-header {
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    transition: box-shadow .3s, border-color .3s, background .3s;
}

.glass-header.scrolled {
    box-shadow: 0 10px 40px -20px rgba(2, 6, 23, .25);
    border-color: rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .95);
}

/* ══════════════════════════════════════════════════════════
   MEGA MENU — Professional Dropdown System
   ══════════════════════════════════════════════════════════ */
.mega-trigger {
    position: relative;
}

.mega-trigger>a {
    position: relative;
}

.mega-trigger>a .chev {
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: inline-block;
}

.mega-trigger:hover>a .chev,
.mega-trigger:focus-within>a .chev {
    transform: rotate(180deg);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: width .3s ease, left .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    z-index: 60;
}

.mega-trigger:hover .mega-panel,
.mega-trigger:focus-within .mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-inner {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px -15px rgba(2, 6, 23, .14),
        0 0 0 1px rgba(226, 232, 240, .7),
        0 4px 6px -2px rgba(0, 0, 0, .03);
    overflow: hidden;
}

.mega-head {
    background: linear-gradient(135deg, #fef2f2, #fff7ed, #eff6ff);
    padding: .875rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, .5);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mega-cat {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .625rem;
}

.mega-cat::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: .875rem;
    border-radius: .75rem;
    padding: .75rem .875rem;
    transition: all .25s ease;
    position: relative;
}

.mega-link:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateX(3px);
}

.mega-link .ico {
    display: inline-flex;
    border-radius: .625rem;
    padding: .5rem;
    flex-shrink: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.mega-link:hover .ico {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.mega-link .ml-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all .2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.mega-link:hover .ml-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega-promo {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: .875rem;
    padding: 1.125rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.mega-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(220, 38, 38, .2), transparent 70%);
    pointer-events: none;
}

/* ── Mobile Drawer ─────────────────────────────────────── */
.m-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.m-drawer.open {
    opacity: 1;
    visibility: visible;
}

.m-drawer .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.m-drawer .panel {
    position: relative;
    width: 100%;
    max-width: 22rem;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

.m-drawer.open .panel {
    transform: translateX(0);
}

.m-drawer .panel::-webkit-scrollbar {
    width: 4px;
}

.m-drawer .panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.m-accordion summary::-webkit-details-marker {
    display: none;
}

.m-accordion summary {
    list-style: none;
}

.m-accordion summary .acc-chev {
    transition: transform .3s ease;
}

.m-accordion[open] summary .acc-chev {
    transform: rotate(180deg);
}

.m-accordion .m-sub {
    animation: mSlide .3s ease forwards;
}

@keyframes mSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m-sub-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .75rem;
    border-radius: .75rem;
    transition: all .2s;
    font-size: .875rem;
    color: #475569;
}

.m-sub-link:hover {
    background: #fef2f2;
    color: var(--brand);
}

.m-sub-link .m-ico {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Reveal Animations ─────────────────────────────────── */
[data-r] {
    opacity: 1;
    transform: translateY(0);
}

body.js [data-r]:not(.vis) {
    opacity: 0;
    transform: translateY(20px);
}

body.js [data-r] {
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

body.js [data-r].vis {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ──────────────────────────────────────────────── */
.glow-orb {
    filter: blur(60px);
    opacity: .3;
    pointer-events: none;
}

.grid-pat {
    background-image: linear-gradient(to right, rgba(148, 163, 184, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

/* ── Service Card ──────────────────────────────────────── */
.svc-card {
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    border-color: #fca5a5;
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .18);
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #f97316);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity .3s;
}

.svc-card:hover::before {
    opacity: 1;
}

/* ── Stat ──────────────────────────────────────────────── */
.stat-card {
    background: linear-gradient(135deg, #fff, #f8fafc);
    overflow: hidden;
}

/* ── Media Card ────────────────────────────────────────── */
.media-card {
    transition: transform .4s, box-shadow .4s;
}

.media-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .4);
}

/* ── Filter Pill ───────────────────────────────────────── */
.fpill {
    cursor: pointer;
    transition: all .25s ease;
}

.fpill:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}

.fpill.active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
}

/* ── Quote Card ────────────────────────────────────────── */
.quote-card {
    box-shadow: 0 25px 60px -36px rgba(2, 6, 23, .6);
}

/* ── Footer ────────────────────────────────────────────── */
.heavy-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.logo-ring {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.site-logo {
    width: 9rem;
    height: auto;
    transition: transform .3s ease;
}

@media (max-width: 640px) {
    .site-logo {
        width: 8rem;
    }
}

.site-logo:hover {
    transform: scale(1.02);
}

.footer-logo {
    width: 10rem;
    height: auto;
}

/* ── Floating CTA ──────────────────────────────────────── */
@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes ring {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.float-cta {
    animation: bob 3s ease-in-out infinite, ring 2s ease-out infinite;
}

/* ══════════════════════════════════════════════════════════
   ADVANCED FAQ SYSTEM
   ══════════════════════════════════════════════════════════ */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.faq-tab {
    padding: .5rem 1.25rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all .25s ease;
}

.faq-tab:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}

.faq-tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 14px rgba(220, 38, 38, .25);
}

.faq-search-wrap {
    position: relative;
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.faq-search-wrap .search-ico {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
}

.faq-search {
    width: 100%;
    padding: .875rem 1rem .875rem 2.75rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: .875rem;
    outline: none;
    transition: all .25s;
}

.faq-search:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}

.faq-item {
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #f1f5f9;
    overflow: hidden;
    transition: all .3s ease;
    margin-bottom: .75rem;
}

.faq-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

.faq-item.open {
    border-color: #fca5a5;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
    transition: color .2s;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-item.open .faq-question {
    color: var(--brand);
}

.faq-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    transition: all .3s ease;
}

.faq-item.open .faq-icon-box {
    background: var(--brand);
    transform: rotate(45deg);
}

.faq-item.open .faq-icon-box i {
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.16, 1, .3, 1), padding .3s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer-inner {
    font-size: .875rem;
    color: #64748b;
    line-height: 1.75;
    padding-top: .75rem;
    border-top: 1px solid #f1f5f9;
}

.faq-counter {
    text-align: center;
    font-size: .75rem;
    color: #94a3b8;
    margin-top: 1.5rem;
}

.faq-no-results {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.faq-no-results.show {
    display: block;
}

/* ── Page Hero ─────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, .15), transparent 50%);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(148, 163, 184, .04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, .04) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ── Gallery ───────────────────────────────────────────── */
.gal-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gal-item img {
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.gal-item:hover img {
    transform: scale(1.06);
}

.gal-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.gal-item:hover .gal-ov {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   CAREERS / JOIN OUR TEAM PAGE
   ══════════════════════════════════════════════════════════ */
.careers-img-wrap {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.careers-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.careers-img-wrap:hover img {
    transform: scale(1.04);
}

.careers-img-wrap .img-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .5), transparent 50%);
}

.careers-float-badge {
    position: absolute;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    animation: cfloat 4s ease-in-out infinite;
}

@keyframes cfloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.career-form-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 2px solid #f1f5f9;
    transition: box-shadow .3s, border-color .3s;
}

.career-form-card:focus-within {
    box-shadow: 0 20px 60px -20px rgba(220, 38, 38, .06);
    border-color: #fecaca;
}

.c-input {
    width: 100%;
    padding: .875rem 1rem;
    font-size: .875rem;
    border-radius: .75rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    outline: none;
    transition: all .25s ease;
}

.c-input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .06);
}

.c-input::placeholder {
    color: #94a3b8;
}

.file-drop {
    border: 2px dashed #cbd5e1;
    border-radius: .75rem;
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: #f8fafc;
}

.file-drop:hover {
    border-color: var(--brand);
    background: #fef2f2;
}

.benefit-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 2px solid #f1f5f9;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #f97316);
    opacity: 0;
    transition: opacity .3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: #fca5a5;
    box-shadow: 0 16px 40px -16px rgba(220, 38, 38, .1);
}

.benefit-card:hover::before {
    opacity: 1;
}

.position-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 2px solid #f1f5f9;
    padding: 1.5rem;
    transition: all .3s ease;
}

.position-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.pos-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* ══════════════════════════════════════════════════════════
   WORDPRESS SPECIFIC
   ══════════════════════════════════════════════════════════ */

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

.alignwide {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption img {
    display: block;
    width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: .875rem;
    color: #64748b;
    padding-top: .5rem;
}

/* WordPress gallery */
.gallery {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

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

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

/* Screen reader text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Post content styling */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 800;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #475569;
}

.entry-content a {
    color: var(--brand);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--brand-dark);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: .5rem;
    color: #475569;
}

.entry-content blockquote {
    border-left: 4px solid var(--brand);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fef2f2;
    border-radius: 0 .75rem .75rem 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    border: 2px solid #e2e8f0;
    transition: all .2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.comment-author img {
    border-radius: 50%;
    margin-right: .75rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 374px) {
    .shell {
        padding-inline: .75rem;
    }

    .page-hero {
        padding-top: 6rem;
        padding-bottom: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: .8125rem;
    }

    .faq-tab {
        font-size: .6875rem;
        padding: .375rem .75rem;
    }
}

@media (max-width: 479px) {
    .careers-img-wrap {
        min-height: 280px;
    }
}

@media (max-width: 1023px) {
    .mega-panel {
        display: none !important;
    }

    .m-drawer .panel {
        max-width: 85vw;
    }
}

@media (min-width: 1024px) {
    .m-drawer {
        display: none !important;
    }
}

@media print {

    .glass-header,
    .m-drawer,
    .float-cta,
    .top-progress {
        display: none !important;
    }

    .shell {
        max-width: 100%;
    }
}

/* ── Utility ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, .3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    color: #dc2626;
}

/* AJAX form messages */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
