﻿:root {
    --bg: #e9eceb;
    --ink: #0f2431;
    --muted: #4c6270;
    --brand: #008445;
    --brand-strong: #005f32;
    --navy: #062a3f;
    --card: #ffffff;
    --line: #ccd6dc;
    --shadow: 0 24px 60px rgba(6, 42, 63, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(165deg, #f4f7f6 0%, #e9eceb 42%, #f8fbfa 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 16%, rgba(0, 132, 69, 0.16) 0%, transparent 35%),
        radial-gradient(circle at 88% 84%, rgba(6, 42, 63, 0.14) 0%, transparent 32%);
    z-index: -2;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(204, 214, 220, 0.6);
    background: rgba(248, 251, 250, 0.78);
    backdrop-filter: blur(10px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.services-menu {
    position: relative;
}

.services-trigger {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.services-trigger::after {
    content: " \25BE";
    font-size: 0.78em;
    margin-left: 4px;
}

.services-menu.is-open .services-trigger::after {
    content: " \25B4";
}

.services-flyout {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    max-width: min(92vw, 340px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(6, 42, 63, 0.16);
    padding: 10px;
    display: none;
    gap: 4px;
    z-index: 60;
}

.services-menu.is-open .services-flyout {
    display: grid;
}

.services-flyout a {
    display: block;
    text-decoration: none;
    color: #294758;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
}

.services-flyout a:hover {
    background: #f2f7f9;
    color: var(--navy);
}

.btn {
    text-decoration: none;
    border-radius: 9999px;
    padding: 11px 18px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 42, 63, 0.2);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 58%, var(--navy) 100%);
}

.btn-secondary {
    color: var(--navy);
    background: #fff;
    border-color: #9db0bb;
}

.btn-ghost {
    color: #e2edf3;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(226, 237, 243, 0.55);
}

.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #062a3f;
}

.hero-bg,
.hero-overlay,
.hero-content {
    grid-area: 1 / 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    animation: heroBgFade 24s infinite ease-in-out;
}

.hero-bg-slide.slide-a {
    background-image: url("Image/home-1.jpg");
    background-position: center 42%;
    animation-delay: 0s;
}

.hero-bg-slide.slide-b {
    background-image: url("Image/home-2.jpg");
    background-position: center 46%;
    animation-delay: 8s;
}

.hero-bg-slide.slide-c {
    background-image: url("Image/home-3.jpg");
    background-position: center 40%;
    animation-delay: 16s;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, rgba(6, 42, 63, 0.9) 0%, rgba(6, 42, 63, 0.74) 47%, rgba(0, 95, 50, 0.68) 100%),
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.14) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #eef8f5;
    padding: 70px 0;
}

.eyebrow,
.section-tag {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.78rem;
    color: #8ef2bc;
}

h1,
h2,
h3 {
    font-family: "Outfit", sans-serif;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.2rem, 4.8vw, 4.8rem);
    margin-top: 12px;
    max-width: 14ch;
}

.hero-lead {
    margin-top: 16px;
    max-width: 40ch;
    color: #c9dfd7;
    font-size: 0.92rem;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-lead {
    opacity: 0;
    transform: translateY(16px);
    animation: heroTextIn 1s ease forwards;
}

.hero-content .eyebrow {
    animation-delay: 0.25s;
}

.hero-content h1 {
    animation-delay: 0.55s;
}

.hero-content .hero-lead {
    animation-delay: 0.9s;
}

.section {
    padding: 76px 0;
}

.section h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    margin: 10px 0 16px;
    color: var(--ink);
}

.section p {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: stretch;
}

.inline-cards {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.inline-cards article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 36, 49, 0.08);
}

.inline-cards strong {
    display: block;
    color: var(--navy);
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
}

.art-panel {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #0a2030 0%, #005f32 100%);
    box-shadow: var(--shadow);
    min-height: 380px;
}

.services {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(235, 241, 239, 0.7) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 36, 49, 0.08);
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 92px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 36, 49, 0.14);
    background: #f7fbfa;
}

.team .intro {
    max-width: 68ch;
}

.team-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.member {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 16px;
}

.member-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-head > div {
    min-width: 0;
}

.member-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 56px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(6, 42, 63, 0.15);
}

.member h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.member p {
    color: #2f5565;
    font-weight: 600;
}

.member.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f2fbf6 100%);
    border-color: #8bc9ac;
}

.certifications {
    background: linear-gradient(180deg, #0a2436 0%, #071f2e 100%);
}

.certifications .section-tag,
.certifications h2 {
    color: #eef8f5;
}

.cert-badges {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cert-badges img {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 1 / 1;
    justify-self: start;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 223, 235, 0.24);
    border-radius: 14px;
    padding: 10px;
}

.cert-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cert-grid article {
    border: 1px solid rgba(201, 223, 235, 0.22);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
}

.cert-grid h3 {
    color: #f5fcfa;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.cert-grid p {
    color: #bdd0d8;
}

.project-list {
    margin-top: 14px;
    padding-left: 20px;
    color: var(--muted);
}

.project-list li {
    margin-bottom: 10px;
}

.client-chips {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-chips span {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 7px 11px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #244353;
}

.process-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.process-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.process-grid strong {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--navy));
    color: #fff;
    margin-bottom: 8px;
}

