:root {
    --blue-900: #4a002c;
    --blue-800: #9e005d;
    --blue-700: #c00072;
    --blue-600: #d0007b;

    --blue-100: #fae5f1;
    --blue-050: #fff8fc;

    --white: #ffffff;
    --ink: #2f2f2f;
    --muted: #666666;

    --border: #dedede;

    --shadow:
        0 18px 45px rgba(148, 148, 148, 0.18);

    --container: 1180px;

    --header-height: 82px;
}


/* ================= RESET ================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--ink);
    background: var(--white);

    line-height: 1.65;

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

iframe {
    display: block;
    max-width: 100%;
}

main,
.site-header,
.site-footer {
    min-width: 0;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* ================= UTILITIES ================= */

.container {
    width: min(calc(100% - 48px),
            var(--container));

    margin-inline: auto;
}

.narrow {
    max-width: 860px;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.skip-link {
    position: fixed;

    top: -60px;
    left: 16px;

    z-index: 9999;

    padding: 10px 14px;

    background: white;
    color: var(--blue-900);

    border-radius: 6px;
}

.skip-link:focus {
    top: 16px;
}


/* ================= HEADER ================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: auto;

    z-index: 1000;

    color: white;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);

    color: var(--ink);

    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.07);
}

.nav-container {
    height: var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    line-height: 1.05;
}

.brand img {
    width: 44px;
    height: 44px;

    object-fit: contain;
}

.brand-text strong {
    display: block;

    font-size: 0.9rem;

    font-weight: 800;

    letter-spacing: 0.02em;
}

.brand-text span {
    display: block;

    margin-top: 4px;

    font-size: 0.61rem;

    font-weight: 600;

    opacity: 0.75;

    letter-spacing: 0.06em;
}


/* NAVIGATION */

.primary-nav {
    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-link {
    position: relative;

    padding: 29px 0;

    font-size: 0.86rem;

    font-weight: 650;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;

    bottom: 20px;

    height: 2px;

    background: currentColor;

    transition: right 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}


/* MOBILE TOGGLE */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;

    background: transparent;

    color: currentColor;

    cursor: pointer;
}

.nav-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background: currentColor;

    transition: transform 0.2s ease;
}


/* ================= HERO ================= */
/* ================= HERO ================= */

.hero {
    min-height: 100svh;

    position: relative;

    display: grid;

    align-items: center;

    color: white;

    background-image:
        url("../assets/images/hero/hero-image.webp");

    background-size: cover;

    background-repeat: no-repeat;

    background-position: center center;

    overflow: hidden;
}


/* ================= HERO OVERLAY ================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 12, 14, 0.10) 0%,
            rgba(10, 12, 14, 0.02) 38%,
            rgba(10, 12, 14, 0.22) 100%
        );

    z-index: 0;
}


/* ================= HERO CONTENT ================= */

.hero-content {
    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 100%;

    min-height: 72vh;

    padding-top: clamp(12px, 2vw, 32px);
    padding-bottom: 0;

    text-align: center;

    /*
    Scroll movement is controlled
    by JavaScript.
  */
    translate:
        0 var(--hero-scroll-y, 0px);

    opacity:
        var(--hero-scroll-opacity, 1);

    will-change:
        translate,
        opacity;
}


/* ================= HERO TEXT ================= */

.eyebrow {
    margin-bottom: 16px;

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.18em;

    /*
    ORIGINAL POP-UP ANIMATION
  */
    opacity: 0;

    transform:
        translateY(28px);

    animation:
        heroTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}


.eyebrow.blue {
    color: var(--blue-700);
}


/* ================= COMPANY NAME ================= */

.hero h1 {
    max-width: 900px;

    margin: 0 auto;

    font-size:
        clamp(2.8rem, 5vw, 6rem);

    line-height: 0.96;

    letter-spacing: -0.055em;

    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);

    /*
    ORIGINAL POP-UP ANIMATION
  */
    opacity: 0;

    transform:
        translateY(0);

    animation:
        heroTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.30s forwards;
}


