/* ==========================================================================
   CARIBOO MOUNTAIN OUTFITTERS - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. General Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    /* Base fallback color (the woven olive green) */
    background-color: #6b7a53; 
    color: #f0f0f0;
    line-height: 1.6;
    
    /* To use the exact background texture from the screenshot, 
       save it as images/background-texture.jpg and uncomment the line below: */
    /* background-image: url('../images/background-texture.jpg'); */
    /* background-repeat: repeat; */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 2. Header & Logo Schema --- */
header {
    /* Wood background */
    background-image: url('https://via.placeholder.com/1920x150/5c3a21/ffffff?text=Wood+Grain+Background+Placeholder');
    background-size: cover;
    background-position: center;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    border-bottom: 2px solid #222;
    
    /* Once you save the wood image, comment out the placeholder above 
       and uncomment the local path below: */
    /* background-image: url('../images/wood-header.jpg'); */
}

.logo-container {
    position: absolute;
    bottom: -30px; /* Overlaps the nav bar */
    z-index: 10;
}

.logo-container img {
    height: 120px;
    background-color: #333; /* Fallback */
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* --- 3. Navigation Bar Schema --- */
nav {
    background-color: #2e3b1f; /* Dark olive green */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    position: relative;
    z-index: 5;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
}

nav > ul > li {
    position: relative;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    transition: background-color 0.3s;
}

nav > ul > li > a:hover, 
nav > ul > li > a.active {
    background-color: #556b3b; /* Lighter green on hover/active */
}

/* --- 4. Dropdown Menu Schema --- */
.dropdown-arrow::after {
    content: " \25BC";
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e3b1f;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 100;
}

.dropdown-menu li {
    border-bottom: 1px solid #556b3b;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: #556b3b;
}

/* Show dropdown on hover */
li:hover .dropdown-menu {
    display: block;
}

/* --- 5. Main Content & Layout Schemas --- */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Readability on texture */
}

.content-container p {
    margin-bottom: 20px;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Split Layout (Text & Image side-by-side) */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.split-text {
    flex: 1;
    min-width: 300px;
}

.split-image {
    flex: 1;
    min-width: 300px;
}

.split-image img {
    width: 100%;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Specific Image Classes */
.cabin-image {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 30px auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* --- 6. Gallery Grid Schema --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background-color: #333;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #fff;
    color: #ffcc00;
    font-weight: bold;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 7. Rates Table Schema --- */
.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.rates-table th, 
.rates-table td {
    border: 1px solid #556b3b;
    padding: 15px;
    text-align: left;
}

.rates-table th {
    background-color: #2e3b1f;
    font-size: 18px;
}

/* --- 8. Contact Form Schema --- */
.contact-form {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border: 2px solid #556b3b;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.submit-btn {
    background-color: #2e3b1f;
    color: #fff;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #556b3b;
}

/* --- 9. Detailed Footer Schema --- */
footer {
    background-color: #1a2212; /* Very dark green */
    color: #ccc;
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid #556b3b;
    font-size: 14px;
    text-shadow: none; /* Remove text shadow for footer */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #556b3b;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-column p, 
.footer-column ul {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* --- 10. Responsive Design (Mobile Adjustments) --- */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 10px 0;
    }
    
    nav a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dropdown-menu {
        position: relative;
        box-shadow: none;
        background-color: #3a4a2a;
    }

    .split-layout {
        flex-direction: column;
    }

    .page-title {
        font-size: 24px;
    }
}