/* ==============================
   Wyatt Ze King Stylesheet
============================== */

/* ------------------------------
   CSS Variables
------------------------------ */
:root {
    --bg-primary: #ddccac;
    --bg-section: #f5f5f5;

    --text-primary: #111;
    --text-secondary: #333;

    --accent-color: #0077cc;
    --accent-hover: #005fa3;

    --border-color: #e0e0e0;
    --box-shadow-light: rgba(0, 0, 0, 0.08);
}

/* ------------------------------
   Global Reset
------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Droid Serif', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

/* ------------------------------
   Hamburger Button
------------------------------ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* ------------------------------
   Navbar
------------------------------ */
.navbar {
    width: 100%;
    position: relative;
    background: url('../images/Castle.png') center 90% / cover no-repeat;
    border-bottom: 1px solid rgba(0,0,0,0.3);

    /* Use actual height instead of zero padding hack */
    height: 200px; /* adjust as needed for aspect ratio */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding: 0 25px;
    position: relative;
}

.nav-logo img {
    position: absolute;
    height: 90%; /* fill navbar height */
    width: auto;  /* maintain aspect ratio */
    object-fit: contain;
    bottom: 2%;
    left: 15%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.nav-links a:hover {
    color: #ffd700;
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
    width: 100%;
    position: relative;

    background: url('../images/bg3.jpg') center / contain repeat;
    color: #fff;
    align-items: center;
    min-height: 20vh;
}


.hero-content {
    position: absolute;  /* overlay on top of image */
    top: 5%;            /* move text down from top, adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* center horizontally */
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 900px;
}
.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #fff;
}

/* ==============================
   UNIFIED MEDIA SYSTEM
============================== */
.media-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 40px 15px;
}

.media-card {
    width: 95vw;
    max-width: 1200px;
    background-color: var(--bg-section);
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--box-shadow-light);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.media-card:hover {
    transform: translateY(-4px);
}

.media-card h3 {
    text-align: center;
    font-size: 2rem;
    padding: 25px 15px 15px;
}

.media-card iframe {
    width: 100%;
    height: 55vh;
    min-height: 420px;
    border: none;
    display: block;
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .media-card iframe {
        height: 700px;
    }
}

/* ------------------------------
   Footer
------------------------------ */
.footer-wrap {
    background-color: var(--bg-section);
    border-top: 1px solid var(--border-color);
    padding: 25px 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==============================
   HOME PAGE ONLY
============================== */
body.home .hero {
    min-height: 20vh;
    background: url('../images/bg3.jpg') center / contain repeat;
    color: #fff;
}

body.home .hero-content {
    position: absolute;  /* overlay on top of image */
    top: 5%;            /* move text down from top, adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* center horizontally */
    text-align: center top;
    color: #fff;
    width: 90%;
    max-width: 900px;
}

body.home .hero h1 {
    font-size: 3.8rem;
    letter-spacing: 2px;
}

body.home .hero h2 {
    font-size: 1.5rem;
    margin-top: -20px;
}

body.home .intro-section {
    background-color: var(--bg-section);
    padding: 90px 20px;
}

body.home .intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.9;
}

body.home .intro-text p {
    margin-bottom: 2em;
}

body.home .encouragement {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 50px;
}

/* ------------------------------
   Mobile Navigation & Responsive (≤600px)
------------------------------ */
@media (max-width: 600px) {

    .nav-container {
        flex-direction: row; /* keep logo and toggle in one row */
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 1000; /* keep it above other content */
    }

    .nav-toggle {
        display: block;
        font-size: 2.2rem;
        color: #fff;
        cursor: pointer;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: absolute;      /* overlay on top */
        top: 100%;               /* just below navbar */
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.85);
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px 0;
        border-radius: 0 0 12px 12px;
        z-index: 999;            /* above everything else */
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #fff;
    }

    .nav-logo img {
        position: absolute;
        height: 50%; /* fill navbar height */
        width: auto;  /* maintain aspect ratio */
        object-fit: contain;
        bottom: 2%;
        left: 15%;
    }

    /* Navigation links stacked and collapsible */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.65);
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 10px;
        text-align: center;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hero section keeps aspect ratio */
    .hero {
        min-height: 30vh;             /* adjust height for mobile */
        background-size: contain;     /* maintains full image aspect ratio */
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 10px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Hero text responsive */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    /* Hero content overlay */
    .hero-content {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }

    body.home .hero {
        min-height: 30vh;             /* adjust height for mobile */
        background-size: contain;     /* maintains full image aspect ratio */
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 10px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Hero text responsive */
    body.home .hero h1 {
        font-size: 2rem;
    }

    body.home .hero p {
        font-size: 0.95rem;
    }

    /* Hero content overlay */
    body.home .hero-content {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }

    /* Media cards responsive */
    .media-card iframe {
        height: 56vw;      /* 16:9 ratio for small screens */
        min-height: 200px;
    }

    /* Home intro text smaller */
    body.home .intro-text {
        font-size: 1rem;
    }
}
