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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

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

/* Color Variables */
:root {
    --primary-color: #8B4513; /* Saddle Brown - authentic ranch color */
    --secondary-color: #D2B48C; /* Tan - Texas landscape */
    --accent-color: #CD853F; /* Peru - warm earth tone */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(139, 69, 19, 0.8);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.375rem;
    line-height: 1.12;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.16;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

h4 {
    font-size: 1.375rem;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/20240407_164910-scaled.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ranch-name {
    color: var(--secondary-color);
    display: block;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 17px 26px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Section Base Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Offerings Section */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offering-card {
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offering-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.offering-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--accent-color);
}

/* Heritage Section */
.heritage {
    background: var(--background-light);
}

.heritage-grid {
    display: grid;
    gap: 4rem;
}

.heritage-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.heritage-feature:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.heritage-feature:nth-child(even) .feature-image {
    order: 2;
}

.heritage-feature:nth-child(even) .feature-content {
    order: 1;
}

.feature-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}


/* Contact Section */
.contact {
    background: var(--primary-color);
    color: var(--text-light);
}

.contact .section-header h2,
.contact .section-header .section-subtitle {
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    width: 100%;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

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

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .heritage-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .heritage-feature:nth-child(even) .feature-image {
        order: 0;
    }

    .heritage-feature:nth-child(even) .feature-content {
        order: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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


    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .offering-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .offering-card,
    .heritage-feature {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }

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

    .offering-card:nth-child(3) {
        animation-delay: 0.4s;
    }
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Historical Legacy Section */
.history {
    background: linear-gradient(135deg, #f8f5f0 0%, #ede7d9 100%);
    position: relative;
}

.history::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 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23D2B48C" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%238B4513" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23CD853F" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.history .container {
    position: relative;
    z-index: 1;
}

.history-timeline {
    margin: 4rem 0;
}

.timeline-event {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: -4rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    margin-left: -1.5px;
}

.timeline-event:last-child::before {
    bottom: 0;
}

.timeline-event::after {
    content: '';
    position: absolute;
    left: 200px;
    top: 1rem;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    margin-left: -7.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    padding-right: 2rem;
    border-right: 2px solid var(--secondary-color);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.event-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.event-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 2rem;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid #fff;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.event-content h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-style: italic;
}

.event-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.event-content p:last-child {
    margin-bottom: 0;
}

/* Historical Significance Cards */
.historical-significance {
    margin: 4rem 0;
}

.significance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.significance-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.significance-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.significance-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.significance-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Historical Quote */
.historical-quote {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 3rem 2rem;
    background: var(--primary-color);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.historical-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
    line-height: 1;
}

.historical-quote blockquote {
    margin: 0;
    position: relative;
    z-index: 1;
}

.historical-quote p {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 300;
}

.historical-quote cite {
    color: var(--secondary-color);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* Responsive Design for History Section */
@media (max-width: 768px) {
    .timeline-event {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .timeline-event::before,
    .timeline-event::after {
        display: none;
    }

    .event-date {
        text-align: left;
        border-right: none;
        border-bottom: 2px solid var(--secondary-color);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        justify-content: flex-start;
    }

    .event-content::before {
        display: none;
    }

    .significance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .historical-quote {
        padding: 2rem 1.5rem;
    }

    .historical-quote p {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .event-content {
        padding: 1.5rem;
    }

    .significance-card {
        padding: 1.5rem 1rem;
    }

    .historical-quote::before {
        font-size: 6rem;
        top: -10px;
    }

    .historical-quote p {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: none;
    }

    .hero-text h1 {
        color: var(--text-dark);
        text-shadow: none;
    }

    .history {
        background: none;
    }

    .timeline-event::before,
    .timeline-event::after {
        display: none;
    }

    .event-content::before {
        display: none;
    }
}