/* =========================================================
   NYANGANI FM WEBSITE
   ========================================================= */


/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #08783f;
    --dark-green: #075b31;
    --yellow: #f5c400;
    --white: #ffffff;
    --light: #f4faf6;
    --text: #173225;
    --muted: #63736a;
    --border: #e0e9e4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-container {
    width: 92%;
    max-width: 1120px;
    margin: auto;
}


/* ================= HEADER ================= */
/* ================= HEADER ================= */

.site-header {
    background: white;
    border-bottom: 1px solid #e5eee8;

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: 92%;
    max-width: 1120px;
    height: 75px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    white-space: nowrap;
}


/* ================= LOGO ================= */

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--green);

    font-weight: 900;
    font-size: 21px;

    white-space: nowrap;
}

.logo img {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;
}


/* ================= NAVIGATION ================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-left: auto;

    flex: 0 0 auto;
}

.main-nav a {
    font-weight: bold;
    font-size: 15px;

    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--green);
}


/* ================= MOBILE BUTTON ================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 10px;

    background: var(--green);
    color: white;

    font-size: 20px;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}

/* ================= LIVE RADIO ================= */

.live-section {
    background: linear-gradient(
        135deg,
        var(--dark-green),
        var(--green)
    );

    color: white;
    padding: 80px 0;
}

.live-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.live-indicator {
    width: 12px;
    height: 12px;

    background: red;
    border-radius: 50%;

    display: inline-block;

    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.live-label {
    color: var(--yellow);

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;
}

.live-header h1 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1;
    margin-top: 5px;
}


/* ================= IONO PLAYER ================= */

.iono-player {
    width: 100%;

    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.iono-player iframe {
    display: block;
    width: 100%;
    height: 170px;
    border: none;
}


/* ================= SECTION HEADINGS ================= */

.section-heading {
    margin-bottom: 30px;
}

.section-heading span {
    color: var(--green);

    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.15;

    margin-top: 6px;
}


/* ================= PROGRAMS ================= */

.programs-section {
    padding: 70px 0 40px;
}

.program-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.program-card {
    background: white;

    border-radius: 18px;

    border: 1px solid var(--border);

    overflow: hidden;

    min-width: 0;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.program-image {
    width: 100%;
    height: 190px;

    overflow: hidden;

    background: #e5f0e9;
}

.program-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    margin-bottom: 8px;
}

.program-content p {
    color: var(--muted);
}


/* ================= CONTACT ================= */

.contact-section {
background: var(--light);
    padding:  40px 0 70px;
}

.contact-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;
}

.contact-info {
    max-width: 650px;
}

.contact-info h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--text);
}

.contact-info a {
    color: var(--green);
    font-weight: bold;
}

.contact-info a:hover {
    color: var(--dark-green);
}


/* ================= GOOGLE MAP ================= */

.contact-map {
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 400px;

    border: none;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ================= SOCIAL MEDIA ================= */

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 20px;

    transition: all 0.25s ease;
}

/* Facebook */
.social-icons a:nth-child(1) {
    background: #1877f2;
    color: white;
}

/* YouTube */
.social-icons a:nth-child(2) {
    background: #ff0000;
    color: white;
}

/* X */
.social-icons a:nth-child(3) {
    background: #000000;
    color: white;
}

/* Hover effect */
.social-icons a:hover {
    transform: translateY(-4px);
    opacity: 0.85;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #063d22;

    color: white;

    padding: 25px 0;
}

.footer-container {
    width: 92%;
    max-width: 1120px;
    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    font-size: 13px;
}

.footer-logo {
    font-weight: 900;
    font-size: 17px;
}

/* ================= MOBILE ================= */

@media (max-width: 800px) {

    .header-container {
        min-height: 65px;
    }

    .live-section {
        padding: 55px 0;
    }

    .live-header h1 {
        font-size: 48px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ================= MOBILE MENU BUTTON ================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 10px;

    background: var(--green);
    color: white;

    font-size: 20px;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.mobile-menu-button:hover {
    background: var(--dark-green);
}

.mobile-menu-button:active {
    transform: scale(0.95);
}


/* ================= SMALL PHONES ================= */

@media (max-width: 550px) {

    .header-container {
        height: 65px;
        position: relative;
    }


    /* MOBILE MENU BUTTON */

    .mobile-menu-button {
        display: flex;
        flex-shrink: 0;
    }


    /* MOBILE NAVIGATION */

    .main-nav {
        position: absolute;

        top: 65px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;

        background: white;

        gap: 0;
        padding: 10px 20px;

        margin-left: 0;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;

        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
    }


    /* SHOW MENU */

    .main-nav.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }


    /* MENU LINKS */

    .main-nav a {
        padding: 14px 5px;

        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }


    /* LOGO */

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo a {
        font-size: 18px;
        gap: 7px;
    }


    /* LIVE RADIO */

    .live-header h1 {
        font-size: 42px;
    }

    .live-section {
        padding: 45px 0;
    }

    .iono-player {
        border-radius: 14px;
    }

    /* PROGRAMS */

    .programs-section {
        padding: 50px 0 30px;
    }


    /* CONTACT */

    .contact-section {
        padding: 30px 0 50px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .program-image {
        height: 170px;
    }

    .contact-map iframe {
        height: 300px;
    }
}
