
/* ============================================
   Hardy's Farm Group - Countryside Theme Styles
   ============================================ */

/* CSS Variables for Countryside Color Palette */
:root {
    /* Primary Colors - Earthy Browns */
    --brown-warm: #8B6F47;
    --brown-light: #A0826D;
    --brown-dark: #6B5344;
    --brown-text: #3E2723;
    --brown-text-dark: #4E342E;

    /* Secondary Colors - Natural Greens */
    --green-olive: #6B8E23;
    --green-dark-olive: #556B2F;
    --green-sea: #8FBC8F;
    --green-yellow: #9ACD32;

    /* Accent Colors */
    --sky-blue: #87CEEB;
    --light-blue: #ADD8E6;

    /* Neutrals */
    --beige: #F5F5DC;
    --cornsilk: #FFF8DC;
    --antique-white: #FAEBD7;
    --cream: #FFFEF7;

    /* Buttons */
    --barn-red: #A52A2A;
    --barn-red-hover: #8B1A1A;

    /* Shadows */
    --shadow-soft: 0 4px 6px rgba(62, 39, 35, 0.1);
    --shadow-medium: 0 8px 16px rgba(62, 39, 35, 0.15);
    --shadow-hover: 0 12px 24px rgba(62, 39, 35, 0.2);

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brown-text-dark);
    line-height: 1.6;
    background: linear-gradient(to bottom, var(--cream) 0%, var(--beige) 50%, var(--light-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Hero Section - Countryside Banner
   ============================================ */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--green-dark-olive) 0%, var(--green-olive) 50%, var(--green-sea) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(62, 39, 35, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cornsilk);
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--antique-white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Business Cards Section
   ============================================ */

.business-section {
    flex: 1;
    padding: 60px 20px;
    background: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    align-items: start;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    border: 3px solid var(--brown-light);
}

.business-card.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brown-warm);
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--brown-light);
}

.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-card:hover .card-bg-image {
    transform: scale(1.1);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(62, 39, 35, 0.2) 100%);
    transition: var(--transition-smooth);
}

.business-card:hover .card-image-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(62, 39, 35, 0.1) 100%);
}

.card-content {
    padding: 35px;
    background: linear-gradient(to bottom, white 0%, var(--cream) 100%);
}

.card-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.business-card:hover .card-logo {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    color: var(--brown-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}

.card-features li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--brown-text);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.card-features li:hover {
    color: var(--green-olive);
    transform: translateX(5px);
}

.card-features li::before {
    content: '🌾';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* ============================================
   Call-to-Action Buttons
   ============================================ */

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.animal-farm-button {
    background: var(--barn-red);
    color: white;
    border-color: var(--barn-red);
}

.animal-farm-button:hover {
    background: var(--barn-red-hover);
    border-color: var(--barn-red-hover);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 16px rgba(165, 42, 42, 0.3);
}

.country-meadows-button {
    background: var(--green-olive);
    color: white;
    border-color: var(--green-olive);
}

.country-meadows-button:hover {
    background: var(--green-dark-olive);
    border-color: var(--green-dark-olive);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 142, 35, 0.3);
}

/* ============================================
   Footer Section
   ============================================ */

.footer {
    background: linear-gradient(to bottom, var(--brown-dark) 0%, var(--brown-text-dark) 100%);
    color: var(--antique-white);
    padding: 40px 20px 30px;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-location {
    margin-bottom: 20px;
}

.footer-heading {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-yellow);
    margin-bottom: 10px;
}

.footer-location p {
    margin: 5px 0;
    color: var(--cornsilk);
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--beige);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .business-cards {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 40px;
    }

    .main-logo {
        max-width: 220px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .business-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-content {
        padding: 25px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .main-logo {
        max-width: 180px;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .card-logo {
        max-width: 160px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Accessibility & Print Styles
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .hero-section {
        background: white;
        color: black;
    }

    .cta-button {
        border: 2px solid black;
    }
}

/* Focus states for accessibility */
.cta-button:focus,
a:focus {
    outline: 3px solid var(--green-yellow);
    outline-offset: 3px;
}

/* Selection styling */
::selection {
    background: var(--green-olive);
    color: white;
}

::-moz-selection {
    background: var(--green-olive);
    color: white;
}