/* EggChewsive Family Farm — v2 */
/* ===== VARIABLES ===== */
:root {
    --barn-red: #D4728C;
    --barn-red-dark: #C25A78;
    --yolk-gold: #F2A7C3;
    --yolk-light: #FADCE6;
    --cream: #FFF5F8;
    --cream-dark: #FFE8EF;
    --forest: #D4728C;
    --forest-dark: #C25A78;
    --brown: #8C5068;
    --brown-light: #B87A94;
    --text: #4A2035;
    --text-light: #8C6B7A;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(180,100,130,0.12);
    --shadow-hover: 0 6px 24px rgba(180,100,130,0.2);
    --radius: 20px;
    --transition: 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

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

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
}

.logo-egg {
    color: var(--yolk-gold);
}

.logo-chew {
    color: var(--barn-red);
}

.logo-sive {
    color: var(--yolk-gold);
}

.logo-farms {
    color: var(--forest);
    font-size: 0.6em;
    display: block;
    margin-top: -6px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--barn-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yolk-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== STOCK INDICATOR ===== */
.stock-indicator {
    text-align: center;
    margin-bottom: 24px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    width: 100%;
}
.stock-indicator.in-stock {
    background: #D5F5E3;
    color: #1E8449;
}
.stock-indicator.low-stock {
    background: #FEF3CD;
    color: #B7950B;
}
.stock-indicator.out-of-stock {
    background: #FADBD8;
    color: #C0392B;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, var(--yolk-light) 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4728C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--brown);
    margin-bottom: 20px;
}

.hero h1 em {
    color: var(--barn-red);
    font-style: normal;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-chicken {
    position: absolute;
    bottom: 30px;
    right: 10%;
    font-size: 5rem;
    animation: bobble 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes bobble {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--barn-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--barn-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--barn-red);
    border: 2px solid var(--barn-red);
}

.btn-secondary:hover {
    background: var(--barn-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
}

.btn-hatch {
    background: var(--yolk-gold);
    color: var(--brown);
}

.btn-hatch:hover {
    background: var(--yolk-light);
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--cream-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card.featured {
    border: 3px solid var(--yolk-gold);
}

.product-card.heritage {
    border: 2px solid var(--barn-red);
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yolk-gold);
    color: var(--brown);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 16px;
    border-radius: 50px;
}

.heritage .product-badge {
    background: var(--barn-red);
    color: var(--white);
}

.product-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.product-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: var(--forest);
    margin-bottom: 16px;
}

.hatch-prices {
    margin-bottom: 16px;
}

.hatch-prices p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 4px 0;
}

.hatch-prices strong {
    color: var(--forest);
}

/* ===== BREED TABS ===== */
.breed-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.breed-tab {
    padding: 10px 28px;
    border: 2px solid var(--brown-light);
    background: transparent;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--brown-light);
}

.breed-tab.active {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.breed-tab:hover:not(.active) {
    border-color: var(--brown);
    color: var(--brown);
}

.breed-category {
    display: none;
}

.breed-category.active {
    display: block;
}

.hatch-disclaimer {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-left: 4px solid var(--yolk-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== ORDER SECTION ===== */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.cart-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.cart-panel h3 {
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 16px;
}

.cart-empty {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--forest);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cream-dark);
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--yolk-light);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--barn-red);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--cream-dark);
}

.cart-subtotal, .cart-delivery-fee {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--forest);
    margin-top: 8px;
}

.hidden {
    display: none !important;
}

/* ===== FORM ===== */
.order-form-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.order-form-panel h3 {
    font-size: 1.2rem;
    color: var(--brown);
    margin-bottom: 16px;
    margin-top: 24px;
}

.order-form-panel h3:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yolk-gold);
    background: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--yolk-gold);
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--brown-light);
    border-radius: 50%;
    margin: 0 12px 0 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked {
    border-color: var(--forest);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: var(--forest);
    border-radius: 50%;
}

.radio-label:has(input:checked) {
    border-color: var(--forest);
    background: rgba(212, 114, 140, 0.06);
}

.delivery-fields {
    transition: var(--transition);
}

.form-note {
    text-align: center;
    color: var(--forest);
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(58, 107, 53, 0.08);
    border-radius: 8px;
}

/* ===== ABOUT ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text);
}

.about-text h3 {
    color: var(--brown);
    margin-bottom: 12px;
    margin-top: 24px;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--text);
}

.about-text ul li::before {
    content: '🥚';
    position: absolute;
    left: 0;
}

.about-placeholder {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 3px dashed var(--cream-dark);
}

.about-placeholder span {
    font-size: 5rem;
    display: block;
    margin-bottom: 12px;
}

.about-placeholder p {
    font-family: 'Fredoka', sans-serif;
    color: var(--brown);
    font-size: 1.2rem;
}

.about-placeholder .small {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== DELIVERY BANNER ===== */
.delivery-banner {
    background: var(--brown);
    padding: 40px 0;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.delivery-info-item {
    color: var(--white);
}

.delivery-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.delivery-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.delivery-info-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-card span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.contact-card h4 {
    color: var(--brown);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--text);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin: 4px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    opacity: 1 !important;
}

.footer-tagline {
    font-style: italic;
    margin-top: 8px;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal-content h2 {
    color: var(--forest);
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.modal-note {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 20px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .delivery-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-chicken {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .delivery-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
