/* =============================================================================
   ZenSleepZone — Global (01-global.css)
   Load order: 2nd — enqueued on ALL pages, after 00-tokens.css
   Covers: reset, layout utilities, buttons, cards, sidebar, footer,
           pagination, animations. No page-specific rules here.
   ============================================================================= */

/* ─── 1. BOX-SIZING RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── 2. ASTRA — FULL-WIDTH OVERRIDE ─────────────────────────────────────── */
/* Prevents Astra's container max-width from capping custom page layouts.
   Applied per-body-class in archive/CPT/home files via their own rules.
   Global override for all ZSZ-controlled pages:                              */
body.single-post #secondary,
body.single-post .ast-sidebar-wrap,
body.category   #secondary,
body.category   .ast-sidebar-wrap,
body.tag        #secondary,
body.tag        .ast-sidebar-wrap,
body.page-template-page-blog #secondary,
body.page-template-page-blog .ast-sidebar-wrap { display: none !important; }

body.page-template-page-blog .ast-row,
body.page-template-page-blog .ast-container-layout,
body.page-template-page-blog .site-content .ast-container,
body.page-template-page-blog .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-blog #primary,
body.page-template-page-blog .content-area,
body.page-template-page-blog .site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.single-answer_hub   #secondary,
body.single-answer_hub   .ast-sidebar-wrap,
body.single-infographic  #secondary,
body.single-infographic  .ast-sidebar-wrap,
body.single-interactive_tool #secondary,
body.single-interactive_tool .ast-sidebar-wrap,
body.page-template-page-answer-hub #secondary,
body.page-template-page-answer-hub .ast-sidebar-wrap,
body.page-template-infographic-gallery #secondary,
body.page-template-infographic-gallery .ast-sidebar-wrap {
    display: none !important;
}

/* ─── 2b. BLOG PAGE (POSTS PAGE) FIXES ─────────────────────────────────────── */
/* When page-blog.php is used as the Posts page in Settings → Reading */
body.blog .zsz-arc-hero,
body.page-template-page-blog .zsz-arc-hero,
body.page-id-9 .zsz-arc-hero,
body.blog .zsz-arc-hero--pillar,
body.page-template-page-blog .zsz-arc-hero--pillar {
    display: block !important;
    width: 100% !important;
    background: var(--zsz-grad-full) !important;
    color: #fff !important;
    padding: 4.5rem 1.5rem 3.5rem !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Ensure hero inner content is visible */
body.blog .zsz-arc-hero__inner,
body.page-template-page-blog .zsz-arc-hero__inner {
    position: relative !important;
    z-index: 2 !important;
    max-width: 840px !important;
    margin: 0 auto !important;
}

/* Ensure hero title is visible */
body.blog .zsz-arc-hero__title,
body.page-template-page-blog .zsz-arc-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0.6rem 0 1rem !important;
}

/* Ensure hero description is visible */
body.blog .zsz-arc-hero__desc,
body.page-template-page-blog .zsz-arc-hero__desc {
    font-size: clamp(1rem, 2vw, 1.18rem) !important;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.65 !important;
    margin-bottom: 1rem !important;
}

/* Ensure nav pills are visible and styled */
body.blog .zsz-arc-nav,
body.page-template-page-blog .zsz-arc-nav {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 1rem !important;
}

body.blog .zsz-arc-nav__pill,
body.page-template-page-blog .zsz-arc-nav__pill {
    padding: 0.5rem 1.2rem !important;
    background: rgba(255,255,255,0.14) !important;
    border: 1.5px solid rgba(255,255,255,0.28) !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    transition: all 0.28s ease !important;
}

