:root {
    --bg: #f5ecdf;
    --bg-2: #f8f1e6;
    --paper: #f6ead8;
    --paper-soft: #fbf4e8;
    --paper-dark: #ead8bf;
    --text: #5a3c2b;
    --text-soft: #7b604f;
    --title: #6d3e1d;
    --accent: #c98536;
    --accent-dark: #a76425;
    --green: #8a9448;
    --green-dark: #70793b;
    --line: #e5d3ba;
    --shadow: 0 18px 35px rgba(97, 61, 29, 0.14);
    --shadow-soft: 0 10px 24px rgba(97, 61, 29, 0.10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at top left, rgba(217, 163, 90, 0.10), transparent 25%),
        radial-gradient(circle at bottom right, rgba(167, 152, 80, 0.08), transparent 28%),
        linear-gradient(180deg, #efe2ce 0%, #f7efe4 38%, #f6ecdf 100%);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(102, 60, 23, 0.45) 0%, rgba(102, 60, 23, 0.28) 30%, rgba(102, 60, 23, 0.08) 58%, rgba(102, 60, 23, 0.02) 100%),
        url("images/huhn.jpg") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(246, 236, 223, 0) 58%, rgba(246, 236, 223, 0.78) 78%, rgba(246, 236, 223, 1) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 15%, rgba(255, 205, 124, 0.16), transparent 18%),
        radial-gradient(circle at 16% 26%, rgba(255,255,255,0.08), transparent 18%);
    mix-blend-mode: screen;
}

.container-wide {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-inner {
    width: 100%;
}

.hero-text {
    max-width: 620px;
    padding: 120px 0 210px;
}

.farm-badge {
    display: inline-block;
    margin-bottom: 26px;
    padding: 15px 34px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #c9863f 0%, #a96628 100%);
    color: #fff8ef;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hero h1 {
    margin: 0 0 26px;
    max-width: 620px;
    color: #fff8ee;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 6.4vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.18);
}

.hero p {
    margin: 0;
    max-width: 700px;
    padding: 24px 30px;
    border-radius: 26px;
    background: rgba(252, 244, 232, 0.90);
    border: 1px solid rgba(242, 226, 204, 0.95);
    color: #5c4030;
    font-size: 1.25rem;
    line-height: 1.45;
    box-shadow: 0 16px 30px rgba(94, 59, 29, 0.12);
    backdrop-filter: blur(3px);
}

/* =========================
   MAIN
========================= */

.page-shell {
    position: relative;
    z-index: 4;
    margin-top: -120px;
    padding: 0 20px 42px;
}

.container-main {
    width: min(var(--container), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: start;
}

/* =========================
   CARDS
========================= */

.card {
    position: relative;
    overflow: hidden;
    padding: 38px 34px 30px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(251, 244, 232, 0.98) 0%, rgba(244, 232, 214, 0.98) 100%);
    border: 1px solid #e6d6bf;
    box-shadow: var(--shadow);
}

.card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(178, 147, 110, 0.28);
    border-radius: 22px;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 210px;
    height: 18px;
    background: linear-gradient(90deg, #d89b43 0%, #c9832d 100%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 18px;
    opacity: 0.95;
}

.card h2 {
    margin: 0;
    text-align: center;
    color: var(--title);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3vw, 3.1rem);
    line-height: 1.08;
}

.section-subtitle {
    margin: 8px 0 28px;
    text-align: center;
    color: var(--text-soft);
    font-size: 1.15rem;
}

/* =========================
   AVAILABILITY
========================= */

