/*
Theme Name: Flip Flop
Theme URI: https://example.com/
Author: You
Description: Simple tomato-colored theme with hero header.
Version: 1.3
Text Domain: flip-flop
*/

/* ---------- GLOBAL LAYOUT / STICKY FOOTER ---------- */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: var(--ff-text-dark);
}

.site-main {
    flex: 1; /* pushes footer to bottom if content is short */
}

/* ---------- THEME VARIABLES ---------- */

:root {
    --ff-tomato: #ff6347;
    --ff-tomato-dark: #e5533a;
    --ff-bg: #ffffff;
    --ff-text-light: #f7f7f7;
    --ff-text-dark: #222222;
}

/* ---------- RESET ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */

.site-header {
    width: 100%;
    position: relative;
    z-index: 10;
}

/* navbar full width */
.top-bar {
    width: 100%;
    background: var(--ff-tomato);
    color: var(--ff-text-light);
}

.top-bar-inner {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-branding {
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 2rem;
}

/* ---------- NAVIGATION ---------- */

.main-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    color: var(--ff-text-light);
    font-weight: 700;
    border-radius: 6px;
    transition: background .2s ease;
}

.main-nav a:hover {
    background: var(--ff-tomato-dark);
}

/* active underline */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current_page_ancestor > a {
    box-shadow: 0 4px 0 0 var(--ff-text-light);
}

/* ---------- HERO (FULLSCREEN) ---------- */

.hero {
    width: 100%;
    height: 100vh;      /* FULL SCREEN */
    min-height: 100vh;  /* force it */
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    color: var(--ff-text-light);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 0;
}

.hero-title-band {
    width: 100%;
    background: var(--ff-tomato);
    padding: 3rem 1.5rem 3.2rem;
    position: relative;
    z-index: 1;
}

/* removed max-width wrapper */
.hero-title-band-inner { }

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    margin: 0;
    color: var(--ff-text-light);
}

/* ---------- PAGE CONTENT ---------- */

.page,
.post-list,
.single-post {
    width: 100%;
    padding: 2rem 1.5rem;
}

.page-title,
.entry-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

/* ---------- FOOTER ---------- */

.site-footer {
    width: 100%;
    background: #1d1d1d;
    color: #ccc;
    padding: 1.5rem 1.5rem 2.5rem;
    margin-top: 2rem;
}

.site-footer-inner {
    font-size: .9rem;
}

/* footer link (same color as text; no blue) */
.site-footer a {
    color: inherit;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .hero {
        min-height: 60vh;
        height: 60vh;
    }
}