.hero h1 span {
    display: block;

    margin-top: 12px;

    font-size: 0.48em;

    font-weight: 500;

    letter-spacing: -0.02em;
}


/* ================= TAGLINE ================= */

.hero-tagline {
    max-width: 620px;

    margin-top: 25px;

    font-size:
        clamp(1.05rem, 2vw, 1.35rem);

    font-weight: 650;

    opacity: 0;

    transform:
        translateY(28px);

    animation:
        heroTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.50s forwards;
}


/* ================= DESCRIPTION ================= */

.hero-description {
    max-width: 580px;

    margin-top: 10px;

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 1.03rem;

    opacity: 0;

    transform:
        translateY(28px);

    animation:
        heroTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}


/* ================= POP-UP ANIMATION ================= */

@keyframes heroTextReveal {

    from {
        opacity: 0;

        transform:
            translateY(28px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* ================= HERO BUTTONS ================= */

.hero-actions {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: auto;
    margin-bottom: clamp(32px, 6vh, 72px);

    opacity: 0;

    transform:
        translateY(18px);

    animation:
        heroTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards;
}


.btn {
    min-height: 48px;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 0 22px;

    border: 1px solid transparent;

    font-size: 0.9rem;

    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.btn-primary {
    background: white;

    color: var(--blue-800);
}


.btn-primary:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.16);
}


.btn-outline {
    border-color:
        rgba(255, 255, 255, 0.65);

    color: white;

    background:
        rgba(255, 255, 255, 0.04);
}


.btn-outline:hover {
    background: white;

    color: var(--blue-800);
}


.hero-support {
    background: #f8f9fb;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}


.hero-support-inner {
    max-width: 1100px;
    padding: 52px 0 58px;
    text-align: center;
}


.hero-support-label {
    margin-bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue-700);
}


.hero-support-inner h2 {
    margin: 0 auto 16px;
    max-width: 980px;
    font-size: clamp(1.7rem, 2.6vw, 3rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: var(--ink);
}


.hero-support-inner p {
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.8;
    color: rgba(47, 47, 47, 0.82);
}


/* ================= SCROLL INDICATOR ================= */

.scroll-indicator {
    position: absolute;

    z-index: 3;

    left: 50%;

    bottom: 26px;

    width: 24px;

    height: 40px;

    border:
        1px solid rgba(255, 255, 255, 0.65);

    border-radius: 15px;

    transform:
        translateX(-50%);

    transition:
        opacity 0.3s ease;
}


.scroll-indicator span {
    display: block;

    width: 3px;

    height: 7px;

    margin: 8px auto;

    background: white;

    border-radius: 3px;

    animation:
        scrollIndicator 1.7s infinite;
}


@keyframes scrollIndicator {

    0%,
    100% {
        transform:
            translateY(0);

        opacity: 0.4;
    }

    50% {
        transform:
            translateY(10px);

        opacity: 1;
    }

}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hero {
        background-position:
            center center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 12, 14, 0.08) 0%,
                rgba(10, 12, 14, 0.02) 44%,
                rgba(10, 12, 14, 0.18) 100%
            );
    }

    .hero-content {
        min-height: 58vh;
        width: 100%;
        padding-top: 28px;
        padding-bottom: 0;
    }

    .hero-actions {
        margin-bottom: 40px;
    }

    .hero h1,
    .hero-tagline,
    .hero-description {
        max-width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    .hero-content {
        translate: none !important;

        opacity: 1 !important;
    }

    .hero .eyebrow,
    .hero h1,
    .hero-tagline,
    .hero-description,
    .hero-actions {
        opacity: 1;

        transform: none;

        animation: none;
    }

    .scroll-indicator span {
        animation: none;
    }

}

/* ================= SECTIONS ================= */

.section {
    padding: 110px 0;
}

.section-light {
    background: var(--blue-050);
}

.section-heading {
    max-width: 760px;

    margin-bottom: 50px;
}

.section-heading.centered {
    margin-inline: auto;

    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;

    font-size:
        clamp(2rem, 4vw, 3.2rem);

    line-height: 1.12;

    letter-spacing: -0.035em;
}

.section-heading>p:last-child {
    color: var(--muted);

    font-size: 1.02rem;
}


/* ================= ABOUT ================= */

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.about-card {
    min-height: 210px;

    padding: 32px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}

.card-number {
    color: var(--blue-600);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.15em;
}

.about-card h3 {
    margin: 24px 0 8px;

    font-size: 1.3rem;
}

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


/* TIMELINE */

.timeline {
    margin-top: 28px;

    border-top:
        1px solid var(--border);
}

.timeline-item {
    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 25px;

    padding: 24px 0;

    border-bottom:
        1px solid var(--border);
}

.timeline-date {
    color: var(--blue-700);

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.08em;
}

.timeline-item h3 {
    margin-bottom: 2px;

    font-size: 1.05rem;
}

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


/* ================= SERVICES ================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.service-card {
    min-height: 250px;

    padding: 28px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 24px 55px rgba(148, 148, 148, 0.22);
}

.service-icon {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    margin-bottom: 26px;

    border:
        1px solid #e8a7cd;

    color: var(--blue-700);
}

.service-icon svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 9px;

    font-size: 1.1rem;
}

.service-card p {
    color: var(--muted);

    font-size: 0.92rem;
}


/* ================= DARK SECTIONS ================= */

.dark-section {
    color: white;

    background: var(--blue-900);
}

.dark-section .section-heading>p:last-child {
    color:
        rgba(255, 255, 255, 0.7);
}


/* PLACEHOLDER */

.placeholder-box {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 28px;

    border:
        1px solid rgba(255, 255, 255, 0.2);

    background:
        rgba(255, 255, 255, 0.04);
}

.placeholder-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.35);
}

