/* =========================================
   CSS Variables & Strict Color Rules
   - Pure Black: #000000
   - Pure White: #ffffff
   - Brand Blue: #005B96 & #00A8E8
   - Soft Tint Surface: #F0F8FF
   ========================================= */
:root {
    --black: #000000;
    --white: #ffffff;
    --primary-blue: #005B96;
    --accent-cyan: #00A8E8;
    --surface-tint: #F0F8FF;
    --radius-sm: 10px;
    --radius-lg: 15px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================================
   Buttons (10px Border Radius)
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
}

/* =========================================
   Header & Mobile Navigation
   ========================================= */
.site-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--surface-tint);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.brand-logo {
    font-size: 1.45rem;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.brand-logo span {
    color: var(--accent-cyan);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.75rem;
    height: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--black);
    border-radius: 2px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem 1.25rem;
    border-bottom: 2px solid var(--primary-blue);
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--black);
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.main-nav .nav-cta {
    color: var(--white);
    width: 100%;
}

/* =========================================
   Hero Section (Video BG + Image Fallback)
   ========================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4.5rem 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 3, 3, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
}

.badge {
    display: inline-block;
    background-color: var(--accent-cyan);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-section p {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    color: var(--white);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.85rem;
}

.hero-actions .btn {
    width: 75%;
    max-width: 420px;
}

/* =========================================
   Sections & About Us
   ========================================= */
.section {
    padding: 3.5rem 0;
}

.section-tag {
    display: inline-block;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-text .btn {
    margin-top: 0.5rem;
}

.about-image img,
.image-placeholder {
    width: 100%;
    height: 38rem;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.image-placeholder {
    background-color: var(--surface-tint);
    border: 2px dashed var(--primary-blue);
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

/* =========================================
   Why Choose Us (2 Cards Per Row on Mobile)
   ========================================= */
.why-section {
    background-color: var(--surface-tint);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2.25rem auto;
}

.section-header h2 {
    font-size: 1.65rem;
    margin-bottom: 0.65rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Strict 2 cards per row on mobile */
    gap: 0.85rem;
}

.feature-card {
    background-color: var(--white);
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid #D6ECFA;
    display: flex;
    flex-direction: column;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: var(--black);
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--black);
}

.center-cta {
    text-align: center;
    margin-top: 2.25rem;
}

/* =========================================
   CTA Banner (Image BG + Overlay)
   ========================================= */
.cta-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 5.5rem 0;
    min-height: 22rem;
    display: flex;
    align-items: center;
    text-align: center;
}

.cta-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 60, 100, 0.85) 0%, rgba(0, 0, 0, 0.72) 100%);
    z-index: 1;
}

.cta-banner-inner {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--white);
}

.cta-banner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

/* =========================================
   Full-Width Gallery Carousel (2 on mobile, 4 on desktop)
   ========================================= */
.gallery-section {
    background-color: var(--white);
    padding: 0 0 1.25rem 0;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 22rem;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 50%; /* 2 slides per row on mobile */
    height: 22rem; /* Matches CTA mobile min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    max-width: 31.25rem; /* 500px equivalent at 16px base */
    height: 100%;
    max-height: 31.25rem; /* 500px equivalent at 16px base */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center; /* Keeps people's heads/faces framed cleanly */
    border-radius: var(--radius-sm);
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--white);
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}

.gallery-arrow:hover {
    background-color: var(--primary-blue);
}

.gallery-prev {
    left: 0.75rem;
}

.gallery-next {
    right: 0.75rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.gallery-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background-color: #CCCCCC;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.gallery-dot.active {
    background-color: var(--black);
    transform: scale(1.25);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: 3.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    display: inline-block;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.footer-col h3 {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.95rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.contact-list a:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--white);
    color: var(--black);
    border-radius: var(--radius-sm);
}

.social-icon-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================
   Tablet & Desktop Breakpoints
   ========================================= */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        width: auto;
        padding: 0;
        border: none;
    }

    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
    }

    .main-nav .nav-cta {
        width: auto;
    }

    .hero-section {
        padding: 5.5rem 0;
    }

    .hero-section h1 {
        font-size: 2.75rem;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .hero-actions .btn {
        width: auto;
        flex: 0 1 auto;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-image img,
    .image-placeholder {
        height: 34rem;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1.2fr 1fr;
        gap: 2.5rem;
    }

    .gallery-track {
        min-height: 28rem; /* Matches CTA desktop min-height */
    }

    .gallery-slide {
        flex: 0 0 25%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .project-media-card {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================
   Services Page Styles
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003B66 100%);
    color: var(--white);
    padding: 3.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.65rem;
    color: var(--white);
}

.page-header p {
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
    color: var(--white);
}

.alt-bg {
    background-color: var(--surface-tint);
}

.service-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile */
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem 0;
}

.mini-card {
    background-color: var(--surface-tint);
    border: 1.5px solid #D6ECFA;
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alt-bg .mini-card {
    background-color: var(--white);
}

.mini-card strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.mini-card span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--black);
}

/* =========================================
   Projects Gallery (2 Per Row, Rounded)
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.project-media-card {
    background-color: var(--surface-tint);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.project-media-card img,
.project-media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    display: block;
}

/* =========================================
   Blog Grid (2 Cards Per Row) & Article View
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid #E5E5E5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.blog-card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.blog-category {
    color: var(--primary-blue);
    font-weight: 700;
}

.blog-read-time {
    color: var(--black);
}

.blog-card-body h2 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.blog-card-body h2 a {
    color: var(--black);
}

.blog-card-body h2 a:hover {
    color: var(--primary-blue);
}

.blog-card-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-outline-dark {
    background-color: var(--white);
    color: var(--black);
    border: 1.5px solid var(--black);
}

.btn-outline-dark:hover {
    background-color: var(--black);
    color: var(--white);
}

.article-container {
    max-width: 52rem;
}

.article-cover {
    width: 100%;
    max-height: 28rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.article-content h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--primary-blue);
}

.article-list {
    margin: 0.5rem 0 1.25rem 1.25rem;
    padding: 0;
    list-style-type: disc;
}

.article-list li {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0.65rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

.article-cta-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--surface-tint);
    border: 1.5px solid #D6ECFA;
}

.article-cta-box h3 {
    margin-bottom: 0.5rem;
}

.article-cta-box p {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-body h2 {
        font-size: 1.2rem;
    }
}