/* =============================================
   SUNDAY HUSH - BLOG STYLES
   ============================================= */

:root {
    --parchment: #F2ECE2;
    --parchment-light: #FBF9F7;
    --cream: #FAF8F5;
    --sage-deep: #4A5740;
    --sage: #55624B;
    --sage-medium: #6B7A5F;
    --sage-light: #8A9A7A;
    --sage-muted: #A8B898;
    --sage-soft: #C5D4B8;
    --sage-whisper: #E2EBD9;
    --sage-pale: #EEF4E9;
    --charcoal: #2F2B27;
    --stone: #5A5550;
    --warm-gray: #8A8278;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--parchment);
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 18px;
}

/* =============================================
   SKIP LINK
   ============================================= */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--sage);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1000;
}

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

/* =============================================
   HEADER / NAVIGATION
   ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(242, 236, 226, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(85, 98, 75, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--sage);
    text-decoration: none;
    order: 2;
}

.logo:hover { color: var(--sage-deep); }

.nav {
    display: flex;
    align-items: center;
}

.nav-left { order: 1; }
.nav-right { order: 3; }

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--sage); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 4;
}

.menu-bar {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .nav-left, .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--parchment);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(85, 98, 75, 0.1);
    }
    
    .nav-left.open, .nav-right.open {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle { display: flex; }
    
    .logo { order: 1; }
}

/* =============================================
   READING PROGRESS
   ============================================= */

.reading-progress {
    position: fixed;
    top: 60px;
    left: 0;
    height: 3px;
    background: var(--sage);
    z-index: 99;
    width: 0%;
    transition: width 0.1s ease;
}

/* =============================================
   BLOG POST LAYOUT
   ============================================= */

.blog-post {
    padding-top: 80px;
}

/* Post Header */
.post-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--sage-pale) 0%, var(--parchment) 100%);
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.post-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sage);
    background: var(--sage-whisper);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.post-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--stone);
    font-style: italic;
}

.reading-time {
    font-style: italic;
}

/* Post Hero Image */
.post-hero {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.post-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(85, 98, 75, 0.15);
}

/* Post Content */
.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--charcoal);
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content .lead {
    font-size: 1.35rem;
    color: var(--stone);
    font-style: italic;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sage-deep);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--sage-deep);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--sage-whisper);
    border-left: 4px solid var(--sage);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--stone);
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content a {
    color: var(--sage);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--sage-deep);
}

.post-content strong {
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* =============================================
   CALLOUT BOXES
   ============================================= */

.callout {
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--sage-whisper) 100%);
    border: 1px solid rgba(85, 98, 75, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.callout p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.callout p + p {
    margin-top: 1rem;
}

.callout h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--sage-deep);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.callout ul {
    margin-bottom: 0;
    margin-top: 1rem;
}

.callout-warm {
    background: linear-gradient(135deg, #FDF8F3 0%, #F5EDE4 100%);
    border-color: rgba(180, 140, 100, 0.2);
}

.callout-sage {
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--sage-whisper) 100%);
}

/* =============================================
   RITUAL CARDS
   ============================================= */

.ritual-card {
    background: white;
    border: 1px solid rgba(85, 98, 75, 0.12);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.ritual-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--sage-deep);
    margin-bottom: 1rem;
    margin-top: 0;
}

.ritual-card p {
    margin-bottom: 0.75rem;
}

.ritual-card p:last-child {
    margin-bottom: 0;
}

.ritual-card ul {
    margin-bottom: 0;
}

/* =============================================
   BREATHE BREAK
   ============================================= */

.breathe-break {
    text-align: center;
    padding: 2rem;
    margin: 2.5rem 0;
    background: var(--sage-whisper);
    border-radius: 16px;
}

.breathe-break p {
    margin: 0;
    font-style: italic;
    color: var(--sage-deep);
}

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

.post-footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    border-top: 1px solid var(--sage-whisper);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tag {
    font-size: 0.85rem;
    color: var(--sage);
    background: var(--sage-whisper);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--sage-soft);
    color: var(--sage-deep);
}

.post-share {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--warm-gray);
    font-size: 0.95rem;
}

.post-share a {
    color: var(--sage);
    margin-left: 1rem;
    text-decoration: none;
}

.post-share a:hover {
    text-decoration: underline;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.post-nav-link {
    padding: 1.5rem;
    background: var(--sage-whisper);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: var(--sage-soft);
    transform: translateY(-2px);
}

.post-nav-link span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.post-nav-link strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

/* =============================================
   NEWSLETTER CTA
   ============================================= */

.newsletter-cta {
    background: linear-gradient(145deg, var(--sage-whisper) 0%, var(--sage-pale) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-cta .container-narrow {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-cta h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.newsletter-cta p {
    color: var(--stone);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(85, 98, 75, 0.2);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--sage);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--sage-deep);
}

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

.footer {
    background: var(--parchment);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(85, 98, 75, 0.1);
}

.footer .container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sage);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--warm-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

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

.footer-nav h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--warm-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--sage);
}

.footer-nav-column {
    /* For multi-column footer nav */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(85, 98, 75, 0.1);
    font-size: 0.9rem;
    color: var(--warm-gray);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
    .post-header {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-hero {
        padding: 0 1rem;
    }
    
    .post-hero img {
        border-radius: 12px;
    }
    
    .post-content {
        padding: 0 1.5rem 3rem;
        font-size: 1.05rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-footer {
        padding: 2rem 1.5rem 3rem;
    }
    
    .callout, .ritual-card {
        padding: 1.5rem;
    }
}

/* =============================================
   MOBILE HERO VIDEO FIX
   Forces square hero and proper video display on mobile
   ============================================= */

@media (max-width: 768px) {
    .hero {
        min-height: 0 !important;
        height: 100vw !important;
        max-height: 100vw !important;
        overflow: hidden !important;
    }
    
    .hero-media {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-content {
        position: absolute !important;
        bottom: 8% !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* White text with shadow for mobile hero */
    .hero-eyebrow,
    .hero-title,
    .hero-subtitle {
        color: white !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    /* Mobile video display */
    .hero-video-desktop {
        display: none !important;
    }
    
    .hero-video-mobile {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        transform: none !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}
