/* LSO Frontend Shared Components */

/* Card Elevated */
.card-elevated {
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}
.card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Card Image Top */
.card-img-top {
    height: 240px;
    object-fit: cover;
}

/* Gallery Image */
.gallery-img {
    height: 260px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Utility Classes */
.heading-serif {
    font-family: 'Playfair Display', serif;
}
.bg-lso-light {
    background: var(--lso-bg-light) !important;
}
.text-accent {
    color: var(--lso-accent) !important;
}

/* Partner Logo */
.partner-logo {
    height: 60px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Page Hero */
.page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9,178,242,0.25), rgba(11,31,63,0.55));
}
.page-hero .container { position: relative; z-index: 1; }

/* Section Title */
.section-title {
    position: relative;
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
.section-title.text-center {
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--lso-brand);
    border-radius: 2px;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Stat Card */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s;
}
.stat-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--lso-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--lso-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-subtitle {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lso-brand);
    margin-bottom: 0.5rem;
}
.about-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 90%;
}
.about-images {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
}
.about-img-main {
    width: 92%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.about-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.about-img-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    border: 4px solid #fff;
}
.about-img-accent img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.about-badge {
    position: absolute;
    top: 2rem;
    left: 0;
    background: var(--lso-brand);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(9,178,242,0.35);
    z-index: 2;
}
.about-badge-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.about-badge-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
}
.about-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.about-feature-item i {
    font-size: 1.4rem;
    color: var(--lso-brand);
    flex-shrink: 0;
}
.about-feature-item span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lso-text);
    line-height: 1.3;
}

/* Logo Slider */
.logo-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}
.logo-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}
.logo-item {
    flex: 0 0 auto;
    padding: 0 1.5rem;
}
.logo-card {
    width: 160px;
    height: 90px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.logo-fallback {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lso-text-muted);
    text-align: center;
    line-height: 1.3;
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sector Cards (Grid) */
.sector-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sector-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.sector-icon {
    width: 64px;
    height: 64px;
    background: var(--lso-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: background 0.25s ease;
}
.sector-grid-card:hover .sector-icon {
    background: var(--lso-brand);
}
.sector-icon i {
    font-size: 1.8rem;
    color: var(--lso-brand);
    transition: color 0.25s ease;
}
.sector-grid-card:hover .sector-icon i {
    color: #fff;
}

/* Project Card */
.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.project-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-img-wrap img {
    transform: scale(1.05);
}
.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
/* Semantic Status Colors (used for badges and dots) */
:root {
    --status-active: #28a745;
    --status-completed: #6c757d;
    --status-upcoming: #ffc107;
}
.project-status.active { background: var(--status-active); color: #fff; }
.project-status.completed { background: var(--status-completed); color: #fff; }
.project-status.upcoming { background: var(--status-upcoming); color: var(--lso-primary); }
.status-dot-active { color: var(--status-active); }
.status-dot-completed { color: var(--status-completed); }
.status-dot-upcoming { color: var(--status-upcoming); }
.project-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lso-primary);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--lso-text-muted);
    background: var(--lso-bg-light);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.project-meta-item i {
    font-size: 0.85rem;
    color: var(--lso-brand);
}
.project-meta-item .meta-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lso-text-muted);
    margin-right: 0.25rem;
}
.project-date {
    font-size: 0.78rem;
    color: var(--lso-text-muted);
    margin-bottom: 0.5rem;
}
.project-desc {
    font-size: 0.85rem;
    color: var(--lso-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lso-brand);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.project-link:hover {
    gap: 0.6rem;
    color: var(--lso-primary);
}

/* Coverage Map */
#coverageMap {
    border: none !important;
    box-shadow: none !important;
    background: var(--lso-bg-light);
}
.leaflet-container { background: transparent !important; }
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Inter', sans-serif;
}
.leaflet-popup-content h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 4px;
}
.leaflet-control-zoom { border: none !important; }
.leaflet-control-zoom a {
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.leaflet-control-attribution {
    background: rgba(255,255,255,0.6) !important;
    font-size: 9px !important;
    border-radius: 4px;
}

/* Coverage Info */
.coverage-info { padding: 1rem 0; }
.coverage-province-card {
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.coverage-province-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.coverage-dot {
    width: 10px;
    height: 10px;
    background: var(--lso-brand);
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-card { width: 120px; height: 70px; }
    .logo-item { padding: 0 0.75rem; }
    .about-images { padding: 0.5rem 0 2.5rem 1rem; }
    .about-img-main { width: 95%; }
    .about-img-main img { height: 280px; }
    .about-img-accent { width: 48%; }
    .about-img-accent img { height: 150px; }
    .about-badge { top: 0.5rem; padding: 0.75rem 1rem; }
    .about-badge-number { font-size: 1.3rem; }
    .about-lead { max-width: 100%; }
    #coverageMap { height: 320px !important; }
}
