/**
 * Imperium Exchange - Main Stylesheet
 * Classic Luxury Design Theme
 * Gold, Navy, and Cream Palette
 */

/* CSS Variables */
:root {
    --primary-gold: #D4AF37;
    --dark-navy: #1a1a2e;
    --soft-cream: #faf9f6;
    --deep-brown: #2c2416;
    --light-gold: #f4e4c1;
    --white: #ffffff;
    --light-gray: #e8e8e8;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-brown);
    background: var(--soft-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Top Bar */
.top-bar {
    background: var(--dark-navy);
    color: white;
    padding: 8px 0;
    font-size: 12px;
    text-align: center;
}

.top-bar a {
    color: var(--primary-gold);
    text-decoration: none;
    margin: 0 15px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-navy);
    letter-spacing: 2px;
    text-decoration: none;
}

.logo span {
    color: var(--primary-gold);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--deep-brown);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
    padding: 5px 0;
}

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

nav a:hover,
nav a.active {
    color: var(--primary-gold);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--dark-navy);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    border-radius: 2px;
    position: relative;
}

.mobile-menu-toggle span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    top: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span::before {
    transform: scaleX(1);
}

.mobile-menu-toggle.active span {
    background: var(--primary-gold);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 45px;
    background: var(--primary-gold);
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--primary-gold);
    font-size: 13px;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 45px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid white;
    margin-left: 20px;
    font-size: 13px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-navy);
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-brown) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/heropattern.jpg');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero .subtitle {
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--light-gold);
    margin-bottom: 40px;
}

.hero-buttons {
    margin-top: 40px;
}

/* Sections */
.featured {
    padding: 100px 40px;
}

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

.section-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    color: var(--dark-navy);
}

/* Auction Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.auction-card {
    background: white;
    border: 1px solid var(--light-gray);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.4s;
    z-index: 10;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.auction-card:hover::before {
    transform: scaleX(1);
}

.auction-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.auction-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gold);
    color: var(--dark-navy);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 5;
}

.auction-info {
    padding: 30px;
}

.auction-date {
    font-size: 12px;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auction-title {
    font-size: 28px;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.auction-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.auction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.lot-count {
    font-size: 13px;
    color: #666;
}

.view-auction {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.view-auction:hover {
    color: var(--dark-navy);
}

/* Stats Bar */
.stats-bar {
    background: var(--dark-navy);
    padding: 60px 40px;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--light-gray);
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .auction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .top-bar {
        font-size: 11px;
        padding: 6px 15px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 15px 20px;
    }

    .logo {
        font-size: 24px;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    /* Show navigation when active */
    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
        padding: 40px 20px;
    }

    nav li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    nav.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav.active li:nth-child(1) { transition-delay: 0.1s; }
    nav.active li:nth-child(2) { transition-delay: 0.15s; }
    nav.active li:nth-child(3) { transition-delay: 0.2s; }
    nav.active li:nth-child(4) { transition-delay: 0.25s; }
    nav.active li:nth-child(5) { transition-delay: 0.3s; }
    nav.active li:nth-child(6) { transition-delay: 0.35s; }
    nav.active li:nth-child(7) { transition-delay: 0.4s; }
    nav.active li:nth-child(8) { transition-delay: 0.45s; }

    nav a {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
        color: white;
    }

    nav a::after {
        background: var(--primary-gold);
    }

    nav a:hover,
    nav a.active {
        color: var(--primary-gold);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        height: 450px;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero .subtitle {
        font-size: 14px;
        margin: 15px 0 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 0;
    }

    /* Sections */
    .featured {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Grids */
    .auction-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Cards */
    .auction-card {
        margin: 0;
    }

    .auction-image {
        height: 300px;
    }

    .auction-content {
        padding: 25px;
    }

    .auction-title {
        font-size: 26px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Utility */
    .container {
        padding: 0 20px;
    }

    /* Forms */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    button,
    .btn-primary,
    .btn-secondary {
        min-height: 48px; /* Touch-friendly */
    }
}

@media (max-width: 480px) {
    /* Typography */
    .hero h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 28px;
    }

    .auction-title {
        font-size: 22px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Navigation */
    nav a {
        font-size: 16px;
    }

    /* Hero */
    .hero {
        height: 400px;
        padding: 60px 15px;
    }

    .hero .subtitle {
        font-size: 13px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 30px;
        font-size: 12px;
    }

    /* Cards */
    .auction-content {
        padding: 20px;
    }

    .auction-estimate {
        font-size: 18px;
    }

    /* Spacing */
    .featured {
        padding: 40px 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Mobile Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Improve tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    /* Smooth scrolling on mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
