/*
Theme Name: GeneratePress Child - Bird Feeders
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* AboutBirdFeeders.com Complete Homepage CSS */

/* Updated Header */
.header {
    background: #1B2631; /* Deep charcoal navy */
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(27, 38, 49, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav a:hover {
    color: #17A2B8; /* Warm teal hover */
    background: rgba(23, 162, 184, 0.1);
}

/* Current/Active page styling */
.nav a.current,
.nav a[aria-current="page"] {
    color: #E74C3C; /* Cardinal red */
    background: rgba(231, 76, 60, 0.1);
    font-weight: 600;
}

.nav a.current:hover {
    color: #E74C3C; /* Stay red on hover */
    background: rgba(231, 76, 60, 0.15);
}

/* Homepage Hero Section */
.homepage-hero {
    background: linear-gradient(135deg, #17A2B8 0%, #5DADE2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: #E74C3C;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hero-cta:hover {
    background: #C0392B;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Problem-Solution Cards */
.problem-solutions {
    padding: 4rem 0;
    background: #F8F9FA;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2C3E50;
    font-family: Georgia, serif;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #17A2B8;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.problem-card h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.problem-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.problem-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #95A5A6;
}

/* Card Color Variants */
.problem-card.squirrel { border-left-color: #E74C3C; }
.problem-card.species { border-left-color: #27AE60; }
.problem-card.seasonal { border-left-color: #F39C12; }
.problem-card.troubleshoot { border-left-color: #9B59B6; }

/* Featured Content / Research Rabbit Holes */
.rabbit-holes {
    padding: 4rem 0;
    background: white;
}

.featured-articles {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 20px;
}

.featured-main {
    background: linear-gradient(45deg, #17A2B8, #5DADE2);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.featured-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
    color: white;
    text-decoration: none;
}

.featured-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.featured-main h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.featured-main .excerpt {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.read-time {
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-article {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #17A2B8;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.mini-article:hover {
    background: #ECF0F1;
    transform: translateX(5px);
    text-decoration: none;
    color: inherit;
    border-left-color: #138496;
}

.mini-article h4 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.mini-article p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Expertise Proof Section */
.expertise {
    padding: 4rem 0;
    background: white;
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.expertise-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 12px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #17A2B8;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
}

.expertise-story {
    padding-left: 2rem;
}

.expertise-story h3 {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.expertise-story p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Newsletter Signup */
.newsletter {
    background: #2C3E50;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #17A2B8;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #E74C3C;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #C0392B;
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

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

/* Touch-friendly improvements */
.problem-card,
.mini-article,
.hero-cta,
.newsletter-form button {
    min-height: 44px; /* Apple's recommended touch target */
}

/* Improve text readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-card {
    animation: fadeInUp 0.6s ease forwards;
}

.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.2s; }
.problem-card:nth-child(3) { animation-delay: 0.3s; }
.problem-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced mobile optimizations */
@media (max-width: 968px) {
    .featured-articles {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        padding: 2rem;
    }
    
    .featured-main h3 {
        font-size: 1.6rem;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expertise-story {
        padding-left: 0;
        order: 1;
    }
    
    .expertise-stats {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .homepage-hero {
        padding: 3rem 0;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-main {
        padding: 1.5rem;
    }
    
    .featured-main h3 {
        font-size: 1.4rem;
    }
    
    .featured-main .excerpt {
        font-size: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter h3 {
        font-size: 1.6rem;
    }
    
    /* Keep stats as 2x2 grid on mobile instead of single column */
    .expertise-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .homepage-hero {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .problem-card {
        padding: 1.5rem;
    }
    
    .problem-card h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .featured-main {
        padding: 1.2rem;
    }
    
    .newsletter {
        padding: 2rem 0;
    }
    
    .newsletter h3 {
        font-size: 1.4rem;
    }
}