/*
Theme Name: The Oak Theme
Theme URI: https://theoakproject.com
Author: Joss
Description: Custom theme for The Oak Project.
Version: 1.0.0
Text Domain: the-oak-theme
*/

:root {
    /* Bell Inn Bath-inspired colour scheme */
    --primary-dark: #1a1a1e;       /* Header/nav background - near-black charcoal */
    --secondary-dark: #2a2a30;     /* Slightly lighter dark for hover/depth */
    --accent-gold: #c9942a;        /* Active/hover gold accent */
    --accent-gold-hover: #a87820; /* Darker gold for hover states */
    --bg-stone: #eeece7;           /* Main page background - warm stone */
    --bg-white: #ffffff;           /* Card backgrounds */
    --text-dark: #1a1a1e;          /* Primary text - near black */
    --text-mid: #4a4a4a;           /* Body text */
    --text-light: #f5f4f1;         /* Light text on dark backgrounds */
    --border-gold: #c9942a;        /* Gold border colour */

    --font-heading: 'Playfair Display', serif;  /* Elegant serif like Bell Inn */
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-stone);
    color: var(--text-mid);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-top: 0;
}

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

/* =========================================
   Buttons & CTAs
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #fff;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

/* =========================================
   Top Info Bar (Bell Inn Bath style)
   ========================================= */
.site-top-bar {
    background-color: #111114;
    color: rgba(245, 244, 241, 0.65);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    padding: 7px 0;
    border-bottom: 1px solid rgba(201, 148, 42, 0.25);
}

