/**
 * New Homepage Styles
 * Clean implementation with consistent header behavior
 * Updated with fixed hero positioning
 */

/* Homepage Main Container */
.homepage-main {
    padding: 0;
    margin: 0;
}

/* Fixed Hero Section - Keeps "Do you know the hands..." positioned */
.hero--passport {
    position: relative;
    /* Use aspect-ratio so height scales naturally on mobile */
    aspect-ratio: 16 / 9;         /* fallback below */
    min-height: 48dvh;            /* works with mobile browser chrome */
    overflow: hidden;
}

/* Fallback if aspect-ratio unsupported */
@supports not (aspect-ratio: 1) {
    .hero--passport { 
        min-height: 56dvh; 
    }
}

.hero--passport .hero__media img,
.hero--passport .hero__media video {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center 35%;   /* keep cherries/hands in frame on mobile */
    display: block;
}

/* Overlay pinned; independent of removed paragraphs */
.hero--passport .hero__overlay {
    position: absolute;
    top: 28%;  /* Dropped down to start below previous position */
    right: 8%;  /* More space from right edge */
    max-width: 42rem;  /* Wider to accommodate the text */
    padding: 0;  /* No background box needed based on mockup */
    background: transparent;  /* No background - text directly on image */
    border-radius: 0;
    text-align: right;  /* Right-aligned like in mockup */
}

.hero--passport .hero__title {
    margin: 0;
    font-family: "Playfair Display", serif;  /* Or use Stardos Stencil if that's the exact font */
    font-size: 64px;  /* Much larger to match mockup */
    font-weight: 400;  /* Regular weight */
    line-height: 1.1;  /* Tighter line height for multi-line */
    color: #fff;
    text-align: right;  /* Right-aligned text */
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);  /* Stronger shadow for readability */
    letter-spacing: -0.5px;  /* Slightly tighter tracking */
}

/* Tablet and down */
@media (max-width: 900px) {
    .hero--passport { 
        min-height: 52dvh; 
    }
    .hero--passport .hero__overlay { 
        top: 24%;  /* Adjusted proportionally lower */
        right: 5%; 
        max-width: 36rem; 
    }
    .hero--passport .hero__title {
        font-size: 48px;  /* Slightly smaller on tablet */
    }
}

/* Phones */
@media (max-width: 600px) {
    .hero--passport { 
        min-height: 48dvh; 
    }
    .hero--passport .hero__overlay {
        left: 5%; 
        right: 5%; 
        top: auto; 
        bottom: 10%;  /* Position at bottom on mobile */
        max-width: none;
        text-align: center;  /* Center on mobile for better balance */
    }
    .hero--passport .hero__title {
        font-size: 32px;  /* Readable size on mobile */
        text-align: center;  /* Center align on mobile */
        text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);  /* Stronger shadow on mobile */
    }
}

/* Performance: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero__media video { 
        animation: none; 
    }
}

/* Lead Block Styling */
.lead-block {
    max-width: 56rem; 
    margin: 1.2rem auto 1.2rem;  /* Reduced top margin by 66% (from 3.5rem to 1.2rem) */
    padding: 0 1rem;
}

.lead-block__kicker {
    margin: 0 0 1.5rem 0;  /* Added line space (1.5rem) under "We didn't either" */
    font-family: "Stardos Stencil", serif;
    font-size: clamp(27px, 2.4vw, 33px);  /* Increased by 1.5x (22px * 1.5 = 33px) */
    color: #3C3C3B;
}

.lead-block__headline {
    margin: 0 0 .75rem 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 1.8vw, 22px);
    color: #3C3C3B;
}

.lead-block__body {
    margin: 0 0 1rem 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4A4A48;
}

.lead-block__question {
    margin: 0 0 1.25rem 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-weight: 600;
    color: #2F4635; /* deep forest tone */
}

/* Button matches your palette */
.btn.btn--primary {
    display: inline-block;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    background: #7E5D4C;          /* coffee-3 */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn.btn--primary:hover { 
    background: #5B4436;  /* coffee-4 */
}

