/* ===================================
   CSS Variables - Brenna Marin Brand Colors V1
   Updated: January 2026 - The Essential Three
   =================================== */
:root {
    /* ===== THE ESSENTIAL THREE ===== */
    
    /* Cream - Your Foundation (70%) */
    --cream: #F5F3EE;
    /* Breathing room, scholarly warmth, the silence between words */
    
    /* Terracotta - Your Signature (20%) */
    --terracotta: #B87E6E;
    /* Earth, fire, embodiment, invitation to action */
    
    /* Persian Blue - Your Depth (10%) */
    --persian-blue: #2F4858;
    /* Intellect, structure, scholarly depth, contemplation */
    
    /* ===== TEXT COLORS ===== */
    --text-primary: #2C2C2C;
    /* Body text - Warm charcoal - WCAG AAA compliant on cream */
    
    --text-secondary: #5A5A5A;
    /* Captions, metadata - WCAG AA compliant on cream */
    
    /* ===== TYPOGRAPHY ===== */
    --font-serif: 'Cormorant', Georgia, serif;
    --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* ===== SPACING ===== */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* ===== LAYOUT ===== */
    --max-width: 1200px;
    --border-radius: 8px;
    
    /* ===== V2 COLORS (Reserved for future, not yet active) ===== */
    /* Uncomment these when V2 expansion is needed */
    /* --sage: #B3C3A2;          Nature connection */
    /* --gold: #D4AF70;          Special events */
    /* --teaberry: #D4A5A5;      Compassion moments */
    /* --teal-medium: #37626C;   Navigation alternative */
    /* --sage-cool: #8BA89F;     Meditation themes */
}

/* ===================================
   V1 COLOR USAGE
   =================================== */
/* 
THREE COLORS WITH COMPLETE CONFIDENCE:
- --cream: #F5F3EE (70%)       → All backgrounds, breathing room
- --terracotta: #B87E6E (20%)  → CTAs, accents, personality, warmth
- --persian-blue: #2F4858 (10%) → Headings, navigation, footer, depth

COLOR STORY:
Cream = "I create space for you"
Terracotta = "I am grounded in embodied practice" 
Persian Blue = "I offer intellectual and philosophical depth"

USAGE RULES:
✅ Cream dominates (70% minimum on every page)
✅ Terracotta for action/warmth/embodiment
✅ Persian Blue for structure/depth/intellect
✅ Trust the simplicity - three colors are enough

See V1_COLOR_PALETTE.md for complete guidelines
See V2_COLOR_EXPANSION.md for future color additions
*/

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* ===================================
   PREMIUM INTERACTION: Cursor Ambient Glow
   Warm, candlelight-like glow that follows cursor
   =================================== */
:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --parallax-y: 0px;
}

body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(179, 195, 162, 0.15) 0%,
        rgba(184, 126, 110, 0.08) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
    left: var(--mouse-x);
    top: var(--mouse-y);
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

body.cursor-glow-active::before {
    opacity: 1;
}

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

a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

/* ===================================
   PREMIUM INTERACTION: Elegant Link Underlines
   Underlines that flow in like ink
   =================================== */
.content-section a:not(.btn),
.philosophy-content a:not(.btn),
.intro-content a:not(.btn),
p a:not(.btn) {
    background-image: linear-gradient(to right, var(--terracotta), var(--terracotta));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

.content-section a:not(.btn):hover,
.philosophy-content a:not(.btn):hover,
.intro-content a:not(.btn):hover,
p a:not(.btn):hover {
    background-size: 100% 1px;
    color: var(--terracotta);
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

/* ===================================
   Layout Utilities
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-lg) 0;
    }
}

/* ===================================
   Navigation
   =================================== */
.nav {
    background-color: var(--cream);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--persian-blue);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--persian-blue);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--terracotta);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background-color: var(--terracotta);
    color: white !important;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--persian-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--persian-blue);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--cream);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid rgba(44, 62, 80, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* ===================================
   Hero Section with Gentle Parallax
   =================================== */
.hero {
    padding: var(--space-xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ===================================
   Hero Background - Persian Rug Texture
   =================================== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/IMG_persian-rug.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(245, 243, 238, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--persian-blue);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: var(--space-md);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons with Premium Interactions
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

/* MICRO-INTERACTION: Breathing animation for buttons */
.btn-primary {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.02); 
    }
}

.btn-primary:hover {
    animation: none; /* Stop breathing on hover for interaction */
}

/* ===================================
   PREMIUM INTERACTION: Button Shimmer Effect
   Subtle light movement on hover
   =================================== */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--terracotta);
    color: white;
    box-shadow: 0 2px 8px rgba(184, 126, 110, 0.2);
}

