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

:root {
    --navy: #0B1F3A;
    --charcoal: #2B2F36;
    --gold: #D4AF37;
    --gold-dark: #b8962e;
    --white: #ffffff;
    --light: #f4f5f7;
    --deep-blue-text: #0B1F3A;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--deep-blue-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.img-fluid{
    width: 100%;
    height: auto;
    display: block;
}

/* ── Header ── */
#header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.35s ease;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: justify-content 0.35s ease;
}

/* Scrolled state: logo visible, menu on right */
#header.scrolled .navbar {
    justify-content: space-between;
}

.logo {
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

#header.scrolled .logo {
    max-width: 120px;
    opacity: 1;
    pointer-events: auto;
}

.logo img { height: 90px; width: auto; }

/* Nav menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    transition: gap 0.35s ease;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    position: relative;
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-left: 5px;
    flex-shrink: 0;
}

.has-dropdown:hover > a::after {
    transform: rotate(225deg) translateY(-2px);
    border-color: var(--gold);
}

.nav-menu > li:hover > a,
.nav-menu > li > a.active {
    color: var(--gold);
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 220px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    list-style: none;
    z-index: 999;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 11px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* ── Hero Section ── */
.hero {
    background: #99a3b1;
    padding: 60px 0 70px;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-content { width: 100%; }

.hero-services-layout {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

/* Pill boxes */
.service-box {
    background: var(--white);
    border-radius: 50px;
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.service-box:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(201,168,76,0.5), 0 2px 8px rgba(0,0,0,0.08);
}

.service-box-inner {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sb-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8e7, #fef0c0);
    border: 1.5px solid rgba(201,168,76,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.sb-icon i {
    font-size: 18px;
    color: var(--gold-dark);
}

.service-box:hover .sb-icon {
    box-shadow: 0 0 14px rgba(201,168,76,0.8);
}

.service-box-inner span {
    font-size: 13.5px;
    font-weight: bold;
    line-height: 1.45;
    color: var(--charcoal);
}

.service-box-inner span strong {
    color: var(--navy);
    font-weight: 700;
}

/* Staggered slide-in — all finish within 3s */
.left-1  { grid-column: 1; grid-row: 1; animation: slideFromLeft  0.55s ease-out 0.1s both; }
.left-2  { grid-column: 1; grid-row: 2; animation: slideFromLeft  0.55s ease-out 0.5s both; }
.left-3  { grid-column: 1; grid-row: 3; animation: slideFromLeft  0.55s ease-out 0.9s both; }
.right-1 { grid-column: 3; grid-row: 1; animation: slideFromRight 0.55s ease-out 0.3s both; }
.right-2 { grid-column: 3; grid-row: 2; animation: slideFromRight 0.55s ease-out 0.7s both; }
.right-3 { grid-column: 3; grid-row: 3; animation: slideFromRight 0.55s ease-out 1.1s both; }

/* Center logo */
.hero-center {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.7s ease-out 0.2s both;
    margin-top: 16px;
}

.hero-logo-img {
    width: 240px;
    height: auto;
    object-fit: contain;
}

.hero-firm-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--navy);
    text-align: center;
    margin-top: 4px;
}

.hero-tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    text-align: center;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
}

.btn-light:hover { background: var(--light); }

/* ── Section Header ── */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 10px;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 15px;
}

.section-header p {
    color: var(--charcoal);
    font-size: 18px;
}

/* ── About Us Section ── */
.about-section {
    padding: 80px 0;
    background: var(--navy);
}

.about-section .section-header h2 {
    font-size: 28px;
    color: var(--white);
    line-height: 1.35;
}

.about-section .divider {
    background: var(--gold);
}

.about-section .about-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
    margin-top: -4px;
}

.about-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: rgba(255,255,255,0.85);
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-content p:last-child { margin-bottom: 0; }

