/* styles.css */
:root {
    --gold: #c5a059;
    --gold-light: #e8d08d;
    --silver: #a9a9a9;
    --silver-light: #f4f4f4;
    --text-main: #2c2c2c;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    display: flex;
}

/* --- SIDEBAR (Desktop) --- */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-alt);
    border-right: 2px solid var(--silver-light);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    z-index: 1000;
}

.brand-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-profile img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
    margin-bottom: 1rem;
}

.brand-profile h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: var(--silver-light);
    border-left: 3px solid var(--gold);
    color: var(--gold);
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.banner-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-content {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* --- BRAND CARDS (Grid) --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    background: var(--bg-alt);
    border: 1px solid var(--silver-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--silver), var(--gold));
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* New CSS class for the autofitting brand logos */
.brand-logo {
    width: 100%;
    max-height: 180px; /* Prevents the image from being overwhelmingly large */
    object-fit: contain; /* Scales the image to fit without stretching */
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.brand-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.brand-card p {
    margin-bottom: auto; /* Pushes the button to the bottom */
}

.brand-card a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.brand-card a:hover { background: #b08d4a; }

/* --- CONTACT FORM --- */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info, .contact-form { flex: 1; }
.contact-info p { margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info strong { color: var(--gold); }

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--silver);
    border-radius: 6px;
    font-family: var(--font-body);
    background: var(--bg-alt);
}

.contact-form button {
    padding: 1rem 2rem;
    background: var(--text-main);
    color: var(--gold);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--gold);
    color: white;
}

/* =========================================
   MOBILE OPTIMIZATION (Media Queries)
   ========================================= */
@media screen and (max-width: 768px) {
    body { flex-direction: column; }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
        border-right: none;
        border-bottom: 2px solid var(--silver-light);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .brand-profile { margin-bottom: 0; display: flex; align-items: center; margin-right: 1.5rem; }
    .brand-profile img { width: 40px; height: 40px; border-width: 1px; margin-bottom: 0; margin-right: 10px; }
    .brand-profile h2 { font-size: 1.1rem; white-space: nowrap; }
    
    .sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar nav::-webkit-scrollbar { display: none; }
    .sidebar nav { -ms-overflow-style: none; scrollbar-width: none; }

    .sidebar nav a {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar nav a:hover, .sidebar nav a.active {
        border-left: none;
        border-bottom: 3px solid var(--gold);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .banner-container { height: 150px; }
    .page-content { padding: 2rem 1.5rem; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .contact-wrapper { flex-direction: column; gap: 2rem; }
}