body.blog .zsz-arc-nav__pill:hover,
body.page-template-page-blog .zsz-arc-nav__pill:hover,
body.blog .zsz-arc-nav__pill.is-active,
body.page-template-page-blog .zsz-arc-nav__pill.is-active {
    background: rgba(255,255,255,0.28) !important;
    border-color: rgba(255,255,255,0.68) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

/* Blog wrapper - ensures proper background */
.zsz-blog-wrapper {
    width: 100%;
    background: var(--zsz-bg);
}

/* ─── 3. LAYOUT UTILITIES ─────────────────────────────────────────────────── */
.zsz-wrap {
    max-width: var(--zsz-max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}
@media (max-width: 640px) { .zsz-wrap { padding: 0 1rem; } }

.zsz-section {
    padding: 4.5rem 0;
}
.zsz-section--alt   { background: var(--zsz-bg); }
.zsz-section--white { background: var(--zsz-white); }
.zsz-section--dark  { background: linear-gradient(135deg, #1e293b, #334155); color: #fff; }

/* Section header — centred title block */
.zsz-section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}
.zsz-section-header__label {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zsz-primary);
    margin-bottom: .4rem;
}
.zsz-section-header h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--zsz-t1);
    margin-bottom: .65rem;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.zsz-section-header p {
    font-size: 1rem;
    color: var(--zsz-t2);
    line-height: 1.75;
}
.zsz-section-header--light h2,
.zsz-section-header--light p { color: #fff; }

@media (max-width: 768px) {
    .zsz-section        { padding: 3rem 0; }
    .zsz-section-header { margin-bottom: 2rem; }
}

/* Breadcrumb (shared hero style — white-on-grad) */
.zsz-breadcrumb {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    display: flex;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}
.zsz-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.zsz-breadcrumb a:hover { color: #fff; }

/* ─── 4. BUTTONS ──────────────────────────────────────────────────────────── */
.zsz-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1.55rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all var(--zsz-ease);
    cursor: pointer;
    border: none;
    line-height: 1.3;
    min-height: 44px;   /* WCAG touch target */
    white-space: nowrap;
}
.zsz-btn:focus-visible {
    outline: 3px solid var(--zsz-accent);
    outline-offset: 3px;
}
.zsz-btn--primary {
    background: var(--zsz-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,70,229,.30);
}
.zsz-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,.40);
    color: #fff;
    text-decoration: none;
}
.zsz-btn--ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
}
.zsz-btn--ghost:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
    text-decoration: none;
}
.zsz-btn--outline {
    background: transparent;
    color: var(--zsz-primary);
    border: 2px solid var(--zsz-primary);
}
.zsz-btn--outline:hover {
    background: var(--zsz-primary);
    color: #fff;
    text-decoration: none;
}
.zsz-btn--accent {
    background: var(--zsz-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.zsz-btn--accent:hover {
    background: var(--zsz-accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245,158,11,.45);
    color: #fff;
    text-decoration: none;
}
.zsz-btn--lg { padding: .9rem 2.2rem; font-size: 1rem; }
.zsz-btn--sm { padding: .45rem 1rem;  font-size: .8rem; min-height: 36px; }

/* ─── 5. CARD SHELL (shared by archive, category, CPT) ───────────────────── */
.zsz-card {
    background: var(--zsz-card);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    box-shadow: var(--zsz-sh-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--zsz-ease), box-shadow var(--zsz-ease), border-color var(--zsz-ease);
}
.zsz-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--zsz-sh-lg);
    border-color: rgba(79,70,229,.28);
}

.zsz-card__img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--zsz-grad);
    height: 180px;
}
.zsz-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--zsz-ease);
    display: block;
}
.zsz-card:hover .zsz-card__img { transform: scale(1.05); }

.zsz-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.zsz-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--zsz-border);
}
.zsz-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zsz-t1);
    margin: 0 0 .5rem;
    line-height: 1.35;
}
.zsz-card__title a { color: inherit; text-decoration: none; }
.zsz-card__title a:hover { color: var(--zsz-primary); }
.zsz-card__excerpt {
    font-size: .85rem;
    color: var(--zsz-t2);
    line-height: 1.6;
    margin-bottom: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.zsz-card__date { font-size: .7rem; color: var(--zsz-t3); }

/* Overlay badges on card images */
.zsz-badge {
    position: absolute;
    padding: .25rem .7rem;
    border-radius: 100px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(8px);
}
.zsz-badge--type  { top: 10px; left: 10px;  background: rgba(0,0,0,.55); }
.zsz-badge--stat  { bottom: 10px; left: 10px; background: rgba(0,0,0,.65); display: inline-flex; align-items: center; gap: .2rem; }
.zsz-badge--new   { top: 10px; right: 10px; background: linear-gradient(135deg, #f093fb, #f5576c); }
.zsz-badge--pop   { top: 10px; right: 10px; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.zsz-badge--feat  { top: 10px; right: 10px; background: var(--zsz-grad); }

/* Category pill */
.zsz-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--zsz-grad);
    color: #fff;
    padding: .2rem .75rem;
    border-radius: 20px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: .75rem;
    width: fit-content;
    transition: opacity var(--zsz-ease-fast);
}
.zsz-cat-pill:hover { opacity: .85; color: #fff; }

/* Read-more button (card footer) */
.zsz-read-more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--zsz-grad);
    color: #fff;
    padding: .42rem 1rem;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--zsz-ease);
}
.zsz-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79,70,229,.40);
    color: #fff;
}

/* ─── 6. GRID UTILITY ─────────────────────────────────────────────────────── */
.zsz-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 960px) { .zsz-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .zsz-grid-3 { grid-template-columns: 1fr; } }

