:root {
    --mcgh-navy: #0f1b2d;
    --mcgh-charcoal: #1a2332;
    --mcgh-grey: #5c6778;
    --mcgh-light: #f4f6f8;
    --mcgh-yellow: #f5b800;
    --mcgh-orange: #e87722;
    --mcgh-white: #ffffff;
    --mcgh-slate: #2d3748;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--mcgh-slate);
    background: var(--mcgh-white);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.02em;
}

.top-bar {
    background: var(--mcgh-navy);
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.top-bar-link:hover {
    color: var(--mcgh-yellow);
}

.site-navbar {
    background: var(--mcgh-charcoal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand .site-logo {
    height: 42px;
    width: auto;
}

.navbar-brand .brand-accent {
    color: var(--mcgh-yellow);
    font-size: 1.5rem;
}

.navbar-brand .brand-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--mcgh-yellow) !important;
}

.btn-accent {
    background: var(--mcgh-yellow);
    border-color: var(--mcgh-yellow);
    color: var(--mcgh-navy);
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--mcgh-orange);
    border-color: var(--mcgh-orange);
    color: var(--mcgh-navy);
}

.hero-section {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: var(--mcgh-white);
    overflow: hidden;
}

.hero-section .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-section .hero-slide.active {
    opacity: 1;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.92), rgba(26, 35, 50, 0.78));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    max-width: 760px;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mcgh-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--mcgh-grey);
    max-width: 720px;
}

.service-card,
.product-card,
.project-card,
.gallery-card {
    background: var(--mcgh-white);
    border: 1px solid rgba(15, 27, 45, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.product-card:hover,
.project-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 27, 45, 0.12);
}

.card-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #243247, #101722);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image .cover-image,
.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero-image {
    background-size: cover;
    background-position: center;
}

.gallery-card {
    cursor: pointer;
}

.gallery-card {
    cursor: pointer;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-filter-btn {
    border: 1px solid rgba(15, 27, 45, 0.15);
    background: var(--mcgh-white);
    color: var(--mcgh-navy);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--mcgh-yellow);
    border-color: var(--mcgh-yellow);
    color: var(--mcgh-navy);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(1200px, 100%);
    max-height: 90vh;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    border: none;
    background: transparent;
}

.card-body {
    padding: 1.25rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 184, 0, 0.15);
    color: var(--mcgh-orange);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.normet-highlight {
    background: linear-gradient(135deg, var(--mcgh-navy), #16263d);
    color: var(--mcgh-white);
}

.why-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--mcgh-light);
    height: 100%;
}

.page-hero {
    background: linear-gradient(135deg, var(--mcgh-navy), var(--mcgh-charcoal));
    color: var(--mcgh-white);
    padding: 4.5rem 0 3.5rem;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--mcgh-charcoal), var(--mcgh-navy));
}

.site-footer {
    background: #0b1320;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--mcgh-yellow);
}

.badge-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-layout {
    min-height: 100vh;
    background: #eef1f5;
}

.admin-sidebar {
    min-height: 100vh;
    background: var(--mcgh-navy);
    color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    background: rgba(245, 184, 0, 0.15);
    color: var(--mcgh-yellow);
}

.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}

.login-card {
    max-width: 420px;
    margin: 0 auto;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 27, 45, 0.12);
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 62vh;
    }

    .section-padding {
        padding: 3.5rem 0;
    }
}