.vm {
    background: linear-gradient(180deg, #f6faf9 0%, #eef5f2 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vm-card {
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 22px;
}

.vm-copy {
    margin-top: 8px;
    max-height: 7.2em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease;
}

.vm-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    pointer-events: none;
}

.vm-card.is-expanded .vm-copy {
    max-height: 44em;
}

.vm-card.is-expanded .vm-copy::after {
    display: none;
}

.vm-toggle-btn {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #eef8f5;
    padding: 8px 13px;
    font-weight: 700;
    font-size: 0.83rem;
    cursor: pointer;
}

.vm-card h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.vm-card.vision {
    background: linear-gradient(145deg, #082335 0%, #0a415b 100%);
}

.vm-card.vision h2,
.vm-card.vision p {
    color: #e8f4f8;
}

.vm-card.vision .section-tag {
    color: #8ed7ff;
}

.vm-card.vision .vm-copy::after {
    background: linear-gradient(180deg, rgba(10, 65, 91, 0) 0%, rgba(10, 65, 91, 1) 100%);
}

.vm-card.mission {
    background: linear-gradient(145deg, #005f32 0%, #0c3b2a 100%);
}

.vm-card.mission h2,
.vm-card.mission p {
    color: #ebf7f1;
}

.vm-card.mission .section-tag {
    color: #aff2ca;
}

.vm-card.mission .vm-copy::after {
    background: linear-gradient(180deg, rgba(12, 59, 42, 0) 0%, rgba(12, 59, 42, 1) 100%);
}

.why-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.why-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.why-grid h3 {
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.contact {
    padding-bottom: 84px;
}

.contact-box {
    background: linear-gradient(120deg, #0a2738 0%, #0a3f58 64%, #015e34 100%);
    border: 1px solid rgba(196, 223, 232, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    box-shadow: var(--shadow);
}

.contact-box h2,
.contact-box .section-tag,
.contact-box p,
.contact-lines {
    color: #e9f6f4;
}

.contact-lines {
    overflow-wrap: anywhere;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.contact-actions .btn {
    text-align: center;
}

.footer {
    border-top: 1px solid var(--line);
    background: #f4f8f7;
    padding: 20px 0;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-wrap p {
    font-weight: 600;
    color: #38525f;
}

@keyframes heroBgFade {
    0% {
        opacity: 1;
        transform: scale(1.08) translateX(0);
    }
    28% {
        opacity: 1;
    }
    36% {
        opacity: 0;
        transform: scale(1.02) translateX(-1.5%);
    }
    100% {
        opacity: 0;
        transform: scale(1.08) translateX(0);
    }
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .nav {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow: visible;
        padding-bottom: 6px;
    }

    .hero {
        min-height: 74vh;
    }

    .split,
    .vm-grid,
    .contact-box,
    .service-grid,
    .team-grid,
    .cert-badges,
    .cert-grid,
    .process-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(1180px, 94%);
    }

    .nav {
        gap: 8px;
        align-items: stretch;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .nav-links {
        display: flex !important;
        order: 2;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 2px 0 6px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links > a,
    .services-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        padding: 7px 10px;
        border: 1px solid rgba(157, 176, 187, 0.75);
        border-radius: 999px;
        background: #fff;
        line-height: 1.1;
        flex: 0 0 auto;
    }

    .services-menu {
        flex: 0 0 auto;
    }

    .services-flyout {
        position: fixed;
        left: 50%;
        top: 112px;
        min-width: 0;
        width: min(90vw, 320px);
        max-height: 65vh;
        overflow: auto;
        transform: translateX(-50%);
    }

    .services-flyout a {
        border: 0;
        background: transparent;
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .header .btn {
        order: 3;
        width: auto;
        align-self: center;
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-content {
        padding: 54px 0;
    }

    h1 {
        font-size: clamp(1.9rem, 8.2vw, 2.7rem);
        max-width: 100%;
    }

    .hero-lead {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .service-card {
        min-height: 80px;
        padding: 16px;
    }

    .member {
        padding: 14px;
    }

    .member-head {
        align-items: flex-start;
    }

    .member h3 {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .vm-card,
    .contact-box {
        padding: 20px;
    }

    .contact-actions .btn,
    .header .btn {
        text-align: center;
    }

    .brand-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 6px;
    }

    .nav-links > a,
    .services-trigger {
        font-size: 0.84rem;
        padding: 6px 9px;
    }

    .header .btn {
        width: 100%;
    }

    .footer-wrap {
        justify-content: center;
        text-align: center;
    }
}