.btn-primary:hover {
    background-color: var(--persian-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 72, 88, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--persian-blue);
    border: 1px solid var(--persian-blue);
}

.btn-secondary:hover {
    background-color: var(--persian-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 72, 88, 0.2);
}

.btn-text {
    background: none;
    color: var(--terracotta);
    padding: 0.5rem 0;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--persian-blue);
    transform: translateX(4px);
}

/* ===================================
   Introduction Section
   =================================== */
.intro {
    background-color: white;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    color: var(--persian-blue);
    margin-bottom: var(--space-md);
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ===================================
   Features Grid
   =================================== */
.features {
    background-color: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                background-color 0.3s ease;
    position: relative;
    will-change: transform;
    text-align: center;
    transform-style: preserve-3d; /* For 3D tilt effect */
}

/* ===================================
   PREMIUM INTERACTION: Magnetic Hover Effect
   Cards subtly move toward cursor on hover
   =================================== */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(47, 72, 88, 0.12);
    background-color: rgba(255, 255, 255, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(
        135deg,
        rgba(179, 195, 162, 0.03) 0%,
        rgba(184, 126, 110, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

/* MICRO-INTERACTION: Floating icons */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--persian-blue);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

/* Different timing for each icon */
.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 1.5s; }

/* ===================================
   Custom Gathering Icons
   =================================== */
.gathering-icon {
    margin: 0 auto var(--space-md);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.gathering-icon svg {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(47, 72, 88, 0.1));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .gathering-icon svg {
    transform: scale(1.1);
}

/* Stagger animation delays for gathering icons */
.features-grid .feature-card:nth-child(1) .gathering-icon { animation-delay: 0s; }
.features-grid .feature-card:nth-child(2) .gathering-icon { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(3) .gathering-icon { animation-delay: 1s; }
.features-grid .feature-card:nth-child(4) .gathering-icon { animation-delay: 1.5s; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.feature-card h3 a {
    color: var(--persian-blue);
    transition: color 0.3s ease;
}

.feature-card h3 a:hover {
    color: var(--terracotta);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-link {
    color: var(--terracotta);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--persian-blue);
}

/* ===================================
   Philosophy Section with Image
   =================================== */
.philosophy {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.philosophy-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.philosophy-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-content {
    position: relative;
    z-index: 1;
}

.philosophy h2 {
    color: var(--persian-blue);
    margin-bottom: var(--space-md);
}

.philosophy p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* ===================================
   Testimonials Section with Background
   =================================== */
.testimonials {
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/b-reading-meditation.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials h2 {
    text-align: center;
    color: var(--persian-blue);
    margin-bottom: var(--space-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--terracotta);
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-left-width 0.3s ease,
                box-shadow 0.4s ease;
    position: relative;
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateX(4px);
    border-left-width: 5px;
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.08);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--persian-blue);
    font-weight: 500;
    margin-bottom: 0;
}

/* ===================================
   Credentials Section with Background
   =================================== */
.credentials {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.credentials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/Mohtasham_Kashan_480x480.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.credentials-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.credentials h2 {
    color: var(--persian-blue);
    margin-bottom: var(--space-lg);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.credential-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-md);
    border-radius: var(--border-radius);
}

.credential-item h3 {
    font-size: 1.2rem;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.credential-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    background-color: var(--persian-blue);
    color: white;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.newsletter-benefit {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.newsletter-benefits {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto var(--space-md);
    padding: 0;
}

.newsletter-benefits li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.95);
}

.newsletter-form input:focus {
    outline: 2px solid var(--terracotta);
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter-benefits {
        text-align: center;
    }
}

/* ===================================
   Footer - Enhanced Design
   =================================== */
.footer {
    background: linear-gradient(180deg, var(--persian-blue) 0%, #273E4C 100%);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element at top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--terracotta) 20%, 
        var(--terracotta) 80%, 
        transparent 100%);
    opacity: 0.6;
}

/* Subtle pattern overlay */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(184, 126, 110, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(184, 126, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.footer-brand {
    position: relative;
}

/* Decorative icon for footer brand */
.footer-brand::before {
    content: '✦';
    display: block;
    color: var(--terracotta);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.footer h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--terracotta);
    font-weight: 500;
}

.footer h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--terracotta);
    font-weight: 500;
    position: relative;
    padding-bottom: var(--space-xs);
}

/* Decorative underline for h4 */
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--terracotta);
    opacity: 0.6;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.65rem;
    position: relative;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* Subtle animated underline on hover */
.footer ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.footer ul a:hover {
    color: var(--terracotta);
    transform: translateX(3px);
}

.footer ul a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--terracotta);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-brand::before {
        display: block;
        margin: 0 auto var(--space-sm);
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===================================
   Article Grid (for Explore page)
   =================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease;
    position: relative;
    will-change: transform;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 36px rgba(47, 72, 88, 0.15);
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(179, 195, 162, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    width: 100%;
    height: 240px;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: var(--space-md);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--persian-blue);
    margin-bottom: var(--space-xs);
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.article-card h3 a {
    color: var(--persian-blue);
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--terracotta);
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.read-more {
    color: var(--terracotta);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    padding: var(--space-lg) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.1) 0%, rgba(199, 121, 102, 0.08) 100%);
    position: relative;
}

.page-header h1 {
    color: var(--persian-blue);
    margin-bottom: var(--space-sm);
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Enhanced Practice Page Header */
.page-header-practice {
    background: linear-gradient(135deg, 
        rgba(47, 72, 88, 0.03) 0%, 
        rgba(245, 243, 238, 1) 40%,
        rgba(184, 126, 110, 0.06) 100%);
    padding: calc(var(--space-lg) + var(--space-md)) 0;
}

/* Enhanced Explore Page Header */
.page-header-explore {
    background: linear-gradient(135deg, 
        rgba(184, 126, 110, 0.05) 0%, 
        rgba(245, 243, 238, 1) 40%,
        rgba(47, 72, 88, 0.04) 100%);
    padding: calc(var(--space-lg) + var(--space-md)) 0;
}

/* Enhanced Gather Page Header */
.page-header-gather {
    background: linear-gradient(135deg, 
        rgba(47, 72, 88, 0.05) 0%, 
        rgba(245, 243, 238, 1) 50%,
        rgba(184, 126, 110, 0.05) 100%);
    padding: calc(var(--space-lg) + var(--space-md)) 0;
}

/* Enhanced About Page Header */
.page-header-about {
    background: linear-gradient(135deg, 
        rgba(184, 126, 110, 0.06) 0%, 
        rgba(245, 243, 238, 1) 50%,
        rgba(47, 72, 88, 0.04) 100%);
    padding: calc(var(--space-lg) + var(--space-md)) 0;
}

.page-header-decoration {
    color: var(--terracotta);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

/* ===================================
   Content Section (for About page)
   =================================== */
.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    color: var(--persian-blue);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.content-section ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
}

.content-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

/* Expectation Grid for Practice Page */
.expectation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.expectation-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 72, 88, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-top: 3px solid var(--terracotta);
}

.expectation-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(47, 72, 88, 0.12);
}

