/* Backyard Eggs — OKLCH blue palette, glassmorphism, liquid morph */

/* ─── Design Tokens ─── */
:root {
    --primary:       oklch(52% 0.22 258);
    --primary-dark:  oklch(36% 0.18 262);
    --primary-mid:   oklch(64% 0.17 255);
    --primary-light: oklch(91% 0.05 255);

    --dark-text:  oklch(18% 0.04 265);
    --light-bg:   oklch(98% 0.01 260);
    --light-gray: oklch(95% 0.02 258);
    --border-gray:oklch(88% 0.03 258);

    --glass-white:  oklch(100% 0 0 / 0.72);
    --glass-border: oklch(100% 0 0 / 0.38);
    --glass-shadow: oklch(52% 0.22 258 / 0.10);
}

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

/* ─── Body & Background Blobs ─── */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: linear-gradient(160deg, oklch(97% 0.02 255) 0%, oklch(93% 0.04 262) 100%);
    min-height: 100vh;
    position: relative;
}

/* ambient blobs that make glass cards pop */
body::before {
    content: '';
    position: fixed;
    inset: auto -180px auto auto;
    top: -160px;
    width: 640px;
    height: 640px;
    background: oklch(72% 0.18 258 / 0.14);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -120px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: oklch(65% 0.20 278 / 0.10);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 13s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem;  margin-bottom: 1.5rem; }
h2 { font-size: 2rem;    margin-top: 2rem; }
h3 { font-size: 1.5rem;  margin-top: 1.5rem; }

p { margin-bottom: 1rem; }

