/* styles-updated.css – Complete & Fully Updated for 2026 */
/* Footer social links: mobile/small screens & Instagram in-app browser – icons only (text hidden) + all previous refinements */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Futura LT', sans-serif; 
    color: #333333;
    background: #faf6f0;
    line-height: 1.6; 
}
h1, h2, h3 { 
    font-weight: 700; 
    color: #222222;
}
p { 
    font-weight: 400; 
    font-size: clamp(1.15rem, 2.6vw, 1.3rem);
    color: #333333;
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

/* Global image containment – essential for in-app browsers */
img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Reinforcement for layout-critical images */
.story-image img,
.vineyard-image img,
.wine-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Logo size optimization */
.logo-container {
    max-width: 100%;
    overflow: hidden;
}
.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}
.logo-img:hover {
    transform: scale(1.06);
}
@media (min-width: 769px) {
    .logo-img {
        max-height: 90px;
    }
}

/* Header & Nav – Always solid black */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000000;
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: padding 0.4s ease;
}
#main-header.scrolled {
    padding: 12px 0;
}
nav {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: relative;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.hamburger .bar {
    width: 100%;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active .bar:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scale(0.1); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }
.nav-links {
    display: flex;
    gap: 60px;
    list-style: none;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 1.2px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: #d4af37;
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
}
.nav-links a:hover { color: #d4af37; }
.nav-links a:hover::after { width: 100%; }

/* Hero – Clean Static Background + Top Alignment Fix */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero h1,
.hero p { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.4); }
.hero h1 { font-size: clamp(4rem, 9vw, 7rem); letter-spacing: 4px; font-weight: 800; margin-bottom: 20px; animation: fadeUp 1.4s ease forwards 0.6s; opacity: 0; transform: translateY(40px); }
.hero p { font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: 1.5px; opacity: 0.95; margin-bottom: 40px; max-width: 90%; animation: fadeUp 1.4s ease forwards 0.9s; opacity: 0; transform: translateY(40px); }
.cta-button {
    background: #8b4513;
    color: #fff;
    padding: clamp(14px, 3vw, 20px) clamp(35px, 6vw, 50px);
    border: 2px solid #d4af37;
    border-radius: 50px;
    text-decoration: none;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.3);
    transition: all 0.4s ease;
    animation: fadeUp 1.4s ease forwards 1.2s;
    opacity: 0;
    transform: translateY(40px);
}
.cta-button:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.6);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4af37;
    transform: translateX(-50%);
    animation: lineExpand 1.8s ease forwards 1.4s;
    z-index: 2;
}
@keyframes lineExpand { to { width: 180px; } }

/* Video Hero (Index Only) */
.hero.video-hero video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease 0.5s;
}
.hero.video-hero.video-ready video { opacity: 1; }

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: auto;
    text-align: center;
}
.philosophy {
    background: #111111;
    color: #f5f5f5;
}
.philosophy h2 { color: #d4af37; font-size: clamp(2.5rem, 6vw, 4rem); }
.philosophy p { color: #f5f5f5; font-size: clamp(1.2rem, 2.8vw, 1.4rem); line-height: 1.9; }

/* Wine Grid & Cards – Extra inner padding to avoid text overlap with hover border */
.wine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 70px;
    margin-top: 70px;
    padding: 0 20px;
}
.wine-item {
    background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.04"/></svg>') repeat;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(60px);
    position: relative;
}
.wine-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}
.wine-item:hover {
    transform: translateY(-30px) scale(1.05);
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.wine-item::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: border-color 0.4s ease;
}
.wine-item:hover::before { border-color: #d4af37; }

/* Increased inner padding on wine-info */
.wine-info {
    padding: 40px 35px 50px;
}

/* Close Button for Popups */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.close-button:hover {
    background: #d4af37;
    color: #000;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.philosophy p {
    position: relative;
    animation: floatText 20s infinite ease-in-out;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Section Dividers */
section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 80px auto;
    width: 60%;
}

/* Footer – Optimized Animations & Social Icons */
footer {
    background: #000000;
    color: #ffffff;
    padding: 80px 20px 50px;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}
footer p {
    margin: 15px 0;
    color: #cccccc;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpFooter 1.2s ease forwards;
}
footer p:nth-child(1) { animation-delay: 0.2s; }
footer p:nth-child(2) { animation-delay: 0.4s; }

#footer-address {
    font-style: normal;
    color: #aaaaaa;
}
#footer-copyright {
    margin-top: 50px;
    font-size: 1rem;
    color: #888888;
    animation-delay: 0.8s;
}

@keyframes fadeUpFooter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links – Elegant Cards with Smooth Animations */
.social-links {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 160px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpFooter 1s ease forwards;
}
.social-links a:nth-child(1) { animation-delay: 0.6s; }
.social-links a:nth-child(2) { animation-delay: 0.7s; }
.social-links a:nth-child(3) { animation-delay: 0.8s; }

.social-links a:hover {
    color: #000000;
    background: #d4af37;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.social-links .social-icon {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.social-links a:hover .social-icon {
    transform: scale(1.15);
}

