/* ===================================
   Wandering with LOVE - Main Styles
   Sanctuary of Stillness Design
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS VARIABLES === */
:root {
    /* Refined Color Palette */
    --charcoal: #2C2C2C;
    --warm-taupe: #E5DDD1;
    --soft-cream: #FDFCF9;
    --warm-gray: #6B6560;
    --light-gray: #F7F5F2;
    --terracotta: #C07B5F;
    --soft-terracotta: #D4A99A;
    --accent-gold: #C9A961;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === TYPOGRAPHY === */
body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--charcoal);
    background-color: var(--soft-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

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

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: var(--charcoal);
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section-lg {
    padding: clamp(6rem, 12vw, 10rem) 0;
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--warm-gray);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--terracotta);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--charcoal);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* === HERO SECTION === */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    margin-top: 80px;
    position: relative;
    background: linear-gradient(rgba(44, 44, 44, 0.4), rgba(44, 44, 44, 0.4)), 
                url('/static/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fallback if no hero image */
.hero.no-image {
    background: linear-gradient(to bottom, var(--soft-cream) 0%, var(--light-gray) 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--soft-cream);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--soft-cream);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background-color: white;
    color: var(--terracotta);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--charcoal);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.btn-text:hover {
    color: var(--charcoal);
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* === CARDS === */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: var(--space-lg);
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

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

.card-meta {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
}

.card p {
    color: var(--warm-gray);
    margin-bottom: var(--space-md);
}

/* === SECTIONS === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-alt {
    background-color: white;
}

.section-dark {
    background-color: var(--charcoal);
    color: var(--soft-cream);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--soft-cream);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* === FEATURED CLASSES === */
.featured-classes {
    padding: var(--space-2xl) 0;
}

.class-card {
    position: relative;
}

.class-card-image {
    height: 320px;
}

/* === ABOUT PREVIEW === */
.about-preview {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-preview p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--warm-gray);
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

/* === BLOG SECTION === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.blog-card h3 {
    font-size: 1.35rem;
}

.blog-card h3 a {
    color: var(--charcoal);
}

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

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--terracotta);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--charcoal) 0%, #3a3a3a 100%);
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--charcoal);
}

.cta-section .btn-primary:hover {
    background-color: var(--terracotta);
    color: white;
}

/* === FOOTER === */
footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

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

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile hero image with overlay */
    .hero {
        background: linear-gradient(rgba(44, 44, 44, 0.4), rgba(44, 44, 44, 0.4)), 
                    url('/static/images/hero-mobile.webp');
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Better performance on mobile */
    }
}

@media (max-width: 768px) {
    nav {
        padding: var(--space-md);
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--soft-cream);
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 70vh;
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
