/* ==========================================================================
   Ship Chandler Durban — LIGHT THEME OVERRIDES
   Applied when <body class="light-theme"> is present.
   All rules are scoped to body.light-theme to avoid polluting dark mode.
   Accent colours (red #c3252c, gold #b19777) are kept identical.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. BASE — body, html, text
   ------------------------------------------------------------------ */
body.light-theme {
    background: #f4f4f2 !important;
    color: #2a2a2a !important;
}
body.light-theme p {
    color: #444 !important;
}
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: #1a1a1a !important;
}
body.light-theme .section-title span {
    color: #c3252c;
}

/* ------------------------------------------------------------------
   2. NAVBAR
   ------------------------------------------------------------------ */
body.light-theme .navbar {
    background: rgba(255,255,255,0.97) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
}
body.light-theme .nav-scroll {
    background: #ffffff !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1) !important;
}
body.light-theme .navbar .navbar-nav .nav-link {
    color: #1a1a1a !important;
}
body.light-theme .navbar .navbar-nav .nav-link:hover,
body.light-theme .navbar .navbar-nav .nav-link.active {
    color: #c3252c !important;
}
body.light-theme .nav-item.ports-dropdown > .nav-link i,
body.light-theme .nav-item.dropdown > .nav-link i,
body.light-theme .navbar .nav-link .ti-angle-down {
    color: rgba(0,0,0,0.4) !important;
}
body.light-theme .nav-item.ports-dropdown:hover > .nav-link i,
body.light-theme .nav-item.dropdown:hover > .nav-link i,
body.light-theme .nav-item.ports-dropdown.is-open > .nav-link i,
body.light-theme .nav-item.dropdown.show > .nav-link i {
    color: #c3252c !important;
}
/* Contact link */
body.light-theme .navbar .navbar-nav .nav-item.nav-btn-contact .nav-link {
    color: #1a1a1a !important;
}
/* Ports label non-clickable hover */
body.light-theme .nav-item.ports-dropdown > a.nav-link:hover {
    color: #1a1a1a !important;
}
/* Hamburger icon */
body.light-theme .navbar-toggler-icon i {
    color: #1a1a1a;
}

/* Ports mega dropdown */
body.light-theme .ports-mega-menu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-top: 2px solid #c3252c !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12) !important;
}
body.light-theme .ports-search-wrap input {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    color: #333 !important;
}
body.light-theme .ports-search-wrap input:focus {
    border-color: #b19777 !important;
}
body.light-theme .ports-search-wrap .search-icon {
    color: #999 !important;
}
body.light-theme .ports-mega-grid a {
    color: #555 !important;
}
body.light-theme .ports-mega-grid a:hover {
    background: rgba(195,37,44,0.08) !important;
    color: #1a1a1a !important;
}

/* Services dropdown */
body.light-theme .navbar .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12) !important;
}
body.light-theme .navbar .dropdown-menu .dropdown-item {
    color: #333 !important;
}
body.light-theme .navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(195,37,44,0.07) !important;
    color: #c3252c !important;
}

/* Mobile navbar */
@media (max-width: 991px) {
    body.light-theme .navbar {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }
    body.light-theme .nav-scroll {
        background: #ffffff !important;
    }
    body.light-theme .navbar .navbar-collapse {
        background: #ffffff !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    }
    body.light-theme .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.07) !important;
    }
    body.light-theme .navbar-nav .nav-item .nav-link {
        color: #1a1a1a !important;
    }
    body.light-theme .mobile-nav-close {
        background: rgba(0,0,0,0.06) !important;
        border: 1px solid rgba(0,0,0,0.15) !important;
        color: #333 !important;
    }
    body.light-theme .mobile-nav-close:hover {
        background: #c3252c !important;
        color: #fff !important;
    }
    body.light-theme .ports-mega-menu {
        background: #f8f8f8 !important;
        border-top: 1px solid rgba(0,0,0,0.06) !important;
    }
    body.light-theme .navbar .dropdown-menu.services-dropdown-2col {
        background: #f8f8f8 !important;
        border-top: 1px solid rgba(0,0,0,0.06) !important;
    }
    body.light-theme .navbar .dropdown-menu.services-dropdown-2col .dropdown-item {
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        color: #333 !important;
    }
    body.light-theme .nav-overlay {
        background: rgba(0,0,0,0.5) !important;
    }
}

/* ------------------------------------------------------------------
   3. THEME TOGGLE BUTTON
   ------------------------------------------------------------------ */
