/* ========================================
   Trail Life Northeast Region - Main Styles
   ======================================== */

/* CSS Variables - Official Trail Life Brand Colors */
:root {
    /* Primary Colors - Official Brand Guide */
    --primary-red: #ba262d;        /* Pantone 1795 */
    --dark-red: #6c162b;           /* Pantone 188 */
    --orange: #f49322;             /* Pantone 137 */
    --burnt-orange: #d25a27;       /* Pantone 1595 */
    --dark-brown: #3e2e18;         /* Pantone 462 */
    --gold: #876237;               /* Pantone 7575 */
    --light-brown: #9b7a54;        /* Pantone 7575-80% */
    --tan: #d8ccb7;                /* Pantone 7502 */
    --black: #010101;              /* True Black */
    
    /* Secondary Colors - Official Brand Guide */
    --light-green: #728e38;        /* Pantone 7495 */
    --dark-green: #34441c;         /* Pantone 574 */
    --light-blue: #4fa7c5;         /* Pantone 7702 */
    --medium-blue: #005c85;        /* Pantone 7468 */
    --dark-blue: #003b59;          /* Pantone 302 */
    
    /* Neutral Colors */
    --dark-gray: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-family: 'Open Sans', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

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

.btn-secondary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--dark-brown);
    border-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 98, 55, 0.3);
}

.text-center {
    text-align: center;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    background-image: 
        linear-gradient(rgba(186, 38, 45, 0.7), rgba(108, 22, 43, 0.8)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path fill="%23876237" opacity="0.1" d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Quick Links Section
   ======================================== */
.quick-links {
    padding: 80px 0;
    background: var(--light-gray);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quick-link-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(186, 38, 45, 0.2);
}

.quick-link-card i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.quick-link-card:hover i {
    color: var(--gold);
    transform: scale(1.1);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.quick-link-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* ========================================
   Featured Blog Section
   ======================================== */
.featured-blog {
    padding: 80px 0;
    background: var(--white);
}

.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.blog-featured-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.05);
}

.blog-date {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-date i {
    margin-right: 8px;
}

.blog-featured-content h3 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.blog-featured-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 25px;
}

/* ========================================
   Upcoming Events Section
   ======================================== */
.upcoming-events {
    padding: 80px 0;
    background: var(--light-gray);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(186, 38, 45, 0.15);
}

.event-date {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-info h3 {
    color: var(--black);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-info p {
    color: var(--gray);
    margin-bottom: 8px;
}

.event-info i {
    color: var(--gold);
    margin-right: 8px;
}

.event-description {
    font-size: 0.95rem;
}

/* ========================================
   Achievement Highlights
   ======================================== */
.achievement-highlights {
    padding: 80px 0;
    background: var(--white);
}

.achievements-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(186, 38, 45, 0.2);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(186, 38, 45, 0.3);
}

.achievement-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.achievement-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.achievement-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ========================================
   Call to Action Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-brown) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    background: var(--white);
    color: var(--gold);
    border-color: var(--white);
}

.cta-section .btn:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 30px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .nav-title {
        font-size: 1rem;
    }

    .nav-logo img {
        height: 50px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin: 0 auto;
    }
}

/* ========================================
   Page-Specific Styles
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path fill="%23876237" opacity="0.1" d="M0,200 Q300,100 600,200 T1200,200 L1200,400 L0,400 Z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: var(--white);
}

/* Utility Classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}
