/* style.css */

:root {
    --primary-purple: #4a1d64;      /* Deep brand purple */
    --light-purple: #f3e8ff;        /* Page background tint */
    --gold-gradient: linear-gradient(to bottom, #eab308, #ca8a04); /* Button color */
    --dark-footer: #1a1a1a;
    --metallic-card: linear-gradient(180deg, #b0b0b0 0%, #e0e0e0 40%, #ffffff 100%);
    --purple-card: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);
}

/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-purple);
    /* Subtle radial glow to mimic the reference background */
    background: radial-gradient(circle at center, #ffffff 0%, #f3e8ff 100%);
    color: #333;
    line-height: 1.6;
}

/* 2. Header & Navigation */
.main-header {
    background: var(--primary-purple);
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text .ame {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text .sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    opacity: 1;
    border-bottom: 2px solid #a855f7;
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 20px;
    padding: 6px 15px;
    color: white;
    font-size: 0.8rem;
    width: 180px;
}

.search-bar i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* 3. Hero Section */
.hero {
    text-align: center;
    padding: 4rem 10%;
    /* Replicating the geometric pattern background */
    background-image: linear-gradient(rgba(74, 29, 100, 0.9), rgba(74, 29, 100, 0.9)), 
                      url('https://www.transparenttextures.com/patterns/cubes.png');
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

.hero h1 span {
    font-weight: 600;
    font-style: italic;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* 4. Brand Grid Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    
    /* Apply the generated background */
    background-image: url('../images/container-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Ensure the container has a minimum height to show the watermark */
    min-height: 800px;
    
    /* Optional: Subtle border to define the main content area like the reference */
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #222;
}

.brands-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Top Row: 3 columns */
.top-row {
    grid-template-columns: repeat(3, 1fr);
}

/* Bottom Row: 2 columns, centered */
.bottom-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

/* 5. Brand Cards & Overlapping Logo */
.brand-card {
    border-radius: 15px;
    overflow: visible; /* Important for the overlapping logo */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-8px);
}

/* Metallic Gradient style */
.metallic {
    background: var(--metallic-card);
    border: 1px solid #ccc;
}

/* Purple Gradient style */
.purple-tint {
    background: var(--purple-card);
    color: #222;
}

/* Image Container with relative positioning */
.card-img-container {
    position: relative;
    width: 100%;
    height: 180px;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
}

/* The Overlapping Logo Circle */
.brand-logo-circle {
    position: absolute;
    width: 75px;
    height: 75px;
    background: white;
    border-radius: 50%;
    left: 20px; /* Positioned to the left side per your request */
    bottom: -37.5px; /* Half of height (75/2) to straddle image and text */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    z-index: 5;
}

.brand-logo-circle.dark {
    background: #000;
    color: white;
    border-color: #000;
}

/* 6. Card Content */
.card-content {
    padding: 50px 20px 25px 20px; /* Increased top padding to avoid logo overlap */
    text-align: center;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category {
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    color: #444;
    margin-bottom: 12px;
}

.desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    height: 40px;
}

/* 7. Buttons */
.btn-visit {
    display: inline-block;
    background: var(--gold-gradient);
    color: #331644;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 0px #854d0e;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-visit:hover {
    filter: brightness(1.1);
}

.btn-visit:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #854d0e;
}

/* 8. Footer */
.main-footer {
    background: var(--dark-footer);
    color: white;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.85rem;
    font-weight: bold;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
}

.footer-center {
    display: flex;
    gap: 20px;
}

.footer-center a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-center a:hover {
    opacity: 1;
    color: #a855f7;
}

.footer-right {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 9. Responsive Adjustments */
@media (max-width: 992px) {
    .top-row, .bottom-row {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .top-row, .bottom-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links, .search-bar {
        display: none;
    }
    
    .navbar {
        justify-content: center;
    }
    
    .main-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}