/*
Theme Name: Ozark Adventure Rides
Theme URI: https://ozarkadvrides.com
Author: LogicTasker
Description: Dark, bold child theme for Ozark Adventure Rides — motorcycle adventure blog based in the Ozarks.
Version: 1.1
Template: twentytwentyfour
License: GPL v2 or later
Text Domain: ozark-adv-rides
*/

/* ============ HEADER & HAMBURGER MENU ============ */

/* Site title */
.wp-block-site-title a {
    text-decoration: none;
}

/* Hamburger button — three horizontal bars */
.custom-hamburger-nav {
    position: relative;
}

.hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;gap: 3px;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #60A5FA;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Overlay backdrop — hidden by default */
.hamburger-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show overlay + panel when active */
.hamburger-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Slide-in panel */
.hamburger-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #111111;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.hamburger-overlay.active .hamburger-panel {
    transform: translateX(0);
}

/* Panel header */
.hamburger-panel-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #222;
}

.hamburger-panel-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #60A5FA;
}

/* Close button */
.hamburger-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-left: auto;
}

.hamburger-close:hover {
    color: #f9f9f9;
    background: rgba(255, 255, 255, 0.1);
}

/* Menu list container */
.hamburger-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Menu sections */
.hamburger-section {
    padding: 0 0 0.75rem;
}

.hamburger-section-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    padding: 0.75rem 1.5rem 0.4rem;
    font-weight: 700;
}

.hamburger-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hamburger-menu-list li {
    margin: 0;
}

.hamburger-menu-list li a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.hamburger-menu-list li a:hover {
    background: rgba(96, 165, 250, 0.08);
    color: #60A5FA;
    border-left-color: #60A5FA;
}

/* ============ AD BANNER ============ */

.ad-banner--top {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
}

.banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.banner-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #60A5FA;
    font-weight: 600;
}

.banner-headline {
    font-size: 1rem;
    font-weight: 700;
    color: #f9f9f9;
}

