/*
 Theme Name: OceanWP Child - ACMike
 Theme URI: https://acmikenj.com
 Description: Child theme for OceanWP customized for AC Mike
 Author: John Kuehner
 Template: oceanwp
 Version: 1.4
*/

/* ============================================================
   GLOBAL BASE STYLES
============================================================ */
html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    background: #0F1622;
}

/* ============================================================
   HERO SECTION — DESKTOP
============================================================ */
.section-hero {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    background-image: url('https://acmike.jebtampublishing.com/wp-content/uploads/2025/11/Hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.hero-overlay {
    width: 100%;
    height: 100%;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.section-about {
    min-height: 100vh;
    scroll-snap-align: start;
    background-color: #0F1622;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    max-width: 1300px;
    width: 100%;
    align-items: center;
}

.about-image img,
.about-image video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    max-height: 75vh;
    object-fit: cover;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.section-testimonials {
    min-height: 100vh;
    scroll-snap-align: start;
    background-color: #111827;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.testimonials-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.testimonial-box {
    background: #1E293B;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.testimonial-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ============================================================
   MOBILE / TABLET BASE ADJUSTMENTS
============================================================ */
@media (max-width: 768px) {

    .section-hero {
        background-size: contain !important;
        background-position: top center !important;
        background-color: #0F1622;
    }

    .about-wrapper {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .about-image img,
    .about-image video {
        width: 90%;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* ============================================================
   MOBILE PORTRAIT HERO IMAGE
============================================================ */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .section-hero {
        background-image: url('http://acmikenj.com/wp-content/uploads/2026/01/ACMIke-Portrait.png');
        background-size: cover !important;
        background-position: center top !important;
    }
}

/* ============================================================
   CUSTOM HEADER — DESKTOP
============================================================ */
#acmike-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(15,22,34,0.92);
    backdrop-filter: blur(6px);
    padding: 12px 30px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header-nav ul li a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.header-social {
    display: flex;
    gap: 20px;
}

/* ============================================================
   DROPDOWN MENU — DESKTOP
============================================================ */
.menu-has-dropdown {
    position: relative;
}

.menu-has-dropdown .dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 12px 0;
    min-width: 260px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
}

.menu-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-has-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 1rem;
    color: #e2e8f0;
    text-decoration: none;
}

.menu-has-dropdown .dropdown-menu i {
    margin-right: 8px;
    flex-shrink: 0;
}

.menu-has-dropdown .dropdown-menu a:hover {
    background: #1e293b;
    color: #fff;
}

/* ============================================================
   ADMIN / OVERFLOW FIXES
============================================================ */
body.logged-in #wrap {
    padding-top: 90px;
}

body.logged-in.admin-bar #acmike-header {
    top: 32px;
}

#wrap,
#main,
#content-wrap,
#primary,
.oceanwp-row,
.container {
    overflow: visible !important;
}

/* ============================================================
   MOBILE HEADER — FINAL, LOCKED
============================================================ */
@media (max-width: 900px) {

    /* Header layout */
    .header-inner {
        justify-content: space-between !important;
        align-items: center;
    }

    /* HAMBURGER */
    .header-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 10001;
    }

    .header-mobile-toggle span {
        width: 26px;
        height: 3px;
        background: #ffffff !important;
        border-radius: 3px;
        display: block;
    }

    /* HIDE desktop nav initially */
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15,22,34,0.97);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 10000;
    }

    /* OPEN STATE (JS toggles .open) */
    .header-nav.open {
        max-height: 1000px;
    }

    /* STACK MENU */
    .header-nav ul {
        flex-direction: column;
        padding: 20px 25px;
        gap: 20px;
    }

    .header-nav ul li a {
        font-size: 20px;
    }

    /* Hide socials on mobile */
    .header-social {
        display: none !important;
    }

    /* MOBILE DROPDOWNS */
    .menu-has-dropdown .dropdown-menu {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0;
        min-width: unset;
    }

    .menu-has-dropdown .dropdown-menu a {
        padding-left: 20px;
        border-left: 3px solid #2563eb;
    }
}
