/* Olmia Homepage Styling */

:root {
    --olmia-blue: #053A62;
    --olmia-orange: #ff2323;
    --olmia-light-blue: #0a4a7a;
}

/* ===== HERO SLIDER ===== */
.olmia-hero-slider {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.olmia-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.olmia-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.olmia-slide.active {
    opacity: 1;
    visibility: visible;
}

.olmia-slide .olmia-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.olmia-slide .olmia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,58,98,0.4) 0%, rgba(5,58,98,0.1) 100%);
}

/* Slider Navigation Dots */
.olmia-slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.olmia-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.olmia-slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

.olmia-slider-dot.active {
    background: var(--olmia-orange);
    transform: scale(1.2);
}

/* Progress Bar */
.olmia-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}

.olmia-slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--olmia-orange);
    transition: width 0.1s linear;
}

/* ===== HERO SECTION (legacy support) ===== */
.olmia-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.olmia-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.olmia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,58,95,0.3) 0%, rgba(30,58,95,0.1) 100%);
}

.olmia-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.olmia-hero-box {
    background: var(--olmia-blue);
    padding: 3rem;
    max-width: 550px;
    border-radius: 4px;
    position: relative;
}

.olmia-hero-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--olmia-orange);
}

.olmia-hero-box h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.olmia-hero-box h1 span {
    color: var(--olmia-orange);
}

.olmia-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.olmia-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-olmia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-olmia-orange {
    background: var(--olmia-orange);
    color: white;
    border-color: var(--olmia-orange);
}

.btn-olmia-orange:hover {
    background: #e5850f;
    border-color: #e5850f;
}

.btn-olmia-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-olmia-outline:hover {
    background: white;
    color: var(--olmia-blue);
}

/* ===== CATEGORIES SECTION ===== */
.olmia-categories {
    padding: 3rem 0;
    background: white;
}

.olmia-categories-alt {
    padding-top: 1rem;
}

.olmia-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.olmia-cat-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.olmia-cat-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.olmia-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.2s;
}

.olmia-cat-card:hover {
    border-color: var(--olmia-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.olmia-cat-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.olmia-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olmia-cat-name {
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* ===== BANNERS SECTION ===== */
.olmia-banners {
    padding: 3rem 0;
    background: #f8f8f8;
}

.olmia-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.olmia-banner {
    padding: 2rem;
    border-radius: 4px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.olmia-banner-dealer {
    background: linear-gradient(135deg, var(--olmia-blue) 0%, var(--olmia-light-blue) 100%);
    color: white;
}

.olmia-banner-work {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
    color: var(--olmia-blue);
}

.olmia-banner-label {
    display: inline-block;
    background: var(--olmia-orange);
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 1rem;
    position: absolute;
    top: -10px;
    left: 1.5rem;
}

.olmia-banner-label-orange {
    background: var(--olmia-orange);
}

.olmia-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.olmia-banner h3 span {
    color: var(--olmia-orange);
}

.olmia-banner-logo-box {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    color: var(--olmia-blue);
}

.olmia-banner-logo-box strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.olmia-banner-logo-box small {
    font-size: 0.75rem;
    color: #666;
}

.olmia-banner-sub {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.olmia-banner-sub span {
    color: var(--olmia-orange);
}

/* ===== TEXT SECTION ===== */
.olmia-text-section {
    padding: 4rem 0;
    background: white;
}

.olmia-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.olmia-text-box {
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.olmia-text-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--olmia-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.olmia-text-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.olmia-text-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.olmia-text-box p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.olmia-text-box a {
    color: var(--olmia-blue);
    text-decoration: underline;
}

.olmia-brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.olmia-brand {
    padding: 1rem;
    background: #f8f8f8;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* ===== CONTACT SECTION ===== */
.olmia-contact-section {
    padding: 0;
    background: var(--olmia-blue);
    border-top: 4px solid var(--olmia-orange);
}

.olmia-contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
    min-height: 280px;
}

.olmia-contact-info {
    padding: 2rem 0;
}

.olmia-contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.olmia-contact-info > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.olmia-contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.olmia-contact-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.olmia-contact-icon {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.olmia-contact-option div strong {
    display: block;
    color: white;
    font-size: 0.95rem;
}

.olmia-contact-option div span {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.olmia-contact-address {
    padding: 2rem 0;
    align-self: center;
}

.olmia-contact-address h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.olmia-contact-address p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.olmia-contact-address address {
    font-style: normal;
    color: white;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.olmia-footer {
    background: var(--olmia-blue);
    color: white;
    padding-top: 3rem;
}

.olmia-footer-grid {
    display: grid;
    grid-template-columns: 180px repeat(5, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.olmia-footer-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.olmia-footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.olmia-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.olmia-footer-col li {
    margin-bottom: 0.4rem;
}

.olmia-footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.olmia-footer-col a i {
    color: var(--olmia-orange);
    font-size: 0.6rem;
}

.olmia-footer-col a:hover {
    color: white;
}

.olmia-footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.olmia-footer-socials a {
    color: white;
    font-size: 1.75rem;
}

.olmia-footer-socials a:hover {
    color: var(--olmia-orange);
}

.olmia-footer-bottom {
    background: white;
    padding: 1rem 0;
}

.olmia-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.olmia-payment-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.olmia-payment-icons .payment-icon {
    height: 24px;
    width: auto;
}

.olmia-footer-credits {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #666;
    font-size: 0.85rem;
}

.olmia-footer-credits a {
    color: #666;
    text-decoration: none;
}

.olmia-footer-credits a:hover {
    color: var(--olmia-orange);
}

.olmia-cookies-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .olmia-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .olmia-cat-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .olmia-banners-grid,
    .olmia-text-grid {
        grid-template-columns: 1fr;
    }

    .olmia-contact-grid {
        grid-template-columns: 1fr;
    }

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

    .olmia-footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .olmia-hero-box {
        padding: 2rem;
    }

    .olmia-hero-box h1 {
        font-size: 1.75rem;
    }

    .olmia-cat-grid,
    .olmia-cat-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .olmia-contact-options {
        grid-template-columns: 1fr;
    }

    .olmia-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .olmia-footer-logo {
        margin-bottom: 1rem;
    }

    .olmia-footer-col a {
        justify-content: center;
    }

    .olmia-footer-socials {
        justify-content: center;
    }

    .olmia-footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .olmia-footer-credits {
        flex-direction: column;
        gap: 0.5rem;
    }
}