.site-top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-top-bar a {
    color: rgba(245, 244, 241, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.site-top-bar a:hover {
    color: var(--accent-gold);
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================
   Header & Nav — floats over the hero image
   ========================================= */
.site-header {
    background-color: rgba(10, 10, 14, 0.55);
    color: var(--text-light);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Gold border box — the key visual effect */
    border: 2px solid var(--accent-gold);
    margin: 16px 24px;
    width: calc(100% - 48px);
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
    transition: background-color 0.3s;
}

/* When scrolled out of the hero, header becomes solid dark sticky */
.site-header.scrolled {
    position: fixed;
    margin: 0;
    width: 100%;
    background-color: var(--primary-dark);
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 2px solid var(--accent-gold);
    backdrop-filter: none;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.site-title {
    margin: 0;
    font-size: 1.7rem;
    font-family: var(--font-heading);
}

.site-title a {
    color: var(--text-light);
    text-decoration: none;
    font-style: italic;
    letter-spacing: 0.02em;
}

.site-title a:hover {
    color: var(--accent-gold);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    display: block;
    transition: color 0.25s;
}

.main-navigation {
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .nav-active > a {
    color: var(--accent-gold);
}

/* Magic Line Indicator */
.nav-line {
    position: absolute;
    bottom: -6px; /* Adjust this to sit right under the text */
    left: 0;
    height: 2px;
    background-color: var(--accent-gold);
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 2px;
}

/* Hide magic line on mobile since nav becomes vertical */
@media (max-width: 768px) {
    .nav-line { display: none !important; }
}

/* Separator dots between nav items */
.main-navigation li + li::before {
    content: '•';
    color: rgba(201, 148, 42, 0.4);
    font-size: 0.7rem;
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-cta a {
    background-color: var(--accent-gold) !important;
    padding: 8px 18px;
    color: #fff !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    transition: background-color 0.25s;
}

.nav-cta a:hover {
    background-color: var(--accent-gold-hover) !important;
    color: #fff !important;
}

.main-navigation li.nav-cta + li::before {
    display: none;
}

/* =========================================
   Front Page: Hero Section
   ========================================= */

/* Wrapper provides positioning context for the absolute header */
.hero-wrapper {
    position: relative;
}

.hero-section {
    position: relative;
    background-color: #1a1a1e; /* Fallback */
    background-size: cover;
    background-position: center top;
    color: #fff;
    /* Tall enough to show image above and behind the nav box */
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Softer overlay - B&W feel like Bell Inn Bath */
    background: rgba(10, 10, 14, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Large italic serif heading - Bell Inn Bath style */
.hero-content h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 32px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
    letter-spacing: -0.01em;
}

/* Gold divider line under hero title */
.hero-content h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: 20px auto 0;
}

/* Override plugin countdown colors for the hero */
.hero-content .oak-campaign-status {
    background: rgba(0,0,0,0.4);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Keep countdown horizontal on all screen sizes — just scale it down */
@media (max-width: 600px) {
    .oak-countdown-wrapper {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    .oak-countdown-item {
        min-width: 0 !important;
        flex: 1;
        padding: 10px 6px !important;
        border-radius: 8px !important;
    }
    .oak-countdown-value {
        font-size: 1.4rem !important;
        margin-bottom: 4px !important;
    }
    .oak-countdown-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }
    .oak-campaign-status {
        padding: 20px 12px !important;
        border-radius: 10px !important;
    }
}

/* =========================================
   Front Page: Vision Section
   ========================================= */
.vision-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 24px;
}

.vision-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Bold uppercase section heading - Bell Inn Bath style */
.vision-header h2 {
    font-family: var(--font-body);
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--text-dark);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.vision-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
}

.vision-card h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* =========================================
   Team Photo Carousel
   ========================================= */
.oak-team-section {
    background-color: var(--primary-dark);
    padding: 70px 0 60px;
}

.oak-team-section-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px;
}

.oak-team-section-header h2 {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.oak-team-divider {
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
    margin: 0 auto;
}

.oak-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 64px; /* space for prev/next buttons */
}

.oak-carousel-track-wrap {
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.oak-carousel-track {
    position: relative;
}

.oak-carousel-slide {
    display: none;
    animation: oakFadeIn 0.5s ease;
}

.oak-carousel-slide.is-active {
    display: block;
}

@keyframes oakFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

.oak-carousel-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.oak-carousel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.oak-carousel-slide.is-active:hover .oak-carousel-img-wrap img {
    transform: scale(1.03);
}

.oak-carousel-caption {
    background: rgba(10, 10, 14, 0.85);
    border-top: 2px solid var(--accent-gold);
    padding: 18px 24px;
    text-align: center;
}

.oak-carousel-caption-title {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    margin: 0 0 4px;
}

.oak-carousel-caption-sub {
    color: rgba(245, 244, 241, 0.6);
    font-size: 0.85rem;
    margin: 0;
    font-family: var(--font-body);
}

/* Prev / Next buttons */
.oak-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-gold);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10;
    padding: 0;
}

.oak-carousel-btn:hover {
    background: var(--accent-gold-hover);
}

.oak-carousel-prev { left: 0; }
.oak-carousel-next { right: 0; }

/* Dot indicators */
.oak-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.oak-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(201, 148, 42, 0.3);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.oak-carousel-dot.is-active,
.oak-carousel-dot:hover {
    background: var(--accent-gold);
}

/* Admin empty-state notice */
.oak-carousel-empty {
    background: #fffbe6;
    border: 1px dashed #c9942a;
    padding: 20px;
    text-align: center;
    color: #5a4a00;
    max-width: 700px;
    margin: 40px auto;
}

@media (max-width: 700px) {
    .oak-carousel { padding: 0 44px; }
    .oak-carousel-btn { width: 36px; height: 36px; font-size: 1.4rem; }
}


/* =========================================
   Acorn Guild Override (Chalkboard)
   ========================================= */
.guild-section {
    padding: 70px 24px;
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.guild-section h2 {
    color: var(--text-light);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 40px;
}

/* Override plugin styles for the tiers */
.guild-section .acorn-tier-card {
    background: var(--secondary-dark);
    border: 1px solid rgba(201, 148, 42, 0.3);
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    color: #eee;
    border-radius: 0;
}

.guild-section .acorn-tier-card h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
    border-bottom: 1px solid rgba(201, 148, 42, 0.25);
    padding-bottom: 12px;
}

.guild-section .acorn-tier-price {
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-weight: 700;
}

.guild-section .acorn-tier-benefits li {
    color: #bbb;
    border-bottom-color: rgba(255,255,255,0.08);
}

.guild-section .acorn-tier-action .btn {
    background: var(--accent-gold);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    border-radius: 0;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.25s;
}

.guild-section .acorn-tier-action .btn:hover {
    background: var(--accent-gold-hover);
}

/* =========================================
   Memories Archive — dark body top so nav
   box and page header share one dark field
   ========================================= */
body.post-type-archive-memory {
    background-color: var(--primary-dark);
}

/* Restore stone background for the content sections below */
body.post-type-archive-memory .memories-archive {
    background-color: var(--bg-stone);
}

body.post-type-archive-memory .memory-submission-section {
    background-color: var(--bg-stone);
}

/* Footer should also stay stone */
body.post-type-archive-memory .site-footer {
    background-color: var(--primary-dark);
}

/* Standard pages: same dark/stone pattern as memories */
body.page {
    background-color: var(--primary-dark);
}

/* Content area gets the stone background so it reads cleanly */
body.page .page-content-wrap {
    background-color: var(--bg-stone);
}


/* =========================================
   Memories Page — Header
   ========================================= */
.memories-page-header {
    background-color: transparent; /* inherits dark from body */
    text-align: center;
    padding: 70px 24px 60px;
}

.memories-page-header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.memories-page-header h1 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.memories-page-header p {
    color: rgba(245, 244, 241, 0.7);
    font-size: 1.05rem;
    margin: 0 0 28px;
}

.memories-share-btn {
    display: inline-block;
    font-size: 0.9rem;
    padding: 12px 28px;
    margin-top: 28px;
}

/* Inner-page nav — gold border box matching homepage style */
.site-header--sticky {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 1000;
    margin: 16px 24px !important;
    width: calc(100% - 48px) !important;
    box-sizing: border-box !important;
    background-color: var(--primary-dark) !important;
    border: 2px solid var(--accent-gold) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* =========================================
   Memories Page — Submission Form Section
   ========================================= */
.memory-submission-section {
    background-color: var(--bg-stone);
    border-bottom: 1px solid rgba(201, 148, 42, 0.2);
    padding: 50px 24px;
}

.memory-submission-inner {
    max-width: 800px;
    margin: 0 auto;
}

.memory-submission-header {
    text-align: center;
    margin-bottom: 32px;
}

.memory-submission-header h2 {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.memory-submission-header p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* =========================================
   Memories Page — Empty State
   ========================================= */
.memories-empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.memories-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.memories-empty-state h2 {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.memories-empty-state p {
    color: var(--text-mid);
    font-size: 1rem;
}

/* =========================================
   Archive Memories (Noticeboard)
   ========================================= */
.memories-archive {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}


.noticeboard-grid {
    column-count: 3;
    column-gap: 30px;
    margin-top: 40px;
}

.polaroid-card {
    background: #fff;
    padding: 15px 15px 40px 15px;
    border: 1px solid #ddd;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    break-inside: avoid;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s;
    z-index: 1;
}

.polaroid-card:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid-card:nth-child(3n) {
    transform: rotate(-2deg);
}

.polaroid-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 4px 8px 24px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Pin effect */
.polaroid-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #cc0000;
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 1px 2px 2px rgba(0,0,0,0.2);
    z-index: 2;
}

.polaroid-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
    background: #eee; /* Fallback if no image */
}

.polaroid-content h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.polaroid-card-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.polaroid-card-link:hover {
    color: var(--accent-gold);
}

.polaroid-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.polaroid-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.polaroid-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.polaroid-read-more:hover {
    color: var(--accent-gold-hover);
}

@media (max-width: 900px) {
    .noticeboard-grid {
        column-count: 2;
    }
}

/* =========================================
   Hamburger / Mobile Nav
   ========================================= */

/* Hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .site-top-bar { display: none; }

    /* Show hamburger, hide nav by default */
    .nav-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    /* When open — drop nav below the header row */
    .site-header.nav-open .main-navigation,
    .site-header--sticky.nav-open .main-navigation {
        display: block;
    }

    .site-header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(201, 148, 42, 0.3);
        margin-top: 8px;
    }

    .main-navigation li + li::before { display: none; }

    .main-navigation a {
        font-size: 0.9rem;
        padding: 10px 0;
        text-align: center;
    }

    .nav-cta a {
        margin: 6px auto !important;
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.2rem; }
    .noticeboard-grid { column-count: 1; }
}


/* =========================================
   Blog Archive — dark body top (like memories)
   ========================================= */
body.blog,
body.archive.category,
body.archive.tag {
    background-color: var(--primary-dark);
}

body.blog .blog-archive,
body.archive .blog-archive {
    background-color: var(--bg-stone);
}

/* =========================================
   Blog Archive — Page Header
   ========================================= */
.blog-page-header {
    background-color: transparent;
    text-align: center;
    padding: 70px 24px 60px;
}

.blog-page-header-inner {
    max-width: 800px;
    margin: 0 auto;
}

.blog-page-header h1 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.blog-page-header p {
    color: rgba(245, 244, 241, 0.7);
    font-size: 1.05rem;
    margin: 0;
}

/* =========================================
   Blog Archive — Card Grid
   ========================================= */
.blog-archive {
    padding: 60px 0 80px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

/* Blog card */
.blog-card {
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--secondary-dark);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.blog-card-image--empty {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a30 100%);
}

.blog-card-image-link {
    display: block;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category badges */
.blog-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.blog-card-cat {
    display: inline-block;
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.blog-card-cat:hover {
    background: var(--accent-gold-hover);
}

/* Card title */
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--accent-gold);
}

/* Card meta */
.blog-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.blog-card-meta-sep { opacity: 0.5; }

/* Excerpt */
.blog-card-excerpt {
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card-excerpt p { margin: 0; }

/* Read more link */
.blog-card-read-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    margin-top: auto;
}

.blog-card-read-more:hover { color: var(--accent-gold-hover); }

/* Pagination */
.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--accent-gold);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--accent-gold);
    color: #fff;
}

