/* Aura Style Global CSS */

/* Variables & Design Tokens */
:root {
    /* Colors */
    --color-bg: #FAF7F2;
    --color-text-primary: #2C2C2C;
    --color-text-secondary: #666666;
    --color-accent: #D4B8A4;
    --color-white: #FFFFFF;
    --color-border: rgba(44, 44, 44, 0.1);
    
    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-section: 120px;
    --spacing-section-mobile: 80px;
    --spacing-block: 40px;
    --spacing-element: 20px;
    
    /* Transitions */
    --ease-out: 0.3s ease-out;
    --ease-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--ease-out);
}

ul, ol {
    list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-element);
}

h1 { font-size: 48px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }

p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 1.5em;
    font-weight: 300;
}

.text-small { font-size: 14px; }
.text-micro { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all var(--ease-out);
}

.site-header.scrolled {
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 5%;
    box-shadow: 0 1px 0 var(--color-border);
}

.logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.desktop-nav ul {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: width var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.search-trigger svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-primary);
    fill: none;
    stroke-width: 1.5;
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text-primary);
    transition: var(--ease-out);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-text-primary);
}

/* Home: Carousel */
.hero-carousel {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 3;
}

.slide-content h2 {
    font-size: 64px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out) 0.3s;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.carousel-slide.active .slide-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-white);
}

/* Home: Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.img-hover-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.img-hover-container img {
    transition: transform 0.8s ease, filter 0.6s ease;
    height: 100%;
}

.img-hover-container:hover img {
    transform: scale(1.05);
    filter: saturate(0.7);
}

.img-overlay-text {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.img-hover-container:hover .img-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.sub-grid {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
}

/* Home: Philosophy */
.philosophy-section {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 160px 20px;
}

.philosophy-text {
    font-size: 20px;
    line-height: 1.8;
}

/* Home: Seasonal Scroll */
.seasonal-section {
    overflow: hidden;
    padding-bottom: 80px;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 0 5%;
    scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.season-card {
    min-width: 320px;
    width: 25vw;
    flex-shrink: 0;
}

.season-info {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.season-name {
    font-family: var(--font-heading);
    font-size: 20px;
}

.season-tags {
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* Gallery: Page Styles */
.page-title-area {
    padding-top: 160px;
    padding-bottom: 60px;
    text-align: center;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-tag {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.filter-icon {
    width: 8px;
    height: 8px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.masonry-layout {
    column-count: 3;
    column-gap: 24px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

.visual-story-full {
    margin: var(--spacing-section) 0;
}

.story-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.color-swatch {
    aspect-ratio: 1;
    position: relative;
}

.swatch-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 8px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s;
}

.color-swatch:hover .swatch-label {
    opacity: 1;
}

/* Journal: Page Styles */
.journal-layout {
    max-width: 860px;
    margin: 0 auto;
}

.journal-article {
    margin-bottom: 140px;
}

.article-head {
    text-align: center;
    margin-bottom: 40px;
}

.article-excerpt {
    font-size: 14px;
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 16px;
    display: block;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-feed {
    border-left: 1px solid var(--color-border);
    padding-left: 40px;
    margin: 80px 0;
}

.timeline-entry {
    margin-bottom: 60px;
    position: relative;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--color-accent);
    border-radius: 50%;
}

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

.material-item img {
    border-radius: 50%;
    aspect-ratio: 1;
    margin-bottom: 24px;
    transition: transform 0.5s;
}

.material-item:hover img {
    transform: rotate(5deg);
}

/* Footer */
.site-footer {
    padding: 60px 0 40px;
    text-align: center;
}

.footer-divider {
    height: 1px;
    width: 80%;
    background: var(--color-border);
    margin: 0 auto 32px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 42px; }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-grid {
        grid-template-rows: auto;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .masonry-layout {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 80px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 24px; }
    p { font-size: 16px; }

    .site-header { padding: 16px 5%; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    
    .slide-content h2 { font-size: 42px; }
    
    .sub-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .story-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-layout {
        column-count: 1;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-feed {
        padding-left: 20px;
    }
    
    .timeline-entry::before {
        left: -25px;
    }
}