* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #111;
}

a {
    text-decoration: none;
}

/* HEADER */

.top-header {
    width: 100%;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    width: 100%;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-menu a {
    background: #990000;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(153,0,0,0.16);
}

.nav-menu a:hover {
    background: #700000;
}

.phone-btn {
    font-size: 2rem !important;
    padding: 20px 55px !important;
    border-radius: 0 0 18px 18px !important;
    position: absolute;
    left: 0;
    top: 0;
}

/* HERO */

.hero {
    position: relative;
    min-height: 100vh;

    background-image: url("dynamic-empire-background.png");
    background-size: cover;
    background-repeat: no-repeat;

    /* This line enables scrolling effect */
    background-position: center var(--hero-bg-y, 0px);

    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-content h3 {
    color: #990000;
    font-size: 28px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 110px;
    line-height: 0.9;
    color: #111;
    text-shadow: 0 4px 12px rgba(0,0,0,0.18);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
}

/* BUTTONS */

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 8px;
    font-weight: 800;
    transition: 0.3s ease;
}

.red {
    background: #990000;
    color: #fff;
}

.red:hover {
    background: #700000;
}

.dark {
    background: #111;
    color: #fff;
}

.dark:hover {
    background: #333;
}

/* CERTIFICATIONS */

.certifications-bar {
    background: #fff;
    padding: 60px 6%;
    border-top: 3px solid #990000;
    border-bottom: 3px solid #990000;
}

.certifications-bar h2 {
    color: #990000;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 35px;
}

.sam-info {
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 25px;
    background: #fff;
    border-left: 6px solid #990000;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.sam-info h3 {
    color: #990000;
}

.sam-info p {
    color: #333;
}

.cert-bar-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border-left: 4px solid #990000;
}

.cert-bar-card {
    background: #fff;
    padding: 28px 28px 28px 55px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cert-bar-card::before {
    content: "✓";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #990000;
    font-size: 1.5rem;
    font-weight: 900;
}

.cert-bar-card h3 {
    margin-bottom: 8px;
    color: #111;
}

.cert-bar-card p {
    color: #555;
    line-height: 1.5;
}

.cert-bar-card strong {
    color: #990000;
}

/* WHY CHOOSE US */

.why-us {
    background: #fafafa;
    padding: 70px 6%;
}

.why-us h2 {
    color: #990000;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 22px;
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    color: #444;
    font-size: 1.15rem;
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.why-card {
    background: #fff;
    padding: 34px 26px;
    border-radius: 14px;
    border-top: 6px solid #990000;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.why-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.why-card h3 {
    color: #990000;
    margin-bottom: 12px;
}

.why-card p {
    color: #444;
    line-height: 1.6;
}

/* ABOUT / SERVICES / CAREER / CONTACT SHARED HERO */

.about-hero,
.services-hero,
.career-hero,
.contact-hero,
.capability-hero {
    position: relative;
    min-height: 60vh;
    background: url("dynamic-empire-background.png") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
}

.about-hero::after,
.services-hero::after,
.career-hero::after,
.contact-hero::after,
.capability-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    z-index: 1;
}

.about-content,
.services-hero-content,
.career-content,
.contact-hero-content,
.capability-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.about-content h4,
.services-hero-content h4,
.career-content h4,
.contact-hero-content h4,
.capability-content h4 {
    color: #990000;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-content h1,
.services-hero-content h1,
.career-content h1,
.contact-hero-content h1,
.capability-content h1 {
    font-size: 3rem;
    color: #111;
    margin-bottom: 18px;
}

.about-content p,
.services-hero-content p,
.career-content p,
.contact-hero-content p,
.capability-content p {
    font-size: 1.2rem;
    color: #333;
}

/* PAGE SECTIONS */

.about-section,
.services-intro,
.services-list,
.service-details,
.career-section,
.apply-section,
.contact-section,
.capability-section {
    padding: 60px 6%;
    background: #faf9f7;
}

.about-grid,
.services-grid,
.career-grid,
.capability-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card,
.service-card,
.career-card,
.contact-card,
.capability-card,
.detail-box {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    border-top: 6px solid #990000;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    color: #333;
}

.about-card h2,
.service-card h3,
.career-card h3,
.contact-card h2,
.capability-card h2,
.detail-box h2 {
    color: #990000;
    margin-bottom: 14px;
}

.about-card p,
.service-card p,
.career-card p,
.contact-card p,
.capability-card p,
.detail-box p {
    color: #444;
    line-height: 1.6;
}

.service-card {
    display: block;
    text-decoration: none;
}

.service-card:hover,
.career-card:hover,
.about-card:hover,
.capability-card:hover {
    transform: translateY(-4px);
    transition: 0.2s ease;
}

.services-list h2,
.services-intro h2,
.career-section h2,
.apply-section h2 {
    text-align: center;
    color: #990000;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* CTA */

.service-cta,
.about-cta {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 55px 6%;
}

.service-cta h2,
.about-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.service-cta p,
.about-cta p {
    font-size: 1.15rem;
    margin-bottom: 26px;
}

.service-cta a,
.about-cta a {
    background: #990000;
    color: #fff;
    padding: 16px 34px;
    border-radius: 8px;
    font-weight: 800;
}

/* FORMS */

.career-form,
.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.career-form input,
.career-form textarea,
.contact-card input,
.contact-card textarea {
    padding: 13px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.career-form button,
.contact-card button {
    background: #990000;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.career-form button:hover,
.contact-card button:hover {
    background: #700000;
}

/* CAPABILITY BUTTONS */

.capability-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.capability-btn {
    background: #990000;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-block;
}

.capability-btn.secondary {
    background: #fff;
    color: #990000;
    border: 2px solid #990000;
}

/* COOKIE POPUP */

.cookie-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #fff;
    max-width: 360px;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    z-index: 9999;
    border-top: 6px solid #990000;
}

.cookie-content h3 {
    color: #990000;
    margin-bottom: 10px;
}

.cookie-content p {
    color: #444;
    line-height: 1.5;
    margin-bottom: 18px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    background: #990000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.cookie-buttons .decline {
    background: #111;
}

/* FOOTER */

.site-footer,
.footer,
.enhanced-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 30px 6%;
}

.footer-bottom a,
.site-footer a {
    color: #fff;
    margin: 0 12px;
}

/* MOBILE */

@media (max-width: 900px) {
    .navbar {
        padding: 14px 4%;
    }

    .nav-menu {
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 9px 16px;
    }

    .phone-btn {
        position: static;
        font-size: 1.1rem !important;
        padding: 10px 18px !important;
        border-radius: 22px !important;
    }

    .hero {
        background-size: contain;
        padding-top: 160px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-content h3 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .sam-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .cert-bar-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-top: 4px solid #990000;
    }

    .about-content h1,
    .services-hero-content h1,
    .career-content h1,
    .contact-hero-content h1,
    .capability-content h1 {
        font-size: 2rem;
    }

    .cookie-popup {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

}
    
.footer h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: white;
}

.footer p {
    margin: 8px 0;
    color: #ddd;
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}