/* SomeDay Farms Website Styles */
/* This file contains all the styling for the website */

/* ============================================ */
/* RESET AND BASE STYLES */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Varela Round', sans-serif;
    line-height: 1.6;
    color: #333333;
    overflow-x: hidden;
}

/* ============================================ */
/* HEADER AND NAVIGATION */
/* ============================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    font-size: 15px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-svg {
    width: 100px;
    height: 100px;
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFCC00;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #FFCC00;
}

/* ============================================ */
/* ENHANCED PARALLAX AND HERO SECTIONS */
/* ============================================ */

.parallax-container {
    position: relative;
    height: 62vh; /* Reduced by 38% from 100vh */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
    z-index: 1;
}

/* Enhanced parallax effect for better performance */
@media (prefers-reduced-motion: no-preference) {
    .parallax-bg {
        transform: translate3d(0, 0, 0);
    }
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ============================================ */
/* ENHANCED CURVED SECTION DIVIDERS */
/* ============================================ */

.curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 3;
    pointer-events: none;
}

.curve-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.curve-divider .divider-fill {
    fill: white;
}

/* Different curve styles for variety */
.curve-divider.style-1 svg path {
    d: path("M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z");
}

.curve-divider.style-2 svg path {
    d: path("M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z");
}

/* ============================================ */
/* CONTENT SECTIONS */
/* ============================================ */

.content-section {
    position: relative;
    padding: 4rem 0;
    background: white;
}

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

/* ============================================ */
/* BUTTONS (Your Custom Design) */
/* ============================================ */

.btn-primary {
    color: #ffffff !important;
    background-color: #333333 !important;
    border: 4px solid #555555 !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-clip: padding-box;
    transition: all 0.3s ease !important;
    font-family: 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05) !important;
    background-color: #333333 !important;
    border: 4px solid #658BE6 !important;
    animation: fadeBorder 3s linear infinite !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 0 15px 5px #FFCC00 !important;
    opacity: 1 !important;
}

@keyframes fadeBorder {
    0% { border-color: #658BE6; }
    50% { border-color: #FFFFFF; }
    100% { border-color: #658BE6; }
}

/* ============================================ */
/* HOME PAGE SECTIONS */
/* ============================================ */

.home-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    /* Removed background-attachment: fixed to disable parallax */
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.home-section .section-container {
    position: relative;
    z-index: 2;
    color: white;
}

/* ============================================ */
/* SUBSCRIBE SECTION */
/* ============================================ */

.subscribe-container {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #333333;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
    color: #333333;
}

.subscribe-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.email-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.email-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Varela Round', sans-serif;
}

/* ============================================ */
/* RECIPE CARDS */
/* ============================================ */

.recipe-card {
    background: white;
    border: 3px solid #333333;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.recipe-card h3 {
    font-size: 1.1rem;
    color: #333333;
    text-align: center;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.footer {
    background: #333333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFCC00;
}

/* ============================================ */
/* CHAT BUTTON (Your Custom Design) */
/* ============================================ */

#questionButton {
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Varela Round', sans-serif;
    cursor: pointer;
    border: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

#questionButton i {
    margin-right: 10px;
}

@keyframes glowOrange {
    0% { box-shadow: 0 0 0px 0px rgba(255, 204, 0, 0); }
    30% { box-shadow: 0 0 20px 5px rgba(255, 204, 0, 0.5); }
    60% { box-shadow: 0 0 20px 5px rgba(255, 204, 0, 1); }
    100% { box-shadow: 0 0 0px 0px rgba(255, 204, 0, 0); }
}

#questionButton.animate-glow {
    animation: glowOrange 8.67s ease-in-out infinite;
}

#questionButton.blue-glow {
    box-shadow: 0 0 20px 5px rgba(101, 139, 230, 0.8);
    transition: box-shadow 0.4s ease-in-out;
}

/* ============================================ */
/* CHAT BOX (Your Custom Design) */
/* ============================================ */

#questionBox {
    width: 330px;
    height: 300px;
    background-color: #333333;
    border-radius: 15px;
    position: fixed;
    bottom: 110px;
    right: 20px;
    opacity: 0;
    transform: scale(0);
    transform-origin: bottom right;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1001;
    display: none;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#questionBox .top {
    background-color: #FFCC00;
    height: 33%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    position: relative;
}

.image-container {
    position: relative;
    display: inline-block;
}

#questionBox .top img {
    max-height: 80%;
    max-width: 50px;
    border-radius: 50%;
    position: relative;
    display: block;
}

.green-circle {
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid white;
}

.text-container {
    margin-left: 15px;
}

.text-container .farm-name {
    font-weight: bold;
    font-size: 18px;
    font-family: 'Varela Round', sans-serif;
    margin-bottom: 5px;
}

.text-container .reply-time {
    font-size: 12.6px;
    font-family: 'Varela Round', sans-serif;
}

#questionBox .bottom {
    background-color: #333333;
    height: 67%;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-family: 'Varela Round', sans-serif;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: relative;
}

.chat-bubble-container {
    position: absolute;
    top: 20px;
    left: 10px;
    display: flex;
    align-items: center;
}

.chat-bubble {
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 12.5px 20px;
    font-family: 'Varela Round', sans-serif;
    font-size: 17.5px;
    color: #333333;
    margin-left: 12.5px;
    max-width: 250px;
    line-height: 1.4;
}

.chat-bubble-container img {
    width: 31px;
    height: 31px;
    border-radius: 50%;
}

.social-buttons-container {
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.social-button {
    background-color: #658BE6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 48%;
    justify-content: center;
}

.social-button + .social-button {
    margin-left: 5px;
}

.social-button:hover {
    background-color: #4F6CAF;
}

.social-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: invert(100%);
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .home-section {
        background-attachment: scroll;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    #questionButton {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    #questionBox {
        width: 280px;
        bottom: 80px;
        right: 15px;
    }

    .logo-svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .subscribe-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .logo-svg {
        width: 60px;
        height: 60px;
    }

    .curve-divider {
        height: 60px;
    }
}

/* Disable parallax on devices with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg {
        background-attachment: scroll;
        transform: none !important;
    }
}