/**
 * Locia Farms Website Stylesheet
 * Modern Farmcore aesthetic with Apple Glass material effects
 */

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================================
   CSS VARIABLES (Farmcore Design Tokens)
   ============================================================================ */
:root {
    /* Farmcore Color Palette - Earthy, warm, natural */
    --primary-color: #3d6930;        /* Rich forest green */
    --primary-light: #5a8c47;        /* Lighter green */
    --primary-dark: #2a4a22;         /* Deep forest green */
    --secondary-color: #8b7355;      /* Warm brown */
    --accent-color: #c8a882;         /* Earthy tan */
    --accent-light: #e8dcc5;         /* Light cream */
    
    /* Natural Text Colors */
    --text-primary: #2a2a2a;         /* Dark charcoal */
    --text-secondary: #6b5e4f;       /* Warm brown text */
    --text-light: #9b8f80;           /* Light brown */
    
    /* Farmcore Backgrounds - Warm, natural */
    --background: #faf8f3;           /* Warm cream */
    --surface: #f5f1e8;              /* Light beige */
    --surface-variant: #f0ebe0;      /* Soft cream */
    --surface-glass: rgba(255, 255, 255, 0.7);  /* Glass background */
    --surface-glass-dark: rgba(250, 248, 243, 0.85);
    
    /* Natural Dividers */
    --divider: #e0d8cc;              /* Warm divider */
    --divider-light: rgba(139, 115, 85, 0.15);
    
    /* Apple Glass Material Effects */
    --glass-blur: blur(20px) saturate(180%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(61, 105, 48, 0.15);
    
    /* Soft Natural Shadows (Farmcore aesthetic) */
    --shadow-1: 0 2px 8px rgba(61, 105, 48, 0.08);
    --shadow-2: 0 4px 16px rgba(61, 105, 48, 0.12);
    --shadow-3: 0 8px 24px rgba(61, 105, 48, 0.15);
    --shadow-4: 0 12px 32px rgba(61, 105, 48, 0.18);
    --shadow-5: 0 16px 40px rgba(61, 105, 48, 0.20);
    
    /* Material Design Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================================
   LAYOUT & CONTAINERS
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   HEADER & NAVIGATION (Apple Glass Effect)
   ============================================================================ */
header {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

header.scrolled {
    background: var(--surface-glass-dark);
    box-shadow: var(--shadow-2);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-base);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--surface-variant) 0%, var(--background) 50%, var(--surface) 100%);
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(61, 105, 48, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero .pronunciation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-3);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: var(--glass-border);
}

.hero-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-5);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

/* ============================================================================
   IMAGES & OPTIMIZATION
   ============================================================================ */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading states */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: var(--surface);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* GPU acceleration for animated images */
.card-image img,
.carousel-slide img,
.about-image img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ============================================================================
   SECTION COMMON STYLES
   ============================================================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   MATERIAL CARDS
   ============================================================================ */
.material-card {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-base);
    overflow: hidden;
}

.material-card:hover {
    background: var(--surface-glass-dark);
    box-shadow: var(--shadow-4);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   PHOTO REEL / CAROUSEL
   ============================================================================ */
.photo-reel {
    padding: 5rem 2rem;
    background-color: var(--surface);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-3);
    border: var(--glass-border);
    aspect-ratio: 16/9;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-slow);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.carousel-slide:not(.active) img {
    opacity: 0;
}

.carousel-slide.active img {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-base);
    color: var(--primary-color);
}

.carousel-btn:hover {
    background: var(--surface-glass-dark);
    box-shadow: var(--shadow-4);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--divider);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* ============================================================================
   PRODUCTS SECTION
   ============================================================================ */
