/** 
 *  Random Canyon Riding - Premium Web Style
 */

/* ================= Variables & Settings ================= */
:root {
    /* Colors */
    --color-primary: #2e4a36;
    /* Earthy Dark Green */
    --color-primary-dark: #1e3325;
    --color-secondary: #b04336;
    /* Warm Terracotta Red */
    --color-secondary-dark: #96382d;
    --color-accent: #e2a85c;
    /* Warm Sand/Gold for accents */

    --color-text: #333333;
    --color-text-light: #555555;
    --color-bg: #fdfcf9;
    /* Very warm, slightly off-white */
    --color-bg-alt: #f4f1ea;
    /* Soft tan */

    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* ================= Base Styles & Resets ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= Layout Classes ================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.text-white,
.text-white h2,
.text-white h3,
.text-white p {
    color: var(--color-white);
}

.text-accent {
    color: var(--color-secondary);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* ================= Typography Classes ================= */
.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* ================= Divider ================= */
.divider {
    height: 4px;
    width: 80px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-top: 1rem;
}

.divider-light {
    background: var(--color-accent);
}

/* ================= Buttons ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-huge {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    border-radius: 60px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-secondary {
    background-color: var(--color-bg);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Pulse animation for main CTA */
.cta-pulse {
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    box-shadow: 0 0 0 0 rgba(176, 67, 54, 0.7);
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 20px rgba(176, 67, 54, 0);
    }
}

/* ================= Header & Navigation ================= */
.top-banner {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
}

.top-banner a {
    text-decoration: underline;
    margin-left: 0.5rem;
}

.top-banner a:hover {
    color: var(--color-white);
}

#site-header {
    position: fixed;
    top: 40px;
    /* Offset for top banner */
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-normal);
    padding: 1.5rem 0;
    /* Initially transparent for hero overlay */
    background: transparent;
}

#site-header.scrolled {
    background: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

#site-header.scrolled .site-title,
#site-header.scrolled .nav-link,
#site-header.scrolled .mobile-menu-toggle {
    color: var(--color-primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    /* White on hero */
    letter-spacing: -0.5px;
    transition: var(--transition-normal);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-white);
    /* White on hero */
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    /* Increased padding for the header plus banner */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Slight zoom effect */
    animation: subtleZoom 20s infinite alternate linear;
}

@keyframes subtleZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 35, 25, 0.8) 0%, rgba(20, 35, 25, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================= About Section ================= */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.rounded-image {
    border-radius: var(--border-radius);
    width: 100%;
    object-fit: cover;
}

.shadow {
    box-shadow: var(--shadow-lg);
}

/* ================= Horses Section ================= */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.horse-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.horse-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.horse-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.horse-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.horse-card:hover .horse-img-wrapper img {
    transform: scale(1.1);
}

.horse-info {
    padding: 2rem;
    flex-grow: 1;
}

.horse-info h3 {
    font-size: 1.5rem;
}

.horse-info p {
    color: var(--color-text-light);
}

/* ================= Volunteer Section ================= */
.volunteer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-benefits {
    margin: 2rem 0;
}

.volunteer-benefits li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ================= Donate Section ================= */
.donate-section {
    position: relative;
    overflow: hidden;
}

.donate-bg-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.donate-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 1.5rem auto;
    opacity: 0.9;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
}

.donation-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.donation-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* ================= Footer ================= */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding-top: var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* make it white */
    opacity: 0.8;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ================= Animations & Modifiers ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* ================= Media Queries ================= */
@media (max-width: 992px) {

    .about-grid,
    .volunteer-container,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    /* Image on top on mobile */

    .donation-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* simple mobile nav approach for now, toggled in JS if needed */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        color: var(--color-primary) !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    #site-header {
        padding: 1rem 0;
    }
}

/* ================= Forms ================= */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(176, 67, 54, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================= Staff Section ================= */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.staff-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.staff-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.staff-card:hover .staff-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.staff-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.staff-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}