/*
Theme Name: L7 ATECH
Theme URI: https://l7atech.be
Author: L7 ATECH
Author URI: https://l7atech.be
Description: Emergency drain unblocking service website for L7 ATECH Brussels. Dark navy & yellow theme with Bootstrap 5.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: l7atech
*/

/* ===== L7 ATECH - Dark Navy & Yellow Theme ===== */

:root {
    --navy: #0f1923;
    --navy-light: #1a2a3a;
    --navy-card: #1e2d3d;
    --yellow: #ffc107;
    --yellow-hover: #e0a800;
    --yellow-glow: rgba(255, 193, 7, 0.15);
    --text-light: #e8edf2;
    --text-muted: #8a9bb0;
    --green-wa: #25D366;
    --red-urgent: #dc3545;
    --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--navy);
    color: var(--text-light);
    padding-top: 62px;
    padding-bottom: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.15);
    padding: 0.4rem 0;
    z-index: 1050;
}
#mainNav .navbar-brand img {
    transition: transform 0.2s;
    height: 40px;
    width: auto;
}
#mainNav .navbar-brand img:hover { transform: scale(1.05); }
#mainNav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: color 0.2s;
    font-size: 0.95rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus { color: var(--yellow); }
#mainNav .navbar-toggler {
    border-color: rgba(255,193,7,0.4);
    padding: 0.35rem 0.6rem;
}
#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 193, 7, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav .navbar-collapse {
    background: rgba(15, 25, 35, 0.98);
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, var(--yellow-glow), transparent 70%);
    pointer-events: none;
}
.min-vh-80 { min-height: 65vh; }
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--white);
}
.hero-title::first-line { color: var(--yellow); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.hero-image {
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
}
.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--navy-card);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--yellow);
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== EMERGENCY STRIP ===== */
.emergency-strip {
    background: var(--red-urgent);
    color: var(--white);
    animation: pulse-bg 3s ease-in-out infinite;
}
.emergency-strip p { font-size: 1rem; }
@keyframes pulse-bg {
    0%, 100% { background: var(--red-urgent); }
    50% { background: #c82333; }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}
.section-title.text-start::after,
.section-title.mb-0::after { margin-left: 0; }

/* ===== SERVICE CARDS ===== */
.services-section { background: var(--navy-light); }
.service-card {
    background: var(--navy-card);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--yellow);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--yellow-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.service-icon i { font-size: 1.5rem; color: var(--yellow); }
.service-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.service-card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ===== METHOD SECTION ===== */
.method-section { background: var(--navy); }
.method-text { color: var(--text-muted); line-height: 1.8; font-size: 1rem; }
.method-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.method-list li {
    padding: 0.45rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.method-disclaimer { color: var(--text-muted); font-style: italic; }

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--navy-light); }
.why-card {
    background: var(--navy-card);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 193, 7, 0.1);
    transition: border-color 0.3s;
    height: 100%;
}
.why-card:hover { border-color: var(--yellow); }
.why-card i { font-size: 2.2rem; color: var(--yellow); display: block; margin-bottom: 0.75rem; }
.why-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-bottom: 0; }

/* ===== ZONES ===== */
.zones-section { background: var(--navy); }
.zone-chip {
    background: var(--navy-card);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--text-light);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}
.zone-chip:hover {
    border-color: var(--yellow);
    background: var(--yellow-glow);
    color: var(--yellow);
}
.zone-chip-accent {
    background: var(--yellow);
    color: var(--navy);
    border-color: var(--yellow);
}
.zone-chip-accent:hover {
    background: var(--yellow-hover);
    color: var(--navy);
}

/* ===== VIDEOS ===== */
.videos-section { background: var(--navy-light); }

