/* Iron Horse Farm BBQ - Static Site Styles */
/* Bold & Rustic-Modern Design */

:root {
    --red-primary: #b72a29;
    --red-dark: #8b1f1e;
    --green-primary: #4a7c3f;
    --green-light: #77a464;
    --cream: #f5f1e8;
    --cream-dark: #e8e0d0;
    --dark: #2c2c2c;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--cream);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--red-primary);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--red-primary);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--red-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--red-dark);
}

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

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 120px;
    width: auto;
    position: relative;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    padding: 10px 0;
    position: relative;
}

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

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

nav a:hover {
    color: var(--red-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
    max-width: 800px;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(183, 42, 41, 0.4);
}

.btn-secondary {
    background: var(--green-primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--green-light);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red-primary);
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-content {
    padding: 25px;
}

.card h3 {
    margin-bottom: 10px;
}

/* Product Cards */
.product-card {
    text-align: center;
}

.product-card img {
    height: 250px;
    object-fit: contain;
    padding: 20px;
    background: var(--cream);
}

/* Placeholder Image */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    color: var(--dark);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    text-align: center;
    border: 3px dashed var(--green-primary);
    border-radius: 10px;
}

.placeholder-image span {
    padding: 20px;
    opacity: 0.7;
}

.product-card h3 {
    color: var(--green-primary);
}

/* Feature Section (alternating image/text) */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.feature:nth-child(even) {
    direction: rtl;
}

.feature:nth-child(even) > * {
    direction: ltr;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-content h2 {
    color: var(--red-primary);
    margin-bottom: 20px;
}

/* Store Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--green-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.location-card h4 {
    color: var(--red-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.location-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
}

.location-card .state {
    font-weight: 600;
    color: var(--green-primary);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-item {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    margin-bottom: 15px;
}

.contact-item a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-text .highlight {
    font-size: 2rem;
    color: var(--red-primary);
    font-weight: 700;
    font-family: Georgia, serif;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Heritage Banner */
.heritage-banner {
    background: var(--red-primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.heritage-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.heritage-banner p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--cream);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.footer-section a {
    color: var(--cream);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .feature,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature:nth-child(even) {
        direction: ltr;
    }

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        border-bottom: 1px solid var(--cream-dark);
    }

    nav a {
        display: block;
        padding: 15px 0;
    }

    .logo img {
        height: 80px;
    }

    section {
        padding: 60px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 20px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   MODERN JAVASCRIPT EFFECTS
   =========================================== */

/* Sticky Header Shrink Effect */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

header.scrolled .logo img {
    height: 80px;
}

header.scrolled .header-content {
    padding: 10px 20px;
}

.logo img {
    transition: height 0.3s ease;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Feature sections slide from sides */
.feature .feature-image.animate-on-scroll {
    transform: translateX(-30px);
}

.feature .feature-content.animate-on-scroll {
    transform: translateX(30px);
}

.feature .feature-image.animated,
.feature .feature-content.animated {
    transform: translateX(0);
}

/* Reverse for alternating features */
.feature:nth-child(even) .feature-image.animate-on-scroll {
    transform: translateX(30px);
}

.feature:nth-child(even) .feature-content.animate-on-scroll {
    transform: translateX(-30px);
}

/* Image Lazy Load Fade-In */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Enhanced Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card img {
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.product-card {
    overflow: hidden;
}

/* Location Card Hover */
.location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-left-color: var(--red-primary);
}

/* Button Hover Enhancements */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Mobile Menu Animation */
.menu-toggle span {
    transition: all 0.3s ease;
}

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

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

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

/* Nav Menu Slide Animation */
nav ul {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav ul {
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Parallax-like subtle effect */
.hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    /* Disable parallax on mobile for performance */
    .hero {
        background-attachment: scroll;
    }
}

/* Contact Item Hover */
.contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Heritage Banner subtle animation */
.heritage-banner h2,
.heritage-banner p {
    transition: transform 0.3s ease;
}

.heritage-banner:hover h2 {
    transform: scale(1.02);
}

/* Feature Image Hover */
.feature-image img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
