/* ========================================
   EARTH & HAND - MAIN STYLES
   ======================================== */

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(247, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-ink);
    letter-spacing: 0.05em;
}

/* Navigation */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 0.25rem;
}

.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-withered-tea);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-ink);
}

.cart-count {
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-ink);
    color: var(--color-cream);
    border-radius: 50%;
}

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

.menu-toggle-bar {
    width: 24px;
    height: 1px;
    background: var(--color-ink);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-cream);
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-ink);
}

.mobile-nav-menu {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-ink);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: #fff;
    color: var(--color-ink);
}

.hero-actions .btn-primary:hover {
    background: var(--color-cream);
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hero-actions .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, currentColor, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-withered-tea);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-ink);
}

.section-actions {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-content {
    max-width: 500px;
}

.about-text {
    margin: 2rem 0;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.about-quote {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-withered-tea);
}

.about-quote p {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-charcoal);
    margin: 0;
}

/* ========================================
   COLLECTIONS SECTION
   ======================================== */
.collections {
    background: var(--color-rice-paper);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.collection-card {
    background: #fff;
    overflow: hidden;
}

.collection-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 50%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.collection-count {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.collection-content {
    padding: 1.5rem;
}

.collection-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.collection-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    position: relative;
}

.product-link {
    display: block;
    color: inherit;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-rice-paper);
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--color-ink);
    color: #fff;
}

.product-badge.featured {
    background: var(--color-withered-tea);
    color: #fff;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.product-price ins {
    text-decoration: none;
    color: var(--color-ink);
}

.product-price del {
    color: var(--color-text-hint);
    margin-right: 0.5rem;
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values {
    background: var(--color-ink);
    color: #fff;
}

.values .section-subtitle {
    color: var(--color-mouse-grey);
}

.values .section-title {
    color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.value-card {
    text-align: center;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-withered-tea);
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.value-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
    background: var(--color-rice-paper);
}

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

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: #fff;
    padding: 1rem 1.5rem;
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-ink);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--color-withered-tea);
    color: var(--color-withered-tea);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area li {
    margin-bottom: 0.75rem;
}

.footer-widget-area a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-widget-area a:hover {
    color: var(--color-withered-tea);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--color-withered-tea);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.6);
}

.contact-item a:hover {
    color: var(--color-withered-tea);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-nav-menu a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-nav-menu a:hover {
    color: var(--color-withered-tea);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .collections-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .collections-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
