/* ========================================
   Marin Elektrik - Modern Header Design
   Professional Marine Electrical Company
   ======================================== */

/* Global Font Settings */
* {
    font-family: 'Open Sans', sans-serif !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6,
.section-title, .page-hero h1,
.accordion-button, .category-sidebar h4 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__wrap {
    padding: 0;
    height: 80px;
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
}

.header__wrap .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    height: 100%;
}

/* Logo Styles */
.header__logo {
    flex-shrink: 0;
    z-index: 1001;
    height: 100%;
    display: flex;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__logo img {
    height: 120%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.header__logo img:hover {
    transform: scale(1.02);
}

/* Navigation Styles */
.header__wrap nav {
    display: flex;
    align-items: center;
}

.header__wrap nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header__wrap nav li {
    margin: 0 5px;
}

.header__wrap nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.header__wrap nav a:hover {
    background: rgba(10, 43, 80, 0.08);
    color: #0A2B50;
}

.header__wrap nav a.active {
    background: #0A2B50;
    color: #fff;
}

/* Mobile Menu Toggle - Clean 3-line hamburger */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
    transition: all 0.3s ease;
    position: relative;
    width: 36px;
    height: 36px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #0A2B50;
    border-radius: 2px;
    margin: 5px auto;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #C9A962;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header__logo img {
        height: 95px !important;
        max-height: none !important;
    }

    .header__wrap {
        height: 100px;
    }

    .header__wrap .container {
        padding: 0 15px;
    }

    .header__wrap nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10002;
    }

    .header__wrap nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__wrap nav ul {
        flex-direction: column;
        width: 100%;
    }

    .header__wrap nav li {
        margin: 5px 0;
        width: 100%;
    }

    .header__wrap nav a {
        display: block;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .header__logo img {
        height: 80px !important;
        max-height: none !important;
    }

    .header__wrap {
        height: 90px;
    }

    .header__wrap .container {
        padding: 0 12px;
    }

    .mobile-menu-toggle {
        padding: 8px 10px;
        font-size: 1.1rem;
    }
}

/* ========================================
   Hero/Banner Styles
   ======================================== */

.hero {
    position: relative;
    min-height: 40vh;
    padding: 140px 0 60px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 24, 56, 0.55) 0%, rgba(10, 43, 80, 0.40) 40%, rgba(6, 24, 56, 0.50) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
    background: linear-gradient(135deg, #C9A962 0%, #B8954A 100%);
    color: #fff;
    padding: 18px 45px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    letter-spacing: 0.5px;
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #B8954A 0%, #A6863A 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

/* Hero Mobile */
@media (max-width: 991px) {
    .hero {
        min-height: 30vh;
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero .btn-primary {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 30vh;
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero .btn-primary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Page Hero Styles (Product/Service Pages)
   ======================================== */

.page-hero {
    position: relative;
    min-height: 40vh;
    padding: 140px 0 60px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 24, 56, 0.85) 0%, rgba(10, 43, 80, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 30vh;
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

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

/* ========================================
   FontAwesome Icon Fix
   ======================================== */

.fas, .far, .fal, .fab, .fa, .fad,
.service-icon, .contact-icon, .feature-box i {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400;
}

.far {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400;
}

/* ========================================
   Back to Top Button
   ======================================== */

.xb-backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.xb-backtotop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #C9A962 0%, #B8954A 100%);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.xb-backtotop a:hover {
    background: linear-gradient(135deg, #B8954A 0%, #A6863A 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

/* ========================================
   Premium Global Styles
   ======================================== */

.bg-light {
    background: transparent !important;
}

.section {
    background: transparent;
}

/* Mobile Navigation z-index fix */
@media (max-width: 991px) {
    .header__wrap nav {
        z-index: 10002;
    }
    .mobile-menu-toggle {
        z-index: 10003;
        position: relative;
    }

    /* Ensure mobile nav is above everything */
    .site-header nav.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Fix: Ensure nav container is clickable */
    .header__wrap nav ul {
        position: relative;
        z-index: 10003;
    }
}
