/* 
═══════════════════════════════════════════════════════════════════
TULWO TEA - MAIN STYLESHEET
Premium Organic Tea from East Africa
═══════════════════════════════════════════════════════════════════
*/

/* Color Variables */
:root {
    --earth-dark: #2A3A2F;
    --earth-medium: #4A5F4A;
    --tea-green: #6B8E6B;
    --hill-mist: #C8D5C8;
    --cream: #F5F3ED;
    --terracotta: #C86B3C;
    --gold: #D4A574;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--earth-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--earth-dark) 0%, var(--earth-medium) 100%);
    overflow: hidden;
}

/* Animated Hill Silhouettes */
.hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.hill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hill-back {
    background: var(--earth-medium);
    clip-path: polygon(0% 100%, 0% 40%, 20% 50%, 40% 35%, 60% 45%, 80% 30%, 100% 40%, 100% 100%);
    opacity: 0.4;
}

.hill-mid {
    background: var(--tea-green);
    clip-path: polygon(0% 100%, 0% 60%, 25% 55%, 50% 45%, 75% 55%, 100% 50%, 100% 100%);
    opacity: 0.6;
}

.hill-front {
    background: var(--tea-green);
    clip-path: polygon(0% 100%, 0% 70%, 30% 65%, 60% 55%, 90% 65%, 100% 60%, 100% 100%);
    opacity: 0.8;
    filter: brightness(1.1);
}

/* Mist Effect */
.mist {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(200, 213, 200, 0.1) 100%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 0.6; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--cream);
    animation: fadeIn 2s ease-out;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--cream);
    color: var(--cream);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cream);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--earth-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hill-mist);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards, bounce 2s ease-in-out 2s infinite;
}

.scroll-indicator::after {
    content: '↓';
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}

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

/* ═══════════════════════════════════════════════════════════════════
   STORY SECTION
   ═══════════════════════════════════════════════════════════════════ */

.story-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--earth-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--earth-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.story-visual {
    position: relative;
    height: 500px;
    /* REPLACE 'tea-plantation.jpg' WITH YOUR ACTUAL IMAGE FILENAME */
    /* Image should be in the same folder as index.html and styles.css */
    background: linear-gradient(135deg, rgba(42, 58, 47, 0.6) 0%, rgba(74, 95, 74, 0.6) 100%), 
                url('tea-plantation.jpg') center/cover;
    border-radius: 2px;
    overflow: hidden;
}

/* Fallback if image doesn't load */
.story-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tea-green) 0%, var(--earth-medium) 100%);
    z-index: -1;
}

.story-visual::before {
    content: 'TULWO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    font-weight: 600;
    color: rgba(245, 243, 237, 0.1);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════ */

.features {
    background: var(--earth-dark);
    padding: 6rem 2rem;
    color: var(--cream);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(200, 213, 200, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    color: var(--gold);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--gold);
    margin: 0 auto;
}

.feature h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--gold);
}

.feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════
   EMAIL SIGNUP SECTION
   ═══════════════════════════════════════════════════════════════════ */

.signup-section {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--cream);
}

.signup-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--earth-dark);
    margin-bottom: 1rem;
}

.signup-section p {
    font-size: 1.1rem;
    color: var(--earth-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.email-input {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 250px;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--earth-dark);
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--earth-dark);
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--tea-green);
}

.email-input::placeholder {
    color: var(--earth-medium);
    opacity: 0.6;
}

.submit-button {
    flex: 1 1 100%;
    padding: 1.2rem 2.5rem;
    background: var(--earth-dark);
    border: 2px solid var(--earth-dark);
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--tea-green);
    border-color: var(--tea-green);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

footer {
    background: var(--earth-dark);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--hill-mist);
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-links a {
    color: var(--hill-mist);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .story-section {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .story-visual {
        height: 300px;
    }

    .email-form {
        flex-direction: column;
    }
    
    .email-input {
        flex: 1 1 100%;
    }

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