.availability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.availability-box {
    padding: 22px 16px 18px;
    text-align: center;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #f7f2e5 0%, #ece3cf 100%);
    border: 1px solid #e6d7bf;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}

.egg-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.availability-label {
    display: block;
    margin-bottom: 10px;
    color: #665240;
    font-size: 1.18rem;
    font-weight: 700;
}

.availability-value {
    display: block;
    color: #6d7335;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.1rem;
    line-height: 1;
}

.nest-image-box {
    overflow: hidden;
    margin-top: 16px;
    border-radius: 24px;
    border: 1px solid #e5d5bf;
    box-shadow: var(--shadow-soft);
}

.nest-image-box img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* =========================
   FORM
========================= */

.form-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--title);
    font-size: 1.02rem;
    font-weight: 700;
}

.form-box input,
.form-box select {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #e5d4be;
    background: rgba(255, 252, 247, 0.86);
    color: var(--text);
    font-size: 1.05rem;
    outline: none;
    transition: 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(96, 62, 33, 0.04);
}

.form-box input:focus,
.form-box select:focus {
    border-color: #c48a46;
    box-shadow: 0 0 0 4px rgba(196, 138, 70, 0.14);
    background: #fffdf9;
}

.form-box button,
.button-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60px;
    margin-top: 8px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #97a051 0%, #7d8742 100%);
    color: #fffdf5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(109, 118, 56, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-box button:hover,
.button-link:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #8a9448 0%, #70793b 100%);
    box-shadow: 0 14px 24px rgba(109, 118, 56, 0.25);
}

.small-note {
    margin: 20px 0 0;
    text-align: center;
    color: #7f6856;
    font-size: 1rem;
}

/* =========================
   INFO BOXES
========================= */

.info-box {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-left: 5px solid #6d9f42;
    border-radius: 12px;
    background: #f1f7e9;
    color: #354126;
}

.info-box.warning {
    background: #fff4e9;
    border-left-color: #d08a2f;
    color: #6d4a1d;
}

.info-box.success {
    background: #eaf8ea;
    border-left-color: #3e9140;
    color: #245d27;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    width: min(var(--container), 100%);
    margin: 28px auto 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.site-footer a {
    color: var(--title);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer span {
    display: inline-block;
    margin: 0 10px;
    opacity: 0.6;
}

/* =========================
   LEGACY / ADMIN
========================= */

.container {
    max-width: 560px;
    margin: 30px auto;
    padding: 24px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

h1,
h2 {
    color: var(--title);
}

.intro {
    margin-bottom: 20px;
}

.small {
    font-size: 0.92rem;
    color: #555;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #eef3e7;
    color: #2c3b1f;
    text-decoration: none;
}

.admin-nav a:hover {
    background: #dfead4;
}

.admin-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f3f3f3;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
    .hero {
        min-height: 660px;
        background-position: 68% center;
    }

    .hero-text {
        padding: 90px 0 170px;
    }

    .page-shell {
        margin-top: -90px;
    }

    .container-main {
        grid-template-columns: 1fr;
    }

    .availability-card,
    .form-card {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 560px;
        background-position: 72% center;
    }

    .container-wide {
        width: min(100% - 24px, var(--container));
    }

    .hero-text {
        max-width: 100%;
        padding: 68px 0 120px;
    }

    .farm-badge {
        padding: 12px 22px;
        font-size: 0.92rem;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 11vw, 4rem);
        margin-bottom: 18px;
    }

    .hero p {
        padding: 16px 18px;
        border-radius: 20px;
        font-size: 1.02rem;
    }

    .page-shell {
        margin-top: -54px;
        padding: 0 12px 28px;
    }

    .card {
        padding: 24px 18px 22px;
        border-radius: 24px;
    }

    .card::before {
        inset: 12px;
        border-radius: 16px;
    }

    .card::after {
        left: 18px;
        width: 150px;
        height: 14px;
    }

    .availability-grid {
        grid-template-columns: 1fr;
    }

    .availability-value {
        font-size: 3.2rem;
    }

    .nest-image-box img {
        height: 220px;
    }

    .form-box input,
    .form-box select {
        min-height: 54px;
    }

    .form-box button,
    .button-link {
        min-height: 56px;
        font-size: 1.05rem;
    }
}