.products {
    padding: 5rem 2rem;
    background-color: var(--background);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-text:hover {
    background-color: var(--surface);
    text-decoration: underline;
}

/* Payment Methods (Simplified) */
.payment-methods {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    text-align: center;
}

.payment-methods h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-list {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.payment-note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.6;
}

/* ============================================================================
   EVENTS SECTION
   ============================================================================ */
.events {
    padding: 5rem 2rem;
    background-color: var(--surface);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.event-body {
    display: flex;
    gap: 1.5rem;
    padding: 0;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-2);
}

.event-date .month {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.event-date .season {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-content {
    flex: 1;
    padding: 1.5rem;
}

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

.event-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.event-details {
    margin-top: 1rem;
}

.event-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.events-bulletin {
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.events-bulletin h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.events-bulletin p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ============================================================================
   VIDEOS SECTION
   ============================================================================ */
.videos {
    padding: 5rem 2rem;
    background-color: var(--background);
}

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

/* Video Item with YouTube Embed */
.video-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
}

.video-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.video-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.watch-on-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-base);
    margin-top: auto;
    align-self: flex-start;
}

.watch-on-youtube:hover {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-dark);
}

.watch-on-youtube svg {
    width: 16px;
    height: 16px;
}

/* Placeholder State */
.video-card {
    text-align: center;
    padding: 3rem 2rem;
}

.video-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background-color: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-2);
}

.video-placeholder svg {
    width: 64px;
    height: 64px;
}

.video-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-content p {
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */
.about {
    padding: 5rem 2rem;
    background-color: var(--surface);
}

.about-content {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    gap: 3rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-3);
    border: var(--glass-border);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 100%;
}

.about-text p {
    margin-bottom: 1.75rem;
}

.about-text .lead {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--divider);
}

.about-text .closing {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 2px solid var(--divider);
    border-bottom: 2px solid var(--divider);
}

.about-text .subheading {
    font-size: 1.5rem;
    font-family: 'Roboto Slab', serif;
    color: var(--primary-color);
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 1rem;
    background-color: var(--surface);
    border-radius: 8px;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.about-text a:hover {
    border-bottom-color: var(--primary-color);
}

.about-text em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */
.contact {
    padding: 5rem 2rem;
    background-color: var(--background);
}

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

.contact-card {
    padding: 2rem;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-2);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-4);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-4);
    transform: translateY(-2px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Footer with sections (used in goats page) */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet and below */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--surface-glass);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-top: var(--glass-border);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-3);
        transition: left var(--transition-base);
    }

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

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 1rem;
        min-height: auto;
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        gap: 2rem;
    }
    
    .about-text {
        font-size: 1.05rem;
    }
    
    .about-image {
        max-width: 100%;
    }

    .product-grid,
    .events-grid,
    .videos-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card {
        flex-direction: column;
    }

    .event-body {
        flex-direction: column;
    }

    .event-date {
        border-radius: 0;
        width: 100%;
        min-width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

/* ============================================================================
   MERCHANDISE SECTION
   ============================================================================ */
.merchandise-page {
    padding: 5rem 2rem;
    background-color: var(--background);
}

.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Merchandise Product Card Styles */
.merchandise-item {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-base);
}

.merchandise-item:hover {
    transform: translateY(-4px);
}

.merchandise-item .card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
}

.merchandise-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.merchandise-item:hover .card-image img {
    transform: scale(1.05);
}

.merchandise-item .card-content {
    padding: 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 0 0 16px 16px;
    border: var(--glass-border);
    box-shadow: var(--shadow-2);
}

.merchandise-item .card-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Product Variants (Size/Color Selectors) */
.product-variants {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.variant-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-selector label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.variant-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    transition: all var(--transition-base);
    cursor: pointer;
}

.variant-select:hover {
    border-color: var(--primary-color);
    background: var(--surface-variant);
}

.variant-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 105, 48, 0.1);
}

/* Price Display */
.product-price {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--divider-light);
    border-bottom: 1px solid var(--divider-light);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Roboto Slab', serif;
}

/* Buy Button */
.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-2);
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.buy-button:active {
    transform: translateY(0);
}

.buy-button svg {
    width: 16px;
    height: 16px;
}

/* Empty State for Merchandise */
.merchandise-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
}