.expectation-icon {
    font-size: 2.5rem;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    text-align: center;
    opacity: 0.85;
    line-height: 1;
}

.expectation-item h3 {
    text-align: center;
    font-weight: 500;
}

.expectation-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .expectation-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Future Offerings Grid */
.future-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.future-offering-card {
    background: linear-gradient(135deg, rgba(245, 243, 238, 0.5) 0%, white 100%);
    padding: var(--space-md);
    border-radius: 8px;
    border: 2px solid rgba(47, 72, 88, 0.08);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.future-offering-card:hover {
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 126, 110, 0.15);
}

.offering-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background: var(--terracotta);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.future-offering-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.future-offering-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* In Every Class List */
.in-every-class-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.class-promise {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(47, 72, 88, 0.06);
    transition: all 0.3s ease;
}

.class-promise:hover {
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.12);
    transform: translateX(4px);
}

.promise-marker {
    color: var(--terracotta);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.promise-content h3 {
    color: var(--persian-blue);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-family: var(--font-serif);
}

.promise-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .class-promise {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .promise-marker {
        align-self: center;
    }
}

/* Topics Grid for Explore Page */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.topic-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(47, 72, 88, 0.06);
    transition: all 0.3s ease;
}

.topic-item:hover {
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.12);
    transform: translateY(-2px);
}

