/* ============================================================
   NEW SKY RADIO
   COMPLETE MAIN STYLESHEET — styles.css
   ============================================================

   THIS FILE CONTROLS:
   - Header / navigation
   - Hero sky and cloud section
   - "Hope, on the air" player
   - Mission section
   - Programs section
   - Weekly programming section
   - Contact section
   - Footer
   - Tablet and mobile layout

   MAIN IMAGE USED:
   images/hero-sky.jpg

   ============================================================ */


/* ============================================================
   01. GLOBAL WEBSITE SETTINGS
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #123249;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;

    /* Prevents a wide element from creating sideways
       scrolling on phones. */
    overflow-x: hidden;
}


/* ============================================================
   02. HEADER / NAVIGATION
   ============================================================ */

.site-header {
    height: 118px;
    padding: 0 max(7vw, 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e4ebef;
    position: sticky;
    top: 0;
    z-index: 20;
}


/* New Sky Radio logo */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #123249;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 5px;
    font-size: 22px;
    line-height: 1.05;
}

.brand small,
.footer-brand small {
    font-size: 13px;
    letter-spacing: 5px;
}


/* Circular logo symbol */

.signal {
    width: 48px;
    height: 48px;
    border: 1px solid #bdd0dc;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
}


/* Main navigation */

nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

nav a {
    color: #102e43;
    text-decoration: none;
    font-size: 16px;
}


/* Listen button */

.listen {
    border: 1px solid #a9c0cf;
    border-radius: 4px;
    padding: 12px 22px;
}


/* ============================================================
   03. HERO / SKY AND CLOUD SECTION
   ============================================================

   BACKGROUND IMAGE:
   images/hero-sky.jpg

   The text is HTML — it is NOT part of the JPG.
   ============================================================ */

.hero {
    min-height: 650px;
    padding: 70px max(7vw, 30px);

    display: grid;

    /* Desktop proportions:
       larger text area + smaller player area */
    grid-template-columns: 1.28fr .72fr;

    gap: 70px;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(5,46,78,.88),
            rgba(5,46,78,.42)
        ),
        url("images/hero-sky.jpg")
        center / cover
        no-repeat;

    color: white;
}


/* ============================================================
   04. SECTION EYEBROWS / SMALL HEADINGS
   ============================================================ */

.eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 800;
    color: #527a96;
    margin: 0 0 28px;
}

.eyebrow.light {
    color: #d9e7f0;
}

.eyebrow.light span {
    display: inline-block;
    width: 34px;
    border-top: 1px solid #e4c98d;
    margin: 0 14px 4px 0;
}


/* ============================================================
   05. MAIN DISPLAY HEADINGS
   ============================================================ */

.hero h1,
.mission h2,
.programs h2,
.weekly h2,
.contact h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: .98;
}


/* Hero headline */

.hero h1 {
    font-size: clamp(54px, 5.2vw, 86px);
    margin: 0 0 32px;
}


/* Gold italic emphasis */

.hero h1 em,
.mission h2 em,
.programs h2 em,
.weekly h2 em,
.contact h2 em {
    color: #f0d59b;
    font-weight: 400;
}


/* Hero description */

.hero-deck {
    font-size: 19px;
    margin-bottom: 34px;
}


/* Discover our programs button */

.button {
    display: inline-block;
    background: #fff;
    color: #15364e;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 4px;
    font-weight: 700;
}


/* ============================================================
   06. "HOPE, ON THE AIR" PLAYER — DESKTOP
   ============================================================

   IMPORTANT:
   This is the dark player card on the right side
   of the sky/cloud section.

   The desktop width was previously reduced so more
   clouds remain visible.

   Future audio / Live365 functionality will connect
   to the HTML and script.js.
   ============================================================ */

.player-card {
    background: #0d3148;

    max-width: 550px;
    width: 100%;

    justify-self: end;

    border: 1px solid #436277;
    border-radius: 14px;

    padding: 24px 28px;

    text-align: center;

    box-shadow: 0 18px 40px #00192c55;
}


/* Player top line */

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    text-align: left;

    letter-spacing: 2px;
    font-size: 13px;
}


