/*
Theme Name: Cornerstone Community Theme v2
Theme URI: https://christthecornerstonecommunity.org
Author: Cornerstone Community
Description: A modern, professional WordPress theme for Cornerstone Community — featuring a cinematic hero, glass-morphism navigation, scroll-reveal animations, and card-based layouts.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cornerstone-community
Tags: community, blog, modern, responsive
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    /* Palette */
    --color-primary:       #16213e;
    --color-primary-dark:  #0f1729;
    --color-accent:        #c8a951;
    --color-accent-hover:  #b8963f;
    --color-accent-light:  rgba(200, 169, 81, 0.12);
    --color-text:          #1d1d1f;
    --color-text-muted:    #6b6b6b;
    --color-text-light:    #ffffff;
    --color-bg:            #f8f7f4;
    --color-surface:       #ffffff;
    --color-border:        #eae8e4;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Depth */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);

    /* Shape */
    --radius:     16px;
    --radius-sm:  8px;

    /* Motion */
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s var(--ease);

    /* Layout */
    --container:  1200px;
    --header-h:   72px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

::selection {
    background: var(--color-accent);
    color: var(--color-text-light);
}


/* ============================================================
   UTILITIES
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}


/* ============================================================
   HEADER — fixed, glass-morphism on scroll
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--transition),
                box-shadow var(--transition),
                height var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-sm);
    height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 101;
}

.brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: filter var(--transition);
}

.brand-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.site-header.scrolled .brand-name {
    color: var(--color-text);
}

.site-header.scrolled .brand-icon {
    filter: brightness(0);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-list a {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
    text-decoration: none;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list .current-menu-item > a::after {
    width: 100%;
}

.site-header.scrolled .nav-list a {
    color: var(--color-text);
}


/* ============================================================
   HAMBURGER TOGGLE (mobile)
   ============================================================ */

.menu-toggle {
    display: none;
    width: 28px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.hamburger-box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger-line,
.hamburger-line::before,
.hamburger-line::after {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s var(--ease),
                opacity 0.3s var(--ease),
                background 0.3s var(--ease);
}

.hamburger-line {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-line::before {
    content: '';
    top: -8px;
}
.hamburger-line::after {
    content: '';
    top: 8px;
}

.site-header.scrolled .hamburger-line,
.site-header.scrolled .hamburger-line::before,
.site-header.scrolled .hamburger-line::after {
    background: var(--color-text);
}

/* Open state */
.menu-toggle[aria-expanded="true"] .hamburger-line {
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger-line::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-text-light);
}
.menu-toggle[aria-expanded="true"] .hamburger-line::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--color-text-light);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 41, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
        z-index: 99;
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .primary-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav .nav-list li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    }

    .primary-nav.open .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .primary-nav.open .nav-list li:nth-child(1) { transition-delay: 0.08s; }
    .primary-nav.open .nav-list li:nth-child(2) { transition-delay: 0.14s; }
    .primary-nav.open .nav-list li:nth-child(3) { transition-delay: 0.20s; }
    .primary-nav.open .nav-list li:nth-child(4) { transition-delay: 0.26s; }
    .primary-nav.open .nav-list li:nth-child(5) { transition-delay: 0.32s; }
    .primary-nav.open .nav-list li:nth-child(6) { transition-delay: 0.38s; }

    .primary-nav .nav-list a {
        font-family: var(--font-heading);
        font-size: 1.75rem;
        font-weight: 400;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--color-text-light);
        display: block;
        padding: 0.75rem 0;
    }

    .primary-nav .nav-list a::after {
        display: none;
    }

    .site-header.scrolled .hamburger-line::before,
    .site-header.scrolled .hamburger-line::after {
        background: var(--color-text);
    }

    .menu-toggle[aria-expanded="true"] .hamburger-line::before,
    .menu-toggle[aria-expanded="true"] .hamburger-line::after {
        background: var(--color-text-light) !important;
    }
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 41, 0.25) 0%,
        rgba(15, 23, 41, 0.45) 40%,
        rgba(15, 23, 41, 0.75) 80%,
        rgba(15, 23, 41, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-light);
    padding: 0 2rem;
    max-width: 800px;
}

