/* --- Variables based on Logo --- */
:root {
    --primary-green: #0e4d2a; /* Deep Forest Green from logo text */
    --primary-gold: #d4a017;  /* Gold/Yellow from logo border & sun */
    --accent-blue: #2a5a8c;   /* Mountain Blue */
    --text-dark: #333;
    --text-light: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif; /* To match the serif style of "TUNJI TRAILS" */
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

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

/* --- Section Utilities --- */
.section-green {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.section-light {
    background-color: #ffffff;
    color: var(--text-dark);
}

.section-gold {
    background-color: var(--primary-gold);
    color: var(--primary-green);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
    background: transparent;
}

.solid-nav {
    background: var(--primary-green);
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

/* --- Hero Section (Now Light/White) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

/* --- Loader Animation --- */
.loader-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.spinner {
    width: 120px;
    height: 120px;
    /* Changed spinner border to green for visibility on white */
    border: 5px solid rgba(14, 77, 42, 0.1); 
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-logo {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Text & Animations --- */
.headline {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Changed headline to green for contrast on white */
    color: var(--primary-green); 
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subheadline {
    font-size: 1.5rem;
    font-style: italic;
    /* Changed subheadline to dark gray for contrast on white */
    color: #666;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Section (Now Green) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    /* Adjusted card background for dark green section */
    background: rgba(255, 255, 255, 0.1); 
    padding: 30px 20px;
    border-radius: 10px;
    border-bottom: 4px solid var(--primary-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.15);
}

.service-card i {
    font-size: 2.5rem;
    /* Adjusted icon color for dark green section */
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    /* Adjusted text color for dark green section */
    color: var(--text-light);
}

/* --- Contact Section (Gold) --- */
.contact-info {
    display: inline-flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item i {
    width: 30px;
    color: var(--primary-green);
    margin-right: 15px;
    font-size: 1.3rem;
}

.contact-item a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--primary-gold);
    margin: 0 10px;
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Legal Pages --- */
.page-content {
    background-color: #fff;
}

.legal-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
}

.legal-container h1 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.legal-container h2 {
    color: var(--primary-gold);
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- Animation Classes for JS --- */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .headline {
        font-size: 2rem;
    }
    .subheadline {
        font-size: 1.2rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-info {
        width: 100%;
        padding: 20px;
    }
    .section-content {
        padding: 60px 15px;
    }
}