/* Coming Soon box */

.player-top span {
    border: 1px solid #6e7b75;
    padding: 5px 10px;
    border-radius: 3px;
    color: #f0d59b;
}


/* Circular radio symbol */

.radio-mark {
    margin: 20px auto 14px;

    width: 68px;
    height: 68px;

    border: 1px solid #45657a;
    border-radius: 50%;

    display: grid;
    place-items: center;

    color: #e3c785;
    font-size: 30px;
}


/* Hope, on the air headline */

.player-card h2 {
    font: 34px Georgia, serif;
    margin: 0 0 10px;
}


/* Player description */

.player-card > p {
    color: #d3e0e7;
}


/* Decorative waveform */

.waveform {
    font-size: 27px;
    letter-spacing: 2px;
    color: #98a8a8;
    margin: 20px 0;
}


/* Player status area */

.player-status {
    border-top: 1px solid #315166;
    border-bottom: 1px solid #315166;

    padding: 16px 0;

    display: flex;
    align-items: center;

    gap: 18px;

    text-align: left;
}


/* Play button */

.player-status button {
    border: 0;

    background: #d4bd88;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    border-radius: 50%;

    font-size: 18px;

    color: #15364e;
}


/* Player status secondary text */

.player-status small {
    color: #c8d5dd;
    font-size: 15px;
}


/* Player bottom labels */

.tags {
    display: flex;
    justify-content: center;

    gap: 18px;

    padding-top: 16px;

    color: #b7c9d3;

    font-size: 12px;
}


/* ============================================================
   07. MISSION SECTION
   ============================================================ */

.mission {
    padding: 100px max(7vw, 30px);

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}


.mission h2,
.programs h2,
.weekly h2,
.contact h2 {
    font-size: clamp(44px, 4vw, 62px);
    margin: 0;
}


.mission h2 em {
    color: #497896;
}


.mission-copy {
    font-size: 18px;
    color: #557083;
}


.mission-icons {
    border-top: 1px solid #d7e1e7;

    margin-top: 28px;
    padding-top: 25px;

    display: flex;

    gap: 30px;

    color: #214d69;
}


/* ============================================================
   08. PROGRAMS SECTION
   ============================================================ */

.programs {
    background: #edf4f7;

    padding: 95px max(7vw, 30px);
}


.programs-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 50px;
}


.programs-heading > p {
    color: #60798a;
    font-size: 18px;
}


.programs h2 em,
.weekly h2 em {
    color: #173d55;
}


/* Program selector + detail panel */

.program-browser {
    display: grid;

    grid-template-columns: .82fr 1.08fr;

    gap: 48px;
}


.program-list {
    display: flex;
    flex-direction: column;
}


/* Individual program button */

.program-tab {
    position: relative;

    border: 0;
    border-bottom: 1px solid #c7d6de;

    background: transparent;

    padding: 28px 35px 28px 85px;

    text-align: left;

    color: #587184;

    font-size: 16px;

    min-height: 100px;
}


.program-tab span {
    position: absolute;

    left: 85px;
    top: 16px;

    font-size: 13px;

    letter-spacing: 2px;
}


.program-tab b {
    position: absolute;

    left: 38px;
    top: 42px;
}


/* Selected program */

.program-tab.active {
    background: #fff;

    border-left: 3px solid #1d5b7d;

    color: #143c56;

    border-radius: 5px;
}


/* Program information card */

.program-detail {
    background: #fff;

    border: 1px solid #d6e0e6;

    border-radius: 7px;

    padding: 42px;

    color: #557083;
}


.detail-top {
    display: flex;
    justify-content: space-between;
}


.detail-top p {
    letter-spacing: 3px;

    font-weight: 800;

    font-size: 13px;

    color: #527a96;
}


.detail-top span {
    font: 22px Georgia, serif;

    color: #9eb6c5;
}


.detail-icon {
    font-size: 44px;

    color: #6b91a8;

    margin: 25px 0 8px;
}


.program-detail h3 {
    font: 40px Georgia, serif;

    color: #123249;

    margin: 0 0 8px;
}