/* Stories Section Spacing - Match the reduced gap */
.homepage-stories {
    margin-top: 0;  /* Remove extra top margin since lead-block already has bottom margin */
    padding-top: 0;  /* Remove any default padding */
}

/* Mobile treatment for lead block */
@media (max-width: 600px) {
    .lead-block { 
        margin: 0.8rem auto 0.8rem;  /* Proportionally smaller on mobile */
    }
    .homepage-stories {
        margin-top: 0;  /* No extra margin needed */
    }
    .lead-block__headline { 
        font-size: clamp(18px, 4.5vw, 22px); 
    }
    .lead-block__body { 
        font-size: 15.5px; 
        line-height: 1.65; 
    }
    .btn.btn--primary {
        display: inline-flex; 
        align-items: center; 
        justify-content: center;
        min-height: 44px; 
        padding: .85rem 1.2rem; 
        border-radius: 999px;
    }
}

/* Legacy Hero Section (keeping for fallback) */
.homepage-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../../../content/uploads/2025/08/Viet_farmer_2.jpg');
    background-size: cover;
    background-position: top right;
    background-attachment: fixed;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0; /* Remove negative margin */
    padding-top: 80px; /* Account for header height */
}

.homepage-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.homepage-hero .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
    margin-top: 0; /* Remove negative margin */
}

