/* 
   --------------------------------------------------------------------------
   HF IMPORTS PARAGUAY - PREMIUM COLLECTION ("Best of the Best")
   Theme: Luxury Monochrome & Glassmorphism
   --------------------------------------------------------------------------
*/

:root {
    /* Colors */
    --color-bg-body: #ffffff;
    --color-bg-secondary: #f9f9f9;
    --color-text-main: #0a0a0a;
    --color-text-muted: #666666;
    --color-accent: #000000;
    /* Pitch black for primary actions */
    --color-accent-hover: #333333;
    --color-border: #e5e5e5;
    --color-white: #ffffff;

    /* Shadows & Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);

    /* Layout */
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Responsive Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Global Reset & Typography */
body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Prefer modern sans */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* Container */
.py-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* 
   --------------------------------------------------------------------------
   HERO SECTION - High Impact
   --------------------------------------------------------------------------
*/
.py-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

/* Cinematic Gradient Overlay */
.py-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    animation: fadeUp 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 4rem;
    /* Massive headline */
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-white);
    color: var(--color-text-main);
    padding: 16px 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    background-color: var(--color-white);
    color: var(--color-text-main);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: var(--color-text-main);
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--color-text-main);
    color: var(--color-white);
    border-color: var(--color-text-main);
    text-decoration: none;
}

/* 
   --------------------------------------------------------------------------
   SEARCH BAR - Glassmorphism
   --------------------------------------------------------------------------
*/
.search-mock {
    background: rgba(255, 255, 255, 0.95);
    /* Frosted glass fallback */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 50;
    align-items: center;
}

.search-mock select {
    flex: 1;
    min-width: 180px;
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    border: 1px solid transparent;
    /* No border initially */
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.search-mock select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-mock select:hover:not(:disabled) {
    background-color: var(--color-white);
    border-color: var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Slight lift */
}

.search-mock button {
    flex: 0 0 auto;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.search-mock button:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 
   --------------------------------------------------------------------------
   CATALOG GRID - Premium Cards
   --------------------------------------------------------------------------
*/
.catalog-section {
    padding: 100px 0;
    background-color: var(--color-bg-body);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

/* Small underline accent */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 16px auto 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Widen cards */
    gap: 40px;
}

/* Card Container */
.vehicle-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid transparent;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Image */
.card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.vehicle-card:hover .card-img-top {
    transform: scale(1.05);
    /* Subtle zoom */
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

/* Overlays on Image */
.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--color-accent);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Body */
.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: block;
    letter-spacing: -0.5px;
}

/* Features List */
.card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features li i {
    color: var(--color-accent);
    /* Icon color */
    opacity: 0.7;
    width: 16px;
}

/* Hover Action Button (Bottom) */
.card-action {
    margin-top: 24px;
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.card-action:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* 
   --------------------------------------------------------------------------
   INFO GRID - Clean Editorial
   --------------------------------------------------------------------------
*/
.info-section {
    padding: 100px 0;
    background-color: var(--color-bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* 
   --------------------------------------------------------------------------
   RESPONSIVE REFINEMENTS (User Feedback: "Too Big")
   --------------------------------------------------------------------------
*/
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-mock {
        margin-top: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .py-hero {
        height: auto;
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    /* Buttons */
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-outline {
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    /* Search */
    .search-mock select {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 100%;
    }

    .search-mock button {
        padding: 12px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Cards */
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-img-top {
        height: 200px;
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-price {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    /* Ads */
    .ad-banner-top {
        margin: 20px 0;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}