.theme-toggle-btn {
    background: none !important;
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75) !important;
    transition: all 0.3s ease;
    margin: 0 12px 0 8px;
    white-space: nowrap;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1.5em;
}
.theme-toggle-btn:hover {
    background: none !important;
    background-color: transparent !important;
    border-color: #b19777 !important;
    color: #b19777 !important;
}
.theme-toggle-btn .theme-icon {
    font-size: 13px;
    line-height: 1;
}
/* Dark icon = moon (default), light icon = sun (shown in light mode) */
.theme-toggle-btn .icon-moon { display: inline-block; }
.theme-toggle-btn .icon-sun  { display: none; }

body.light-theme .theme-toggle-btn {
    background: none !important;
    background-color: transparent !important;
    border-color: rgba(0,0,0,0.2) !important;
    color: rgba(0,0,0,0.6) !important;
}
body.light-theme .theme-toggle-btn:hover {
    background: none !important;
    background-color: transparent !important;
    border-color: #b19777 !important;
    color: #b19777 !important;
}
body.light-theme .theme-toggle-btn .icon-moon { display: none; }
body.light-theme .theme-toggle-btn .icon-sun  { display: inline-block; }

/* Mobile: full-width row, always visible above the hamburger */
@media (max-width: 991px) {
    .theme-toggle-btn {
        background: none !important;
        background-color: transparent !important;
        margin: 0 8px;
        padding: 6px 14px !important;
        border-radius: 4px !important;
        font-size: 12px;
        letter-spacing: 3px;
        border-color: rgba(255,255,255,0.25) !important;
        color: rgba(255,255,255,0.75) !important;
    }
    body.light-theme .theme-toggle-btn {
        border-color: rgba(0,0,0,0.2) !important;
        color: rgba(0,0,0,0.6) !important;
    }
}

/* ------------------------------------------------------------------
   4. PRELOADER & PROGRESS CIRCLE
   ------------------------------------------------------------------ */
body.light-theme .preloader-bg {
    background: #f4f4f2 !important;
}
body.light-theme #preloader {
    background: #f4f4f2 !important;
}
body.light-theme .progress-wrap svg.progress-circle path {
    stroke: #c3252c !important;
}

/* ------------------------------------------------------------------
   5. CONTENT LINES (decorative vertical lines)
   ------------------------------------------------------------------ */
body.light-theme .content-lines-inner {
    border-left-color: rgba(0,0,0,0.07) !important;
    border-right-color: rgba(0,0,0,0.07) !important;
    border-bottom-color: rgba(0,0,0,0.07) !important;
}
body.light-theme .content-lines {
    border-left-color: rgba(0,0,0,0.07) !important;
    border-right-color: rgba(0,0,0,0.07) !important;
}

/* ------------------------------------------------------------------
   6. HERO SLIDER & BANNER — photo stays, overlay lightens slightly
   ------------------------------------------------------------------ */
body.light-theme .banner-header::before,
body.light-theme [data-overlay-darkgray]:before,
body.light-theme [data-overlay-dark]:before {
    background: rgba(10,10,10,0.72) !important;
}
/* Banner text stays white but ensure readability on lighter overlay */
body.light-theme .banner-header h1,
body.light-theme .header .caption h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 16px rgba(0,0,0,0.95) !important;
}
body.light-theme .banner-subtitle,
body.light-theme .header .caption p {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 3px 14px rgba(0,0,0,0.9) !important;
}
body.light-theme .hero-tagline,
body.light-theme .hero-port-label {
    text-shadow: 0 2px 12px rgba(0,0,0,0.85) !important;
}

/* ------------------------------------------------------------------
   7. ABOUT PAGE
   ------------------------------------------------------------------ */
