/* 
* Stylesheet: Turismo Ugíjar
* Description: Custom styles for the tourism portal
* Palette: Rural Tourism (Olive, Earth, Off-White)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #4A6741;
    /* Deep Olive Green */
    --primary-dark: #354B2E;
    /* Darker Olive */
    --secondary-color: #8C6A48;
    /* Warm Earth Brown */
    --accent-color: #D4A017;
    /* Golden Sun (for highlights) */
    --bg-light: #FAF9F6;
    /* Off-White / Cream */
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    /* Dark Slate */
    --text-light: #6c757d;
    /* Grey Muted */

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --navbar-height: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-top: var(--navbar-height);
    /* For fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Animated Underline for Nav items */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
    /* Slide effect */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Buttons & Utilities
   ========================================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 103, 65, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #2D3035;
    color: #fff;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

footer p,
footer li,
footer a {
    color: #bbb;
    font-size: 0.95rem;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    color: #fff;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    background-color: #222529;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alo-rustico-badge {
    background: linear-gradient(45deg, var(--secondary-color), #6D4C41);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: white;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alo-rustico-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.alo-rustico-badge small {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.alo-rustico-badge strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .dropdown-item {
        padding-left: 20px;
    }
}