/* 
    Chai Mate - Premium Tea Brand Stylesheet
    Aesthetics: Warm Luxury Editorial
    Colors: 
    - Chai Brown: #6B3A2A
    - Golden Amber: #D4A017
    - Cream White: #FDF6EC
    - Forest Green: #228B22 (Organic badges)
    Typography:
    - Serif: Playfair Display
    - Sans-Serif: DM Sans
*/

:root {
    --chai-brown: #1B3022;   /* Deep Forest */
    --golden-amber: #A68044; /* Burnished Gold */
    --cream-white: #FDFBF7;  /* Parchment White */
    --forest-green: #1B3022;
    --text-dark: #2A2A2A;
    --text-light: #FDFBF7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

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

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --- Layout Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header */
.top-bar {
    background-color: var(--chai-brown);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar a:hover {
    color: var(--golden-amber);
}

header {
    background: rgba(253, 246, 236, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a:hover {
    color: var(--golden-amber);
}

.cta-button {
    background-color: var(--chai-brown);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--golden-amber);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--chai-brown);
}

.section-title p {
    color: var(--golden-amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Product Cards & Packaging Hover */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    perspective: 1000px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img-container {
    position: relative;
    width: 100%;
    height: 350px; /* Adjusted for packaging tallness */
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-card:hover .product-img-container {
    transform: rotateY(180deg);
}

.product-front, .product-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f9f9f9;
}

.product-back {
    transform: rotateY(180deg);
}

.product-info {
    padding: 25px;
    background: white;
    position: relative;
    z-index: 10;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--chai-brown);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}