.hero-label {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.3s var(--ease) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s 0.5s var(--ease) forwards;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 0.75s var(--ease) forwards;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2.5s infinite var(--ease);
    transition: opacity var(--transition);
    padding: 0.5rem;
}

.scroll-indicator:hover {
    color: var(--color-accent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}


/* ============================================================
   MAIN — spacing for fixed header
   ============================================================ */

main {
    position: relative;
}

body:not(.has-hero) main {
    padding-top: var(--header-h);
}


/* ============================================================
   PAGE HEADER (non-hero pages)
   ============================================================ */

.page-header {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
    text-align: center;
}

body:not(.has-hero) .page-header {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
}

.single-meta {
    justify-content: center;
    margin-bottom: 1rem;
}


/* ============================================================
   SCRIPTURE SECTION
   ============================================================ */

.scripture-section {
    background: var(--color-primary);
    padding: clamp(4rem, 10vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.scripture-section::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: clamp(10rem, 20vw, 18rem);
    color: rgba(200, 169, 81, 0.06);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.scripture-inner {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.scripture-inner blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.scripture-inner blockquote strong {
    color: var(--color-accent);
    font-weight: 700;
    font-style: italic;
}

.scripture-inner cite {
    display: block;
    margin-top: 2rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
}


/* ============================================================
   PILLARS SECTION
   ============================================================ */

.pillars-section {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: var(--color-surface);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-text);
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-border);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    box-shadow: 0 4px 16px rgba(200, 169, 81, 0.3);
}

.pillar-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--color-text-light);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.pillar-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}


/* ============================================================
   BLOG SECTION & POST CARDS
   ============================================================ */

.blog-section {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.meta-dot {
    opacity: 0.4;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.post-card-title a {
    color: var(--color-text);
    transition: color var(--transition);
}

.post-card-title a:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.post-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-hover);
    transition: gap var(--transition), color var(--transition);
}

.read-more::after {
    content: '\2192';
    font-size: 1.1em;
    transition: transform var(--transition);
}

.read-more:hover {
    color: var(--color-accent);
    gap: 0.7rem;
    text-decoration: none;
}

.no-posts {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    padding: 4rem 0;
}

.posts-navigation {
    margin-top: 3rem;
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.posts-navigation a {
    font-weight: 600;
    color: var(--color-accent-hover);
    transition: color var(--transition);
}

.posts-navigation a:hover {
    color: var(--color-accent);
    text-decoration: none;
}


/* ============================================================
   CONTENT LAYOUT — sidebars
   ============================================================ */

.content-sidebar-wrap {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.content-sidebar-wrap .main-content {
    flex: 1;
    min-width: 0;
}

.content-sidebar-wrap .sidebar {
    flex: 0 0 260px;
    max-width: 260px;
}

.sidebar-left {
    order: -1;
}

.sidebar .widget {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

.sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent-light);
}

@media (max-width: 900px) {
    .content-sidebar-wrap {
        flex-direction: column;
    }
    .content-sidebar-wrap .sidebar {
        max-width: 100%;
        flex: auto;
        order: 0;
    }
}


/* ============================================================
   SINGLE & PAGE CONTENT
   ============================================================ */

.single-content,
.page-content {
    max-width: 740px;
    margin: 0 auto;
}

.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.entry-content a {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

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

.entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-muted);
    background: var(--color-accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content img {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}

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

.entry-content li {
    margin-bottom: 0.4rem;
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.entry-tags .tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    background: var(--color-accent-light);
    color: var(--color-accent-hover);
    border-radius: 100px;
    transition: background var(--transition), color var(--transition);
}

.entry-tags .tag:hover {
    background: var(--color-accent);
    color: var(--color-text-light);
    text-decoration: none;
}


/* ============================================================
   READING PROGRESS BAR (single posts)
   ============================================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    z-index: 200;
    transition: none;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.65);
    padding-top: clamp(3rem, 8vw, 5rem);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.footer-about p {
    max-width: 340px;
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-bottom {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition),
                visibility var(--transition),
                transform var(--transition),
                background var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease),
                transform 0.7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-label,
    .hero-title,
    .hero-subtitle {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .scroll-indicator {
        animation: none;
    }
}


/* ============================================================
   WORDPRESS DEFAULTS
   ============================================================ */

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

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

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

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gallery img {
    border-radius: var(--radius-sm);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    z-index: 200;
}


/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
}