.topic-icon {
    color: var(--terracotta);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.topic-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* How It Works Grid for Gather Page */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.how-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 72, 88, 0.06);
    border-left: 4px solid var(--terracotta);
    transition: all 0.3s ease;
}

.how-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(47, 72, 88, 0.12);
}

.how-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

.how-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Who This Is For Section */
.who-this-is-for {
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 72, 88, 0.06);
    margin-top: var(--space-lg);
}

.for-you-list {
    max-width: 600px;
    margin: 0 auto;
}

.for-you-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.for-you-icon {
    color: var(--terracotta);
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Teaching Approach for About Page */
.teaching-approach {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 72, 88, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--terracotta);
}

.approach-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.12);
}

.approach-icon {
    color: var(--terracotta);
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.approach-content {
    flex: 1;
}

.approach-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    font-family: var(--font-serif);
}

.approach-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .approach-item {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .approach-icon {
        align-self: center;
    }
}

/* Inline CTA (for mid-article newsletter signup) */
.inline-cta {
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.1) 0%, rgba(199, 121, 102, 0.08) 100%);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--terracotta);
    margin: var(--space-lg) 0;
    text-align: center;
}

/* Pull Quote / Blockquote */
blockquote {
    background: linear-gradient(135deg, rgba(47, 72, 88, 0.05) 0%, rgba(245, 243, 238, 1) 100%);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--persian-blue);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-primary);
}

blockquote p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Dharma Talk Section */
.dharma-section,
.contemplation-section {
    background: rgba(47, 72, 88, 0.04);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--persian-blue);
}

.dharma-section h2,
.contemplation-section h2 {
    color: var(--persian-blue);
}

.inline-cta h3 {
    font-size: 1.5rem;
    color: var(--persian-blue);
    margin-bottom: var(--space-sm);
}

.inline-cta p {
    font-size: 1rem;
    color: var(--persian-blue);
    margin-bottom: var(--space-sm);
}

.inline-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto var(--space-xs);
}

.inline-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: var(--border-radius);
    background-color: white;
}

.inline-form input:focus {
    outline: 2px solid var(--terracotta);
    border-color: var(--terracotta);
}

.inline-cta .newsletter-privacy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .inline-form {
        flex-direction: column;
    }
    
    .inline-form button {
        width: 100%;
    }
}

/* ===================================
   Class Grid
   =================================== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.class-card {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--terracotta);
}

/* Enhanced Class Cards */
.class-card-enhanced {
    position: relative;
    background: white;
    box-shadow: 0 2px 12px rgba(47, 72, 88, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.class-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--persian-blue) 100%);
}

.class-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(47, 72, 88, 0.15);
    border-left-width: 6px;
}

.class-day-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--terracotta);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(184, 126, 110, 0.25);
}

.class-time {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--persian-blue);
    margin-bottom: var(--space-xs);
    margin-top: 0.5rem;
    font-weight: 500;
}

.class-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
    color: var(--persian-blue);
    font-weight: 500;
}

.class-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.class-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Peak Pose Callout Box */
.peak-pose-callout {
    max-width: 900px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(47, 72, 88, 0.04) 0%, 
        rgba(245, 243, 238, 0.9) 50%,
        rgba(184, 126, 110, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(47, 72, 88, 0.1);
    position: relative;
    box-shadow: 0 4px 16px rgba(47, 72, 88, 0.08);
}

.callout-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--terracotta);
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(47, 72, 88, 0.15);
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .philosophy-inner {
        grid-template-columns: 1fr;
    }
    
    .philosophy-image {
        order: -1;
        max-height: 400px;
    }
}

/* ===================================
   Special Accent Elements (using deep slate teal)
   =================================== */

