/* ============================================
   Botanic Brew - Custom CSS
   Organic Natural Design System
   ============================================ */

:root {
    /* Primary Colors - Organic Green Palette */
    --primary-green: #2d6a4f;
    --primary-light: #52b788;
    --primary-lighter: #74c69d;
    --accent-warm: #8b6f47;
    --accent-light: #f1f0e8;
    
    /* Text Colors */
    --text-dark: #3e3e3e;
    --text-muted: #6b6b6b;
    --text-light: #f5f5f5;
    
    /* Borders & Backgrounds */
    --border-light: #e8e8e8;
    --bg-light: #fafaf8;
    --bg-white: #ffffff;
}

/* ============================================
   Typography System
   ============================================ */

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background-color: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-green) !important;
    font-family: 'Noto Serif TC', serif;
}

.brand-name {
    font-weight: 700;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   Cards & Components
   ============================================ */

.card {
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-light);
}

.feature-card {
    border-radius: 1.2rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    animation: fadeIn 0.6s ease-out;
}

.product-card {
    border-radius: 1.2rem;
    overflow: hidden;
}

.product-card img {
    transition: transform 0.5s ease;
}

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

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.badge.bg-success {
    background-color: var(--primary-green) !important;
}

/* ============================================
   Forms
   ============================================ */

.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   Accordion
   ============================================ */

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(45, 106, 79, 0.1);
    color: var(--primary-green);
}

.accordion-button:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.25);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: #1a1a1a;
    border-top: 3px solid var(--primary-green);
}

footer h5 {
    color: var(--primary-light);
    font-weight: 700;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-lighter);
}

/* ============================================
   Animations
   ============================================ */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-success {
    color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

.border-success {
    border-color: var(--primary-green) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}

/* ============================================
   Smooth Scrolling & Transitions
   ============================================ */

html {
    scroll-behavior: smooth;
}

* {
    transition: background-color 0.2s ease, color 0.2s ease;
}