/* Blog empty state */
.blog-empty {
    text-align: center;
    padding: 80px 24px;
}
.blog-empty-icon { font-size: 3rem; margin-bottom: 20px; opacity: 0.5; }
.blog-empty h2 { font-family: var(--font-heading); font-style: italic; color: var(--text-dark); font-size: 1.8rem; margin-bottom: 12px; }
.blog-empty p { color: var(--text-mid); }

/* =========================================
   Static Pages (page.php)
   ========================================= */

/* Hero — with featured image */
.page-hero {
    position: relative;
    background-color: var(--primary-dark);
}

.page-hero--image {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,14,0.2) 0%,
        rgba(10,10,14,0.75) 100%
    );
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.page-hero--plain .page-hero-inner {
    padding: 80px 40px 60px;
}

.page-hero-title {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Page content area */
.page-content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 40px 100px;
}

@media (max-width: 768px) {
    .page-content-wrap { padding: 48px 24px 80px; }
    .page-hero-inner { padding: 48px 24px; }
}

/* Rich typography for page body */
.page-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3a3228;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.25;
    margin: 2em 0 0.6em;
}

.page-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.page-content h4 { font-size: 1.15rem; }

.page-content p { margin: 0 0 1.4em; }

.page-content a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.page-content a:hover { opacity: 0.75; }