.homepage-hero .hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.homepage-hero .hero-title {
    font-family: 'Stardos Stencil', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.homepage-hero .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    line-height: 1.5;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-emphasis {
    color: #C9CC68;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-story {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.homepage-hero .green-text {
    color: #C9CC68;
    font-weight: 400;
}

.homepage-hero .hero-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.homepage-hero .hero-tagline {
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.homepage-hero .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.homepage-hero .btn-primary {
    background: #C9CC68;
    color: #333;
    border: 2px solid #C9CC68;
}

.homepage-hero .btn-primary:hover {
    background: #b8c255;
    border-color: #b8c255;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 204, 104, 0.4);
}

.homepage-hero .btn-secondary {
    background: rgba(184, 134, 94, 0.9);
    color: white;
    border: 2px solid rgba(184, 134, 94, 0.9);
}

.homepage-hero .btn-secondary:hover {
    background: rgba(126, 93, 76, 0.9);
    border-color: rgba(126, 93, 76, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 94, 0.4);
}

/* Section Styling */
.homepage-main section {
    padding: 5rem 0;
}

/* Episode 0 Hook Section */
.homepage-episode-hook {
    background: #fafafa;
    padding: 6rem 0;
}

.episode-hook-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.episode-label {
    color: #C9CC68;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.episode-text h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem;
    color: #333;
}

.episode-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.read-episode {
    color: #7E5D4C;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.read-episode:hover {
    color: #C9CC68;
}

.episode-image {
    width: 100%;
}

.episode-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* Taste Section - Coffee Cards */
.homepage-taste {
    background: white;
}

.taste-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.taste-intro h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coffee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.coffee-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.coffee-card:hover {
    transform: translateY(-5px);
}

.coffee-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coffee-content {
    padding: 1.5rem;
}

.coffee-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.coffee-content .origin {
    color: #C9CC68;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.coffee-content .notes {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.coffee-content .story-hint {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-simple {
    color: #7E5D4C;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-simple:hover {
    border-bottom-color: #C9CC68;
    color: #C9CC68;
}

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

/* Stories Section */
.homepage-stories {
    background: #fafafa;
}

.homepage-stories h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.homepage-stories .section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.story-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card .story-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-card .story-content {
    padding: 2rem;
}

.story-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.story-card h3 a {
    color: #7E5D4C;
    text-decoration: none;
}

.story-card h3 a:hover {
    color: #C9CC68;
}

.story-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.story-card .read-more {
    color: #C9CC68;
    text-decoration: none;
    font-weight: 600;
}

.story-card .read-more:hover {
    color: #7E5D4C;
}

.section-cta {
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #7E5D4C;
    border: 2px solid #7E5D4C;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #7E5D4C;
    color: white;
}

/* Origins Section Enhanced */
.homepage-origins {
    background: #f8f8f8;
}

.origins-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.origins-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.origin-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.origin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.origin-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.origin-content {
    padding: 1.5rem;
}

.origin-content h3 {
    font-size: 1.3rem;
    color: #7E5D4C;
    margin-bottom: 0.5rem;
}

.origin-fact {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.origins-cta {
    text-align: center;
}

.origins-text h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.origins-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.origins-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.origins-highlights li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.origins-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #C9CC68;
    font-weight: bold;
}

.origin-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.origin-item {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.origin-item:hover {
    border-color: #C9CC68;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.origin-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #7E5D4C;
}

.origin-item p {
    color: #666;
    margin: 0;
}

/* Community & Impact Section */
.homepage-community {
    background: #7E5D4C;
    color: white;
    text-align: center;
}

.homepage-community h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.homepage-community .community-content > p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.impact-notes {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.impact-item {
    margin-bottom: 2rem;
}

.impact-text {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.impact-text strong {
    color: #C9CC68;
    font-weight: 600;
}

.community-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.homepage-community .btn-primary {
    background: #C9CC68;
    color: #333;
}

.homepage-community .btn-outline {
    color: white;
    border-color: white;
}

.homepage-community .btn-outline:hover {
    background: white;
    color: #7E5D4C;
}

/* Tablet Responsive (iPad and similar) */
@media (min-width: 769px) and (max-width: 1024px) {
    .homepage-hero {
        background-attachment: scroll; /* Fix iOS background issues */
        min-height: 100vh;
        padding-top: 70px;
    }
    
    /* Episode Hook tablet layout */
    .episode-hook-content {
        gap: 2rem;
    }
    
    .episode-text h2 {
        font-size: 2.2rem;
    }
    
    /* Coffee Grid - 2 columns on tablet */
    .coffee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Origins Grid - 2 columns on tablet */
    .origins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Stories Grid already uses auto-fit */
}

/* Tablet Landscape specific fixes */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* Hero section for landscape tablets */
    .homepage-hero {
        min-height: 100vh;
        padding-top: 60px;
        background-attachment: scroll;
        background-size: cover;
        background-position: top right;
    }
    
    .homepage-hero .hero-content {
        padding: 2rem;
        margin-top: 0;
    }
    
    .homepage-hero .hero-title {
        font-size: 2.8rem;
    }
    
    .homepage-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Fix episode hook layout in landscape */
    .homepage-episode-hook {
        padding: 4rem 0;
    }
    
    .episode-hook-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .episode-text {
        text-align: left;
        padding: 0;
    }
    
    .episode-image {
        order: 1; /* Image on right in landscape */
        padding: 0;
        width: 100%;
        margin: 0;
    }
    
    .episode-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
    }
    
    /* Grids for landscape tablets */
    .coffee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .origins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }
    
    /* Container adjustments */
    .homepage-main .container {
        padding: 0 2rem;
    }
}

/* Cultural Passport Introduction */
.homepage-passport-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%);
    border-top: 2px solid #C9CC68;
}

.passport-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C9CC68;
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.passport-text h2 {
    font-family: 'Stardos Stencil', serif;
    font-size: 2.5rem;
    color: #7E5D4C;
    margin-bottom: 20px;
    line-height: 1.2;
}

.passport-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.passport-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.passport-actions {
    text-align: center;
}

.passport-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
}

.passport-visual {
    position: relative;
}

.member-preview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.live-update {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9f0;
    border-radius: 8px;
    border-left: 4px solid #C9CC68;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.live-indicator {
    color: #e74c3c;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.update-time {
    font-size: 0.85rem;
    color: #999;
}

.update-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.voting-preview {
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.vote-title {
    font-weight: 600;
    color: #7E5D4C;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.vote-option {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.vote-option.leading {
    background: #C9CC68;
    color: #333;
    font-weight: 600;
}

/* Taste Section Updates */
.member-pricing-note {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
}

.pricing-highlight {
    color: #7E5D4C;
    font-weight: 600;
    background: #C9CC68;
    padding: 4px 12px;
    border-radius: 15px;
    color: #333;
}

.regular-pricing {
    color: #666;
    margin-left: 5px;
}

/* Community Impact Updates */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    text-align: center;
}

