:root {
    --bg: #fffdf8;
    --surface: #fff7ec;
    --surface-2: #f2f8ed;
    --ink: #243126;
    --muted: #5e6d61;
    --brand: #de7c39;
    --brand-deep: #b85f26;
    --accent: #8bb174;
    --line: #e5d8c8;
    --ok: #2f7a3a;
    --danger: #9c2d2d;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(49, 61, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 10% 10%, #fff3da 0%, transparent 35%),
        radial-gradient(circle at 80% 0%, #e8f4e2 0%, transparent 28%),
        var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: #125e36;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(255, 253, 248, 0.9);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e4d2bf;
    box-shadow: 0 4px 12px rgba(49, 61, 42, 0.12);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: grid;
}

.brand-text small {
    font-size: 0.77rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.62rem;
    border: 1px solid #d5c8b8;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
}

.social-links-footer a {
    color: #f5d3ad;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}

.social-links-icons {
    gap: 0.62rem;
    margin-top: 0.35rem;
}

.social-icon-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f3d7b8;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-icon-link:hover {
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.social-icon-facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.25);
}

.social-icon-instagram:hover {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.15);
    box-shadow: 0 0 0 3px rgba(228, 64, 95, 0.25);
}

.social-icon-x:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.social-icon-youtube:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.25);
}

.social-icon-tiktok:hover {
    color: #25f4ee;
    background: rgba(37, 244, 238, 0.15);
    box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.25);
}

.menu-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.menu-list a {
    font-weight: 700;
    color: var(--ink);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
}

.btn {
    border: none;
    display: inline-block;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

.btn-small {
    font-size: 0.92rem;
}

.btn-ghost {
    background: transparent;
    color: var(--brand-deep);
    border: 1px solid #ddba98;
    box-shadow: none;
}

.hero {
    padding: 3.8rem 0 3.2rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: #f2eadf;
    color: #754726;
    border: 1px solid #e1c9ad;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    margin: 0.75rem 0;
}

.hero p {
    color: #3f4c44;
}

.hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.hero-card {
    border-radius: var(--radius);
    min-height: 260px;
    background: linear-gradient(135deg, #fff2df, #edf7e7);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.85;
    animation: float 5s ease-in-out infinite;
}

.shape.one {
    width: 120px;
    height: 120px;
    background: rgba(222, 124, 57, 0.44);
    top: 20px;
    left: 16px;
}

.shape.two {
    width: 170px;
    height: 170px;
    background: rgba(139, 177, 116, 0.45);
    right: 16px;
    top: 66px;
    animation-delay: 1s;
}

.shape.three {
    width: 80px;
    height: 80px;
    background: rgba(209, 154, 95, 0.5);
    left: 45%;
    bottom: 18px;
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.section {
    padding: 2.2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 1.2rem;
}

.stats-grid h2 {
    margin-bottom: 0.2rem;
    font-size: 2rem;
    color: var(--brand-deep);
}

.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.4rem;
}

.highlight-box {
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid #d4e6c8;
    padding: 1.2rem;
}

.prose {
    max-width: 72ch;
}

.prose ul {
    padding-left: 1.2rem;
}

.kids-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.kid-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(40, 48, 35, 0.05);
}

.kid-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.kid-card-link:hover {
    text-decoration: none;
}

.kid-card-link:hover .kid-photo {
    transform: translateY(-2px);
}

.kid-photo-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ead9c5;
    background: #f8efe2;
    min-height: 160px;
}

.kid-photo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.kid-photo {
    border-radius: 12px;
    min-height: 160px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #68432a;
    border: 1px dashed #d9b792;
    background: linear-gradient(145deg, #fef2df, #eef6e9);
    position: relative;
    overflow: hidden;
}

.kid-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.45), transparent 36%),
        radial-gradient(circle at 85% 10%, rgba(139, 177, 116, 0.2), transparent 28%);
    pointer-events: none;
}

.placeholder-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    text-align: center;
    color: #6b462d;
}

.placeholder-content svg {
    width: 30px;
    height: 30px;
    opacity: 0.85;
}

.placeholder-content span {
    font-size: 0.86rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
}

.kid-age {
    color: var(--brand-deep);
    font-weight: 700;
}

.child-single {
    display: grid;
    gap: 1rem;
}

.child-profile {
    display: grid;
    gap: 1rem;
}

.child-top {
    margin-bottom: 0.2rem;
}

.child-meta {
    color: var(--brand-deep);
    font-weight: 800;
}

.child-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.9rem;
}

.gallery-main {
    min-height: 100%;
}

.child-main-photo {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e0c6ab;
    display: block;
}

