/* ============================================
   Tea Diaries Cafe - Warm Theme Stylesheet
   ============================================ */

/* CSS Variables - Warm Color Palette */
:root {
    --primary-color: #8B4513;      /* Saddle Brown */
    --primary-dark: #5D2E0C;       /* Darker Brown */
    --primary-light: #A0522D;      /* Sienna */
    --secondary-color: #D2691E;    /* Chocolate */
    --accent-color: #DAA520;       /* Goldenrod */
    --cream: #FFF8DC;              /* Cornsilk */
    --cream-dark: #F5E6C8;         /* Darker Cream */
    --warm-white: #FFFAF0;         /* Floral White */
    --text-dark: #3D2914;          /* Dark Brown Text */
    --text-light: #6B4423;         /* Light Brown Text */
    --overlay-dark: rgba(45, 25, 10, 0.7);
    --shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
    --shadow-hover: 0 8px 30px rgba(139, 69, 19, 0.25);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--warm-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 220, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--primary-color);
    color: var(--cream);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(139, 69, 19, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
    animation: fadeInUp 1s ease;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--cream);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--cream);
    transform: translateY(-3px);
}

/* ============================================
   Decorative Elements
   ============================================ */
.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 15px 0 25px;
    border-radius: 3px;
}

.decorative-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--warm-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    border: 3px dashed var(--primary-light);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-light);
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

.image-placeholder small {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary-light);
}

.image-placeholder.small {
    min-height: 80px;
    width: 80px;
    font-size: 2rem;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Menu Item Images */
.menu-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section Image */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.gallery-placeholder {
    min-height: 250px;
}

/* ============================================
   Menu Section
   ============================================ */
.menu {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
}

.menu h2 {
    text-align: center;
    font-size: 2.5rem;
}

/* Menu Category Buttons */
.menu-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.category-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--cream);
}

/* Menu Prompt */
.menu-prompt {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 60px 20px;
    font-style: italic;
}

.menu-prompt.hidden {
    display: none;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.menu-item {
    background: var(--warm-white);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.menu-item-content h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.menu-item-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.menu-item.hidden {
    display: none;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: 100px 0;
    background: var(--warm-white);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    line-height: 1;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    text-align: center;
    padding: 30px;
    background: var(--warm-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.social-links h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--cream);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--cream);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 20px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        text-align: center;
        padding: 12px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .menu-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h2,
    .menu h2,
    .gallery h2,
    .contact h2 {
        font-size: 2rem;
    }
}