/* Category tags / badges */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--persian-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* Special announcement cards */
.announcement-card {
    background: linear-gradient(135deg, rgba(184, 126, 110, 0.08) 0%, rgba(184, 126, 110, 0.05) 100%);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 2px solid var(--terracotta);
    margin: var(--space-md) 0;
}

.announcement-card h3 {
    color: var(--terracotta);
}

/* Meditation/contemplation callout boxes */
.meditation-box {
    background: rgba(47, 72, 88, 0.04);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--persian-blue);
    margin: var(--space-md) 0;
}

/* ===================================
   V2 PLACEHOLDER STYLES - Heart-Centered Moments
   (Currently using terracotta, can be updated to teaberry in V2)
   =================================== */

/* Personal story highlights - for vulnerable, authentic sharing */
.story-highlight {
    background: linear-gradient(135deg, rgba(184, 126, 110, 0.08) 0%, rgba(184, 126, 110, 0.12) 100%);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--terracotta);
    margin: var(--space-md) 0;
}

.story-highlight h3 {
    color: var(--terracotta);
    font-size: 1.3rem;
}

/* Testimonial card accent - adds warmth to testimonials */
.testimonial-card.heart-centered {
    border-left-color: var(--terracotta);
    background: linear-gradient(135deg, rgba(184, 126, 110, 0.05) 0%, rgba(184, 126, 110, 0.08) 100%);
}

/* Compassion callout - for empathy moments */
.compassion-note {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--terracotta);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin: var(--space-sm) 0;
}

/* Heart icon or special accent */
.heart-accent {
    color: var(--terracotta);
}

/* Personal journey section - for "My Story" type content */
.personal-journey {
    background: linear-gradient(135deg, rgba(184, 126, 110, 0.06) 0%, rgba(245, 243, 238, 1) 100%);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--terracotta);
}

.personal-journey h2 {
    color: var(--terracotta);
}

/* ===================================
   PREMIUM INTERACTION: Enhanced Fade-in with Blur
   Content comes into focus organically, like adjusting vision
   =================================== */
.fade-in-blur {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggered delays for sequential reveal */
.fade-in-blur:nth-child(1) { transition-delay: 0s; }
.fade-in-blur:nth-child(2) { transition-delay: 0.1s; }
.fade-in-blur:nth-child(3) { transition-delay: 0.2s; }
.fade-in-blur:nth-child(4) { transition-delay: 0.3s; }
.fade-in-blur:nth-child(5) { transition-delay: 0.4s; }
.fade-in-blur:nth-child(6) { transition-delay: 0.5s; }

/* ===================================
   PREMIUM INTERACTION: Text Gradient Shimmer
   Headings have subtle gradient that shifts on hover
   =================================== */
/* V2: Optional gradient text effect for headings */
/* Commented out for V1 - can be re-enabled in V2 if desired */
/*
h1, h2 {
    background: linear-gradient(
        135deg,
        var(--persian-blue) 0%,
        var(--terracotta) 50%,
        var(--persian-blue) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.8s ease;
}
*/

h1:hover, h2:hover {
    background-position: 100% center;
}

/* Override for hero heading to keep full opacity */
.hero h1 {
    -webkit-text-fill-color: var(--persian-blue);
    background: none;
}

/* ===================================
   MICRO-INTERACTION: Scroll Progress Bar
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--persian-blue));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(184, 126, 110, 0.3);
}

/* ===================================
   MICRO-INTERACTION: Success Confetti
   =================================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 10000;
    animation: confetti-fall 3s ease-out forwards;
    opacity: 0;
    border-radius: 50%;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotateZ(720deg);
    }
}

/* ===================================
   Accessibility
   =================================== */
:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-blur {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
    
    body::before {
        display: none;
    }
}

/* ===================================
   About Page Images
   =================================== */
.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    margin: 2rem 0;
}

.about-image-right {
    float: right;
    margin: 0 0 2rem 2rem;
}

.about-image-left {
    float: left;
    margin: 0 2rem 2rem 0;
}

@media (max-width: 768px) {
    .about-image-right,
    .about-image-left {
        float: none;
        margin: 2rem auto;
        display: block;
        max-width: 100%;
    }
}