/* ─── 7. PAGE BODY LAYOUT (content + sidebar) ─────────────────────────────── */
.zsz-page-body {
    max-width: var(--zsz-max-w-wide);
    margin: 0 auto;
    padding: 2.8rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr var(--zsz-sidebar-w);
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 1100px) {
    .zsz-page-body { grid-template-columns: 1fr; }
    .zsz-sidebar   { display: none; }
}
@media (max-width: 768px) { .zsz-page-body { padding: 1.5rem 1rem 3rem; } }

/* ─── 8. SIDEBAR ──────────────────────────────────────────────────────────── */
.zsz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}
.zsz-sb-widget {
    background: var(--zsz-white);
    border: 1.5px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
}
.zsz-sb-widget__head {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--zsz-grad);
    padding: .85rem 1.25rem;
}
.zsz-sb-widget__body { padding: 1rem 1.2rem; }

/* Sidebar search */
.zsz-sb-search {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--zsz-border);
    border-radius: 10px;
    font-size: .875rem;
    font-family: inherit;
    transition: border-color var(--zsz-ease-fast);
}
.zsz-sb-search:focus { border-color: var(--zsz-primary); outline: none; }

/* Sidebar posts list */
.zsz-sb-posts { display: flex; flex-direction: column; }
.zsz-sb-post {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem .1rem;
    border-bottom: 1px solid var(--zsz-border);
    text-decoration: none;
}
.zsz-sb-post:last-child { border-bottom: none; }
.zsz-sb-post:hover .zsz-sb-post__title { color: var(--zsz-primary); }
.zsz-sb-post__num {
    min-width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--zsz-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; flex-shrink: 0;
}
.zsz-sb-post__title {
    font-size: .845rem;
    font-weight: 600;
    color: var(--zsz-t1);
    line-height: 1.4;
    transition: color var(--zsz-ease-fast);
}
.zsz-sb-post__meta { font-size: .71rem; color: var(--zsz-t3); margin-top: .15rem; }

/* Sidebar tags */
.zsz-sb-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.zsz-sb-tag {
    display: inline-block;
    padding: .28rem .75rem;
    font-size: .73rem; font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    background: #f1f5f9;
    border: 1px solid var(--zsz-border);
    color: var(--zsz-t2);
    transition: all .2s ease;
}
.zsz-sb-tag:hover {
    background: var(--zsz-primary);
    color: #fff;
    border-color: var(--zsz-primary);
    transform: translateY(-1px);
}

/* Sidebar categories */
.zsz-sb-cats { list-style: none; margin: 0; padding: 0; }
.zsz-sb-cats li { border-bottom: 1px solid var(--zsz-border); }
.zsz-sb-cats li:last-child { border-bottom: none; }
.zsz-sb-cats a {
    display: flex; justify-content: space-between;
    padding: .6rem .1rem;
    text-decoration: none; color: var(--zsz-t2);
    transition: color var(--zsz-ease-fast);
}
.zsz-sb-cats a:hover { color: var(--zsz-primary); }
.zsz-sb-cat-count {
    background: rgba(79,70,229,.10);
    color: var(--zsz-primary);
    border-radius: 100px;
    font-size: .68rem; font-weight: 700;
    padding: .1rem .5rem;
}

/* Sidebar CTA block */
.zsz-sb-cta {
    background: var(--zsz-grad-full);
    border-radius: var(--zsz-r-lg);
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}
.zsz-sb-cta__icon { font-size: 2.2rem; display: block; margin-bottom: .6rem; }
.zsz-sb-cta h4   { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; color: #fff; }
.zsz-sb-cta p    { font-size: .81rem; opacity: .88; margin-bottom: 1.1rem; color: #fff; }
.zsz-sb-cta__btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    background: #fff;
    color: var(--zsz-secondary);
    border-radius: 50px;
    font-size: .83rem; font-weight: 700;
    text-decoration: none;
    transition: all var(--zsz-ease);
}
.zsz-sb-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--zsz-sh-md);
    color: var(--zsz-secondary);
}

/* ─── 9. PAGINATION ───────────────────────────────────────────────────────── */
.zsz-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.zsz-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; height: 44px;
    padding: 0 .75rem;
    border-radius: 12px;
    font-size: .875rem; font-weight: 600;
    color: var(--zsz-t2);
    background: var(--zsz-white);
    border: 1.5px solid var(--zsz-border);
    text-decoration: none;
    transition: all var(--zsz-ease);
}
.zsz-pagination .page-numbers.current {
    background: var(--zsz-grad);
    color: #fff;
    border-color: transparent;
}
.zsz-pagination .page-numbers:hover {
    border-color: var(--zsz-primary);
    color: var(--zsz-primary);
}
.zsz-pagination .page-numbers:focus-visible {
    outline: 2px solid var(--zsz-accent);
    outline-offset: 2px;
}


