/* 
   Aceites Escalada Sierra - Premium Design System 
   Theme: Contemporary Olive & Gold
*/

:root {
    /* Color Palette */
    --color-primary: #2C3E28;
    /* Deep Olive Green */
    --color-primary-light: #4A6346;
    --color-secondary: #D4AF37;
    /* Metallic Gold */
    --color-secondary-dark: #B5952F;
    --color-bg: #FAF9F6;
    /* Off-white / Cream */
    --color-text: #333333;
    /* Dark Charcoal */
    --color-text-light: #666666;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    padding-top: 6rem;
    /* Prevent navbar overlap - increased safety margin */
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        padding-top: 3.5rem;
        /* Increased padding for mobile to clear taller menus */
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(44, 62, 40, 0.95) !important;
    /* Primary with slight transparency */
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: all 0.3s;
}

/* Navbar Flex Fix Removed - Reverting to default wrapping behavior */

.navbar-brand {
    font-family: var(--font-heading);
    color: var(--color-secondary) !important;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary) !important;
}

/* Carousel */
.carousel-item {
    height: 90vh;
    /* Full screen impact */
    min-height: 500px;
    background-color: var(--color-text);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
    /* Darken images slightly for text legibility */
}

.carousel-caption {
    bottom: 30%;
    text-align: center;
    /* Center by default */
}

/* Mobile specific adjustments for Carousel */
@media (max-width: 768px) {

    .carousel-caption {
        top: 10% !important;
        transform: none !important;
        bottom: auto !important;
        padding-top: 0;
        background: none;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        /* Significantly smaller heading */
        margin-bottom: 0.5rem;
        background: none;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        /* Smaller text */
        margin-bottom: 1rem;
        background: none;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
    }

    .carousel-item {
        height: 80vh;
        /* SafeArea height */
        min-height: 400px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.carousel-caption h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: none;
    /* Removed the teal background */
}

.carousel-caption p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    /* Removed background */
    margin-bottom: 2rem;
    font-weight: 300;
}

.carousel-caption .btn {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 2px;
    /* Sharper corners for premium feel */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.carousel-caption .btn:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Marketing & Featurettes */
.container.marketing {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.marketing h4 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.marketing p.lead {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Images in columns */
.marketing .col-lg-4 img.rounded-circle {
    border: 3px solid var(--color-secondary);
    padding: 3px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.marketing .col-lg-4:hover img.rounded-circle {
    transform: scale(1.05);
}

/* Featurettes */
.featurette {
    margin: var(--spacing-xl) 0;
    align-items: center;
}

.featurette-heading {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.featurette-heading .text-muted {
    color: var(--color-secondary) !important;
    font-size: 1.75rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.featurette-image {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.marketing form.my-form {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-secondary);
}

.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: none;
}

.btn-default {
    background-color: var(--color-primary);
    color: white;
    border-radius: 0;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
}

.btn-default:hover {
    background-color: var(--color-primary-light);
    color: white;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    margin-top: var(--spacing-xl);
}

footer a {
    color: var(--color-secondary);
}

footer a:hover {
    color: white;
    text-decoration: none;
}