/* Creek Road Farms - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
header {
    background-color: #000;
    color: white;
    padding: 1.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #222;
    border-bottom: 1px solid #000;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li.active a {
    color: #fff;
}

/* Dropdown Menu */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #333;
    color: #aaa;
}

nav ul li ul li a:hover {
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #aaa;
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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

/* Hero Section with Parallax */
.hero-section {
    height: 500px;
    background-image: url('../images/hero-sheep.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    border-radius: 10px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    background-color: white;
}

.content {
    padding: 2rem;
}

h1 {
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

h2 {
    color: #000;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Images */
.sheep-image {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Contact Section */
.contact-info {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 5px;
    margin: 2rem 0;
    border-left: 4px solid #0066cc;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-email {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.contact-email a {
    color: #0066cc;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
        background-attachment: scroll; /* Parallax doesn't work well on mobile */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        background-color: #222;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        z-index: 9999;
        margin: 0;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Show menu when toggled */
    nav ul.mobile-menu-open {
        display: flex !important;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 1rem;
        border-bottom: 1px solid #333;
    }
    
    nav ul li ul {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #1a1a1a;
    }
    
    nav ul li:hover ul {
        display: none;
    }
    
    /* Show dropdown when parent is in open menu */
    nav ul.mobile-menu-open li ul {
        display: flex;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-description {
        font-size: 1rem;
    }
    
    /* Remove old nav styles for mobile - handled above */
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-container,
    .nav-container,
    main,
    .footer-container {
        padding: 0 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    nav ul li a {
        padding: 0.75rem 1rem;
    }
}
