/*
Theme Name: Purple Base V6
Theme URI: https://heavyoilsolutions.com
Author: Heavy Oil Solutions
Author URI: https://heavyoilsolutions.com
Description: Custom dark theme inspired by Skydda.ai with full-screen hero layout, floating animations, and modern typography.
Version: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heavy-oil-solutions
*/

/* ===== CSS VARIABLES ===== */
:root {
    --hos-black: #000000;
    --hos-white: #ffffff;
    --hos-gray: #94a3b8;
    --hos-green-start: #a4ef5e;
    --hos-green-end: #22c55e;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--hos-black);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hos-white);
    scroll-behavior: smooth;
}


/* ===== HEADER & NAVIGATION ===== */
.hos-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(8px);
}

.hos-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hos-brand:hover {
    transform: scale(1.02);
}

.hos-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(164, 239, 94, 0.3);

}

.hos-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hos-white);
    letter-spacing: -0.5px;
}



.hos-site-logo a:hover {
    opacity: 0.8;
}

.hos-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 16px;
}

.hos-nav-list a {
    color: var(--hos-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.hos-nav-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.hos-nav-list .active a,
.hos-nav-list .current-menu-item a {
    background: linear-gradient(135deg, var(--hos-green-start), var(--hos-green-end));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(164, 239, 94, 0.3);
}


/* ===== HERO WRAPPER ===== */
.hos-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--hos-black);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px 40px;
}

/* ===== HERO FLEX LAYOUT ===== */
.hos-hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

.hos-col {
    flex: 1;
    min-width: 300px;
}


/* ===== TYPOGRAPHY ===== */
.hos-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--hos-white);
    margin-bottom: 24px;
}

.hos-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--hos-gray);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.hos-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hos-btn-primary {
    background: linear-gradient(135deg, #15803d, #16a34a); /* Darker green for white text legibility */
    color: var(--hos-white);
    border: none;
}

.hos-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.4);
}

.hos-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--hos-white);
}

.hos-btn-secondary:hover {
    border-color: var(--hos-white);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== 3D VISUAL ===== */
.hos-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hos-logo-container::before {
    display: none;
}

.hos-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 550px;
    border-radius: 50%;
    animation: hos-float 6s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes hos-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@media (max-width: 768px) {
    .hos-wrapper {
        padding: 30px 20px;
    }

    .hos-headline {
        font-size: 2rem;
    }

    .hos-hero-flex {
        gap: 30px;
    }

    .hos-col {
        min-width: 100%;
        text-align: center;
    }

    .hos-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hos-visual {
        max-width: 320px;
    }
}

/* ===== PAGE WRAPPER (for internal pages) ===== */
.hos-page-wrapper {
    min-height: 100vh;
    background-color: var(--hos-black);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: 40px;
}

.hos-page-content {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 40px;
}

.hos-leadership-content {
    max-width: 900px;
}

/* ===== BACK LINK ===== */
.hos-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hos-gray);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.hos-back-link:hover {
    color: var(--hos-white);
}

/* Force hide the back button only on the home page landing fold */
.home .hos-back-link,
.home #hero .hos-back-link {
    display: none !important;
}


/* ===== CONTACT FORM STYLES ===== */
.hos-contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.hos-form-group {
    margin-bottom: 24px;
}

.hos-form-group label {
    display: block;
    color: var(--hos-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.hos-form-group input,
.hos-form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--hos-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hos-form-group input:focus,
.hos-form-group textarea:focus {
    border-color: var(--hos-green-start);
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 239, 94, 0.2);
}

.hos-form-group input::placeholder,
.hos-form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.hos-btn-full {
    width: 100%;
    text-align: center;
    border-radius: 12px;
}

/* ===== COMPANY STATEMENT ===== */
.hos-company-statement {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--hos-gray);
    text-align: center;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* ===== LEADERSHIP GRID ===== */
.hos-leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ===== LEADER CARD ===== */
.hos-leader-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.hos-leader-card:hover {
    border-color: rgba(164, 239, 94, 0.3);
    transform: translateY(-5px);
}

.hos-leader-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    object-fit: cover;
    border: 3px solid rgba(164, 239, 94, 0.4);
    box-shadow: 0 0 30px rgba(164, 239, 94, 0.2);
}

.hos-leader-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hos-white);
    margin-bottom: 8px;
}

.hos-leader-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hos-green-start);
    margin-bottom: 20px;
}

.hos-leader-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hos-leader-credentials li {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--hos-gray);
    line-height: 1.8;
}

/* ===== RESPONSIVE - INTERNAL PAGES ===== */
@media (max-width: 768px) {
    .hos-page-wrapper {
        padding: 20px;
    }

    .hos-page-content {
        padding-top: 30px;
    }

    .hos-contact-form {
        padding: 30px 20px;
    }

    .hos-leaders-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hos-leader-card {
        padding: 30px 20px;
    }

    .hos-company-statement {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

/* ===== SCROLL DOWN INDICATOR ===== */
.hos-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--hos-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    animation: hos-bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.hos-scroll-indicator:hover {
    color: var(--hos-white);
}

@keyframes hos-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* ===== ENERGY PLANT UPGRADER SECTION ===== */
.hos-plant-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 40px;
    background-color: var(--hos-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hos-plant-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.hos-plant-visual-col {
    flex: 1.2;
    min-width: 320px;
    position: relative;
}

.hos-plant-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(164, 239, 94, 0.1);
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.hos-plant-image-container:hover {
    transform: translateY(-5px);
    border-color: rgba(164, 239, 94, 0.4);
}

.hos-plant-3d-container {
    transition: transform 0.5s ease;
}

.hos-plant-3d-container:hover {
    transform: translateY(-5px);
}

.hos-plant-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.hos-plant-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hos-plant-info-col {
    flex: 0.8;
    min-width: 300px;
}

.hos-plant-grid-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.hos-plant-info-stacked {
    width: 100%;
    text-align: center;
}

.hos-plant-visual-stacked {
    width: 100%;
    position: relative;
}

.hos-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hos-green-start);
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--hos-green-start), var(--hos-green-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== PRINCIPLES GRID ===== */
.hos-principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.hos-principle-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.hos-principle-card:hover {
    border-color: rgba(164, 239, 94, 0.2);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.hos-principle-icon {
    color: var(--hos-green-start);
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.hos-principle-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--hos-green-start);
}

.hos-principle-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--hos-gray);
}

