/* ============================================
   HOME PAGE STYLES
   Restaurant-aesthetic landing page for blog
   Built on top of site.css foundation
   ============================================ */

/* ============================================
   HOME PAGE BODY
   ============================================ */

.home-page {
    background-color: var(--body-bg);
}

/* ============================================
   HERO SECTION
   Restaurant-style hero - REDUCED SIZE
   ============================================ */

.hero-home {
    position: relative;
    height: 65vh; /* REDUCED from 85vh to show content below */
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: hsl(25, 20%, 20%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        hsl(25, 30%, 15%, 0.4) 0%,
        hsl(25, 30%, 15%, 0.6) 50%,
        hsl(25, 30%, 15%, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tertiary-accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: hsl(0, 0%, 100%);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px hsl(0, 0%, 0%, 0.3);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    color: hsl(0, 0%, 95%);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    background-color: var(--primary-accent);
    color: var(--primary-accent-contrast);
    border-color: var(--primary-accent);
}

.btn-hero-primary:hover {
    background-color: var(--primary-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px hsl(0, 0%, 0%, 0.3);
}

/* ============================================
   HOME SECTIONS
   Consistent section styling
   ============================================ */

.home-section {
    padding: 5rem 0;
    background-color: var(--surface-bg);
}

.home-section:nth-child(even) {
    background-color: var(--body-bg);
}

/* ============================================
   SECTION HEADERS
   Restaurant-style section titles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.site-theme-divider-sm {
    width: 80px;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--flag-color-1) 0%,
        var(--flag-color-1) 33%,
        var(--flag-color-2) 33%,
        var(--flag-color-2) 66%,
        var(--flag-color-3) 66%,
        var(--flag-color-3) 100%
    );
    margin: 0 auto;
}

/* ============================================
   ARTICLE GRID
   Uses existing .article-card from site.css
   Just layout adjustments here
   ============================================ */

/* Grid is already defined in site.css, just ensure proper spacing */
.home-section .article-grid {
    margin-bottom: 0;
}

/* Hide card-meta (dates/authors) on homepage cards */
.home-page .card-meta {
    display: none;
}

/* ============================================
   DECORATIVE BREAK
   ============================================ */

.decorative-break {
    padding: 2.5rem 0;
    display: flex;
    justify-content: center;
    background-color: var(--body-bg);
}

/* ============================================
   VIEW ALL BUTTON
   ============================================ */

.view-all-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background-color: var(--text-primary);
    color: var(--surface-raised);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px hsl(0, 0%, 0%, 0.15);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile adjustments */
@media (max-width: 767px) {
    .hero-home {
        height: 70vh; /* Slightly taller on mobile for better text fit */
        min-height: 450px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary {
        width: 100%;
        text-align: center;
    }
    
    .home-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero-home {
        height: 65vh;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-home {
        height: 70vh; /* Slightly larger on big screens */
        max-height: 800px;
    }
}