/* Mobile/small screens & Instagram in-app browser: Social links show icons only – text completely hidden */
@media (max-width: 768px) {
    .social-links {
        gap: 24px;
    }
    .social-links a {
        padding: 0;
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(212, 175, 55, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        font-size: 0 !important; /* Force hide text size */
        line-height: 0 !important;
    }
    .social-links a > text,
    .social-links a > span,
    .social-links a::text,
    .social-links a * {
        display: none !important;
    }
    .social-links .social-icon {
        width: 32px;
        height: 32px;
        margin: 0;
    }
    .social-links a:hover {
        background: #d4af37;
        border-color: #d4af37;
        transform: translateY(-6px) scale(1.1);
    }
    .social-links a:hover .social-icon {
        transform: scale(1.2);
    }
}

/* Contact Section */
.contact-section {
    padding: 120px 20px;
    background: #faf6f0;
    color: #333333;
}
.contact-section h2 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: #222222;
    margin-bottom: 30px;
}
.contact-section p#contact-p1 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 60px;
    color: #444;
}
.contact-details {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 0 auto 80px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.contact-details p {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin: 25px 0;
    color: #222222;
}
.contact-details strong { color: #8b4513; font-weight: 600; }
.contact-link {
    color: #8b4513;
    text-decoration: none;
    border-bottom: 1px solid #d4af37;
    transition: color 0.3s ease;
}
.contact-link:hover { color: #d4af37; }
.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    border: 3px solid #d4af37;
}
.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}
.directions-button {
    display: block;
    margin: 30px auto 0;
    background: #8b4513;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.directions-button:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
}

/* Visit Section */
.visit-section {
    padding: 120px 20px;
    background: #faf6f0;
    color: #333333;
}
.visit-section h2 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: #222222;
    margin-bottom: 30px;
}
.visit-section p#contact-p4 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 80px;
    color: #444;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
}
.review {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(212, 175, 55, 0.1);
    font-style: italic;
    font-size: clamp(1.15rem, 2.8vw, 1.35rem);
    color: #444;
    line-height: 1.8;
}
.experiences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 80px auto 0;
}
.experience-item {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.experience-item h3 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    color: #222222;
    margin-bottom: 20px;
}
.experience-item p {
    color: #444;
    margin-bottom: 30px;
}
.experience-button {
    display: inline-block;
    background: #8b4513;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.experience-button:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
}

/* Instagram Section – Juicer Feed Enhancements */
.instagram-section {
    padding: 120px 20px;
    background: #111111;
    color: #eee;
}
.instagram-section h2 {
    color: #d4af37;
    margin-bottom: 60px;
}

/* Juicer Feed – Dark volcanic theme with gold accents */
.juicer-feed {
    background: transparent !important;
}
.juicer-feed li.feed-item {
    background: rgba(17, 17, 17, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 40px !important;
    transition: all 0.4s ease;
}
.juicer-feed li.feed-item:hover {
    background: rgba(17, 17, 17, 1) !important;
    border-color: #d4af37 !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.juicer-feed .j-text {
    color: #eeeeee !important;
    font-family: 'Futura LT', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}
.juicer-feed .j-meta {
    color: #d4af37 !important;
}
.juicer-feed .j-image img {
    border-radius: 12px !important;
}

/* Load More button */
.juicer-feed .j-paginate {
    background: transparent !important;
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-size: 1.1rem !important;
    transition: all 0.4s ease;
}
.juicer-feed .j-paginate:hover {
    background: #d4af37 !important;
    color: #000000 !important;
}

/* Hide "Powered by Juicer" referral */
h1.referral,
.juicer-feed .j-referral {
    display: none !important;
}

/* Mobile Juicer tweaks – tighter spacing, larger touch targets */
@media (max-width: 768px) {
    .juicer-feed li.feed-item {
        margin-bottom: 30px !important;
    }
    .juicer-feed .j-text {
        font-size: 1rem !important;
    }
    .juicer-feed .j-paginate {
        padding: 12px 32px !important;
        font-size: 1rem !important;
    }
}

/* About Sections */
.about-section {
    padding: 120px 20px;
    background: #faf6f0;
    color: #333333;
}
.about-section h2 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: #222222;
    margin-bottom: 40px;
    text-align: center;
}
.story-content,
.vineyard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.story-text,
.vineyard-text {
    max-width: 800px;
    text-align: center;
}
.story-image img,
.vineyard-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 16px;
    box-shadow: none;
    border: 3px solid #d4af37;
}
@media (min-width: 992px) {
    .story-content,
    .vineyard-content {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }
    .story-text,
    .vineyard-text {
        flex: 1;
        text-align: left;
    }
    .story-image,
    .vineyard-image { flex: 1; }
    .vineyard-content { flex-direction: row-reverse; }
}
@media (max-width: 768px) {
    .about-section { padding: 80px 20px; }
}

/* Mobile Hamburger Menu */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: linear-gradient(to bottom, #111111 0%, #0a0a0a 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a { font-size: 2.8rem; font-weight: 600; letter-spacing: 3px; }
    .nav-links a::after { height: 3px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
}

/* Instagram Feed – Gentle Containment for All Browsers */
.instagram-section iframe,
.juicer-feed iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Ensure images inside feed don't overflow */
.juicer-feed img,
.instagram-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Juicer Instagram Feed – Eternal Volcanic Containment */
.juicer-feed,
.instagram-section {
    max-width: 100%;
    overflow: hidden;
}
.juicer-feed li.feed-item,
.juicer-feed img,
.juicer-feed .j-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Site Images – Eternal Graceful Scaling */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Prevents any stretch */
    display: block;
}

.story-image img,
.vineyard-image img {
    object-fit: cover; /* Keeps volcanic mood in frames */
}