/* Color Variables based on the 5 Color Rule */
:root {
    --bg-main: #F9F6F0; /* Warm Beige */
    --bg-secondary: #EBE6DF; /* Slightly darker beige */
    --text-main: #2B2B2B; /* Charcoal Grey */
    --text-muted: #6B705C; /* Olive Greenish Grey */
    --accent-brown: #3D2C23; /* Deep Wood Brown */
    --accent-light: #5A4335;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nanum Myeongjo', serif;
    color: var(--accent-brown);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.mt-4 {
    margin-top: 4rem;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Navigation (Desktop) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-brown);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links i {
    display: none; /* Hide icons on desktop */
}

.nav-item {
    font-weight: 500;
    position: relative;
    color: var(--accent-brown);
    transition: color 0.3s;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-muted);
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1541167760496-1628856ab772?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(61, 44, 35, 0.6); /* Deep wood tone overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-primary {
    background-color: var(--accent-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-light);
}

.btn-secondary {
    background-color: var(--bg-main);
    color: var(--accent-brown);
    border: 1px solid var(--accent-brown);
}

.btn-secondary:hover {
    background-color: var(--accent-brown);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-brown);
    color: var(--accent-brown);
}

.btn-outline:hover {
    background-color: var(--accent-brown);
    color: var(--white);
}

.btn.sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Split Layout (Brand Story) */
.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 300;
}

.image-content {
    flex: 1;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dripper-desc p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: left;
    color: #4a4a4a;
}

/* Quiz Section */
.quiz-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.quiz-container h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quiz-container > p {
    margin-bottom: 2rem;
}

.quiz-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-main);
    border-radius: 6px;
    border-left: 4px solid var(--accent-light);
    text-align: left;
}

.hidden {
    display: none;
}

/* Shop Section */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #EBE6DF;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tasting-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Reserve Banner */
.reserve-banner {
    background-color: var(--accent-brown);
    color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.reserve-banner h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.reserve-banner p {
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #2B2B2B;
    color: var(--bg-secondary);
    padding: 3rem 0;
}

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

.footer-sub {
    font-size: 0.9rem;
    color: #A0A0A0;
    margin: 1rem 0;
}

.copyright {
    font-size: 0.8rem;
    color: #707070;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    /* Modify layout for mobile */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .split-layout {
        flex-direction: column;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bottom Navigation Bar Setup */
    .navbar {
        top: auto;
        bottom: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding-bottom: env(safe-area-inset-bottom); /* iOS support */
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .logo {
        display: none; /* Hide logo on bottom nav */
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }
    
    .nav-links i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
    }
    
    .nav-item::after {
        display: none;
    }
    
    /* Add padding to body so bottom nav doesn't cover content */
    body {
        padding-bottom: 70px; /* nav height */
    }
    
    .quiz-buttons {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-brown);
}

.modal h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent-brown);
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}