/* ── Why Choose Us ── */
.why-section {
    padding: 80px 0;
    background: #f7f8fa;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.why-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1.5px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(201,168,76,0.22), 0 2px 8px rgba(0,0,0,0.08);
    border-color: rgba(201,168,76,0.4);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: box-shadow 0.3s ease;
}

.why-card:hover .why-icon {
    box-shadow: 0 0 20px rgba(201,168,76,0.7);
}

.why-icon i {
    font-size: 30px;
    color: var(--gold);
}

.why-card h3 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--charcoal);
    font-size: 13.5px;
    line-height: 1.7;
}

.why-trust {
    background: var(--navy);
    border-radius: 10px;
    padding: 28px 40px;
    text-align: center;
    border-left: 5px solid var(--gold);
}

.why-trust p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
}

/* ── Corporate Film ── */
.corporate-film-section {
    padding: 80px 0;
    background: var(--white);
}

.film-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.film-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 3px solid var(--gold);
}

.film-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* ── Our Services Section ── */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    position: relative;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,31,68,0.45) 0%, rgba(10,31,68,0.75) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(10,31,68,0.82) 0%, rgba(10,31,68,0.95) 100%);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.service-card-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
}

/* Title shown by default */
.service-title {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 8px;
}

.service-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
}

/* Description hidden by default, shown on hover */
.service-desc {
    position: absolute;
    inset: 0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-desc h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1.35;
}

.service-desc p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.9);
    line-height: 1.75;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,0.4);
    padding-bottom: 2px;
    transition: gap 0.2s ease;
}

.service-link:hover { gap: 12px; }

.service-card:hover .service-title {
    opacity: 0;
    transform: translateY(-10px);
}

.service-card:hover .service-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ── Announcements / Downloads ── */
.announcements-section {
    padding: 80px 0;
    background: var(--light);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.announcements-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.announcements-table thead {
    background: var(--navy);
    color: var(--white);
}

.announcements-table th,
.announcements-table td {
    padding: 15px;
    text-align: left;
    color: var(--deep-blue-text);
}

.announcements-table td:last-child{
    text-align: left;
}

.announcements-table thead th { color: var(--white); }

.announcements-table tbody tr {
    border-bottom: 1px solid var(--light);
    transition: background 0.3s;
}

.announcements-table tbody tr:hover { background: #eef1f7; }

.download-btn {
    color: var(--white);
    background-color: var(--navy);
    font-size: 15px;
    transition: color 0.3s;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
}

.download-btn:hover { color: var(--white); }

.text-center { text-align: center; margin-top: 30px; }

/* ── Footer ── */
.footer {
    background: #162d52;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-brand .footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 15px;
    mix-blend-mode: lighten;
    filter: brightness(1.1);
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 14px;
}

.footer-col h4 {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--gold); }

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.contact-list i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--gold);
    min-width: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s, border-color 0.3s;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ── Animations ── */
@keyframes fadeInFloat {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-150px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(150px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(100vh); opacity: 0; }
    10%       { opacity: 1; }
    90%       { opacity: 1; }
    100%      { transform: translateY(-100px) translateX(60px); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 0.3; }
    50%       { transform: scale(1.1); opacity: 0.5; }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active { left: 0; }

    .nav-menu > li > a { padding: 12px 24px; }

    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: var(--light);
    }

    .dropdown li a { color: var(--navy); padding: 10px 36px; }

    .has-dropdown.open .dropdown { display: block; }

    .why-grid { grid-template-columns: 1fr; }

    .why-trust { padding: 22px 20px; border-left: none; border-top: 4px solid var(--gold); }

    .services-grid { grid-template-columns: 1fr; }

    .service-card { height: 320px; }

    .hero-services-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-center { grid-column: 1; grid-row: auto; order: -1; }

    .hero-logo-img { width: 200px; }

    .left-1, .left-2, .left-3,
    .right-1, .right-2, .right-3 { grid-column: 1; grid-row: auto; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer { padding: 40px 0 20px; }

    .footer-col h4 { margin-bottom: 12px; }
}
