/* ==========================================================================
   Hitec Engineering - Custom Consolidated Styles
   Pixel-Perfect Standalone Reconstruction
   ========================================================================== */

:root {
    --primary-color: #ca3225;
    --primary-hover: #a2281e;
    --heading-color: #c93224;
    --footer-bg: #421b14;
    --mobile-nav-bg: #8c2419;
    --mobile-nav-hover: #421b14;
    --text-color: #64686d;
    --border-color: #eee;
    --container-max-width: 1170px;
}

/* Base & Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.8;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baskervville', Georgia, serif;
    color: var(--heading-color);
    font-weight: 400;
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

a:hover, a:focus {
    color: var(--primary-hover);
    text-decoration: none;
}

.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header#masthead {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.bizberg_header_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    width: 100%;
}

.site_logo {
    max-height: 80px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Desktop Menu */
.navbar-default {
    background-color: #ffffff;
    border: none;
    margin-bottom: 0;
    border-radius: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-default .navbar-nav > li {
    position: relative;
}

.navbar-default .navbar-nav > li > a {
    color: #64686d;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 38px 18px;
    display: block;
    position: relative;
    transition: color 0.25s ease;
}

/* Menu Item Divider (|) between links */
.navbar-default .navbar-nav > li + li > a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: #e0e0e0;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.current-menu-item > a,
.navbar-default .navbar-nav > li.active > a {
    color: var(--primary-color) !important;
}

/* Sticky Header on Scroll */
nav.navbar-default.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #ffffff !important;
    animation: stickySlideDown 0.35s ease forwards;
}

nav.navbar-default.sticky .bizberg_header_wrapper {
    min-height: 65px;
}

nav.navbar-default.sticky .site_logo {
    max-height: 52px;
}

nav.navbar-default.sticky .navbar-nav > li > a {
    padding: 22px 16px;
}

@keyframes stickySlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile Slicknav Menu */
.slicknav_menu {
    display: none;
    background: transparent;
    padding: 0;
}

@media (max-width: 991px) {
    .navbar-nav {
        display: none !important;
    }
    .bizberg_header_wrapper {
        min-height: 80px;
        position: relative;
    }
    .site_logo {
        max-height: 65px;
    }
    .slicknav_menu {
        display: block;
    }
    .slicknav_btn {
        background: transparent;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px 12px;
        margin: 0;
        cursor: pointer;
        display: inline-block;
        transition: background 0.2s;
    }
    .slicknav_btn:hover {
        background: #f5f5f5;
    }
    .slicknav_icon {
        display: inline-block;
        vertical-align: middle;
    }
    .slicknav_icon-bar {
        background-color: #333;
        height: 3px;
        width: 22px;
        margin: 3px 0;
        display: block;
        border-radius: 2px;
    }
    .slicknav_nav {
        background: var(--mobile-nav-bg) !important;
        list-style: none;
        padding: 5px 0;
        margin: 10px 0 0 0;
        border-radius: 4px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
    }
    .slicknav_nav li {
        margin: 0;
    }
    .slicknav_nav a {
        color: #ffffff !important;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }
    .slicknav_nav a:hover,
    .slicknav_nav li.active a,
    .slicknav_nav li.current-menu-item a {
        background: var(--mobile-nav-hover) !important;
        color: #ffffff !important;
    }
}

/* ==========================================================================
   Hero Banner (Home Page)
   ========================================================================== */
.breadcrumb-wrapper.homepage_banner {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 160px 0 35px 0;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.breadcrumb-wrapper.homepage_banner .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.breadcrumb-wrapper.homepage_banner .container {
    position: relative;
    z-index: 2;
}

.homepage_banner h1.banner_title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.homepage_banner p.banner_subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Inner Pages Top Cover Banners
   ========================================================================== */
.wp-block-cover {
    position: relative;
    min-height: 280px;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 35px auto;
    width: 100%;
    border-radius: 2px;
}

.wp-block-cover__background {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.wp-block-cover__image-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.wp-block-cover.is-position-bottom-center {
    align-items: flex-end;
    padding-bottom: 25px;
}

.wp-block-cover.is-position-center-left {
    justify-content: flex-start;
    text-align: left;
    padding-left: 60px;
}

.wp-block-cover h4 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.wp-block-cover p {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   Main Content & Blog Section Layout
   ========================================================================== */
.blog-section {
    padding: 30px 0 50px 0;
    background: #ffffff;
}

.two-tone-layout {
    width: 100%;
}

.detail-content.single_page h2,
h2.wp-block-heading {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 38px;
    color: var(--heading-color);
    text-align: center;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 400;
}

.detail-content.single_page h3,
h3.wp-block-heading {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 26px;
    color: var(--heading-color);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 400;
}

.wp-block-separator {
    width: 100px;
    border: none;
    border-bottom: 2px solid #64686d;
    margin: 12px auto 30px auto;
    opacity: 0.65;
}

.detail-content.single_page p em,
.detail-content.single_page li em {
    font-style: italic;
    color: #555555;
    font-size: 15px;
    line-height: 1.8;
}

/* Book Drydock Button */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.wp-block-button__link {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 34px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(202, 50, 37, 0.25);
}

.wp-block-button__link:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(202, 50, 37, 0.35);
}

/* ==========================================================================
   About Page Layout
   ========================================================================== */
.about-card-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 40px;
}

.about-card-row.reverse {
    flex-direction: row-reverse;
}

.about-img-box {
    flex: 0 0 35%;
    text-align: center;
}

.about-img-box img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.35s ease;
}

.about-img-box img:hover {
    transform: scale(1.03);
}

.about-img-circle {
    border-radius: 50%;
    width: 280px;
    height: 280px;
    object-fit: cover;
}

.about-img-oval {
    border-radius: 120px / 80px;
    max-width: 320px;
    height: auto;
}

.about-text-box {
    flex: 1;
}

.about-text-box h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .about-card-row, .about-card-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .about-img-box {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   Services Page Layout
   ========================================================================== */
.services-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
    margin-top: 25px;
}

.services-columns-grid ul {
    padding-left: 20px;
    margin-top: 15px;
}

.services-columns-grid ul li {
    margin-bottom: 10px;
    color: #555555;
    font-size: 14.5px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-columns-grid {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
}

/* ==========================================================================
   Gallery Page Layout (Coblocks Collage Reconstruction)
   ========================================================================== */
.gallery-section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-collage-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 8px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(202, 50, 37, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Grid Spanning */
.gallery-collage-grid .item-large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 480px;
}

.gallery-collage-grid .item-wide {
    grid-column: span 5;
    min-height: 236px;
}

.gallery-collage-grid .item-sub-1 {
    grid-column: 8 / 10;
    min-height: 236px;
}

.gallery-collage-grid .item-sub-2 {
    grid-column: 10 / 13;
    min-height: 236px;
}

@media (max-width: 768px) {
    .gallery-collage-grid {
        grid-template-columns: 1fr;
        grid-gap: 12px;
    }
    .gallery-collage-grid .item-large,
    .gallery-collage-grid .item-wide,
    .gallery-collage-grid .item-sub-1,
    .gallery-collage-grid .item-sub-2 {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: 260px !important;
    }
}

/* ==========================================================================
   Contact Page Layout & Interactive Form
   ========================================================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    margin-bottom: 35px;
}

.contact-box h3 {
    margin-top: 15px;
    margin-bottom: 8px;
}

.contact-box p {
    margin-bottom: 12px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: 15px;
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.drydock-showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.drydock-showcase-row img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Interactive Consultation & Drydock Booking Form */
.contact-form-wrapper {
    background: #fbfbfb;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
    font-size: 13.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(202, 50, 37, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 36px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(202, 50, 37, 0.3);
    transform: translateY(-1px);
}

.form-alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-info-grid,
    .drydock-showcase-row,
    .contact-form-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer.footer-style {
    background: var(--footer-bg) !important;
    padding: 24px 0 28px 0;
    text-align: center;
    color: #ffffff;
}

#footer.footer-style ul.inline-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

#footer.footer-style ul.inline-menu li {
    display: inline-block;
}

#footer.footer-style ul.inline-menu li + li:before {
    content: "/";
    color: rgba(255, 255, 255, 0.65);
    padding: 0 12px;
}

#footer.footer-style ul.inline-menu li a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 14px;
    transition: opacity 0.2s;
}