.placeholder-box h3 {
    margin-bottom: 5px;
}

.placeholder-box p {
    color:
        rgba(255, 255, 255, 0.7);

    font-size: 0.92rem;
}


/* ================= PROCESS ================= */

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.process-card {
    min-height: 200px;

    padding: 30px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}

.process-card>span {
    color: var(--blue-600);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.15em;
}

.process-card h3 {
    margin: 20px 0 8px;
}

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


/* ================= DOCUMENTS ================= */

.notice-box {
    padding: 28px;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}

.notice-box strong {
    display: block;

    margin-bottom: 6px;
}

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


/* ================= WHY US ================= */

.trust-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.trust-card {
    min-height: 210px;

    padding: 30px;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    background:
        rgba(255, 255, 255, 0.06);
}

.trust-card>span {
    color: #d6df22;

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.15em;
}

.trust-card h3 {
    margin: 20px 0 8px;
}

.trust-card p {
    color:
        rgba(255, 255, 255, 0.7);
}


/* ================= CREDENTIALS ================= */

.credential-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    align-items: stretch;
}

.credential-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: white;

    border:
        1px solid var(--border);

    box-shadow: var(--shadow);
}


/* ================= DICA CERTIFICATE ================= */

.certificate-preview {
    position: relative;

    width: 100%;

    height: 330px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 22px;

    margin: 0;

    border: 0;

    background: #eef3f8;

    cursor: pointer;

    overflow: hidden;

    appearance: none;

    -webkit-appearance: none;
}

.certificate-preview img {
    display: block;

    width: 100%;

    height: 100%;

    /*
    IMPORTANT:
    Show the complete certificate.
    Do not crop or distort it.
  */
    object-fit: contain;

    object-position: center;

    margin: 0;

    padding: 0;

    border: 0;

    transition:
        transform 0.3s ease;
}

