/* ============================================
   WEE-COM — Portfolio & Specifications additions
   Plugs into the existing theme (style.css).
   Reuses var(--primary-blue) / var(--bg-light)
   already defined there.
   ============================================ */

/* ---------- Shared section eyebrow ---------- */
.section-eyebrow {
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(0, 51, 102, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* ---------- Gallery filters ---------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.gallery-filter-btn {
    border: 1.5px solid rgba(0, 51, 102, 0.2);
    background: #fff;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.gallery-filter-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 51, 102, 0.06);
}

.gallery-filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.25);
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    background: #e9edf2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 25, 51, 0.85) 0%, rgba(0, 25, 51, 0.05) 55%, rgba(0, 25, 51, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .cat-tag {
    color: #cfe0f5;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-overlay h6 {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.gallery-expand-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-expand-icon {
    opacity: 1;
    transform: translateY(0);
}

.gallery-add-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 51, 102, 0.25);
    border-radius: 14px;
    color: var(--primary-blue);
    text-align: center;
    padding: 20px;
    background: rgba(0, 51, 102, 0.03);
}

.gallery-add-more i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.gallery-add-more span {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
}

@media (max-width: 991px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 575px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Lightbox modal ---------- */
#galleryLightbox .modal-content {
    background: #0b1c33;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}
#galleryLightbox .modal-body {
    padding: 0;
    position: relative;
}
#galleryLightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #0b1c33;
}
#galleryLightbox .lightbox-caption {
    padding: 18px 24px 22px;
    color: #fff;
}
#galleryLightbox .lightbox-caption .cat-tag {
    color: #7ea8db;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}
#galleryLightbox .btn-close {
    filter: invert(1);
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background-color: rgba(0,0,0,0.35);
    border-radius: 50%;
    padding: 8px;
    opacity: 1;
}

/* ---------- Specifications section ---------- */
.spec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    border: none;
    margin-bottom: 2.5rem;
}

.spec-tabs .nav-link {
    border: 1.5px solid rgba(0, 51, 102, 0.15);
    border-radius: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    transition: all 0.25s ease;
}

.spec-tabs .nav-link i {
    font-size: 1rem;
}

.spec-tabs .nav-link:hover {
    background: rgba(0, 51, 102, 0.05);
}

.spec-tabs .nav-link.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.25);
}

.spec-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 20, 50, 0.07);
    padding: 2.5rem;
}

.spec-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.spec-panel-header h4 {
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 4px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 14px 10px;
    vertical-align: top;
}

.spec-table td:first-child {
    width: 38%;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

.spec-table td:last-child {
    color: #55606e;
    font-size: 0.92rem;
}

.spec-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(0, 51, 102, 0.04);
    border-left: 3px solid var(--primary-blue);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #4a5560;
}

.spec-note i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* ---------- Manuals & Guides section ---------- */
.manual-intro-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #00509e 100%);
    border-radius: 20px;
    padding: 2.2rem 2.5rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.manual-intro-card .manual-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.manual-intro-card h3 {
    font-weight: 800;
    margin-bottom: 6px;
}

.manual-intro-card p {
    opacity: 0.85;
    margin-bottom: 0;
    max-width: 520px;
}

.manual-download-btn {
    background: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.manual-download-btn:hover {
    transform: translateY(-2px);
    color: var(--primary-blue);
}

.manual-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.75rem;
}

.manual-group-title .badge-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.manual-group-title h4 {
    color: var(--primary-blue);
    font-weight: 800;
    margin: 0;
}

.manual-group-title span {
    color: #7a8794;
    font-size: 0.85rem;
}

.manual-step {
    display: flex;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.manual-step:last-child {
    border-bottom: none;
}

.manual-step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary-blue);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manual-step-body {
    flex: 1;
    min-width: 0;
}

.manual-step-body h6 {
    color: #16233a;
    font-weight: 700;
    margin-bottom: 6px;
}

.manual-step-body p {
    color: #55606e;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.manual-step-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.manual-step-images figure {
    margin: 0;
    width: 130px;
}

.manual-step-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 51, 102, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease;
    display: block;
}

.manual-step-images img:hover {
    transform: scale(1.04);
}

.manual-step-images figcaption {
    font-size: 0.72rem;
    color: #7a8794;
    text-align: center;
    margin-top: 5px;
}

.manual-notes {
    background: rgba(0, 51, 102, 0.04);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 8px;
}

.manual-notes h6 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.manual-notes ul {
    margin: 0;
    padding-left: 1.1rem;
}

.manual-notes li {
    color: #55606e;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.manual-coming-soon {
    border: 2px dashed rgba(0, 51, 102, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    color: var(--primary-blue);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.manual-coming-soon i {
    font-size: 1.6rem;
    opacity: 0.5;
    margin-bottom: 8px;
}

.manual-coming-soon span {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .manual-intro-card { padding: 1.8rem; }
    .manual-step { flex-direction: column; gap: 12px; }
}

/* ---------- General polish for existing cards ---------- */
.service-img-container {
    overflow: hidden;
}
.service-img-container img {
    transition: transform 0.5s ease;
}
.service-card:hover .service-img-container img {
    transform: scale(1.06);
}