.program-detail hr,
.weekly hr,
.contact-card hr {
    border: 0;

    border-top: 1px solid #d9e3e8;

    margin: 30px 0;
}


.meta {
    margin-top: 30px;
}


/* ============================================================
   09. WEEKLY PROGRAMMING SECTION
   ============================================================ */

.weekly {
    padding: 0 max(7vw, 30px);

    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 90px;

    min-height: 620px;
}


.weekly-copy {
    padding: 90px 0;
}


.weekly-copy > p {
    color: #557083;

    font-size: 17px;
}


.weekly-copy .small {
    font-size: 15px;

    margin-top: 30px;
}


.countup-note {
    color: #214d69;
}


.countup-note span {
    display: block;

    padding-left: 38px;

    color: #557083;
}


/* Weekly schedule */

.schedule-wrap {
    padding: 0 0 70px;
}


.schedule-title {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #294e67;

    font-size: 13px;

    letter-spacing: 2px;
}


.schedule-title button {
    border: 0;

    background: none;

    text-decoration: underline;

    color: #315f7d;

    font-size: 15px;
}


.day {
    border-bottom: 1px solid #294e67;
}


.day button {
    width: 100%;

    border: 0;

    background: #fff;

    padding: 22px 0;

    display: flex;
    justify-content: space-between;

    color: #16364c;

    font-size: 16px;

    font-weight: 700;
}


.day button span {
    color: #60798a;

    font-weight: 400;
}


.day .details {
    display: none;

    padding: 0 0 20px;

    color: #60798a;
}


.day.open .details {
    display: block;
}


/* ============================================================
   10. CONTACT SECTION
   ============================================================ */

.contact {
    background: #194865;

    color: #fff;

    padding: 80px max(7vw, 30px);

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}


.contact h2 {
    font-size: 58px;
}


.contact > div > p {
    color: #d0dee6;
}


/* Contact information card */

.contact-card {
    border: 1px solid #638197;

    border-radius: 6px;

    padding: 34px;
}


/* Correct SVG envelope color */

.contact-card .envelope {
    font-size: 38px;

    color: #e4c98d;
}


.contact-card h3 {
    font-size: 20px;
}


.contact-card strong {
    font-size: 17px;
}


.contact-card small {
    color: #bfd0da;
}


/* ============================================================
   11. FOOTER
   ============================================================ */

