/* ==========================================
   PREMIUM ASAHINA MATCHA - GLOBAL STYLES
   ========================================== */

/* CSS Variables for Easy Theming */
:root {
    /* Colors */
    --primary-color: #90C695;        /* Matcha Green */
    --primary-dark: #6B9B6F;         /* Darker Matcha */
    --accent-gold: #D4AF37;          /* Luxury Gold */
    --text-dark: #2C3E2D;            /* Deep Forest */
    --text-light: #5A6E5B;           /* Muted Green */
    --background-cream: #FAF9F6;     /* Elegant Cream */
    --white: #FFFFFF;
    --shadow-color: rgba(44, 62, 45, 0.1);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--background-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(144, 198, 149, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(144, 198, 149, 0.4);
}

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

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(144, 198, 149, 0.1);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(44, 62, 45, 0.4), rgba(44, 62, 45, 0.4)),
                url('https://images.unsplash.com/photo-1582793988951-9aed5509eb97?w=1920&q=90') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 62, 45, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero .btn-primary {
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.7;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */

.products {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--background-cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 62, 45, 0.15);
}

.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-gold), #B8941E);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.product-content {
    padding: var(--spacing-md);
}

.product-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.product-features {
    margin-bottom: var(--spacing-md);
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.product-features i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.product-origin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.product-origin i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* ==========================================
   STORY SECTION
   ========================================== */

.story {
    padding: var(--spacing-xl) 0;
    background: var(--background-cream);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.story-text {
    max-width: 900px;
    margin: 0 auto;
}

.story-paragraph {
    margin-bottom: var(--spacing-md);
}

.story-paragraph p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: justify;
}

.story-quote {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--white);
    border-left: 5px solid var(--accent-gold);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.story-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    position: relative;
}

.story-quote blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

.story-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.story-image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-color);
    transition: var(--transition-smooth);
}

.story-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(44, 62, 45, 0.2);
}

.story-image-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(transparent, rgba(44, 62, 45, 0.9));
    color: var(--white);
    font-size: 0.9375rem;
    text-align: center;
    font-weight: 500;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-lg);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
    position: sticky;
    top: 100px;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.about-text {
    padding: var(--spacing-md) 0;
}

.about-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.about-heading:first-child {
    margin-top: 0;
}

.about-description {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

.company-info {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-cream);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.info-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(144, 198, 149, 0.2);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-item span {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--background-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    padding: var(--spacing-md);
}

.contact-heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1.125rem;
    border: 2px solid rgba(144, 198, 149, 0.2);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--background-cream);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.contact-form .btn-primary {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: var(--spacing-sm);
}

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

.footer {
    padding: var(--spacing-lg) 0;
    background: var(--text-dark);
    color: var(--background-cream);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-brand i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: var(--spacing-md);
}

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

@media (max-width: 968px) {
    .section-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: relative;
        top: 0;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .story-images {
        grid-template-columns: 1fr;
    }

    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 0.8125rem;
    }
}