/* 
    Theme: Thirumaala - Poetic Narrative Variation
    Colors: 
    - Primary Gold: #D4AF37
    - Deep Red/Maroon: #800000
    - Emerald Green: #004225
    - Cream/Beige: #F5F5DC
*/

:root {
    --primary-gold: #D4AF37;
    --primary-maroon: #800000;
    --primary-green: #004225;
    --bg-cream: #F5F5DC;
    --text-dark: #2c2c2c;
    --text-light: #f9f9f9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-padding {
    padding: 80px 0;
}

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

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-gold);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    /* Ensure no white background blocks the logo */
    background: transparent !important;
}

.logo {
    /* CRITICAL: Logo sizing */
    max-height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    font-size: 1.2rem;
    color: var(--primary-maroon);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-maroon);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-cream);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-maroon);
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
    padding-bottom: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.pexels.com/photos/1253364/pexels-photo-1253364.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 70px; /* Offset for fixed header */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text readable */
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,66,37,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F5F5DC' fill-opacity='1' d='M0,224L80,213.3C160,203,320,181,480,181.3C640,181,800,203,960,208C1120,213,1280,203,1360,197.3L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

/* Featured Collections */
.collections {
    background-color: var(--bg-cream);
    /* Subtle decorative pattern background */
    background-image: radial-gradient(#D4AF37 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.collection-card {
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    position: relative;
}

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

.card-image-wrapper {
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.card-image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.collection-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-content h3 {
    font-size: 1.2rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Cultural Storytelling */
.story-section {
    padding: 100px 0;
    background-color: #f0e6d2;
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    overflow: hidden;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
}

.story-text-left, .story-text-right {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: #4a3b2a;
    line-height: 1.8;
}

.drop-cap::first-letter {
    font-size: 3.5rem;
    float: left;
    margin-right: 10px;
    line-height: 0.8;
    color: var(--primary-gold);
    font-family: var(--font-heading);
}

.illustration-box {
    margin-top: 20px;
    border: 1px solid rgba(128, 0, 0, 0.2);
    padding: 5px;
}

.story-map-center {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kerala-map-svg {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.vintage-photo-overlay {
    position: absolute;
    width: 120px;
    height: auto;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    bottom: 20px;
    right: 20px;
}

/* Craftsmanship Showcase */
.craftsmanship-section {
    background-color: var(--primary-green);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.craft-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.craft-image {
    position: relative;
}

.craft-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-gold);
    z-index: 0;
}

.craft-image img {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.leaf-deco {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 C20 0 0 20 0 50 C0 80 20 100 50 100 C80 100 100 80 100 50 C100 20 80 0 50 0 Z' fill='none' stroke='%23D4AF37' stroke-width='1' stroke-opacity='0.1'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
}

.leaf-deco.top-right {
    top: -50px;
    right: -50px;
}

.leaf-deco.bottom-left {
    bottom: -50px;
    left: -50px;
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testi-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 300px;
    text-align: center;
    border-top: 3px solid var(--primary-gold);
}

.testi-card.featured {
    transform: scale(1.1);
    z-index: 2;
    border-top: 3px solid var(--primary-maroon);
}

.testi-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid var(--primary-gold);
}

.testi-img.large img {
    width: 80px;
    height: 80px;
}

/* Journal */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.journal-card {
    border: 1px solid #e0e0e0;
    padding: 10px;
}

.journal-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: sepia(0.3);
    transition: filter 0.3s;
}

.journal-card:hover .journal-img img {
    filter: sepia(0);
}

.journal-content {
    padding: 20px 10px;
    text-align: center;
}

.journal-content h3 {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.journal-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-layout {
        grid-template-columns: 1fr;
    }
    
    .story-map-center {
        order: -1;
        margin-bottom: 30px;
    }
    
    .testi-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .craft-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .journal-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}