/* ==========================================================================
   1. Reset & Base Styles
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #ffffff; 
    color: #1a1a1a; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { 
    font-family: 'Playfair Display', serif; 
    font-weight: 400; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

/* ==========================================================================
   2. Header & Navigation Menu
   ========================================================================== */
header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

/* Responsive Logo Config */
.logo-container {
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

.logo-img {
    max-width: 280px; /* Increase to 450px if your image file still has large transparent borders */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Nav links */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

nav ul li a:hover { 
    color: #000; 
}

/* ==========================================================================
   3. Mega Dropdown System
   ========================================================================== */
.dropdown { 
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 500px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.1);
    z-index: 1100;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 30px;
    border: 1px solid #f2f2f2;
    text-align: left;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

.dropdown-grid { 
    display: flex; 
    gap: 40px; 
}

.dropdown-column { 
    flex: 1; 
}

.dropdown-column h4 { 
    font-size: 10px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #999; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 8px; 
}

.dropdown-column a { 
    display: block; 
    padding: 6px 0; 
    font-size: 13px; 
    text-transform: none; 
    color: #333; 
    letter-spacing: 0.5px;
}

.dropdown-column a:hover { 
    color: #c5a059; 
    padding-left: 5px; 
}

.sub-item { 
    padding-left: 10px !important; 
    font-style: italic; 
    color: #777 !important; 
    font-size: 12px !important; 
}

/* ==========================================================================
   4. Hero Image Banner
   ========================================================================== */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('image/background_new.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
}

.hero-content h2 { 
    font-size: 52px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2); 
}

/* ==========================================================================
   5. Intro Text & Brand Logos Layout
   ========================================================================== */
.intro-section {
    max-width: 850px;
    margin: 100px auto;
    text-align: center;
    padding: 0 20px;
}

.intro-section h2 { 
    font-size: 34px; 
    margin-bottom: 25px; 
}

.intro-section p { 
    font-size: 17px; 
    font-weight: 300; 
    color: #555; 
    line-height: 1.8; 
}

/* Distributor Logos Row Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.brand-item {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-item img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.brand-item:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

/* ==========================================================================
   6. Footer Section (Updated to elegant cream background)
   ========================================================================== */
footer {
    padding: 80px 20px;
    background: #f9f6f0;      /* Cream background color matching your sample */
    color: #1a1a1a;           /* Dark charcoal text for legible contrast */
    text-align: center;
}

.footer-logo { 
    font-size: 24px; 
    letter-spacing: 8px; 
    margin-bottom: 20px; 
    display: block; 
}

/* Forces secondary intro line in footer to match dark theme shift */
footer p {
    color: #555 !important;
}

.copyright { 
    font-size: 10px; 
    color: #888;              /* Soft dark gray for the bottom subtext */
    letter-spacing: 2px; 
    margin-top: 50px; 
    text-transform: uppercase; 
}

/* ==========================================================================
   7. Mobile Fluid Adaptation Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h2 { 
        font-size: 32px; 
    }
    
    .dropdown-content { 
        min-width: 280px; 
    }
    
    .dropdown-grid { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .logo-img {
        max-width: 180px;
    }

    /* Transforms 4 logos layout into a clean 2x2 grid block on smartphone views */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
        padding: 0 10px;
    }
    
    .brand-item img {
        max-width: 110px;
    }
}