/* ===== Color Palette ===== */
:root {
    --teal: #0D8E8E;
    --blue: #0E5E9E;
    --aqua: #00A8A8;
    --coral: #EA5F5C;
    --white: #FFFFFF;
    --gold: #F5B918;
    --navy: #193A65;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--navy);
    color: var(--navy);
}

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

ul {
    list-style: none;
}

/* ===== Navbar — Wooden Board ===== */
.navbar {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 90px;
    padding: 0 100px;
    background: url('images/nav-board.png') center / calc(100% + 50px) calc(100% + 14px) no-repeat;
}

.nav-links a {
    font-family: 'Nunito', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.nav-links .donate-link {
    font-weight: 800;
}

/* Burger button — hidden on desktop */
.burger {
    display: none;
    background: var(--navy);
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Fullscreen mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #4DB8FF 0%, #A8DEFF 40%, #E0F2FF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--navy);
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-links a {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-links a:hover {
    transform: scale(1.05);
    color: var(--coral);
}

.mobile-links .donate-link {
    color: var(--coral);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .clouds-bg {
    width: 110%;
    height: 100%;
    object-fit: cover;
    animation: cloudsDrift 30s ease-in-out infinite alternate;
}

@keyframes cloudsDrift {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-8%); }
}

/* Logo & Sun — pinned to top */
.hero-logo {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 20;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.sun-doodle {
    position: absolute;
    top: 12%;
    right: 15%;
    z-index: 15;
    width: 110px;
    height: auto;
    animation: sunRotate 20s linear infinite, sunGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 12px rgba(245, 185, 24, 0.6));
}

@keyframes sunRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sunGlow {
    0%   { filter: drop-shadow(0 0 10px rgba(245, 185, 24, 0.4)); }
    100% { filter: drop-shadow(0 0 25px rgba(245, 185, 24, 0.8)); }
}

/* Hero content — centered */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 80px;
}

/* ===== Hero Heading ===== */
.hero-text {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.hero-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin-bottom: 16px;
    width: 100%;
    overflow: visible;
}

.hero-heading svg {
    display: block;
    overflow: visible;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 2;
}

.hero-tagline mark {
    background: var(--coral);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ===== Buttons ===== */
.hero-buttons {
    display: flex;
    gap: 24px;
}

.btn {
    display: inline-block;
    padding: 14px 44px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 58, 101, 0.35);
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
        padding: 0 60px;
        height: 75px;
    }
    .nav-links a { font-size: 0.92rem; }
    .hero-logo { width: 150px; }
    .sun-doodle { width: 90px; }
    .hero-content { padding: 60px 20px 60px; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
    .navbar { top: 16px; }
    .nav-links {
        gap: 14px;
        padding: 0 30px;
        height: 62px;
    }
    .nav-links a { font-size: 0.82rem; }
    .hero-logo { width: 120px; top: 16px; left: 16px; }
    .sun-doodle { width: 70px; right: 10%; }
    .hero-heading { min-height: 70px; }
    .hero-tagline { font-size: 0.95rem; }
    .hero-tagline mark { padding: 1px 6px; }
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 36px;
    }
    .hero-content { padding: 50px 16px 50px; }
}

/* Phone — burger menu */
@media (max-width: 580px) {
    .navbar { top: 0; }
    .nav-links { display: none; }
    .burger { display: flex; }

    .hero-logo {
        width: 130px;
        top: 14px;
        left: 14px;
    }

    .sun-doodle { width: 60px; top: 10%; right: 6%; }
    .hero-heading { min-height: 60px; margin-bottom: 12px; }
    .hero-tagline {
        font-size: 0.88rem;
        line-height: 1.9;
    }
    .hero-tagline mark { padding: 2px 6px; }
    .hero-text { margin-bottom: 28px; }
    .hero-content { padding: 40px 20px 40px; }
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: center;
    }
    .btn {
        width: 85%;
        max-width: 300px;
        text-align: center;
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* Very small phone */
@media (max-width: 400px) {
    .hero-logo { width: 110px; top: 10px; left: 10px; }
    .burger { width: 40px; height: 40px; top: 12px; right: 10px; }
    .burger span { width: 20px; }
    .sun-doodle { width: 48px; }
    .hero-tagline { font-size: 0.78rem; }
}

/* ===== Site Footer ===== */
.site-footer {
    position: relative;
    z-index: 10;
    background: #10243e;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
}

/* Footer brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 140px;
    height: auto;
}

.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

/* Footer columns */
.footer-col h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: #EA5F5C;
}

/* Footer socials */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.1);
}

.footer-social-icon--email    { background: rgba(234, 95, 92, 0.15); color: #EA5F5C; }
.footer-social-icon--whatsapp { background: rgba(37, 211, 102, 0.12); color: #25D366; }
.footer-social-icon--tiktok   { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-social-icon--facebook { background: rgba(24, 119, 242, 0.15); color: #1877F2; }

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-copy {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}

.footer-copy a:hover {
    color: #EA5F5C;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 48px 20px 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-tagline { max-width: 100%; }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 16px 24px;
    }
    .footer-logo { width: 120px; }
    .footer-bottom { padding: 16px; }
}
