/* Fonts */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/outfit-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/great-vibes.woff2') format('woff2');
}

/* Herbs2Energy CSS Design System - Flyer-Inspired Edition */

:root {
    /* Color Palette from Flyer */
    --color-bg: #f5eedc; /* Warm Parchment Paper */
    --color-text-primary: #12432b; /* Deep Forest Green */
    --color-text-secondary: #4b1f6f; /* Royal Purple */
    --color-accent: #b8860b; /* Warm Antique Gold */
    --color-accent-hover: #966f03;
    
    --color-card-bg: rgba(251, 248, 240, 0.75); /* Soft light parchment overlay */
    --color-card-border: rgba(75, 31, 111, 0.15); /* Soft purple border */
    --color-focus-ring: rgba(75, 31, 111, 0.2);
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', 'Inter', sans-serif;
    
    /* Layout & Spacing */
    --border-radius-card: 20px;
    --border-radius-input: 50px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--color-bg);
    /* Load the parchment paper background with green botanical frame */
    background-image: url('parchment.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Magical Sparkles Mesh Overlay */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(75, 31, 111, 0.12) 0%, transparent 50%);
}

/* Page Wrapper */
.page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    max-height: 180px;
    filter: drop-shadow(0 4px 8px rgba(75, 31, 111, 0.08));
}

/* Hero Two-Column Grid */
.hero-layout {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    margin: 1.5rem auto;
}

/* Left Column: Fairy Graphic Container */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fairy-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    /* Soft vertical float animation like the magical fairy in the flyer */
    animation: float 8s ease-in-out infinite;
}

.fairy-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(75, 31, 111, 0.12));
    display: block;
}

/* Float keyframe animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-24px) rotate(1.5deg) scale(1.03);
    }
}

/* Right Column: Hero Content Area */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ribbon Badge from Flyer style */
.badge-ribbon {
    background: linear-gradient(135deg, var(--color-text-secondary) 0%, #30104c 100%);
    color: #f4f7f5;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.55rem 1.6rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(75, 31, 111, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.intro {
    text-align: left;
    margin-bottom: 2.5rem;
}

/* Headings matching Flyer Fonts */
.main-headline {
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.script-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--color-text-secondary); /* Purple */
    font-weight: 400;
    display: inline-block;
}

.serif-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    color: var(--color-text-primary); /* Dark Green */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.25rem;
    display: block;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    opacity: 0.9;
    max-width: 550px;
}

/* Countdown Section */
.countdown-section {
    width: 100%;
    margin-bottom: 2.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.countdown-card {
    position: relative;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-card);
    padding: 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px 0 rgba(75, 31, 111, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px 0 rgba(212, 175, 55, 0.15);
}

.time-num {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-secondary); /* Purple */
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary); /* Dark Green */
    font-weight: 600;
    opacity: 0.8;
}

/* Footer Section */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(18, 67, 43, 0.08);
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 500;
    background: rgba(251, 248, 240, 0.7);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up-delayed {
    opacity: 0;
    animation: slideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.animate-slide-up-more {
    opacity: 0;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero-layout {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 2rem 1rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1; /* Display fairy at the top of content on mobile devices */
    }
    
    .fairy-frame {
        max-width: 280px;
    }
    
    .intro {
        text-align: center;
    }
    
    .description {
        margin: 0 auto;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .badge-ribbon {
        font-size: 0.75rem;
        padding: 0.45rem 1.20rem;
    }
    
    .serif-title {
        font-size: 1.6rem;
    }
    
    .countdown-grid {
        gap: 0.75rem;
    }
    
    .countdown-card {
        border-radius: 16px;
        padding: 1.25rem 0.5rem;
    }
    
    .time-num {
        font-size: 2.2rem;
    }
    
    .time-label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .input-group:focus-within {
        box-shadow: none;
        background: transparent;
    }
    
    .email-input {
        background: rgba(18, 67, 43, 0.04);
        border: 1px solid rgba(18, 67, 43, 0.15);
        border-radius: var(--border-radius-input);
        padding: 1rem 1.5rem;
    }
    
    .email-input:focus {
        border-color: var(--color-text-secondary);
        box-shadow: 0 0 0 4px var(--color-focus-ring);
        background: rgba(18, 67, 43, 0.07);
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .validation-message {
        padding-left: 0.5rem;
        text-align: center;
    }
}