#footer.footer-style ul.inline-menu li a:hover {
    opacity: 0.8;
}

#footer.footer-style p.copyright {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    z-index: 999;
}

#back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

#back-to-top a:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    z-index: 1000000;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.15);
}

#lightbox-caption {
    color: #eeeeee;
    margin-top: 12px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
}


header .navbar-default .navbar-nav > li > a,
header .navbar-default .navbar-nav > li.active > a,
header .navbar-default .navbar-nav > li.current-menu-item > a,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.current-menu-item > a {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
}

header .navbar-default .navbar-nav > li.active > a,
header .navbar-default .navbar-nav > li.current-menu-item > a,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.current-menu-item > a {
    color: var(--primary-color) !important;
}

header .navbar-default .navbar-nav > li > a:hover,
header .navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
    color: var(--primary-color) !important;
}


/* Neutralize Bizberg style.css blanket .active rule */
li.active,
li.current-menu-item,
.navbar-nav > li.active,
header .navbar-default .navbar-nav > li.active,
header .navbar-default .navbar-nav > li.current-menu-item,
header .navbar-default .navbar-nav > li.active > a,
header .navbar-default .navbar-nav > li.current-menu-item > a,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.current-menu-item > a,
#responsive-menu li.active,
#responsive-menu li.active a {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
}

#responsive-menu li.active a,
#responsive-menu li.current-menu-item a,
header .navbar-default .navbar-nav > li.active > a,
header .navbar-default .navbar-nav > li.current-menu-item > a {
    color: var(--primary-color) !important;
}


@media (max-width: 991px) {
    #slicknav-mobile {
        float: right;
        margin-top: 18px;
        display: block;
    }
}


/* Mobile Header & Hamburger Flex Layout */
@media (max-width: 991px) {
    .bizberg_header_wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 80px !important;
        position: relative !important;
        padding: 10px 15px !important;
    }
    .bizberg_header_wrapper .logo {
        float: none !important;
        margin: 0 !important;
    }
    #slicknav-mobile {
        float: none !important;
        display: block !important;
        margin: 0 !important;
    }
    .slicknav_menu {
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
    }
    .slicknav_btn {
        background: var(--primary-color) !important;
        border: none !important;
        padding: 10px 14px !important;
        border-radius: 4px !important;
        display: inline-block !important;
        cursor: pointer !important;
    }
    .slicknav_btn:hover {
        background: var(--primary-hover) !important;
    }
    .slicknav_icon-bar {
        background-color: #ffffff !important;
        width: 22px !important;
        height: 3px !important;
        margin: 4px 0 !important;
        display: block !important;
        border-radius: 2px !important;
    }
}


/* Responsive Typography & Mobile Viewport Protection */
@media (max-width: 767px) {
    .banner_title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    .banner_subtitle {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    .breadcrumb-wrapper.homepage_banner {
        padding: 80px 15px 25px 15px !important;
        min-height: 220px !important;
    }
    .site_logo {
        max-height: 50px !important;
        max-width: 160px !important;
        height: auto !important;
    }
    .slicknav_btn {
        margin-right: 0 !important;
    }
}