.video-card {
    background: var(--navy-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 193, 7, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--yellow);
}
.video-card .video-thumb {
    position: relative;
    overflow: hidden;
}
.video-card .video-thumb img,
.video-card .video-thumb iframe,
.video-card .video-thumb video { width: 100%; display: block; }
.video-card .video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}
.video-card:hover .video-play-overlay { opacity: 1; }
.video-play-overlay i {
    font-size: 3rem;
    color: var(--yellow);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-card-body { padding: 1rem 1.1rem; }
.video-card-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.video-card-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.video-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.video-card-meta i { color: var(--yellow); }

/* View all button */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid var(--yellow);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}
.btn-view-all:hover {
    background: var(--yellow);
    color: var(--navy);
}

/* Video gallery page grid */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Video modal */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 24, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.video-modal-content {
    width: 100%;
    max-width: 900px;
    position: relative;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--yellow);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .video-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .video-gallery-grid { grid-template-columns: 1fr; }
}

/* ===== LEAD FORM ===== */
.lead-form-section { background: var(--navy); }
.form-card {
    background: var(--navy-card);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
}
.form-label { color: var(--text-light); font-weight: 500; font-size: 0.88rem; }
.form-control, .form-select {
    background: var(--navy-light);
    border: 1px solid rgba(255, 193, 7, 0.15);
    color: var(--text-light);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    background: var(--navy-light);
    border-color: var(--yellow);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem var(--yellow-glow);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--navy); color: var(--text-light); }
