/* ==========================================================================
   Bali Glass & Film Technologies S.A. - Custom Stylesheet
   Extends templatemo_477_puzzle
   ========================================================================== */

/* Background polish */
body {
    background-image: url(../images/back.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    min-height: 100vh;
    color: #2c3e50;
}

/* Header & Top Bar */
.top-bar-bali {
    background: rgba(1, 35, 61, 0.95);
    color: #b0d8ea;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(147, 250, 255, 0.2);
}
.top-bar-bali a {
    color: #93FAFF;
    text-decoration: none;
    margin-right: 15px;
}
.top-bar-bali a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.top-bar-bali .cuit-badge {
    background: rgba(47, 172, 255, 0.2);
    border: 1px solid rgba(147, 250, 255, 0.4);
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
}

.fixed-header {
    background: rgba(2, 61, 105, 0.92);
    box-shadow: 0 2px 15px rgba(0,0,0,0.25);
    padding: 12px 0;
    backdrop-filter: blur(8px);
}
.fixed-header.scroll {
    background: rgba(1, 40, 70, 0.98);
    padding: 8px 0;
}
.navbar-brand-logo {
    display: inline-block;
    vertical-align: middle;
    height: 44px;
    padding: 0;
}
.navbar-brand-logo img {
    height: 44px;
    width: auto;
}

/* Main Navigation */
.main-menu ul li a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s;
}
.main-menu ul li a.btn-nav-quote {
    background: #2FACFF;
    color: #023D69 !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #93FAFF;
    margin-left: 8px;
}
.main-menu ul li a.btn-nav-quote:hover {
    background: #93FAFF;
    color: #002544 !important;
}

/* Breadcrumbs & Page Headers */
.page-hero-header {
    background: linear-gradient(135deg, rgba(2,61,105,0.92), rgba(0,102,153,0.88));
    color: #fff;
    padding: 30px;
    margin-top: 75px;
    margin-bottom: 25px;
    border-left: 6px solid #2FACFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.page-hero-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}
.page-hero-header p {
    margin: 0;
    font-size: 15px;
    color: #d8f1ff;
    line-height: 1.5;
}
.breadcrumb-bali {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #93FAFF;
}
.breadcrumb-bali li {
    display: inline;
}
.breadcrumb-bali li+li:before {
    content: ' / ';
    padding: 0 6px;
    color: #79c5e8;
}
.breadcrumb-bali a {
    color: #ffffff;
}
.breadcrumb-bali a:hover {
    color: #93FAFF;
    text-decoration: underline;
}

/* Puzzle Content Overrides & Adjustments */
.content-item {
    min-height: 520px !important;
    overflow: hidden;
}
.content-item.background {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.tm-image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.badge-tech {
    display: inline-block;
    background: #e8f5fc;
    color: #006699;
    border: 1px solid #a6d8f5;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0;
    background: #f8fbfe;
    border: 1px solid #dcebfa;
    padding: 12px 16px;
    border-radius: 4px;
}
.tech-spec-item {
    font-size: 13px;
    line-height: 1.4;
}
.tech-spec-item strong {
    color: #006699;
    display: block;
    font-size: 14px;
}

/* Cards & Grid Enhancements */
.card-spec-box {
    background: #fff;
    border: 1px solid #e1ecf4;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-spec-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,102,153,0.12);
}
.card-spec-box h3 {
    margin-top: 0;
    color: #006699;
    font-size: 20px;
    font-weight: 600;
}

/* Simulator Styles */
.simulator-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.sim-metric-card {
    background: #f0f7fc;
    border-left: 4px solid #006699;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.sim-metric-val {
    font-size: 26px;
    font-weight: 700;
    color: #006699;
}
.sim-metric-label {
    font-size: 12px;
    color: #557088;
    text-transform: uppercase;
    font-weight: 600;
}
.sim-range-wrap {
    margin: 15px 0;
}
.sim-range-wrap label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #004466;
}

/* Contact & Quote Modal */
.modal-bali-header {
    background: #023D69;
    color: #fff;
    padding: 20px 25px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.modal-bali-header h4 {
    margin: 0;
    font-weight: 700;
    color: #93FAFF;
}
.modal-bali-body {
    padding: 25px;
    background: #fbfdff;
}
.alert-bali-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

/* Comparison Table */
.table-film-specs {
    width: 100%;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #dce6ed;
    font-size: 14px;
}
.table-film-specs th {
    background: #006699;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    border: 1px solid #005580;
}
.table-film-specs td {
    padding: 9px 14px;
    border-bottom: 1px solid #e7eff5;
}
.table-film-specs tr:nth-child(even) {
    background: #f7fbfe;
}
.table-film-specs tr:hover {
    background: #edf6fd;
}

/* Footer & Legal */
.footer-bali-rich {
    background: #01223a;
    color: #bed6e6;
    padding: 50px 0 25px 0;
    margin-top: 50px;
    border-top: 4px solid #2FACFF;
}
.footer-bali-rich h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    border-bottom: 2px solid #2FACFF;
    display: inline-block;
    padding-bottom: 6px;
}
.footer-bali-rich ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-bali-rich ul li {
    margin-bottom: 9px;
    font-size: 13px;
}
.footer-bali-rich ul li a {
    color: #b0d3e8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bali-rich ul li a:hover {
    color: #93FAFF;
    text-decoration: underline;
}
.footer-bottom-bar {
    background: #001729;
    padding: 18px 0;
    font-size: 13px;
    color: #7a9cb5;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-bar a {
    color: #93FAFF;
}
.afip-box-footer {
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    display: inline-block;
}

/* Floating Contact Button */
.bali-floating-help {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.bali-btn-float {
    background: #006699;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    border: 2px solid #93FAFF;
    transition: all 0.3s;
    text-decoration: none !important;
}
.bali-btn-float:hover {
    background: #023D69;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.bali-btn-float svg {
    margin-right: 8px;
}

/* Responsive tweaks */
@media screen and (max-width: 991px) {
    .content-item {
        min-height: auto !important;
    }
    .main-menu.show {
        max-height: 480px;
        background-color: #01223a;
        padding: 15px;
    }
    .main-menu ul li {
        width: 100%;
        display: block;
        padding: 6px 0;
    }
    .main-menu ul li a {
        display: block;
        padding: 8px 12px;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .main-menu ul li a.btn-nav-quote {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
    .page-hero-header {
        margin-top: 90px;
    }
}