.banner-subheadline {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.banner-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.banner-btn:hover {
    opacity: 0.9;
}

/* ============ CARD STYLING FIX ============ */
/* Remove white bg from cards, make them dark to match site theme */
.wp-block-column.has-background {
    background: transparent !important;
    color: #f9f9f9 !important;
    border: 1px solid #333;
}
.wp-block-column.has-background h3,
.wp-block-column.has-background p,
.wp-block-column.has-background a {
    color: #f9f9f9 !important;
}

/* ============ STATES SECTION FIX ============ */
/* Remove white bg from states section, match dark theme */
.wp-block-group[style*=f1f5f9] {
    background: transparent !important;
}
.wp-block-group[style*=f1f5f9] h3,
.wp-block-group[style*=f1f5f9] li,
.wp-block-group[style*=f1f5f9] p {
    color: #f9f9f9 !important;
}

/* ============ BOTTOM AD BANNER CENTERING ============ */
.ad-banner {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

/* Full-bleed sections: break alignfull groups out of the 900px content container */
/* Kill inline padding from theme.json — prevents gray gaps between sections */
main > .wp-block-group.alignfull,
.entry-content > .alignfull,
.wp-block-post-content > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.entry-content > .alignfull > .alignfull,
.entry-content > .alignfull > .alignfull > .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}


/* Kill footer margin-top — prevents gray gap between content and bottom ad */
.wp-block-template-part-footer,
footer.wp-block-template-part,
.site-footer {
    margin-top: 0 !important;
    align-items: center !important;
}

/* ============ HERO SECTION BACKGROUND IMAGE ============ */
/* Background image only on top portion via pseudo-element, leaving rest of page dark */
.entry-content > .wp-block-group.alignfull[style*="background-color:#0c1d3a"] {
    position: relative;
    padding-top: 6rem !important;
    padding-bottom: 4rem !important;
}

.entry-content > .wp-block-group.alignfull[style*="background-color:#0c1d3a"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 388px;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.entry-content > .wp-block-group.alignfull[style*="background-color:#0c1d3a"] > .wp-block-group:first-child {
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}
/* ============ ROUTES PAGE ============ */
.routes-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.routes-hero p { max-width: 60ch; font-size: 1.15rem; }

/* Filter bar */
.route-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 2rem 0 1rem; }
.route-filters .filter-label { margin: 0; font-weight: 600; opacity: 0.8; }
.route-filters .wp-block-buttons { gap: 0.5rem; }
.route-filters .wp-block-button { margin: 0; }
.filter-btn a { cursor: pointer; background: #1e293b; color: #e2e8f0; border: 1px solid #334155; padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.95rem; transition: all 0.2s ease; }
.filter-btn a:hover { background: #334155; border-color: #60A5FA; }
.filter-btn.active a { background: #60A5FA; color: #0f172a; border-color: #60A5FA; font-weight: 600; }

/* Route grid */
.route-grid { margin-top: 1.5rem; }
.route-grid > .wp-block-column { flex: 0 0 50% !important; }
.route-col { margin-bottom: 0.5rem; }

/* Route card */
.route-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.route-card:hover { transform: translateY(-3px); border-color: #60A5FA; box-shadow: 0 8px 25px rgba(0,0,0,0.35); }
.route-card h3 { margin: 0.5rem 0 0.15rem; font-size: 1.35rem; color: #f1f5f9; }
.route-card .route-loc { margin: 0 0 0.75rem; font-size: 0.9rem; color: #94a3b8; }
.route-card .route-desc { margin: 0 0 1rem; font-size: 0.98rem; color: #cbd5e1; line-height: 1.55; }

/* Status badge */
.route-status { display: inline-block; margin: 0 0 0.5rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.rt-verified { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.rt-check { background: rgba(250,204,21,0.12); color: #facc15; border: 1px solid rgba(250,204,21,0.35); }
.rt-issue { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }

/* Specs list */
.route-specs {
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.route-specs .spec { margin: 0; font-size: 0.9rem; color: #b6c2d4; }

.route-best { margin: auto 0 0; font-size: 0.85rem; font-weight: 600; color: #60A5FA; }

/* Featured area card */
.route-area { border-color: #60A5FA; background: linear-gradient(180deg, #1e293b, #172033); }
/* Route area card - full width */.route-area.route-card { width: 100%; max-width: 100%; }

/* Legend */
.route-legend { margin-top: 2.5rem; padding: 1.5rem; background: #1e293b; border: 1px solid #334155; border-radius: 12px; }
.route-legend h3 { margin-top: 0; }
.route-legend .legend-item { margin: 0.4rem 0; font-size: 0.95rem; }

/* Filter hide behavior */
.route-col { transition: opacity 0.2s ease, transform 0.2s ease; }
.route-col.hidden { display: none; }
/* Custom logo in header */
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.custom-logo-link:hover {
  opacity: 0.9;
}

/* Header logo overlap */
.header-logo-overlap {
  position: relative;
  z-index: 3;
  margin-bottom: -60px;
  pointer-events: none;
}
.header-logo-overlap .custom-logo-link {
  pointer-events: auto;
}

/* Ad banner centering - top and bottom */
.ad-banner,
.ad-banner--top {
    display: flex !important;
    justify-content: center !important;
    text-align: center;
}
.ad-banner .banner-inner,
.ad-banner--top .banner-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.ad-banner .banner-text,
.ad-banner--top .banner-text {
    text-align: center;
}
.ad-banner .banner-label,
.ad-banner--top .banner-label {
    text-align: center;
}
.ad-banner .banner-headline,
.ad-banner--top .banner-headline {
    text-align: center;
}
.ad-banner .banner-subheadline,
.ad-banner--top .banner-subheadline {
    text-align: center;
}

/* About page floated image */
.wp-block-image.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .wp-block-image.alignleft {
        float: none;
        margin-right: 0;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

        flex-direction: column;
        align-items: center;
    }
    .about-photo-wrap .about-photo {
        width: 100%;
        max-width: 400px;
    }
}

/* About page - floated photo, text wraps */
.about-content p {
    font-size: 1.05rem;
}
.about-photo-float {
    float: left;
    width: 380px;
    height: auto;
    border-radius: 8px;
    margin-right: 2rem;
    margin-bottom: 0.4rem;
}
@media (max-width: 700px) {
    .about-photo-float {
        float: none;
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        margin-bottom: 1rem;
        display: block;
    }
}

/* Contact page form styling */
.contact-form-wrap {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #333;
}
.contact-iframe {
    display: block;
    border-radius: 4px;
}

    pointer-events: none;
}

/* Footer background continuity - prevent white gap */
footer.wp-block-template-part {
    background-color: #0f172a !important;
}

/* Reduce Featured Area card height */
.route-area.route-card {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.route-area.route-card h3 {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}
.route-area.route-card .route-loc {
    margin-bottom: 0.25rem !important;
}
.route-area.route-card .route-desc {
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
}
.route-area.route-card .route-specs {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.4rem !important;
}
.route-area.route-card .route-best {
    margin-bottom: 0 !important;
}

/* Routes page full black background */
.page-id-6 main {
    background-color: #111111;
}
body.page-id-6, .page-id-6 main { background-color: #0f172a !important; }
body.page-id-5, .page-id-5 main { background-color: #0f172a !important; }