.certificate-preview:hover img {
    transform:
        scale(1.015);
}


/* ================= CREDENTIAL BODY ================= */

.credential-body {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 27px;
}

.document-type {
    margin: 0;

    color: var(--blue-700);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.13em;
}

.credential-body h3 {
    margin: 8px 0;
}

.credential-body>p:not(.document-type) {
    color: var(--muted);

    font-size: 0.9rem;
}

.credential-body .text-button {
    align-self: flex-start;

    margin-top: auto;
}

.text-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--blue-700);

    font-weight: 800;

    cursor: pointer;

    transition:
        gap 0.2s ease;
}

.text-button:hover {
    gap: 14px;
}


/* ================= CREDENTIALS MOBILE ================= */

@media (max-width: 720px) {

    .credential-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .certificate-preview {
        height: 360px;

        padding: 18px;
    }

}


@media (max-width: 430px) {

    .certificate-preview {
        height: 300px;

        padding: 14px;
    }

}

/* ================= PHOTOS ================= */

.photo-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.photo-card {
    height: 260px;

    position: relative;

    overflow: hidden;

    background: #e9eff5;
}

.photo-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.photo-card:hover img {
    transform: scale(1.03);
}

.photo-card figcaption {
    position: absolute;

    left: 14px;
    bottom: 14px;

    padding: 6px 10px;

    color: white;

    background:
        rgba(74, 0, 44, 0.82);

    font-size: 0.75rem;

    font-weight: 750;
}


/* ================= CONTACT ================= */

.contact-section {
    color: white;

    background: var(--blue-900);
}

.contact-grid {
    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 80px;

    align-items: start;
}

.contact-copy h2 {
    font-size:
        clamp(2.5rem, 5vw, 4rem);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.contact-copy>p:not(.eyebrow) {
    max-width: 550px;

    margin-top: 16px;

    color:
        rgba(255, 255, 255, 0.7);
}

.contact-list {
    display: grid;

    gap: 15px;

    margin-top: 38px;
}

.contact-list>a,
.contact-list>div {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.14);
}

.contact-list>a>span,
.contact-list>div>span {
    width: 24px;
}

.contact-list small {
    display: block;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.contact-list strong {
    font-weight: 600;
}


/* CONTACT PANEL */

.contact-panel {
    padding: 30px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    background:
        rgba(255, 255, 255, 0.04);
}

.contact-panel h3 {
    margin-bottom: 15px;
}

.location-map {
    height: 210px;

    margin-bottom: 28px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.18);
}

.location-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.social-links {
    display: grid;
}

.social-links a {
    display: flex;

    justify-content: space-between;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.14);

    transition:
        padding 0.2s ease;
}

.social-links a:hover {
    padding-inline: 4px;
}

.contact-note {
    margin-top: 22px;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 0.78rem;
}


/* ================= FOOTER ================= */

.site-footer {
    padding: 45px 0 20px;

    color: white;

    background: #2f2f2f;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.2fr 1fr 0.85fr;

    gap: 48px;

    align-items: start;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-brand img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.footer-brand strong {
    display: block;
}

.footer-brand span {
    display: block;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.75rem;
}

.footer-intro>p {
    max-width: 360px;

    margin-top: 14px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.85rem;
}

.footer-contact,
.footer-links {
    display: grid;

    align-content: start;

    gap: 8px;

    font-size: 0.84rem;
}

.footer-contact h3,
.footer-links h3 {
    margin-bottom: 5px;

    font-size: 0.82rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.footer-contact a,
.footer-links a {
    width: fit-content;

    color: rgba(255, 255, 255, 0.62);

    transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: white;
}

.copyright {
    margin-top: 35px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 0.72rem;

    display: flex;

    justify-content: space-between;

    gap: 20px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.65);
}

.copyright a:hover {
    color: white;
}


/* ================= BACK TO TOP ================= */

.back-to-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 800;

    width: 44px;
    height: 44px;

    border:
        1px solid var(--border);

    background: white;

    color: var(--blue-800);

    box-shadow: var(--shadow);

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;

    visibility: visible;

    transform: none;
}