/* Blog wrapper - simple container for blog template */
.zsz-blog-wrapper {
    width: 100%;
    background: var(--zsz-bg);
}

/* Fix for cards not displaying - add these */
.zsz-arc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 960px) {
    .zsz-arc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .zsz-arc-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure cards are visible */
.zsz-card {
    background: var(--zsz-white);
    border: 1px solid var(--zsz-border);
    border-radius: var(--zsz-r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zsz-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zsz-sh-md);
}

.zsz-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--zsz-grad);
    height: 200px;
    flex-shrink: 0;
}

.zsz-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zsz-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zsz-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.zsz-card__title a {
    color: var(--zsz-t1);
    text-decoration: none;
}

.zsz-card__title a:hover {
    color: var(--zsz-primary);
}

.zsz-card__excerpt {
    font-size: 0.85rem;
    color: var(--zsz-t2);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zsz-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--zsz-border);
}

.zsz-card__date {
    font-size: 0.7rem;
    color: var(--zsz-t3);
}

.zsz-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--zsz-grad);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.zsz-read-more:hover {
    transform: translateY(-2px);
    color: white;
}

.zsz-cat-pill {
    display: inline-flex;
    align-items: center;
    background: var(--zsz-grad);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.zsz-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: white;
    backdrop-filter: blur(4px);
}

.zsz-arc-empty {
    text-align: center;
    padding: 3rem;
    background: var(--zsz-white);
    border-radius: var(--zsz-r-lg);
    border: 1px dashed var(--zsz-border);
}

.zsz-arc-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.zsz-arc-empty__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--zsz-t1);
}

.zsz-arc-empty__text {
    color: var(--zsz-t3);
    margin-bottom: 1.5rem;
}

/* ─── 10. FOOTER (UPDATED) ───────────────────────────────────────────────── */
.zensleep-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #cbd5e0;
    padding: 3rem 0 1.5rem;
    margin-top: 0rem;
    position: relative;
    overflow: hidden;
}

.zensleep-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--zsz-grad-full);
}

.zensleep-footer-container {
    max-width: var(--zsz-max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.zensleep-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.zensleep-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zensleep-footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--zsz-grad-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zensleep-footer-tagline {
    color: #a0aec0;
    font-size: .95rem;
    line-height: 1.65;
    max-width: 400px;
}

.zensleep-footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.zensleep-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.10);
    border-radius: 50%;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--zsz-ease);
}

.zensleep-social-link:hover {
    background: var(--zsz-grad);
    color: #fff;
    transform: translateY(-3px);
}

.zensleep-footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zensleep-footer-links h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .35rem;
}

.zensleep-footer-nav {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.zensleep-footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: .9rem;
    display: inline-block;
    transition: all var(--zsz-ease);
}

.zensleep-footer-link:hover {
    color: var(--zsz-primary);
    transform: translateX(4px);
}

.zensleep-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.zensleep-footer-copyright {
    color: #718096;
    font-size: .85rem;
}

.zensleep-footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.zensleep-footer-legal a {
    color: #718096;
    text-decoration: none;
    font-size: .85rem;
    transition: color var(--zsz-ease);
}

.zensleep-footer-legal a:hover {
    color: var(--zsz-primary);
}

@media (max-width: 768px) {
    .zensleep-footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .zensleep-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .zensleep-footer-legal {
        justify-content: center;
    }
}
/* ─── 11. SCROLL ANIMATION UTILITY ───────────────────────────────────────── */
.zsz-anim-entry {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .5s ease, transform .5s ease;
}
.zsz-anim-entry.zsz-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger helpers */
.zsz-anim-entry:nth-child(1) { transition-delay: .00s; }
.zsz-anim-entry:nth-child(2) { transition-delay: .08s; }
.zsz-anim-entry:nth-child(3) { transition-delay: .16s; }
.zsz-anim-entry:nth-child(4) { transition-delay: .24s; }
.zsz-anim-entry:nth-child(5) { transition-delay: .32s; }
.zsz-anim-entry:nth-child(6) { transition-delay: .40s; }

/* ─── 12. ACCESSIBILITY ───────────────────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--zsz-accent);
    outline-offset: 3px;
}

/* ─── 13. PRINT ───────────────────────────────────────────────────────────── */
@media print {
    .zsz-sidebar, .zensleep-footer, .zsz-pagination { display: none !important; }
    .zsz-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
