/* Construction & MEP - Public site styles */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --dark: #1a1d21;
    --light: #f8f9fa;
    --header-height: 56px;
    --bg-body: #f0f2f5;
    --bg-section: #ffffff;
}

body {
    padding-top: 56px;
    background: var(--bg-body);
}
.main-content { min-height: calc(100vh - 56px - 180px); }

/* Section backgrounds - alternate for depth */
section.bg-white,
.py-5.bg-white { background: var(--bg-section) !important; }
section.bg-light,
.py-5.bg-light { background: #e8eaed !important; }

/* Hero slider */
.hero-slider { position: relative; height: 70vh; min-height: 400px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .overlay {
    position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-align: center; padding: 2rem;
}
.hero-slide .overlay h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-slide .overlay p { font-size: 1.1rem; margin-bottom: 0; }

.hero-dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 0.5rem; }
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); padding: 0; cursor: pointer;
}
.hero-dots button.active { background: #fff; }

/* Sections */
.section-title { font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); }
.card { border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* About Us - section boxes */
.about-section-box {
    background: var(--bg-section);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.about-section-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.15);
}
.about-section-box-inner {
    padding: 1.75rem 2rem;
    border-left: 4px solid var(--primary);
}
.about-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.about-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.about-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}
.about-section-box .about-content {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}
.about-section-box .about-content p { margin-bottom: 0.75rem; }
.about-section-box .about-content p:last-child { margin-bottom: 0; }
.about-section-box .about-content strong { color: var(--dark); }
@media (max-width: 576px) {
    .about-section-box-inner { padding: 1.25rem 1.25rem; }
    .about-section-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .about-section-title { font-size: 1.1rem; }
}

/* Accordion overrides */
.accordion-button:not(.collapsed) { background: var(--primary); color: #fff; }
.accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }

/* Project cards */
.project-card { height: 100%; }
.project-card .card-img-top { height: 200px; object-fit: cover; }
.badge-category { font-size: 0.75rem; }

/* Gallery grid */
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 0.5rem 0.75rem; font-size: 0.9rem; }

/* Lightbox */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox-backdrop.show { display: flex; }
.lightbox-backdrop img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; opacity: 0.9; }

/* Contact map */
.map-wrap { border-radius: 8px; overflow: hidden; }
.map-wrap iframe { display: block; }

/* Contact page - address box (left), form box (right), full-width map below */
.contact-address-box {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}
.contact-address-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}
.contact-address-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-address-item:last-child { margin-bottom: 0; }
.contact-address-icon {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-address-item a { color: inherit; text-decoration: none; }
.contact-address-item a:hover { color: var(--primary); }

.contact-form-box {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}
.contact-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.contact-map-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.contact-map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }
.contact-map-placeholder {
    background: #e8eaed;
    color: #6c757d;
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
}

/* Navbar active */
.navbar .nav-link.active { font-weight: 600; color: #fff !important; }

/* Admin panel */
.admin-sidebar { min-height: 100vh; }
.admin-sidebar .nav-link { color: rgba(255,255,255,0.8); }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .hero-slider { height: 50vh; min-height: 300px; }
}
