:root {
    --primary: #15803d;
    --secondary: #14532d;
    --accent: #f59e0b;
    --background: #faf8f3;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-motif {
    width: 100%;
    height: 32px;
    background-image: url('../img/navbar-motif.png');
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    margin-bottom: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

/* Navbar Images */
.nav-logo,
.nav-badge {
    height: 60px;
    position: relative;
    z-index: 10;
    transition: height 0.3s ease;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('../img/hero-custom.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 4rem;
    position: relative;
    transition: background-image 1s ease-in-out;
}

.hero-with-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.4));
    z-index: 1;
}

.hero-with-overlay .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #C19A6B;
    color: var(--white);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #000000;
}

.btn:hover {
    background-color: #A68256;
    transform: translateY(-2px);
}

/* Tours Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tour-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.tour-content {
    padding: 1.5rem;
}

.tour-category {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tour-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tour-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    white-space: pre-line;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.tour-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.tour-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 16px;
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: #A68256;
    color: #e2e8f0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #e8e8e8;
    line-height: 1.6;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent);
    opacity: 1;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #e8e8e8;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.contact-info li svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #8a6a45;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #d4d4d4;
    font-size: 0.875rem;
    max-width: 1200px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {

    /* Navbar Adjustments */
    nav {
        padding: 0.5rem 1rem;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-badge {
        display: none;
    }

    .navbar-motif {
        height: 20px;
    }

    /* Hero Adjustments */
    .hero {
        height: 50vh;
        margin-bottom: 2rem;
        background-position: center top;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }

    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}