body.light-theme .about-stats {
    border-top: 1px solid #ddd !important;
    border-left: 1px solid #ddd !important;
}
body.light-theme .about-stat {
    border-right: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
}
body.light-theme .about-stat:hover {
    background: #f0f0ee !important;
}
body.light-theme .about-stat .stat-label {
    color: #666 !important;
}
body.light-theme .why-list li {
    border-bottom: 1px solid #e8e8e8 !important;
    color: #555 !important;
}
body.light-theme .why-list li:hover { color: #1a1a1a !important; }

/* ------------------------------------------------------------------
   8. SERVICES CARDS
   ------------------------------------------------------------------ */
body.light-theme .services2 {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-theme .services2 .title-box {
    background: rgba(255,255,255,0.97) !important;
    border-top: 1px solid rgba(0,0,0,0.07) !important;
}
body.light-theme .services2 .title-box h3 {
    color: #1a1a1a !important;
}

/* ------------------------------------------------------------------
   9. VESSELS SECTION
   ------------------------------------------------------------------ */
body.light-theme .vessels-section {
    background: #ebebea !important;
}
body.light-theme .vessels-section .section-intro {
    color: #666 !important;
}
body.light-theme .vessel-grid {
    border: 1px solid #ddd !important;
}
body.light-theme .vessel-card {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
}
body.light-theme .vessel-card:hover {
    background: #f8f8f8 !important;
    border-color: #c3252c !important;
}
body.light-theme .vessel-card h5 {
    color: #333 !important;
}
body.light-theme .vessel-card:hover h5 { color: #1a1a1a !important; }

/* ------------------------------------------------------------------
   10. SERVICE DETAIL PAGES
   ------------------------------------------------------------------ */
body.light-theme .service-detail-section {
    background: #f4f4f2 !important;
}
body.light-theme .service-list li {
    color: #555 !important;
}
body.light-theme .back-to-services {
    color: #b19777 !important;
    border-color: #d8d8d8 !important;
}
body.light-theme .back-to-services:hover {
    background: #b19777 !important;
    color: #fff !important;
}

/* ------------------------------------------------------------------
   11. PORT PAGES
   ------------------------------------------------------------------ */
body.light-theme .port-intro-section {
    background: #f4f4f2 !important;
}
body.light-theme .port-supply-section {
    background: #f4f4f2 !important;
}
body.light-theme .port-supply-section h3 {
    color: #1a1a1a !important;
    border-bottom: 1px solid #ddd !important;
}
body.light-theme .port-why-list li {
    color: #555 !important;
}

/* ------------------------------------------------------------------
   12. CONTACT PAGE
   ------------------------------------------------------------------ */
body.light-theme .contact-info-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
body.light-theme .contact-info-card:hover {
    border-color: #b19777 !important;
}
body.light-theme .contact-info-card h5 {
    color: #1a1a1a !important;
}
body.light-theme .contact-info-card p,
body.light-theme .contact-info-card a {
    color: #666 !important;
}

/* ------------------------------------------------------------------
   13. QUOTE / REQUEST FORM
   ------------------------------------------------------------------ */
body.light-theme .quote-page-section {
    background: #f4f4f2 !important;
}
body.light-theme .quote-form-wrapper {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
}
body.light-theme .quote-form-wrapper:hover {
    border-color: rgba(195,37,44,0.35) !important;
}
body.light-theme .quote-form label {
    color: #555 !important;
}
body.light-theme .quote-form input[type="text"],
body.light-theme .quote-form input[type="email"],
body.light-theme .quote-form input[type="tel"],
body.light-theme .quote-form textarea,
body.light-theme .quote-form select {
    background: #f7f7f7 !important;
    border: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    color: #333 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}
body.light-theme .quote-form input[readonly] {
    background: #efefef !important;
    color: #888 !important;
    border-color: #e0e0e0 !important;
}
body.light-theme .quote-form input::placeholder,
body.light-theme .quote-form textarea::placeholder {
    color: #aaa !important;
}
body.light-theme .quote-form select option {
    background: #fff;
    color: #333;
}
body.light-theme .quote-form input[type="text"]:focus,
body.light-theme .quote-form input[type="email"]:focus,
body.light-theme .quote-form input[type="tel"]:focus,
body.light-theme .quote-form textarea:focus,
body.light-theme .quote-form select:focus {
    border-color: #c3252c !important;
    box-shadow: 0 0 0 3px rgba(195,37,44,0.1), inset 0 1px 3px rgba(0,0,0,0.05) !important;
    color: #1a1a1a !important;
}
body.light-theme .quote-form input[type="checkbox"] {
    background: #f7f7f7 !important;
    border: 1px solid #ccc !important;
}
/* Sidebar checklist cards */
body.light-theme .quote-page-section [style*="background:#111"] {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
}
body.light-theme .quote-page-section [style*="color:#aaa"] {
    color: #555 !important;
}
body.light-theme .quote-page-section [style*="border-bottom:1px solid #1c1c1c"] {
    border-bottom-color: #eee !important;
}

/* ------------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------------ */
body.light-theme .main-footer,
body.light-theme .main-footer.dark {
    background: #1a1a1a !important;
    border-top: 1px solid rgba(0,0,0,0.15) !important;
}
body.light-theme .sub-footer,
body.light-theme .sub-footer.dark {
    background: #111111 !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}
/* Footer text stays light (footer is always dark) */
body.light-theme .footer-nav-list a { color: #888 !important; }
body.light-theme .footer-nav-list a:hover { color: #b19777 !important; }
body.light-theme .footer-contact-item p,
body.light-theme .footer-contact-item a { color: #888 !important; }
body.light-theme .footer-contact-item a:hover { color: #b19777 !important; }
body.light-theme .social-icon a {
    border-color: #333 !important;
    color: #888 !important;
}
body.light-theme .social-icon a:hover {
    border-color: #b19777 !important;
    color: #b19777 !important;
}

/* ------------------------------------------------------------------
   15. GENERAL SECTIONS with dark bg in style.css
   ------------------------------------------------------------------ */
body.light-theme .section-padding,
body.light-theme .section-padding2,
body.light-theme .about.section-padding2,
body.light-theme .services.section-padding2,
body.light-theme .contact-page-section,
body.light-theme .port-intro-section,
body.light-theme .port-supply-section,
body.light-theme .service-detail-section,
body.light-theme .quote-page-section {
    background: #f4f4f2 !important;
}

/* Remove dark bg on project/about inner blocks */
body.light-theme .about-img .img {
    background: transparent !important;
}

/* style.css sets background:#272727 on many blocks */
body.light-theme .testimonials-box,
body.light-theme .about-img-2 {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
}

/* ------------------------------------------------------------------
   16. INLINE DARK CARDS used in quote sidebar / contact sidebar
   ------------------------------------------------------------------ */
/* Target inline-styled dark boxes */
body.light-theme [style*="background:#111"],
body.light-theme [style*="background: #111"] {
    background: #ffffff !important;
}
body.light-theme [style*="background:#141414"],
body.light-theme [style*="background: #141414"] {
    background: #f0f0ee !important;
}
body.light-theme [style*="background:#0e0e0e"],
body.light-theme [style*="background: #0e0e0e"] {
    background: #f7f7f7 !important;
}
body.light-theme [style*="border:1px solid #323232"],
body.light-theme [style*="border: 1px solid #323232"] {
    border-color: #e0e0e0 !important;
}
body.light-theme [style*="color:#aaa"],
body.light-theme [style*="color: #aaa"] {
    color: #555 !important;
}
body.light-theme [style*="color:#bbb"],
body.light-theme [style*="color: #bbb"] {
    color: #444 !important;
}
body.light-theme [style*="color:#888"],
body.light-theme [style*="color: #888"] {
    color: #666 !important;
}
body.light-theme [style*="color:#999"],
body.light-theme [style*="color: #999"] {
    color: #555 !important;
}
body.light-theme [style*="color:#eee"],
body.light-theme [style*="color: #eee"] {
    color: #1a1a1a !important;
}
body.light-theme [style*="color:#fff"],
body.light-theme [style*="color: #fff"],
body.light-theme [style*="color:#ffffff"],
body.light-theme [style*="color: #ffffff"] {
    color: #1a1a1a !important;
}
body.light-theme [style*="border-bottom:1px solid #1c1c1c"],
body.light-theme [style*="border-bottom: 1px solid #1c1c1c"] {
    border-bottom-color: #eee !important;
}

/* Exception: keep white text on red/gold buttons and on hero photo */
body.light-theme .butn-dark a span,
body.light-theme .butn-light a span,
body.light-theme .quote-submit-btn,
body.light-theme .banner-header [style*="color:#fff"],
body.light-theme .banner-header [style*="color: #fff"] {
    color: #ffffff !important;
}

/* ------------------------------------------------------------------
   17. INPUTS (base style.css override for non-form-page inputs)
   ------------------------------------------------------------------ */
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme textarea {
    color: #333 !important;
    border-bottom-color: #ccc !important;
    background-color: transparent !important;
}
body.light-theme input:focus,
body.light-theme textarea:focus {
    border-color: #b19777 !important;
}

/* ------------------------------------------------------------------
   18. SCROLL PROGRESS BAR
   ------------------------------------------------------------------ */
body.light-theme .progress-wrap svg.progress-circle path {
    stroke: #c3252c !important;
}
body.light-theme .progress-wrap {
    background: rgba(0,0,0,0.06) !important;
}