.gallery-main-placeholder {
    min-height: 350px;
}

.gallery-side {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-side-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0c6ab;
    min-height: 112px;
}

.child-side-photo {
    width: 100%;
    height: 100%;
    min-height: 112px;
    object-fit: cover;
    display: block;
}

.child-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-photo {
    min-height: 112px;
}

.gallery-photo span {
    background: rgba(255, 255, 255, 0.82);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.donate-grid {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.donate-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.updates-grid {
    margin-top: 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.update-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(40, 48, 35, 0.05);
}

.update-card-image-link {
    display: block;
    margin: -1rem -1rem 0.85rem;
}

.update-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-bottom: 1px solid var(--line);
}

.update-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fef2df, #eef6e9);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-bottom: 1px solid var(--line);
    color: #6b462d;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.update-card-image-placeholder::before,
.update-single-image-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.45), transparent 36%),
        radial-gradient(circle at 85% 10%, rgba(139, 177, 116, 0.2), transparent 28%);
    pointer-events: none;
}

.update-card-image-placeholder span,
.update-single-image-placeholder span {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.update-meta {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 700;
}

.update-title {
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.update-title a {
    color: var(--ink);
    text-decoration: none;
}

.update-title a:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

.update-single {
    max-width: 900px;
}

.update-single-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0c6ab;
    margin: 1rem 0;
}

.update-single-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.update-single-image-placeholder {
    width: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fef2df, #eef6e9);
    color: #6b462d;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.update-content {
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 0.6rem;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.contact-form {
    display: grid;
    gap: 0.6rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #ccb9a6;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(222, 124, 57, 0.3);
    border-color: var(--brand);
}

.honey {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.7rem;
}

.form-alert.success {
    background: #e5f7e6;
    color: var(--ok);
}

.form-alert.error {
    background: #fde8e8;
    color: var(--danger);
}

.small-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 1rem;
    background: #243126;
    color: #ebf0ea;
    padding: 2rem 0 1rem;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #fff;
    padding: 2px;
    margin-bottom: 0.55rem;
}

.site-footer a {
    color: #f5d3ad;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 0.8rem;
    font-size: 0.93rem;
}

@media (max-width: 1100px) {
    .site-container {
        width: min(1120px, 94%);
    }

    .header-inner {
        gap: 0.65rem;
    }

    .menu-list {
        gap: 0.75rem;
    }

    .menu-list a {
        font-size: 0.95rem;
    }

    .kids-grid,
    .donate-grid,
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 821px) and (max-width: 1100px) {
    .hero {
        padding: 3rem 0 2.4rem;
    }

    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 1.2rem;
        align-items: start;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    }

    .hero-card {
        min-height: 220px;
    }

    .stats-grid h2 {
        font-size: 1.7rem;
    }

    .kid-card,
    .donate-card {
        padding: 0.9rem;
    }
}

@media (min-width: 741px) and (max-width: 820px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-text strong {
        font-size: 0.95rem;
    }

    .menu-list {
        gap: 0.55rem;
    }

    .menu-list a {
        font-size: 0.88rem;
    }

    .main-nav .btn-small {
        padding: 0.6rem 0.9rem;
        font-size: 0.84rem;
    }

    .hero {
        padding: 2.4rem 0 2rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-card {
        min-height: 200px;
    }

    .kids-grid,
    .donate-grid,
    .updates-grid,
    .stats-grid,
    .contact-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .kid-photo-image {
        height: 190px;
    }
}

@media (max-width: 960px) {
    .hero-inner,
    .split,
    .contact-grid,
    .donate-grid,
    .kids-grid,
    .updates-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kid-photo-image {
        height: 170px;
    }

    .child-gallery,
    .child-details-grid {
        grid-template-columns: 1fr;
    }

    .gallery-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

@media (max-width: 740px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 4%;
        left: 4%;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 1rem;
        display: none;
    }

    .main-nav.is-open {
        display: flex;
    }

    .menu-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav .btn-small {
        width: 100%;
        text-align: center;
    }

    .hero-inner,
    .stats-grid,
    .split,
    .contact-grid,
    .donate-grid,
    .kids-grid,
    .updates-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .kid-photo-image {
        height: 200px;
    }

    .child-main-photo,
    .gallery-main-placeholder {
        min-height: 240px;
    }

    .child-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-side {
        grid-template-columns: 1fr;
    }

    .social-icon-link {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .social-icon-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .stats-grid article {
        padding: 0.95rem;
    }

    .donate-card,
    .kid-card,
    .form-card {
        padding: 0.85rem;
    }

    .social-links-icons {
        gap: 0.5rem;
    }
}