/* ================= MODAL ================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: grid;

    place-items: center;

    padding: 25px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.modal.open {
    opacity: 1;

    visibility: visible;
}

.modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 17, 34, 0.86);
}

.modal-dialog {
    position: relative;

    z-index: 1;

    max-width: min(1100px, 96vw);
    max-height: 92vh;

    padding: 18px;

    background: white;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal-dialog img {
    width: auto;
    max-width: 100%;

    max-height:
        calc(92vh - 36px);

    object-fit: contain;
}

.modal-gallery {
    display: grid;

    gap: 18px;

    max-height: calc(92vh - 36px);

    overflow-y: auto;
}

.modal-gallery img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: none;

    margin-inline: auto;
}

.modal-close {
    position: absolute;

    top: -12px;
    right: -12px;

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    background: white;

    color: var(--ink);

    font-size: 1.5rem;

    cursor: pointer;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(45px) scale(0.98);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Direction variations */

.reveal-left {
    opacity: 0;
    transform: translateX(-55px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}


.reveal-right {
    opacity: 0;
    transform: translateX(55px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Scale animation for important blocks */

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   STAGGERED CARD ANIMATIONS
   ========================================================= */

.services-grid .service-card:nth-child(1),
.about-grid .about-card:nth-child(1),
.process-grid .process-card:nth-child(1),
.trust-grid .trust-card:nth-child(1),
.credential-grid .credential-card:nth-child(1),
.photo-grid .photo-card:nth-child(1) {
    transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(2),
.about-grid .about-card:nth-child(2),
.process-grid .process-card:nth-child(2),
.trust-grid .trust-card:nth-child(2),
.credential-grid .credential-card:nth-child(2),
.photo-grid .photo-card:nth-child(2) {
    transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(3),
.process-grid .process-card:nth-child(3),
.trust-grid .trust-card:nth-child(3),
.photo-grid .photo-card:nth-child(3) {
    transition-delay: 0.25s;
}

.services-grid .service-card:nth-child(4),
.photo-grid .photo-card:nth-child(4) {
    transition-delay: 0.35s;
}


/* =========================================================
   IMAGE REVEAL
   ========================================================= */

.photo-card,
.credential-card {
    overflow: hidden;
}

.photo-card img,
.credential-card img {
    transform: scale(1.08);
    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-card.visible img,
.credential-card.visible img {
    transform: scale(1);
}


/* =========================================================
   TIMELINE ANIMATION
   ========================================================= */

.timeline-item {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline.visible .timeline-item {
    opacity: 1;
    transform: translateY(0);
}

.timeline.visible .timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline.visible .timeline-item:nth-child(2) {
    transition-delay: 0.3s;
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .timeline-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .photo-card img,
    .credential-card img {
        transform: none;
        transition: none;
    }
}

/* ================= FOCUS ================= */

:focus-visible {
    outline:
        3px solid #d6df22;

    outline-offset: 3px;
}


/* ================= TABLET ================= */

@media (max-width: 900px) {

    .primary-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .photo-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-grid {
        gap: 45px;
    }

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

}


/* ================= MOBILE ================= */

@media (max-width: 720px) {

    .container {
        width:
            min(calc(100% - 32px), var(--container));
    }


    /* HEADER */

    .nav-container {
        height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {

        /* Anchor the menu to the viewport, not the content container. */
        position: fixed;

        inset: 72px 0 auto;

        width: auto;
        max-width: 100%;

        display: grid;

        gap: 0;

        padding: 8px 16px;

        background: white;

        color: var(--ink);

        border-top:
            1px solid var(--border);

        box-shadow:
            0 16px 25px rgba(0, 0, 0, 0.08);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px);

        overflow-x: clip;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .primary-nav.open {

        opacity: 1;

        visibility: visible;

        transform: none;
    }

    .nav-link {

        padding: 14px 4px;

        border-bottom:
            1px solid var(--border);
    }

    .nav-link::after {
        display: none;
    }


    /* HERO */

    .hero {

        min-height: 760px;

        background-position:
            center center;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero h1 {
        font-size:
            clamp(2.35rem, 12vw, 4rem);
    }


    /* SECTIONS */

    .section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }


    /* GRIDS */

    .about-grid,
    .credential-grid,
    .process-grid,
    .trust-grid,
    .contact-grid {

        grid-template-columns: 1fr;
    }

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

    .photo-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* TIMELINE */

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 6px;
    }


    /* CONTACT */

    .contact-grid {
        gap: 35px;
    }


    /* FOOTER */

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

    .copyright {
        flex-direction: column;
        gap: 6px;
    }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 430px) {

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

    .hero-actions {
        display: grid;
    }

    .btn {
        justify-content: center;
    }

    .brand-text strong {
        font-size: 0.78rem;
    }

    .brand-text span {
        font-size: 0.53rem;
    }

}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .scroll-indicator span {
        animation: none;
    }

    * {
        transition: none !important;
    }

}

/* =========================================================
   RECENT ACTIVITIES
   ========================================================= */

.activities-section {
    background: var(--blue-050);
}

.activities-section .section-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.activities-grid {
    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    gap: 22px;

    align-items: start;
}


/* Activity Card */

.activity-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(148, 148, 148, 0.22);
}

.activity-card--portrait {
    grid-column: span 4;
}

.activity-card--wide {
    grid-column: span 8;
}


/* Large Feature Card */

.activity-card-large {
    grid-row: span 2;
}

.activity-card-large .activity-image {
    height: 100%;
    min-height: 540px;
}


/* Image */

.activity-image {
    position: relative;
    width: 100%;

    aspect-ratio: 3 / 2;

    overflow: hidden;
    background: #e8edf3;
}

.activity-card--portrait .activity-image {
    aspect-ratio: 2 / 3;
}

/* Optimize activity image hover + parallax */
.activity-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: translateY(var(--activity-parallax, 0px));
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-image img {
    transform: translateY(var(--activity-parallax, 0px)) scale(1.04);
}

/* Sample Badge */

.sample-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 11px;
    background: rgba(237, 0, 140, 0.9);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 3px;
}


/* Content */

.activity-content {
    padding: 23px 24px 25px;
}

.activity-label {
    display: block;
    margin-bottom: 8px;
    color: var(--blue-600);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.activity-content h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.activity-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* Feature Card Overlay */

.activity-card-large .activity-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 55px 30px 30px;
    color: #fff;
    background:
        linear-gradient(to top,
            rgba(74, 0, 44, 0.94),
            rgba(74, 0, 44, 0.55),
            transparent);
}

.activity-card-large .activity-label {
    color: rgba(255, 255, 255, 0.78);
}

.activity-card-large .activity-content p {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.86);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .activities-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .activity-card-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .activity-card-large .activity-image {
        height: 420px;
        min-height: 0;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .activity-card--portrait,
    .activity-card--wide {
        grid-column: auto;
    }

    .activity-card-large {
        grid-column: auto;
    }

    .activity-image,
    .activity-card-large .activity-image {
        height: auto;
        min-height: 0;
    }

    .activity-card-large .activity-content {
        position: static;
        padding: 21px 20px 23px;
        background: var(--white);
        color: var(--ink);
    }

    .activity-card-large .activity-label {
        color: var(--blue-600);
    }

    .activity-card-large .activity-content p {
        color: var(--muted);
    }

}


@media (max-width: 430px) {

    .activity-image,
    .activity-card-large .activity-image {
        height: auto;
    }

}