footer {
    background: #0d3148;

    color: #b9cad4;

    padding: 28px max(7vw, 30px);

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.footer-brand {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #e4edf2;

    letter-spacing: 4px;

    line-height: 1.05;
}


/* ============================================================
   12. TABLET / MOBILE LAYOUT
   ============================================================

   Applies to screens 900px wide and smaller.

   IMPORTANT MOBILE PLAYER FIX:

   The old stylesheet allowed the player card to have
   max-width: 600px.

   That was too large for phones and could make the page
   look shifted/off-center.

   This version:
   - Centers the player
   - Limits its width
   - Reduces padding
   - Reduces internal element sizes
   - Allows bottom labels to wrap
   - Prevents horizontal overflow
   ============================================================ */

@media (max-width: 900px) {


    /* --------------------------------------------------------
       MOBILE HEADER
       -------------------------------------------------------- */

    .site-header {
        height: auto;

        padding: 18px 5%;

        align-items: flex-start;

        gap: 18px;

        flex-direction: column;
    }


    nav {
        width: 100%;

        gap: 14px;

        flex-wrap: wrap;
    }



    /* --------------------------------------------------------
       CHANGE MULTI-COLUMN SECTIONS TO ONE COLUMN
       -------------------------------------------------------- */

    .hero,
    .mission,
    .program-browser,
    .weekly,
    .contact {
        grid-template-columns: 1fr;
    }



    /* --------------------------------------------------------
       MOBILE HERO / SKY SECTION
       -------------------------------------------------------- */

    .hero {
        padding: 50px 6% 55px;

        gap: 36px;

        /* Keeps the cloud image attractive on phones. */
        background-position: center center;
    }



    /* Slightly smaller mobile hero headline */

    .hero h1 {
        font-size: clamp(46px, 12vw, 64px);

        line-height: 1;

        margin-bottom: 26px;
    }



    /* Remove forced desktop line break behavior visually
       by keeping text within the phone width. */

    .hero-deck {
        font-size: 17px;

        max-width: 100%;
    }



    /* --------------------------------------------------------
       MOBILE "HOPE, ON THE AIR" PLAYER
       --------------------------------------------------------

       THIS IS THE MAIN FIX REQUESTED.
       -------------------------------------------------------- */

    .player-card {

        /* Card cannot become wider than the available phone
           space. */

        width: 92%;

        max-width: 430px;


        /* Explicitly center the card inside the hero. */

        justify-self: center;

        margin-left: auto;
        margin-right: auto;


        /* Smaller internal spacing for phones. */

        padding: 20px 18px;


        /* Slightly smaller corner radius on mobile. */

        border-radius: 12px;
    }



    /* Player top line */

    .player-top {
        font-size: 11px;

        letter-spacing: 1.5px;

        gap: 12px;
    }


    .player-top span {
        padding: 4px 7px;

        white-space: nowrap;
    }



    /* Smaller radio symbol */

    .radio-mark {
        width: 58px;

        height: 58px;

        margin: 17px auto 12px;

        font-size: 25px;
    }



    /* Smaller Hope, on the air headline */

    .player-card h2 {
        font-size: 29px;

        line-height: 1.1;
    }



    /* Player description */

    .player-card > p {
        font-size: 15px;

        margin-top: 8px;
    }



    /* Smaller waveform */

    .waveform {
        font-size: 21px;

        letter-spacing: 1px;

        margin: 16px 0;

        white-space: nowrap;

        overflow: hidden;
    }



    /* Player status */

    .player-status {
        gap: 12px;

        padding: 14px 0;
    }



    /* Smaller mobile play button */

    .player-status button {
        width: 42px;

        height: 42px;

        flex: 0 0 42px;

        font-size: 16px;
    }



    .player-status strong {
        font-size: 14px;
    }


    .player-status small {
        font-size: 13px;
    }



    /* Bottom player labels */

    .tags {
        flex-wrap: wrap;

        gap: 7px 14px;

        padding-top: 14px;

        font-size: 10px;
    }



    /* --------------------------------------------------------
       MOBILE MISSION / PROGRAMS / CONTACT
       -------------------------------------------------------- */

    .mission,
    .programs,
    .contact {
        padding: 70px 6%;
    }


    .weekly {
        padding: 0 6%;

        gap: 0;
    }


    .programs-heading {
        display: block;
    }


    .mission-icons {
        flex-wrap: wrap;
    }


    .contact h2 {
        font-size: 48px;
    }



    /* --------------------------------------------------------
       MOBILE FOOTER
       -------------------------------------------------------- */

    footer {
        gap: 20px;

        flex-direction: column;

        text-align: center;
    }

}


/* ============================================================
   13. SMALL PHONE ADJUSTMENTS
   ============================================================

   Applies mainly to narrower phones.

   This gives the player and navigation additional breathing
   room without affecting desktop or tablets.
   ============================================================ */

@media (max-width: 520px) {


    /* Header */

    .brand {
        font-size: 19px;
    }


    .signal {
        width: 42px;

        height: 42px;

        font-size: 19px;
    }


    nav {
        font-size: 14px;

        gap: 8px 14px;
    }


    nav a {
        font-size: 14px;
    }


    .listen {
        padding: 8px 13px;
    }



    /* Hero */

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }


    .hero h1 {
        font-size: clamp(42px, 12vw, 56px);
    }



    /* Player */

    .player-card {
        width: 94%;

        max-width: 390px;

        padding: 18px 16px;
    }


    .player-card h2 {
        font-size: 27px;
    }


    .player-top {
        font-size: 10px;
    }


    .waveform {
        font-size: 19px;

        letter-spacing: 0;
    }



    /* Programs */

    .program-detail {
        padding: 28px 22px;
    }


    .program-detail h3 {
        font-size: 34px;
    }


    .program-tab {
        padding-right: 15px;
    }



    /* Contact */

    .contact h2 {
        font-size: 42px;
    }


    .contact-card {
        padding: 26px 22px;
    }

}