/* ─── Header / Nav ─── */
header {
    background: oklch(25% 0.14 265 / 0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid oklch(100% 0 0 / 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

.nav-links a {
    color: oklch(92% 0.04 255);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-links a:hover { color: white; }

.nav-links a.active {
    color: white;
    border-bottom: 2px solid oklch(75% 0.18 255);
    padding-bottom: 0.25rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Main ─── */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 250px);
    position: relative;
    z-index: 1;
}

.content-section {
    background: var(--glass-white);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glass-shadow), 0 1px 2px oklch(0% 0 0 / 0.04);
}

/* ─── Animations ─── */
@keyframes blob-morph {
    0%,  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%        { border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
    50%        { border-radius: 30% 70% 70% 30% / 50% 40% 60% 50%; }
    75%        { border-radius: 50% 50% 40% 60% / 30% 70% 50% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.85; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero ─── */
.hero-section {
    background: linear-gradient(135deg,
        oklch(22% 0.18 268) 0%,
        oklch(40% 0.24 258) 55%,
        oklch(52% 0.26 278) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* morphing blob behind the egg */
.hero-section::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    background: oklch(72% 0.20 268 / 0.13);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob-morph 10s ease-in-out infinite;
    pointer-events: none;
}

/* second accent blob */
.hero-section::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: oklch(65% 0.24 245 / 0.09);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    bottom: -60px;
    right: 8%;
    animation: blob-morph 14s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-egg {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 16px oklch(0% 0 0 / 0.25));
    animation: float 4s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 16px oklch(0% 0 0 / 0.20);
}

.hero-section p {
    font-size: 1.15rem;
    color: oklch(94% 0.04 255);
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Availability Banner ─── */
.availability-banner {
    background: oklch(51% 0.17 145);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 12px oklch(0% 0 0 / 0.12);
}

.availability-banner.limited {
    background: oklch(78% 0.19 84);
    color: oklch(22% 0.08 80);
}

.availability-banner.soldout {
    background: oklch(52% 0.22 27);
    color: white;
}

.availability-banner h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: inherit;
}

.availability-banner p {
    margin: 0;
    font-size: 1.1rem;
}

.availability-banner .reserve-btn {
    display: inline-block;
    background: oklch(100% 0 0 / 0.92);
    color: oklch(36% 0.18 145);
    padding: 0.75rem 1.5rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-radius 0.4s ease;
}

.availability-banner.limited .reserve-btn { color: oklch(42% 0.16 84); }

.availability-banner.soldout .reserve-btn {
    background: transparent;
    border: 2px solid oklch(100% 0 0 / 0.8);
    color: white;
}

.availability-banner .reserve-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px oklch(0% 0 0 / 0.18);
    border-radius: 16px;
}

.availability-banner.available { animation: pulse 2.5s ease-in-out infinite; }

/* ─── Payment Box ─── */
.payment-box {
    background: oklch(96% 0.04 255 / 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid oklch(72% 0.16 255 / 0.45);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px oklch(52% 0.22 258 / 0.08);
}

.payment-box h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

/* ─── Egg Guide Section ─── */
.egg-guide {
    margin-top: 2rem;
}

.egg-guide-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.egg-guide-header h2 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.egg-guide-header p {
    color: oklch(48% 0.08 258);
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

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

/* base guide card */
.guide-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--glass-shadow);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.5s ease,
                box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-radius: 22px 14px 22px 14px;
    box-shadow: 0 18px 44px oklch(52% 0.22 258 / 0.20);
}

/* highlighted collection card */
.guide-card--highlight {
    background: oklch(94% 0.06 255 / 0.85);
    border-color: oklch(68% 0.18 258 / 0.45);
    border-top: 3px solid var(--primary);
}

/* full-width safety card */
.guide-card--wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.guide-card--wide .guide-card-body { flex: 1; }

.guide-card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.guide-card--wide .guide-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.guide-card h3 {
    margin: 0.4rem 0 0.75rem;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.guide-card ul,
.guide-card ol {
    margin: 0.5rem 0;
    padding-left: 1.3rem;
}

.guide-card li {
    margin-bottom: 0.5rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.guide-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid oklch(52% 0.22 258 / 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.guide-card a:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* numbered cleaning steps */
.guide-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.guide-steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.guide-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.guide-note {
    font-size: 0.88rem;
    color: oklch(42% 0.06 258);
    font-style: italic;
    margin: 0.4rem 0 0.25rem;
}

/* ─── Freshness Badges ─── */
.freshness-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

.freshness-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge--fresh { background: #d4edda; color: #155724; }
.badge--ok    { background: #fff3cd; color: #856404; }
.badge--old   { background: #f8d7da; color: #721c24; }

/* ─── Chicken Cards ─── */
.chicken-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chicken-card {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--glass-shadow);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.5s ease,
                box-shadow 0.3s ease;
}

.chicken-card:hover {
    transform: translateY(-6px);
    border-radius: 22px 14px 22px 14px;
    box-shadow: 0 16px 40px oklch(52% 0.22 258 / 0.18);
}

.chicken-card h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.75rem;
}

.chicken-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ─── Fun Facts ─── */
.fun-facts {
    list-style: none;
    padding: 0;
}

.fun-facts li {
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-facts li:hover {
    transform: translateX(4px);
    box-shadow: 2px 0 12px var(--glass-shadow);
}

.fun-facts li::before {
    content: "🐓 ";
    margin-right: 0.5rem;
}

/* ─── Batch Items ─── */
.batch-item {
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 12px var(--glass-shadow);
}

.batch-item strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ─── Forms ─── */
form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group { margin-bottom: 1.5rem; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    background: oklch(100% 0 0 / 0.80);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px oklch(52% 0.22 258 / 0.15);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary), oklch(55% 0.26 278));
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-radius 0.4s ease;
}

button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px oklch(52% 0.22 258 / 0.38);
    border-radius: 16px;
}

/* ─── Footer ─── */
footer {
    background: oklch(22% 0.16 264 / 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid oklch(100% 0 0 / 0.10);
    color: oklch(88% 0.05 255);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

footer p { margin: 0.5rem 0; }

/* ─── Legacy care-grid (kept for any non-home pages) ─── */
.care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.care-card {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 16px var(--glass-shadow);
}

.care-card h3 { margin-top: 0.5rem; font-size: 1.2rem; }

.care-icon { font-size: 2.25rem; line-height: 1; }

.care-card ul  { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.care-card li  { margin-bottom: 0.6rem; line-height: 1.5; }

.storage-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.storage-option {
    background: oklch(100% 0 0 / 0.60);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.storage-option span { font-weight: 600; font-size: 0.95rem; }
.storage-option p { margin: 0.2rem 0 0; font-size: 0.9rem; color: oklch(45% 0.04 258); }

/* ─── Payment Dropdown ─── */
.payment-dropdown {
    display: inline-block;
    position: relative;
    margin: 0.5rem 0 1rem;
}

.payment-toggle {
    background: linear-gradient(135deg, var(--primary), oklch(55% 0.26 278));
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-radius 0.4s ease;
}

.payment-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px oklch(52% 0.22 258 / 0.35);
    border-radius: 14px;
}

.payment-chevron {
    display: inline-block;
    transition: transform 0.3s ease;
    font-style: normal;
}

.payment-toggle[aria-expanded="true"] .payment-chevron {
    transform: rotate(180deg);
}

.payment-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 8px 24px var(--glass-shadow);
    margin-top: 0.25rem;
    min-width: 220px;
}

.payment-panel.open {
    max-height: 200px;
}

.payment-panel ul {
    list-style: none;
    padding: 0.75rem 1.25rem;
    margin: 0;
}

.payment-panel li {
    padding: 0.45rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-gray);
}

.payment-panel li:last-child {
    border-bottom: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: oklch(22% 0.16 265 / 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid oklch(100% 0 0 / 0.10);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 8px 24px oklch(0% 0 0 / 0.18);
        animation: slideDown 0.3s ease-out;
        z-index: 99;
    }

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

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    h1 { font-size: 2rem;   line-height: 1.2; }
    h2 { font-size: 1.6rem; }

    main { padding: 0 1rem; }

    .content-section { padding: 1.5rem; }

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

    .availability-banner {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1.5rem;
    }

    .availability-banner h3 { font-size: 1.3rem; }

    .availability-banner .reserve-btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    .payment-box { padding: 1.25rem; }

    .batch-item     { padding: 1.25rem; font-size: 1rem; }
    .fun-facts li   { padding: 1.25rem; font-size: 1rem; }

    button[type="submit"] {
        min-height: 44px;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        min-height: 44px;
        padding: 1rem;
        font-size: 1rem;
    }

    .hero-section   { padding: 3.5rem 1.5rem; }
    .hero-section h1{ font-size: 2rem; }
    .hero-egg       { font-size: 3.5rem; }

    .care-grid  { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: 1fr; }

    .guide-card--wide {
        flex-direction: column;
        gap: 0.75rem;
    }

    .guide-card:hover {
        transform: translateY(-4px);
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    h1            { font-size: 1.75rem; }
    .site-title   { font-size: 1.4rem; }
    .content-section { padding: 1rem; }

    .availability-banner {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.25rem 1rem;
    }

    .availability-banner h3 { font-size: 1.2rem; }

    .chicken-card   { padding: 1.25rem; }
    .chicken-card h3{ font-size: 1.5rem; }

    .hero-section h1{ font-size: 1.75rem; }
    .hero-egg       { font-size: 3rem; }
}
