
/* Base Styles */
:root {
    --color-background: hsl(120, 25%, 97%);
    --color-foreground: hsl(130, 10%, 20%);
    --color-primary: hsl(130, 30%, 35%);
    --color-primary-dark: hsl(130, 30%, 25%);
    --color-primary-light: hsl(130, 30%, 45%);
    --color-accent: hsl(110, 30%, 94%);
    --color-accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --color-secondary: hsl(40, 30%, 96%);
    --color-secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --color-muted: hsl(210, 40%, 96.1%);
    --color-muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --color-border: hsl(214.3, 31.8%, 91.4%);
    --color-white: #fff;
    --color-black: #000;
    --color-gray-100: #f7f7f7;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-primary-red: #ff0000; /* Adding red as a new variable */
    --color-accent-red: hsl(27, 29%, 94%);
    
    --font-display: 'Playfair Display', serif;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.125rem;
    --radius: 0.5rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .logo-grid {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .navbar-brand {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1rem;
        color: hsl(130, 30%, 30%);
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .logo-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: 1fr 8fr 1fr;
    }
    .navbar-brand {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.5rem;
        color: hsl(130, 30%, 30%);
        text-align: center;
    }
}


.navbar-links {
    display: none;
}

.navbar-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-link:hover {
    color: var(--color-primary-dark);
    background-color: var(--color-accent);
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--color-primary);
}

.menu-icon {
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.mobile-link:hover {
    color: var(--color-primary-dark);
    background-color: var(--color-accent);
}

/*@media (min-width: 768px) {
    .navbar-links {
        display: flex;
        gap: 1rem;
    }

    .mobile-menu-button {
        display: none;
    }
}*/

/* Hero Section */
.hero {
    height: 80vh;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    padding-top: 4rem;
}

.hero-content {
    max-width: 1000px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.75rem;
    }

    .hero p {
        font-size: 1.25rem;
    }
}

/* Buttons */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(130, 30%, 35%);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.button-primary:hover {
    background-color: hsl(130, 30%, 30%);
}

.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.button-outline:hover {
    background-color: var(--color-accent);
}

.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.button-light:hover {
    background-color: var(--color-gray-100);
}

.button-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    color: white;
    background-color: transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.button-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.button-outline-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary-red);
    color: var(--color-primary-red);
    background-color: transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.button-outline-red:hover {
    background-color: var(--color-accent-red);
}

.icon {
    display: inline-flex;
    margin-right: 0.5rem;
}

/* Introduction Section */
.intro-section {
    padding: 4rem 0;
    background-color: white;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.intro-text h2 {
    font-size: 1.875rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-700);
}

.intro-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.intro-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}



/* Cards */
.location-grid, .trail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: rgba(var(--color-primary-rgb), 0.8);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
}

.card-link {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* Trail specific styles */
.trail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    display: flex;
    color: white;
}

.trail-type, .trail-duration {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.trail-type {
    margin-right: 1rem;
}

.trail-details {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.trail-difficulty {
    padding: 0.125rem 0.5rem;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .location-grid, .trail-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .location-grid, .trail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Sections */
.featured-locations {
    padding: 3rem 0;
}

.featured-trails {
    padding: 3rem 0;
    background-color: var(--color-accent);
}

/* Map Section */
.map-section {
    padding: 3rem 0;
    background-color: var(--color-background);
}

.map-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.cta-image {
/* max-width: 300px; /* Adjust this to make the image smaller */
    display: block; /* Makes the image a block element */
    margin-left: auto; /* Centers horizontally */
    margin-right: auto;
    height: auto;
    align-content: center;
  /*  float: right; /* Aligns image to the right */
    /*margin-left: 20px; /* Space between image and text */
    margin-bottom: 10px;
}


/* CTA Fire Section */
.cta-fire-section {
    padding: 4rem 0;
    background-color: var(--color-foreground);
    color: white;
    text-align: center;
}

.cta-fire-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-fire-section p {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
}

.cta-fire-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.cta-fire-image {
/* max-width: 300px; /* Adjust this to make the image smaller */
    display: block; /* Makes the image a block element */
    margin-left: auto; /* Centers horizontally */
    margin-right: auto;
    height: auto;
    align-content: center;
  /*  float: right; /* Aligns image to the right */
    /*margin-left: 20px; /* Space between image and text */
    margin-bottom: 10px;
}


/* Footer */
.footer {
    background-color: var(--color-gray-900);
    color: white;
    padding-top: 3rem;
    margin-top: auto;
}

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

.footer-about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--color-gray-300);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-gray-800);
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: var(--color-primary);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-contact ul {
    color: var(--color-gray-300);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item .icon {
    color: var(--color-gray-400);
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-gray-800);
}

.footer-bottom p {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

 .footer-bottom {
        display: flex;
        flex-wrap: wrap; /* Lets logos fall in two line if needed */
        justify-content: center;
        align-items: center;
        gap: 8px; /* Reduced gap for tighter spacing */
        width: 100%;
        background-color: white; /* White background */
        padding: 10px; /* Adds some space around logos */
    }

    .footer-logo {
        height: 50px; /* Height for desktop */
        width: auto;
        object-fit: contain; /* Maintains aspect ratio */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem;
        padding-top: 0.4rem; 
        padding-bottom: 0.3rem;
    }
    @media (max-width: 1024px) {
        .footer-logo {
            height: 45px; 
            padding: 0.5rem;
        }
    }
    /* Mobile screens (e.g., below 768px) */
    @media (max-width: 768px) {
        .footer-bottom {
            /*flex-direction: column; /* Stacks logos vertically */
            flex-wrap: wrap; /* Allows wrapping if needed */
            align-items: center;
            gap: 10px; /* Slightly larger gap for vertical stacking */
        }

        .footer-logo {
            height: 35px; /* Slightly smaller for mobile */
            width: auto;
            object-fit: contain;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.3rem;
        }
    }

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Animation for cards */
.location-card, .trail-card {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card:nth-child(1), .trail-card:nth-child(1) {
    animation-delay: 0.1s;
}

.location-card:nth-child(2), .trail-card:nth-child(2) {
    animation-delay: 0.2s;
}

.location-card:nth-child(3), .trail-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Colors */
:root {
    --color-primary-rgb: 59, 115, 67;
}


   