/*
Theme Name: CAnderson
Theme URI: https://example.com/canderson
Author: CAnderson
Author URI: https://example.com
Description: A refined theme for a poet and corporate workshop facilitator. Features Special Elite typography, parallax hero sections, and a clean professional aesthetic.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canderson
Tags: blog, portfolio, one-column, two-columns, custom-background, custom-header, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --color-bg:          #FAFAF8;
    --color-white:       #FFFFFF;
    --color-dark:        #1A1A1A;
    --color-text:        #333333;
    --color-muted:       #6B6B6B;
    --color-accent:      #7A5C2E;
    --color-accent-light:#C9A96E;
    --color-light-gray:  #F0EEEA;
    --color-border:      #E0DDD8;
    --color-gold:        #B8963E;

    --font-primary:      'Special Elite', Georgia, serif;
    --font-body:         Georgia, 'Times New Roman', serif;
    --font-sans:         'Helvetica Neue', Helvetica, Arial, sans-serif;

    --max-width:         1140px;
    --section-pad:       80px;
    --nav-height:        80px;

    --transition:        0.3s ease;
    --shadow-sm:         0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:         0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:         0 8px 40px rgba(0,0,0,0.14);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-dark); }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25em;
    max-width: 70ch;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-muted);
}

blockquote {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent-light);
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.container--narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: var(--section-pad) 0;
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-light-gray);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section--light {
    background-color: var(--color-light-gray);
}

.section--accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.section--accent h1,
.section--accent h2,
.section--accent h3 {
    color: var(--color-white);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

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

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 12px;
}

.section-header__title {
    margin-bottom: 16px;
}

.section-header__rule {
    width: 48px;
    height: 2px;
    background: var(--color-accent-light);
    margin: 20px auto 24px;
}

.section-header__desc {
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-muted);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 34px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: transparent;
    color: var(--color-accent);
}

.btn--outline {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}
.btn--outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================
   SITE HEADER / NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-transparent {
    background: transparent;
}

.site-header.is-scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.site-logo {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--color-dark);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color var(--transition);
}

.site-header.is-transparent .site-logo {
    color: var(--color-white);
}

.site-header.is-scrolled .site-logo {
    color: var(--color-dark);
}

.site-logo span {
    color: var(--color-gold);
}

/* Primary navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.primary-nav__item { position: relative; }

.primary-nav__link {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 18px;
    display: block;
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.primary-nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.primary-nav__link:hover::after,
.primary-nav__link.current-menu-item::after {
    transform: scaleX(1);
}

.site-header.is-transparent .primary-nav__link {
    color: rgba(255,255,255,0.9);
}

.site-header.is-transparent .primary-nav__link::after {
    background: var(--color-white);
}

.site-header.is-scrolled .primary-nav__link {
    color: var(--color-dark);
}

.nav-cta {
    margin-left: 20px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all var(--transition);
}

.site-header.is-transparent .nav-toggle__bar {
    background: var(--color-white);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px 30px 30px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open { display: block; }

.mobile-nav__list {
    list-style: none;
}

.mobile-nav__link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark);
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

@media (max-width: 900px) {
    .primary-nav, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* =========================================
   PARALLAX HERO
   ========================================= */
.parallax-hero {
    position: relative;
    /* 100dvh = true full viewport on mobile (no browser-chrome gap).
       Falls back to 100vh on older browsers. */
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;       /* clips the oversized bg layer */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtract the WP admin bar so the hero still fills exactly one screen */
body.admin-bar .parallax-hero {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}
@media (max-width: 782px) {
    body.admin-bar .parallax-hero {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

.parallax-hero--short {
    height: 55vh;
    height: 55dvh;
    min-height: 360px;
}
body.admin-bar .parallax-hero--short {
    height: calc(55vh - 32px);
    height: calc(55dvh - 32px);
}

.parallax-hero__bg {
    /*
     * HOW PARALLAX WORKS HERE:
     * The element is intentionally oversized (top:-50% bottom:-50% = 200%
     * of container height). JavaScript shifts it upward via translateY at a
     * fraction of the scroll speed so it moves slower than the page content.
     * overflow:hidden on the parent clips the oversized element cleanly.
     * NO background-attachment:fixed — that makes it completely static.
     */
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    bottom: -50%;
    background-size: cover;
    background-position: center center;
    will-change: transform;
    transform: translateY(0);
}

.parallax-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.70) 0%,
        rgba(20,16,12,0.50) 55%,
        rgba(0,0,0,0.35) 100%
    );
}