.page-content ul,
.page-content ol {
    margin: 0 0 1.4em 1.4em;
    padding: 0;
}
.page-content li { margin-bottom: 0.5em; }

.page-content blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid var(--accent-gold);
    background: rgba(201, 148, 42, 0.06);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
}
.page-content blockquote p { margin: 0; }

.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 4px;
}

.page-content figure { margin: 2em 0; }
.page-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-top: 8px;
    opacity: 0.7;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95rem;
}
.page-content th {
    background: rgba(201, 148, 42, 0.15);
    color: var(--accent-gold);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent-gold);
}
.page-content td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-mid);
}
.page-content tr:last-child td { border-bottom: none; }

.page-content hr {
    border: none;
    border-top: 1px solid rgba(201, 148, 42, 0.25);
    margin: 3em 0;
}

/* Gutenberg wide / full alignment overrides */
.page-content .wp-block-image.alignwide,
.page-content .alignwide {
    max-width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
}
@media (max-width: 768px) {
    .page-content .alignwide { margin-left: -24px; margin-right: -24px; max-width: calc(100% + 48px); }
}

/* =========================================
   Single Post — Shared Hero Base
   ========================================= */
.single-post-hero {
    background-color: var(--primary-dark);
    position: relative;
}

.single-post-cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.single-post-title {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 20px;
}

.single-post-meta {
    color: rgba(245, 244, 241, 0.65);
    font-size: 0.88rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* =========================================
   Mode 1 — Landscape: full-bleed tall hero
   ========================================= */
.single-post-hero--landscape {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,14,0.2) 0%,
        rgba(10,10,14,0.5) 50%,
        rgba(10,10,14,0.88) 100%
    );
}

.single-post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
    width: 100%;
}

/* =========================================
   Mode 2 — Portrait/Square: magazine split
   ========================================= */
.single-post-hero--split {
    overflow: hidden;
}

.single-post-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
}

.single-post-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
    text-align: left;
}

.single-post-split-text .single-post-cats {
    justify-content: flex-start;
}

.single-post-split-text .single-post-meta {
    justify-content: flex-start;
}

.single-post-split-image {
    overflow: hidden;
    position: relative;
}

.single-post-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .single-post-split-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .single-post-split-text {
        padding: 48px 24px 32px;
        text-align: center;
        order: 2;
    }
    .single-post-split-text .single-post-cats,
    .single-post-split-text .single-post-meta { justify-content: center; }
    .single-post-split-image {
        order: 1;
        max-height: 320px;
    }
}

/* =========================================
   Mode 3 — No image: plain centred header
   ========================================= */
.single-post-hero--no-image .single-post-hero-inner {
    padding: 90px 24px 70px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

/* =========================================
   Single Post — Body & Footer
   ========================================= */
.single-post-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-mid);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: var(--text-dark);
    margin-top: 2em;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

.single-post-content a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--text-dark);
}

/* Post footer */
.single-post-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 148, 42, 0.25);
}

.single-post-tags {
    margin-bottom: 32px;
    font-size: 0.88rem;
    color: #888;
}

.single-post-tags a {
    color: var(--accent-gold);
    text-decoration: none;
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.single-post-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 48%;
    transition: color 0.2s;
}

.single-post-nav-link:hover { color: var(--accent-gold); }
.single-post-nav-link--next { margin-left: auto; text-align: right; }

.single-post-nav-link .nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.single-post-nav-link small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-arrow { font-size: 1.2rem; color: var(--accent-gold); flex-shrink: 0; }

.single-post-back { margin-top: 16px; }
