.public-body {
    background: #e7decc;
    background-image: linear-gradient(180deg, #eee5d4 0, #e7decc 42%, #d8c9ae 100%);
    color: #3d3a34;
}

.public-header {
    padding: .65rem clamp(1rem, 4vw, 3.5rem);
    background: rgba(231, 222, 204, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(116, 92, 46, .18);
    box-shadow: 0 10px 32px rgba(61, 58, 52, .08);
}

.public-brand {
    align-items: center;
    color: #2f2b24;
    display: inline-flex;
    font-size: 1.25rem;
}

.brand-logo-mini {
    display: block;
    height: 62px;
    object-fit: cover;
    object-position: center;
    width: 178px;
}

.public-brand .brand-logo-mini {
    height: 104px;
    object-fit: cover;
    object-position: center;
    width: 320px;
}

.public-brand > img:not(.brand-logo-mini),
.public-brand > span:not(.brand-text-hidden) {
    display: none;
}

.brand-text-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.public-nav {
    gap: .35rem;
}

.public-nav a {
    border: 1px solid transparent;
    color: #51483b;
    font-size: 1.16rem;
    font-weight: 900;
    min-height: 54px;
    padding: .8rem 1.1rem;
}

.public-nav a:hover {
    background: #fffaf0;
    border-color: #d8c393;
    color: #2f2b24;
}

.home-hero {
    align-items: center;
    display: grid;
    gap: clamp(1rem, 3vw, 2.2rem);
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    margin: 0 auto;
    max-width: 1240px;
    min-height: clamp(520px, 68vh, 680px);
    padding: clamp(1rem, 3vw, 2.4rem) clamp(1rem, 4vw, 3.5rem) clamp(.35rem, 1.5vw, 1.1rem);
}

.hero-copy {
    padding-block: 1rem;
}

.hero-copy > .eyebrow,
.hero-copy > .hero-lead,
.hero-copy > .hero-actions {
    display: none;
}

.hero-copy > h1 {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.hero-logo-image {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: auto;
    max-width: min(100%, 720px);
    mix-blend-mode: multiply;
    width: 100%;
}

.eyebrow,
.section-heading span,
.home-cta span {
    align-items: center;
    background: #fff7df;
    border: 1px solid #bda35f;
    border-radius: 999px;
    color: #765921;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding: .35rem .8rem;
    width: max-content;
}

.hero-copy h1 {
    color: #30291e;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0;
    max-width: 850px;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.hero-lead {
    color: #615846;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    font-weight: 600;
    margin: 1.2rem 0 0;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.7rem;
}

.public-btn {
    align-items: center;
    border: 1px solid #bda35f;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 54px;
    padding: .85rem 1.15rem;
    white-space: nowrap;
}

.public-btn.primary {
    background: #3d3a34;
    border-color: #3d3a34;
    box-shadow: 0 18px 40px rgba(61, 58, 52, .22);
    color: #fffaf0;
}

.public-btn.secondary {
    background: #fffaf0;
    color: #3d3a34;
}

.hero-visual {
    background: #e5d9c2;
    border: 1px solid rgba(116, 92, 46, .22);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(61, 58, 52, .2);
    height: clamp(420px, 42vw, 480px);
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.hero-visual:after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(40, 32, 20, .4));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-visual img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

.hero-placeholder {
    align-items: center;
    background: radial-gradient(circle at 20% 15%, #fff7df, #e9dec8 48%, #d4c199);
    color: #443620;
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: absolute;
    text-align: center;
}

.hero-placeholder span,
.hero-placeholder small {
    font-weight: 800;
}

.hero-placeholder strong {
    font-size: 2rem;
    margin: .45rem 0;
}

.hero-counter {
    align-items: end;
    background: rgba(39, 35, 28, .9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 250, 240, .18);
    border-radius: 8px;
    bottom: 1.2rem;
    color: #fffaf0;
    display: grid;
    gap: .3rem 1rem;
    grid-template-columns: 1fr auto;
    left: 1.2rem;
    padding: 1.1rem 1.25rem;
    position: absolute;
    right: 1.2rem;
    z-index: 2;
}

.hero-counter span {
    color: #e9dec8;
    font-weight: 800;
}

.hero-counter strong {
    color: #f4d06f;
    font-size: 3.2rem;
    font-weight: 900;
    grid-column: 2;
    grid-row: 1 / 3;
    line-height: 1;
}

.hero-counter small {
    color: #d7c8ad;
    font-weight: 700;
}

.farm-stats {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: -1.5rem auto 1.5rem;
    max-width: 1160px;
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
    z-index: 3;
}

.farm-stat {
    background: #fffaf0;
    border: 1px solid #d8c393;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(61, 58, 52, .1);
    padding: 1rem 1.1rem;
}

.farm-stat span {
    color: #6a604d;
    display: block;
    font-weight: 800;
}

.farm-stat strong {
    color: #3d3a34;
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: .35rem;
}

.farm-stat.muted {
    background: #6f7b4e;
    border-color: #6f7b4e;
}

.farm-stat.muted span,
.farm-stat.muted strong {
    color: #fffaf0;
}

.farm-stat .live-realtime {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
}

.farm-stat .live-dot {
    background: #31e36f;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(49, 227, 111, .7), 0 0 16px rgba(49, 227, 111, .85);
    display: inline-block;
    flex: 0 0 auto;
    height: .52em;
    margin-top: .08em;
    width: .52em;
    animation: livePulse 1.15s ease-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 227, 111, .72), 0 0 16px rgba(49, 227, 111, .85);
        opacity: 1;
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(49, 227, 111, 0), 0 0 20px rgba(49, 227, 111, .65);
        opacity: .78;
        transform: scale(.88);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 227, 111, 0), 0 0 16px rgba(49, 227, 111, .85);
        opacity: 1;
        transform: scale(1);
    }
}

.showcase-section {
    margin: 0 auto;
    max-width: 1240px;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3.5rem);
}

.section-heading {
    margin-bottom: 1.2rem;
}

.section-heading h2,
.home-cta h2 {
    color: #30291e;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0;
}

.section-heading .section-title-pill {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    padding: .42rem 1.05rem;
}

.section-heading.with-action {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.section-heading.with-action > a {
    border-bottom: 2px solid #bda35f;
    color: #6f5729;
    font-weight: 900;
}

.slide-showcase {
    background: #fffaf0;
    border: 1px solid #d8c393;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(61, 58, 52, .12);
    overflow: hidden;
}

.slide-showcase figure {
    margin: 0;
    position: relative;
}

.slide-showcase img {
    height: min(62vh, 560px);
    object-fit: cover;
    width: 100%;
}

.slide-showcase figcaption {
    background: rgba(61, 58, 52, .86);
    border-radius: 8px;
    bottom: 1rem;
    color: #fffaf0;
    font-weight: 800;
    left: 1rem;
    padding: .8rem 1rem;
    position: absolute;
    right: 1rem;
}

.pedigree-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pedigree-card {
    background: #fffaf0;
    border: 1px solid #d8c393;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(61, 58, 52, .1);
    display: grid;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.pedigree-card:hover {
    box-shadow: 0 26px 58px rgba(61, 58, 52, .16);
    transform: translateY(-4px);
}

.pedigree-photo {
    aspect-ratio: 4 / 3;
    background: #ded2b8;
    display: grid;
    overflow: hidden;
    place-items: center;
}

.pedigree-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pedigree-photo span {
    color: #7a6230;
    font-size: 2.5rem;
    font-weight: 900;
}

.pedigree-body {
    padding: 1rem;
}

.pedigree-body .code {
    background: #ede6d6;
    border-radius: 999px;
    color: #6f5729;
    display: inline-flex;
    font-weight: 900;
    margin-bottom: .55rem;
    padding: .2rem .65rem;
}

.pedigree-body h3 {
    color: #30291e;
    font-size: 1.35rem;
    margin: .2rem 0;
}

.pedigree-body p {
    color: #6a604d;
    font-weight: 700;
    margin: .25rem 0 0;
}

.hens-band {
    background: rgba(237, 230, 214, .68);
    max-width: none;
}

.hens-band > .section-heading,
.hens-band > .pedigree-grid {
    margin-left: auto;
    margin-right: auto;
    max-width: 1170px;
}

.home-cta {
    align-items: center;
    background: #3d3a34;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(61, 58, 52, .2);
    color: #fffaf0;
    display: block;
    margin: 1rem auto 3rem;
    max-width: 1160px;
    padding: clamp(1.4rem, 4vw, 2.2rem);
}

.home-cta h2 {
    color: #fffaf0;
}

.home-cta p {
    color: #eadfc8;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.85;
    max-width: 740px;
}

.home-cta .public-btn.primary {
    background: #f4d06f;
    border-color: #f4d06f;
    color: #2f2b24;
}

.home-cta .cta-inline {
    border-radius: 999px;
    display: inline-flex;
    margin-left: .75rem;
    min-height: 44px;
    padding: .6rem 1.45rem;
    vertical-align: middle;
}

.public-footer {
    align-items: center;
    background: #2f2b24;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(1rem, 4vw, 3.5rem);
    text-align: center;
}

.public-footer > div:last-child {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.8;
}

.public-socials {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.public-footer .public-socials {
    justify-content: center;
}

.public-social {
    align-items: center;
    background: rgba(255, 250, 240, .1);
    border: 1px solid rgba(255, 250, 240, .18);
    border-radius: 999px;
    color: #fffaf0;
    display: inline-flex;
    font-weight: 900;
    gap: .55rem;
    min-height: 48px;
    padding: .55rem .9rem .55rem .65rem;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.public-social:hover {
    background: rgba(255, 250, 240, .18);
    border-color: rgba(244, 208, 111, .55);
    transform: translateY(-2px);
}

.public-social svg {
    border-radius: 50%;
    fill: currentColor;
    height: 34px;
    width: 34px;
}

.public-social.facebook svg {
    color: #73a7ff;
}

.public-social.line svg {
    color: #42d66a;
}

.public-social.tiktok svg {
    color: #ff6f8d;
}

.contact-socials {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1.25rem;
    max-width: 180px;
}

.contact-socials .public-social {
    background: #2f2b24;
    border-color: #d8c393;
    color: #fffaf0;
    justify-content: flex-start;
    width: 100%;
}

.contact-stack {
    display: grid;
    gap: .85rem;
}

.contact-info-text {
    color: #51483b;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual,
    .hero-visual img {
        height: 380px;
    }

    .farm-stats,
    .pedigree-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading.with-action,
    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 1.1rem;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-visual,
    .hero-visual img {
        height: 320px;
    }

    .hero-counter {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .hero-counter strong {
        font-size: 2.7rem;
        grid-column: auto;
        grid-row: auto;
    }

    .farm-stats,
    .pedigree-grid {
        grid-template-columns: 1fr;
    }

    .public-btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}