.impact-stat {
    background: rgba(201, 204, 104, 0.1);
    padding: 25px 20px;
    border-radius: 10px;
    border: 2px solid #C9CC68;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #7E5D4C;
    margin-bottom: 8px;
}

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

.community-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .homepage-hero {
        background-attachment: scroll; /* Fix mobile background issues */
        min-height: 100vh; /* Full viewport height */
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        padding-top: 60px; /* Account for mobile header */
        background-position: top right;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .homepage-hero .hero-content {
        padding-top: 20px; /* Extra padding from top */
        margin-top: 0;
    }
    
    /* Cultural Passport Mobile Responsive */
    .homepage-passport-intro {
        padding: 40px 0;
    }
    
    .passport-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .passport-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .passport-description {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .passport-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .benefit {
        text-align: center;
    }
    
    .passport-visual {
        order: -1; /* Show visual first on mobile */
    }
    
    .member-preview {
        padding: 20px;
        margin: 0 10px;
    }
    
    .live-update {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .update-content {
        font-size: 0.9rem;
    }
    
    .voting-preview {
        padding: 12px;
    }
    
    .vote-option {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    /* Taste Section Mobile */
    .member-pricing-note {
        font-size: 0.9rem;
        margin-top: 20px;
    }
    
    .pricing-highlight,
    .regular-pricing {
        display: block;
        margin: 5px 0;
    }
    
    /* Community Impact Mobile */
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .impact-stat {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .community-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .community-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    }
    
    .homepage-hero .hero-title {
        font-size: 2rem; /* Even smaller on mobile */
        margin-top: 0;
    }
    
    .homepage-hero .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .homepage-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .homepage-hero .btn {
        width: 90%;
        text-align: center;
    }
    
    /* Episode Hook Mobile Fixes */
    .homepage-episode-hook {
        padding: 3rem 0; /* Reduce padding on mobile */
    }
    
    .episode-hook-content {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 2rem;
        text-align: center;
    }
    
    .episode-text h2 {
        font-size: 1.8rem; /* Smaller heading on mobile */
    }
    
    .episode-text p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .episode-image {
        order: -1; /* Image first on mobile */
        padding: 0;
        width: 100%;
        margin: 0 0 2rem 0;
    }
    
    .episode-image img {
        width: 100%;
        height: auto;
        border-radius: 0; /* Remove border radius on mobile for full width */
        max-width: none;
    }
    
    /* Coffee Grid - Single column on mobile */
    .coffee-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Origins Grid - Single column on mobile */
    .origins-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Ensure all sections have proper padding */
    .homepage-taste,
    .homepage-origins,
    .homepage-stories,
    .homepage-community {
        padding: 3rem 0;
    }
    
    /* Adjust section headings */
    .homepage-stories h2,
    .origins-text h2,
    .homepage-community h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .origins-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .origin-highlights {
        grid-template-columns: 1fr;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .community-cta {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .homepage-main .container {
        padding: 0 1rem;
    }
    
    /* Fix story cards on mobile */
    .stories-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .homepage-hero {
        padding-top: 50px; /* Smaller header on small phones */
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fix */
    }
    
    .homepage-hero .hero-content {
        padding: 1rem;
        padding-top: 2rem;
    }
    
    .homepage-hero .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .homepage-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .homepage-hero .hero-tagline {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    /* Ensure full width sections */
    .homepage-main section {
        padding: 2.5rem 0;
    }
    
    .episode-text h2 {
        font-size: 1.6rem;
    }
}

/* Phone Portrait specific */
@media (max-width: 768px) and (orientation: portrait) {
    .homepage-episode-hook {
        padding: 2rem 0;
    }
    
    .episode-hook-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Full width image on portrait phones */
    .episode-image {
        width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 2rem;
    }
    
    .episode-image img {
        width: 100%;
        height: auto;
        min-height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    .episode-text {
        padding: 0 1rem;
    }
}