/*
Theme Name: KNIZ Radio 90.1
Theme URI: https://knizradio.org
Author: El Morro Cybersecurity & IT Support
Description: Lightweight, fast, zero-bloat custom WordPress theme built for KNIZ Radio FM 90.1 (Gallup, NM). Features a full-bleed hero landing page, transparent header with dropdown navigation, clean centered inner-page templates, newsletter subscribe bar, and dark footer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kniz-radio
*/

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --kniz-coral: #f14d4f;
    --kniz-coral-hover: #d93b3d;
    --kniz-dark: #161616;
    --kniz-dark-alt: #1f1f1f;
    --kniz-white: #ffffff;
    --kniz-text: #5e5e5e;
    --kniz-heading: #1e1e1e;
    --kniz-muted: #9e9e9e;
    --kniz-border: #d8d8d8;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--kniz-text);
    background-color: var(--kniz-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--kniz-coral);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--kniz-coral-hover);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.site-header {
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background-color: var(--kniz-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-branding .custom-logo {
    max-height: 82px;
    width: auto;
    border-radius: 50%;
}

/* Overlay header & larger logo on the landing/home page */
.home .site-header,
.page-template-front-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    padding: 18px 0;
    background-color: transparent;
}

.home .header-inner,
.page-template-front-page .header-inner {
    align-items: flex-start;
}

.home .site-branding .custom-logo,
.page-template-front-page .site-branding .custom-logo {
    max-height: 130px;
}

.home .main-navigation,
.page-template-front-page .main-navigation {
    margin-top: 10px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-title a {
    color: var(--kniz-white);
}

/* Main Nav */
.main-navigation {
    margin-top: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
    padding: 6px 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--kniz-white);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    font-weight: 700;
}

/* Dropdown indicator for parent items (e.g., MORE) */
.nav-menu > li.menu-item-has-children > a::after {
    content: "\25BC";
    font-size: 0.55rem;
    margin-left: 2px;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

/* Submenu dropdown */
.nav-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background-color: var(--kniz-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu,
.nav-menu li.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
}

.nav-menu .sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--kniz-coral);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: var(--kniz-white);
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ==========================================================================
   3. Hero Section (Landing / Homepage Top Half)
   ========================================================================== */
.kniz-hero {
    position: relative;
    min-height: 92vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #111111;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--kniz-white);
    padding: 150px 24px 90px;
    overflow: hidden;
}

.kniz-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.42) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.kniz-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.kniz-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 3.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--kniz-white);
    margin-bottom: 18px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.kniz-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.18rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 34px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.kniz-btn {
    display: inline-block;
    background-color: var(--kniz-coral);
    color: var(--kniz-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 15px 38px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.kniz-btn:hover {
    background-color: var(--kniz-coral-hover);
    color: var(--kniz-white);
}

.kniz-btn:active {
    transform: translateY(1px);
}

.kniz-hero-phone {
    margin-top: 64px;
}

.kniz-hero-phone a {
    font-family: var(--font-body);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.kniz-hero-phone a:hover {
    color: var(--kniz-coral);
}

/* Optional Front Page Block Content (only shown if editor content exists) */
.kniz-home-extra {
    padding: 64px 0;
    background-color: var(--kniz-white);
}

/* ==========================================================================
   4. Subscribe Section (Bottom Half - White Band)
   ========================================================================== */
.kniz-subscribe-section {
    background-color: var(--kniz-white);
    padding: 72px 24px;
    border-top: 1px solid #f0f0f0;
}

.kniz-subscribe-inner {
    max-width: 960px;
    margin: 0 auto;
}

.kniz-subscribe-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.kniz-subscribe-label {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 300;
    color: var(--kniz-coral);
    white-space: nowrap;
    margin-right: 6px;
}

.kniz-subscribe-input {
    flex: 1 1 auto;
    min-width: 220px;
    height: 54px;
    padding: 0 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--kniz-heading);
    background-color: var(--kniz-white);
    border: 1px solid var(--kniz-border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kniz-subscribe-input:focus {
    border-color: var(--kniz-coral);
    box-shadow: 0 0 0 3px rgba(241, 77, 79, 0.14);
}

.kniz-subscribe-input::placeholder {
    color: #777777;
}

.kniz-subscribe-submit {
    height: 54px;
    padding: 0 34px;
    flex-shrink: 0;
}

.kniz-subscribe-notice {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.kniz-subscribe-notice.is-success {
    color: #1e7e34;
}

.kniz-subscribe-notice.is-error {
    color: var(--kniz-coral);
}

/* ==========================================================================
   5. Inner Pages & Posts (Centered Editorial Layout Matching Screenshot)
   ========================================================================== */
.site-main-inner {
    padding: 58px 0 84px;
    min-height: 56vh;
    background-color: var(--kniz-white);
}

.inner-content-wrap {
    max-width: 980px;
    margin: 0 auto;
}

/* Centered Coral Page Title + Short Subtle Gray Divider */
.entry-header {
    text-align: center;
    margin-bottom: 42px;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    font-weight: 800;
    color: var(--kniz-coral);
    line-height: 1.2;
    margin-bottom: 0;
}

.entry-header::after {
    content: "";
    display: block;
    width: 54px;
    height: 1px;
    background-color: var(--kniz-border);
    margin: 26px auto 0;
}

.entry-title a {
    color: var(--kniz-coral);
}

.entry-title a:hover {
    color: var(--kniz-coral-hover);
}

/* Inner Page Content Typography & Centered Default Flow */
.entry-content {
    text-align: center;
    color: var(--kniz-text);
    font-size: 0.98rem;
    line-height: 1.75;
}

.entry-content .has-text-align-left {
    text-align: left;
}

.entry-content .has-text-align-right {
    text-align: right;
}

.entry-content .has-text-align-center {
    text-align: center;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--kniz-heading);
    line-height: 1.35;
    margin: 0 0 18px;
}

.entry-content h2 {
    font-size: 1.45rem;
}

.entry-content h3 {
    font-size: 1.3rem;
}

.entry-content h4 {
    font-size: 1.1rem;
}

.entry-content p {
    margin: 0 auto 1.35em;
    max-width: 820px;
}

.entry-content ul,
.entry-content ol {
    list-style-position: inside;
    margin: 0 auto 1.35em;
    padding-left: 0;
    max-width: 780px;
}

.entry-content .has-text-align-left ul,
.entry-content .has-text-align-left ol,
.entry-content ul.has-text-align-left,
.entry-content ol.has-text-align-left {
    list-style-position: outside;
    padding-left: 1.5em;
    text-align: left;
}

.entry-content li {
    margin-bottom: 6px;
}

/* Gutenberg Two-Column / Multi-Column Sections */
.entry-content .wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 56px;
    margin-top: 46px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.entry-content .wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}

.entry-content .wp-block-column p {
    max-width: 100%;
}

/* Gutenberg Buttons & Separators */
.entry-content .wp-block-button__link {
    background-color: var(--kniz-coral);
    color: var(--kniz-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
}

.entry-content .wp-block-button__link:hover {
    background-color: var(--kniz-coral-hover);
}

.entry-content .wp-block-separator {
    border: 0;
    border-top: 1px solid var(--kniz-border);
    width: 60px;
    margin: 36px auto;
}

/* ==========================================================================
   6. Footer (Dark Band - Clean, Zero Third-Party Branding)
   ========================================================================== */
.site-footer {
    background-color: var(--kniz-dark);
    color: var(--kniz-muted);
    padding: 52px 24px 58px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.88rem;
    color: var(--kniz-muted);
    margin-bottom: 34px;
    text-align: left;
}

.footer-navigation {
    text-align: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 24px;
    row-gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-menu a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e6e6e6;
}

.footer-menu a:hover {
    color: var(--kniz-coral);
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .site-branding .custom-logo,
    .home .site-branding .custom-logo,
    .page-template-front-page .site-branding .custom-logo {
        max-height: 76px;
    }

    .header-inner,
    .home .header-inner,
    .page-template-front-page .header-inner {
        align-items: center;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-navigation,
    .home .main-navigation,
    .page-template-front-page .main-navigation {
        position: relative;
        margin-top: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 250px;
        background-color: var(--kniz-dark);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        padding: 10px 0;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    }

    .main-navigation.toggled .nav-menu {
        display: flex;
    }

    .nav-menu > li > a {
        width: 100%;
        padding: 12px 20px;
        justify-content: space-between;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.04);
        padding: 0;
        display: none;
    }

    .nav-menu li.menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .nav-menu .sub-menu li a {
        padding-left: 34px;
    }
}

@media (max-width: 780px) {
    .entry-content .wp-block-columns {
        flex-direction: column;
        gap: 36px;
    }
}

@media (max-width: 720px) {
    .kniz-hero {
        min-height: 82vh;
        padding: 130px 20px 70px;
    }

    .kniz-subscribe-section {
        padding: 52px 20px;
    }

    .kniz-subscribe-form {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .kniz-subscribe-label {
        text-align: center;
        margin-right: 0;
        font-size: 1.75rem;
    }

    .kniz-subscribe-submit {
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
    }
}