.form-check-input {
    background-color: var(--navy-light);
    border-color: rgba(255, 193, 7, 0.3);
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}
.form-check-input:checked {
    background-color: var(--yellow);
    border-color: var(--yellow);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem var(--yellow-glow);
}
.form-check-label { color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-section { background: var(--navy-light); }
.accordion-item {
    background: var(--navy-card);
    border: 1px solid rgba(255, 193, 7, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 12px !important;
    overflow: hidden;
}
.accordion-button {
    background: var(--navy-card);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
}
.accordion-button:not(.collapsed) {
    background: var(--navy-light);
    color: var(--yellow);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button::after {
    filter: brightness(0) invert(1);
}
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(79%) sepia(64%) saturate(1000%) hue-rotate(5deg);
}
.accordion-body {
    background: var(--navy-card);
    color: var(--text-muted);
    padding: 0.75rem 1.25rem 1.25rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a1118;
    border-top: 1px solid rgba(255, 193, 7, 0.1);
}
.footer-heading { color: var(--yellow); font-size: 1rem; font-weight: 700; margin-bottom: 0.85rem; }
.footer-links { font-size: 0.9rem; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-links li:not(:has(a)) { color: var(--text-muted); }
.footer-divider { border-color: rgba(255, 193, 7, 0.1); }
.text-light-muted { color: var(--text-muted); }
.footer-logo { border-radius: 8px; }

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1040;
    border-top: 2px solid var(--yellow);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.mobile-cta-btn {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.25rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    transition: opacity 0.2s;
}
.mobile-cta-btn:active { opacity: 0.8; }
.mobile-cta-btn i { font-size: 1.35rem; }
.call-btn { background: var(--yellow); color: var(--navy); }
.call-btn:hover, .call-btn:focus { color: var(--navy); }
.whatsapp-btn { background: var(--green-wa); color: var(--white); }
.whatsapp-btn:hover, .whatsapp-btn:focus { color: var(--white); }
.email-btn { background: var(--navy-card); color: var(--yellow); }
.email-btn:hover, .email-btn:focus { color: var(--yellow); }

/* ===== BUTTONS ===== */
.btn-warning {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy);
    font-weight: 700;
}
.btn-warning:hover, .btn-warning:focus {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
    color: var(--navy);
}
.btn-outline-warning {
    border-color: var(--yellow);
    color: var(--yellow);
}
.btn-outline-warning:hover, .btn-outline-warning:focus {
    background: var(--yellow);
    color: var(--navy);
}
.btn-success { background: var(--green-wa); border-color: var(--green-wa); }
.btn-success:hover { background: #1da851; border-color: #1da851; }

/* Touch-friendly button sizing */
.btn { min-height: 44px; }
.btn-lg { min-height: 48px; padding: 0.6rem 1.5rem; }

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 991.98px) {
    body {
        padding-top: 58px;
        padding-bottom: 68px;
    }
    .hero-section { padding: 2rem 0 3rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .min-vh-80 { min-height: auto; padding: 1.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .form-card { padding: 1.5rem; }
    .emergency-strip p { font-size: 0.9rem; }

    #mainNav .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid rgba(255,193,7,0.1);
        margin-top: 0.5rem;
    }
    #mainNav .nav-link {
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 1.05rem;
    }

    .page-header { padding: 2rem 0; }
    .page-header h1 { font-size: 1.5rem; }
    .legal-content { padding: 1.5rem; }
    .service-detail-card .col-md-3 { margin-top: 1rem; }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 575.98px) {
    body { padding-top: 56px; }

    .hero-section { padding: 1.5rem 0 2.5rem; }
    .hero-title { font-size: 1.4rem; line-height: 1.3; }
    .hero-subtitle { font-size: 0.9rem; line-height: 1.5; }

    .hero-cta {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .hero-badges { gap: 0.4rem !important; }
    .badge-trust { font-size: 0.72rem; padding: 0.35rem 0.65rem; }

    .services-section,
    .method-section,
    .why-section,
    .zones-section,
    .videos-section,
    .lead-form-section,
    .faq-section {
        padding: 2.5rem 0 !important;
    }

    .section-title { font-size: 1.3rem; margin-bottom: 1.25rem !important; }
    .section-title::after { width: 40px; height: 3px; }

    .service-card { padding: 1.25rem; border-radius: 12px; }
    .service-icon { width: 48px; height: 48px; }
    .service-icon i { font-size: 1.3rem; }
    .service-card-title { font-size: 1rem; }
    .service-card-text { font-size: 0.85rem; }

    .why-card { padding: 1.1rem 0.75rem; border-radius: 12px; }
    .why-card i { font-size: 1.8rem; margin-bottom: 0.5rem; }
    .why-card h4 { font-size: 0.8rem; }

    .zone-chip { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

    .form-card { padding: 1.25rem; border-radius: 14px; }
    .form-label { font-size: 0.85rem; }

    .accordion-button { font-size: 0.88rem; padding: 0.85rem 1rem; }
    .accordion-body { font-size: 0.88rem; padding: 0.65rem 1rem 1rem; }

    .site-footer { padding: 2.5rem 0 !important; }
    .footer-heading { font-size: 0.95rem; }
    .footer-links { font-size: 0.85rem; }

    .emergency-strip p { font-size: 0.82rem; }
    .page-header h1 { font-size: 1.3rem; }
    .page-header p { font-size: 0.85rem; }
}

/* ===== EXTRA SMALL PHONES ===== */
@media (max-width: 374px) {
    .hero-title { font-size: 1.2rem; }
    .hero-cta .btn { font-size: 0.9rem; padding: 0.65rem 0.75rem; }
    .badge-trust { font-size: 0.68rem; padding: 0.3rem 0.55rem; }
    .section-title { font-size: 1.15rem; }
    .service-card { padding: 1rem; }
    .zone-chip { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
    .form-card { padding: 1rem; }
    .mobile-cta-btn { font-size: 0.7rem; padding: 0.6rem 0.15rem; }
    .mobile-cta-btn i { font-size: 1.2rem; }
}

/* ===== iOS safe area ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-cta-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    @media (max-width: 991.98px) {
        body {
            padding-bottom: calc(68px + env(safe-area-inset-bottom));
        }
    }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { padding: 1rem 0 1.5rem; }
    .min-vh-80 { min-height: auto; }
    .mobile-cta-bar { display: none !important; }
    body { padding-bottom: 0; }
}

/* ===== MISC ===== */
.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
    color: #75b798;
}

/* Legal / Privacy pages */
.legal-content {
    background: var(--navy-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 193, 7, 0.1);
}
.legal-content h2 { color: var(--yellow); font-size: 1.3rem; margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--text-muted); line-height: 1.8; }

/* Page header for inner pages */
.page-header {
    background: var(--navy-light);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

/* Services list page */
.service-detail-card {
    background: var(--navy-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 193, 7, 0.1);
    margin-bottom: 1.5rem;
}

/* ===== PRINT ===== */
@media print {
    .mobile-cta-bar, #mainNav, .emergency-strip { display: none !important; }
    body { padding: 0; color: #000; background: #fff; }
}


/* ===== L7 ATECH Reports App ===== */
.l7-app-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1rem;
    align-items: start;
}
.l7-app-sidebar {
    position: sticky;
    top: 84px;
    background: #111d2a;
    border: 1px solid rgba(255,193,7,.18);
    border-radius: 16px;
    padding: 1rem;
    max-height: calc(100vh - 100px);
    overflow: auto;
}
.l7-report-list-item {
    background: #0f1923;
    border: 1px solid rgba(255,193,7,.18);
    color: #e8edf2;
    border-radius: 12px;
    padding: .75rem;
    margin-bottom: .75rem;
    cursor: pointer;
}
.l7-report-list-item:hover { border-color: var(--yellow); }
.l7-report-list-item .small { color: var(--text-muted); }
.l7-controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.l7-control-item {
    background: #0f1923;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: .65rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}
.l7-block {
    background: #0f1923;
    border: 1px solid rgba(255,193,7,.18);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.l7-block-tools {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: .75rem;
}
.l7-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .75rem;
    margin-top: .75rem;
}
.l7-photo-card {
    background: #172536;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: .5rem;
}
.l7-photo-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: .5rem;
}
.l7-report-paper {
    background: white;
    color: #111;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    margin-bottom: 2rem;
    font-family: Arial, Helvetica, sans-serif;
}
.l7-paper-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 28px;
}
.l7-paper-header .right { text-align: right; }
.l7-paper-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}
.l7-paper-meta { margin-bottom: 9px; }
.l7-paper-section {
    margin-top: 18px;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}
.l7-paper-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.l7-paper-photos,
.l7-public-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}
.l7-paper-photos figure,
.l7-public-photos figure {
    margin: 0 0 10px;
}
.l7-paper-photos img,
.l7-public-photos img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #fff;
}
.l7-paper-photos figcaption,
.l7-public-photos figcaption {
    font-weight: 700;
    font-size: 13px;
    margin-top: 5px;
}
.l7-report-thumb {
    height: 220px;
    object-fit: cover;
}
.l7-public-section h4 {
    color: var(--yellow);
    font-size: 1rem;
    margin-top: 1rem;
}
@media (max-width: 991px) {
    .l7-app-shell { grid-template-columns: 1fr; }
    .l7-app-sidebar { position: static; max-height: none; }
}
@media (max-width: 600px) {
    .l7-controls-grid,
    .l7-paper-header,
    .l7-paper-photos,
    .l7-public-photos { grid-template-columns: 1fr; }
    .l7-paper-header .right { text-align: left; }
    .l7-report-paper { padding: 18px; }
}
@media print {
    body { background: white !important; padding-top: 0 !important; }
    #mainNav, footer, .l7-app-sidebar, .l7-report-app form, .l7-report-app .card, .l7-report-app h1, .l7-report-app p, .l7-report-app .d-flex, .l7-report-app h2.text-warning { display: none !important; }
    .l7-report-paper {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 16mm 13mm !important;
        margin: 0 !important;
    }
}