.merchandise-grid .empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.merchandise-grid .empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.merchandise-grid .empty-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.setup-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.setup-note code {
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Merchandise Grid */
@media (max-width: 768px) {
    .merchandise-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .merchandise-item .card-content {
        padding: 1.25rem;
    }
    
    .merchandise-item .card-content h3 {
        font-size: 1.25rem;
    }
    
    .price-display {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .merchandise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-variants {
        gap: 0.5rem;
    }
    
    .variant-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .buy-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   GOAT PROFILES PAGE
   ============================================================================ */
.goats-hero {
    padding: 6rem 2rem 3rem;
    background: linear-gradient(135deg, var(--surface), var(--surface-variant));
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.goats-gallery {
    padding: 4rem 2rem;
    background-color: var(--background);
}

/* Goats Accordion Styles */
.goats-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.goat-accordion-item {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    transition: all var(--transition-base);
}

.goat-accordion-item:hover {
    box-shadow: var(--shadow-4);
    border-color: rgba(255, 255, 255, 0.4);
}

.goat-accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-base);
}

.goat-accordion-header:hover {
    background-color: var(--surface-glass-dark);
}

.goat-accordion-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.goat-accordion-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    position: relative;
    flex-shrink: 0;
}

.goat-accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.goat-accordion-header-text {
    flex: 1;
}

.goat-accordion-name {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.goat-accordion-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.goat-accordion-bio-preview {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.goat-accordion-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform var(--transition-base);
}

.goat-accordion-item.expanded .goat-accordion-icon {
    transform: rotate(180deg);
}

.goat-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}

.goat-accordion-item.expanded .goat-accordion-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem;
}

.goat-accordion-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-light);
}

.goat-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.goat-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.goat-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.goat-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.goat-carousel-slide.active {
    opacity: 1;
}

.goat-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Optimize image loading - ensure images don't cause layout shift */
.goat-carousel-slide {
    contain: layout style paint;
}

.goat-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-2);
    transition: all var(--transition-base);
    color: var(--primary-color);
    padding: 0;
}

.goat-carousel-btn:hover {
    background: var(--surface-glass-dark);
    box-shadow: var(--shadow-4);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.goat-carousel-btn.prev {
    left: 12px;
}

.goat-carousel-btn.next {
    right: 12px;
}

.goat-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.goat-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.goat-carousel-indicator.active {
    background-color: white;
    width: 24px;
    border-radius: 6px;
}

.goat-accordion-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goat-story h4,
.goat-traits h4,
.goat-activity h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'Roboto Slab', serif;
}

.goat-story p,
.goat-activity p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Legacy grid styles for backward compatibility */
.goats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.goat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-base);
}

.goat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-4);
}

.goat-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface);
}

.goat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.goat-card:hover .goat-image img {
    transform: scale(1.08);
}

.goat-content {
    padding: 2rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-top: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goat-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider-light);
}

.goat-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.goat-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.goat-breed {
    font-weight: 600;
    color: var(--primary-dark);
}

.goat-age {
    color: var(--text-light);
}

.goat-bio {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.goat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goat-story,
.goat-traits,
.goat-activity {
    margin-top: auto;
}

.goat-story h3,
.goat-traits h3,
.goat-activity h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'Roboto Slab', serif;
}

.goat-story p,
.goat-activity p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.personality-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.personality-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-1);
    transition: all var(--transition-base);
}

.personality-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* Loading State for Goats */
.goats-accordion .loading-state,
.goats-grid .loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--divider);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Empty State for Goats */
.goats-accordion .empty-state,
.goats-grid .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
}

.goats-grid .empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.goats-grid .empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.goats-grid .empty-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Responsive Goat Gallery */
/* Responsive Goat Accordion */
@media (max-width: 768px) {
    .goat-accordion-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .goat-accordion-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
    
    .goat-accordion-name {
        font-size: 1.5rem;
    }
    
    .goat-accordion-bio-preview {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .goat-accordion-header-content {
        gap: 1rem;
    }
    
    .goat-accordion-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .goat-accordion-name {
        font-size: 1.25rem;
    }
    
    .goat-accordion-bio-preview {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .goat-accordion-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
}

@media (max-width: 1024px) {
    .goats-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .goats-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .goat-content {
        padding: 1.5rem;
    }
    
    .goat-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .goats-hero {
        padding: 5rem 1.5rem 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .goats-gallery {
        padding: 3rem 1.5rem;
    }
    
    .goats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .goat-content {
        padding: 1.25rem;
    }
    
    .goat-name {
        font-size: 1.5rem;
    }
    
    .goat-bio {
        font-size: 1rem;
    }
}