.hos-principle-title {
    font-weight: 700;
    color: var(--hos-white);
    margin-bottom: 8px;
}

/* ===== QUOTE CALLOUT ===== */
.hos-quote-callout {
    border-left: 3px solid var(--hos-green-start);
    background: rgba(164, 239, 94, 0.02);
    padding: 30px;
    border-radius: 0 20px 20px 0;
    margin: 40px 0;
}

.hos-quote-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--hos-white);
    margin-bottom: 12px;
}

.hos-quote-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hos-green-start);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MOBILE & TABLET RESPONSIVENESS ===== */

/* Menu toggle default hidden on desktop */
.hos-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 120;
}

.hos-menu-toggle:focus {
    outline: none;
}

.hos-bar {
    width: 100%;
    height: 2px;
    background-color: var(--hos-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Base Responsive rules */
@media (max-width: 1024px) {
    /* Adjust header padding */
    .hos-header {
        padding: 15px 24px;
        background: rgba(0, 0, 0, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Show hamburger menu toggle */
    .hos-menu-toggle {
        display: flex;
    }

    /* Hide standard nav layout and turn into vertical slide-out panel */
    .hos-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 90px 24px 40px 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 110;
        overflow-y: auto;
    }

    .hos-menu-open .hos-nav {
        right: 0;
    }

    .hos-nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hos-nav-list a {
        display: block;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Hamburger to X animations */
    .hos-menu-open .hos-menu-toggle .hos-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hos-menu-open .hos-menu-toggle .hos-bar:nth-child(2) {
        opacity: 0;
    }

    .hos-menu-open .hos-menu-toggle .hos-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    /* Core Layout Padding reductions */
    .hos-wrapper {
        padding: 100px 16px 40px 16px;
    }
    
    .hos-page-wrapper {
        padding: 100px 16px 40px 16px !important;
    }

    /* Hero adjustments */
    .hos-hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hos-col {
        width: 100%;
    }

    .hos-logo-container {
        display: flex;
        justify-content: center;
    }

    .hos-visual {
        max-width: 250px;
        height: auto;
    }

    .hos-scroll-indicator {
        display: none !important;
    }

    /* Plant grid layout stacked */
    .hos-plant-section {
        padding: 60px 16px;
    }

    .hos-plant-grid, .hos-plant-grid-stacked {
        gap: 30px;
    }

    .hos-plant-visual-stacked iframe {
        height: 380px !important;
        border-radius: 16px;
    }

    /* Back Link formatting */
    .hos-back-link {
        margin-top: 10px;
        margin-bottom: 20px !important;
    }

    /* Headline scaling limits */
    .hos-headline {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hos-subheadline {
        font-size: 1rem !important;
        margin-bottom: 24px;
    }
    
    /* Buttons list alignment for small screens */
    .hos-btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 12px;
        text-align: center;
        padding: 14px 24px;
    }
}

/* Small screen tweaks for iPhone 13 mini style layouts */
@media (max-width: 480px) {
    .hos-brand-text {
        font-size: 1rem;
    }

    .hos-brand-logo {
        width: 28px;
        height: 28px;
    }

    .hos-headline {
        font-size: 1.8rem !important;
    }

    .hos-plant-visual-stacked iframe {
        height: 300px !important;
    }

    /* Form card adjustments */
    .hos-contact-form {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .hos-partner-card, .hos-press-card {
        padding: 30px 16px;
        border-radius: 16px;
    }
}

/* ===== 3D MODEL MOBILE MODAL ===== */
.hos-mobile-3d-btn-wrapper {
    display: none;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.hos-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--hos-black);
    z-index: 99999;
}

.hos-modal-overlay.hos-active {
    display: block;
}

.hos-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--hos-white);
    cursor: pointer;
    z-index: 100001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hos-orientation-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    text-align: center;
    background-color: var(--hos-black);
    color: var(--hos-white);
    z-index: 100000;
}

.hos-prompt-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: hos-spin-rotate 2s linear infinite;
    color: var(--hos-green-start);
}

.hos-orientation-prompt p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 600;
}

.hos-modal-iframe-container {
    width: 100%;
    height: 100%;
}

body.hos-modal-lock {
    overflow: hidden !important;
    height: 100vh !important;
}

@keyframes hos-spin-rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
    100% { transform: rotate(90deg); }
}

/* Screen width rules and orientation logic for mobile modal */
@media (max-width: 1024px) {
    .hos-plant-visual-stacked {
        display: none !important;
    }
    
    .hos-mobile-3d-btn-wrapper {
        display: flex;
    }
    
    @media (orientation: portrait) {
        .hos-orientation-prompt {
            display: flex;
        }
        .hos-modal-iframe-container {
            display: none;
        }
    }
    
    @media (orientation: landscape) {
        .hos-orientation-prompt {
            display: none;
        }
        .hos-modal-iframe-container {
            display: block;
        }
    }
}