.parallax-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    max-width: 900px;
    /* Ensure content clears the fixed nav on all screen sizes */
    margin-top: var(--nav-height);
}

.parallax-hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    display: block;
    margin-bottom: 20px;
}

.parallax-hero__title {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.parallax-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.parallax-hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.parallax-hero__scroll svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255,255,255,0.6);
}

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

/* =========================================
   INTRO / ABOUT STRIP
   ========================================= */
.intro-strip {
    padding: 70px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.intro-strip__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-strip__image {
    flex: 0 0 320px;
    max-width: 320px;
}

.intro-strip__image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(20%);
}

.intro-strip__content { flex: 1; }

.intro-strip__quote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .intro-strip__inner { flex-direction: column; gap: 30px; }
    .intro-strip__image { flex: none; max-width: 100%; }
}

/* =========================================
   POETRY CARDS
   ========================================= */
.poem-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 36px 32px;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
}

.poem-card::before {
    content: '"';
    font-family: var(--font-primary);
    font-size: 6rem;
    color: var(--color-accent-light);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.poem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.poem-card__excerpt {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-muted);
    line-height: 1.9;
    margin-bottom: 20px;
    padding-top: 16px;
}

.poem-card__title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.poem-card__meta {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* =========================================
   WORKSHOP CARDS
   ========================================= */
.workshop-card {
    background: var(--color-white);
    border-top: 3px solid var(--color-accent);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.workshop-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.workshop-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.workshop-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.workshop-card__desc {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial {
    background: var(--color-white);
    padding: 40px;
    border-left: 3px solid var(--color-gold);
    box-shadow: var(--shadow-sm);
}

.testimonial__body {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-light-gray);
    filter: grayscale(30%);
}

.testimonial__name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.testimonial__role {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-muted);
    letter-spacing: 0.06em;
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    padding: 90px 0;
    text-align: center;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '"';
    font-family: var(--font-primary);
    font-size: 30rem;
    color: rgba(255,255,255,0.02);
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.cta-banner__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 16px;
}

.cta-banner__title {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-banner__subtitle {
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* =========================================
   STATS / NUMBERS
   ========================================= */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.stat-item {
    flex: 1;
    min-width: 180px;
    padding: 40px 30px;
    text-align: center;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item__number {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--color-accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item__label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* =========================================
   CONTACT FORM
   ========================================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(122,92,46,0.12);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* =========================================
   BLOG / POSTS
   ========================================= */
.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.post-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card__body {
    padding: 28px 26px;
}

.post-card__meta {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.post-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.post-card__excerpt {
    color: var(--color-muted);
    font-size: 0.93rem;
    margin-bottom: 16px;
}

.read-more {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.read-more::after { content: '→'; }
.read-more:hover { color: var(--color-dark); }

/* =========================================
   SINGLE POST / PAGE CONTENT
   ========================================= */
.entry-content {
    max-width: 740px;
    margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
}

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

.entry-content li { margin-bottom: 0.4em; }

.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5em 0;
}

/* Poetry single post */
.poem-body {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    line-height: 2.1;
    white-space: pre-wrap;
    color: var(--color-dark);
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-widget {
    margin-bottom: 40px;
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.sidebar-widget__title {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.65);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand__logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.footer-brand__logo span { color: var(--color-gold); }

.footer-brand__tagline {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col__title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    font-size: 0.9rem;
}

.footer-social a:hover { color: var(--color-white); }

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

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* =========================================
   BREADCRUMBS
   ========================================= */
.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--color-accent); }
.breadcrumbs .sep { color: var(--color-border); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-dark);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* =========================================
   SKIP LINK / ACCESSIBILITY
   ========================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 20px;
    z-index: 9999;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.skip-link:focus { top: 0; }

/* =========================================
   ADMIN BAR OFFSET
   ========================================= */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* =========================================
   WORDPRESS CORE CLASSES
   ========================================= */
.aligncenter { text-align: center; margin: 0 auto 1.25em; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-muted); font-style: italic; }

/* =========================================
   UTILITIES
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-small { margin-bottom: 20px; }
.mb-medium { margin-bottom: 40px; }
.mb-large { margin-bottom: 70px; }

/* =========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-pad: 64px;
        --nav-height:  72px;
    }

    .container,
    .container--narrow {
        padding: 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .intro-strip__image {
        flex: 0 0 260px;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 0 40%;
    }
}

/* =========================================
   RESPONSIVE — MOBILE LANDSCAPE / TABLET (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --section-pad: 50px;
        --nav-height:  64px;
    }

    /* Typography */
    h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h3 { font-size: 1.3rem; }

    /* Layout */
    .container,
    .container--narrow {
        padding: 0 20px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Header */
    .site-header__inner {
        padding: 0 20px;
    }

    .site-logo {
        font-size: 1.35rem;
    }

    /* Hero */
    .parallax-hero {
        height: 90vh;
        min-height: 500px;
    }

    .parallax-hero--short {
        height: 45vh;
        min-height: 320px;
    }

    .parallax-hero__content {
        padding: 0 20px;
    }

    .parallax-hero__title {
        font-size: clamp(1.7rem, 6vw, 2.8rem);
    }

    .parallax-hero__subtitle {
        font-size: 1rem;
    }

    .parallax-hero__scroll {
        bottom: 24px;
    }

    /* Intro strip */
    .intro-strip {
        padding: 48px 0;
    }

    .intro-strip__inner {
        flex-direction: column;
        gap: 24px;
    }

    .intro-strip__image {
        flex: none;
        max-width: 280px;
        margin: 0 auto;
    }

    .intro-strip__quote {
        font-size: 1.2rem;
    }

    /* Stats */
    .stat-item {
        flex: 1 0 45%;
        padding: 28px 20px;
    }

    .stat-item__number {
        font-size: 2.4rem;
    }

    /* Cards */
    .poem-card,
    .workshop-card {
        padding: 28px 22px;
    }

    .poem-card::before {
        font-size: 4rem;
    }

    /* Testimonials */
    .testimonial {
        padding: 28px 22px;
    }

    /* CTA */
    .cta-banner {
        padding: 60px 0;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        max-width: 320px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding-top: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 0;
    }
}

/* =========================================
   RESPONSIVE — MOBILE PORTRAIT (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
    :root {
        --section-pad: 40px;
        --nav-height:  60px;
    }

    /* Typography */
    body {
        font-size: 0.975rem;
        line-height: 1.7;
    }

    h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }

    .lead {
        font-size: 1rem;
    }

    blockquote {
        font-size: 1.1rem;
        padding: 0.8rem 0 0.8rem 1.4rem;
    }

    /* Container */
    .container,
    .container--narrow {
        padding: 0 16px;
    }

    /* Site logo */
    .site-logo {
        font-size: 1.2rem;
    }

    /* Hero */
    .parallax-hero {
        height: 85vh;
        min-height: 460px;
    }

    .parallax-hero--short {
        height: 38vh;
        min-height: 280px;
    }

    .parallax-hero__eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .parallax-hero__title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .parallax-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    /* Section header */
    .section-header__eyebrow {
        font-size: 0.7rem;
    }

    .section-header {
        margin-bottom: 28px;
    }

    /* Intro */
    .intro-strip__image {
        max-width: 220px;
    }

    .intro-strip__quote {
        font-size: 1.05rem;
    }

    /* Stats */
    .stats-row {
        flex-direction: column;
    }

    .stat-item {
        flex: none;
        width: 100%;
    }

    /* Cards */
    .poem-card,
    .workshop-card,
    .post-card__body {
        padding: 22px 18px;
    }

    .workshop-card__icon {
        width: 40px;
        height: 40px;
    }

    /* Testimonials */
    .testimonial {
        padding: 22px 18px;
    }

    .testimonial__body {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 13px 26px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-brand__logo {
        font-size: 1.5rem;
    }

    .footer-col__title {
        font-size: 0.7rem;
    }

    /* Post card */
    .post-card__thumb {
        aspect-ratio: 16/9;
    }
}

/* =========================================
   RESPONSIVE — VERY SMALL (≤ 360px)
   ========================================= */
@media (max-width: 360px) {
    .container,
    .container--narrow {
        padding: 0 14px;
    }

    .parallax-hero {
        min-height: 420px;
    }

    .btn-group .btn {
        max-width: 100%;
    }

    .site-logo {
        font-size: 1.1rem;
    }
}

/* =========================================
   TOUCH DEVICE OVERRIDES
   ========================================= */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch — improves perceived performance */
    .poem-card:hover,
    .workshop-card:hover,
    .post-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .primary-nav__link::after {
        display: none;
    }

    /* Larger tap targets */
    .primary-nav__link,
    .footer-links a,
    .mobile-nav__link {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
    .site-header, .site-footer, .parallax-hero,
    .nav-toggle, .mobile-nav, .btn, .cta-banner { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: inherit; text-decoration: underline; }
    .container { max-width: 100%; padding: 0; }
    h1, h2, h3 { page-break-after: avoid; }
    p, blockquote { orphans: 3; widows: 3; }
}