/* ===== L7 ATECH Light Report App - integrated version ===== */
.l7-app-light {
    background: #eaf1f7;
    color: #061326;
    padding: 18px 10px 40px;
}
.l7-app-wrap {
    max-width: 980px;
    margin: 0 auto;
}
.l7-card {
    background: #ffffff;
    color: #061326;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}
.l7-top-card {
    position: sticky;
    top: 72px;
    z-index: 40;
}
.l7-app-logo {
    height: 48px;
    margin-bottom: 10px;
}
.l7-card h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #061326;
}
.l7-card h2 {
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #061326;
}
.l7-card p {
    color: #53677f;
    margin: 0 0 10px;
}
.l7-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.l7-btn-blue { background: #1464df; color: #fff; }
.l7-btn-green { background: #0ca04b; color: #fff; }
.l7-btn-red { background: #fee2e2; color: #991b1b; }
.l7-btn-light { background: #e8f0ff; color: #0b3a86; }
.l7-top-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.l7-public-switch {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    background: #f8fbff;
    font-weight: 700;
}
.l7-public-switch label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.l7-user-line {
    margin-top: 10px;
    color: #53677f;
    font-size: 14px;
}
.l7-user-line a {
    color: #0b3a86;
    font-weight: 800;
}
.l7-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.l7-card label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 6px;
    color: #061326;
}
.l7-card input,
.l7-card textarea,
.l7-card select,
.l7-modal input,
.l7-photo-card textarea {
    width: 100%;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    background: #fff;
    color: #061326;
}
.l7-card textarea {
    min-height: 105px;
    resize: vertical;
}
.l7-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.l7-control-item {
    background: #fff;
    color: #061326;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}
.l7-control-item input {
    width: auto;
    margin: 0;
}
.l7-small-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.l7-block {
    background: #f8fbff;
    color: #061326;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}
.l7-block-tools {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.l7-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.l7-photo-card {
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 8px;
}
.l7-photo-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}
.l7-hidden-submit { display: none; }
.l7-preview-title {
    font-size: 22px;
    font-weight: 800;
    color: #061326;
    margin: 20px 0 10px;
}
.l7-report-paper {
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    margin-bottom: 30px;
    font-family: Arial, Helvetica, sans-serif;
}
.l7-paper-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 28px;
}
.l7-paper-header .right { text-align: right; }
.l7-paper-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}
.l7-paper-meta { margin-bottom: 9px; }
.l7-paper-section {
    margin-top: 18px;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}
.l7-paper-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.l7-paper-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}
.l7-paper-photos figure { margin: 0 0 10px; }
.l7-paper-photos img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}
.l7-paper-photos figcaption {
    font-weight: 700;
    font-size: 13px;
    margin-top: 5px;
}
.l7-modal {
    position: fixed;
    inset: 0;
    background: rgba(7,18,37,.55);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 10px;
    overflow: auto;
}
.l7-modal.open { display: flex; }
.l7-modal-box {
    width: 100%;
    max-width: 760px;
    background: #fff;
    color: #061326;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.l7-modal-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}
.l7-modal-head h2 { color: #061326; font-weight: 800; margin: 0; }
.l7-report-list-item {
    background: #f8fbff;
    border: 1px solid #d9e2ef;
    color: #061326;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}
.l7-report-list-item:hover { border-color: #1464df; }
.l7-report-list-item .small { color: #53677f; }
.l7-login-page {
    background: #eaf1f7;
    min-height: 70vh;
    padding: 40px 10px;
}
.l7-login-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    color: #061326;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.l7-login-card h1 { font-weight: 800; color: #061326; }
.l7-login-card p { color: #53677f; }
.l7-login-card label { font-weight: 800; margin-bottom: 6px; }
.l7-login-card input {
    width: 100%;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
}
.l7-check-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.l7-check-line input { width: auto; margin: 0; }
.l7-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}
@media(max-width:760px){
    .l7-grid-2,
    .l7-top-buttons,
    .l7-check-grid,
    .l7-small-buttons,
    .l7-paper-header,
    .l7-paper-photos {
        grid-template-columns: 1fr;
    }
    .l7-top-card { top: 62px; }
    .l7-paper-header .right { text-align: left; }
    .l7-report-paper { padding: 18px; }
}
@media print {
    #mainNav,
    footer,
    .l7-top-card,
    .l7-card,
    .l7-preview-title,
    .l7-modal {
        display: none !important;
    }
    body {
        background: #fff !important;
        padding-top: 0 !important;
    }
    .l7-app-light { background: #fff !important; padding: 0 !important; }
    .l7-app-wrap { max-width: none !important; padding: 0 !important; }
    .l7-report-paper {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 16mm 13mm !important;
        margin: 0 !important;
    }
}
