body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

html {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(13, 120, 184, 0.1);
    padding: 8px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mobile-nav.hidden,
.mobile-nav.is-suppressed {
    transform: translateY(100%);
}

.mobile-nav-item {
    flex: 0 0 auto;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.75rem;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible,
.mobile-nav-item.is-current {
    color: var(--navy-800);
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.apply-link i {
    color: #38bdf8;
}

.mobile-nav-item span {
    line-height: 1.2;
}

.mobile-nav-whatsapp {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #25d366, #1db954);
    color: white;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3);
}

.mobile-nav-whatsapp i {
    font-size: 1.7rem;
}

.mobile-nav-item.is-current {
    font-weight: 600;
}

.nav-toggle {
    display: inline-flex;
}

.nav-button {
    display: none;
}

.site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 29, 99, 0.08);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);
}

.nav-group {
    display: grid;
    gap: 8px;
}

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

.nav-root {
    justify-content: space-between;
}

.nav-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    gap: 2px;
}

.nav-menu a {
    padding: 8px 0;
    border-radius: 0;
    white-space: normal;
    font-size: 0.94rem;
    color: var(--ink-500);
}

.site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-visual {
    min-height: 560px;
}

.hero-marquee,
.split-callouts,
.service-list,
.contact-grid {
    grid-template-columns: 1fr;
}

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

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

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

.contact-banner {
    flex-direction: column;
    align-items: flex-start;
}

.application-modal {
    padding: 0;
}

.application-modal-dialog {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

.application-modal-panel,
.application-modal-card {
    padding: 20px 16px;
}

.application-modal-close {
    top: 8px;
    left: calc(100% - 50px);
    width: 40px;
    height: 40px;
    margin: 8px 8px 0 auto;
}

.chat-widget {
    right: 18px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 24px));
}

.chat-widget-shell {
    min-height: 580px;
}

.hero-banner {
    min-height: 80vh;
    padding: 50px 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(248, 252, 255, 0.92) 0%, rgba(248, 252, 255, 0.74) 42%, rgba(248, 252, 255, 0.14) 100%),
        url("../images/hero design.png") center center / cover no-repeat;
}

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

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

@media (max-width: 720px) {
    main section {
        padding: 72px 0;
    }

    .hero-section {
        padding-top: 24px;
    }

    .page-hero {
        padding-top: 28px;
    }

    .hero-banner {
        min-height: 70vh;
        padding: 34px 24px;
        border-radius: 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background:
            linear-gradient(180deg, rgba(248, 252, 255, 0.95) 0%, rgba(248, 252, 255, 0.82) 45%, rgba(248, 252, 255, 0.2) 100%),
            url("../images/hero design.png") center top / cover no-repeat;
    }

    .page-intro__content {
        height: min(480px, 72vh);
    }

    .video-testimonial-grid {
        gap: 18px;
    }

    .video-testimonial-media {
        padding: 10px;
        min-height: 420px;
    }

    .video-testimonial-media video {
        border-radius: 18px;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        pointer-events: auto;
    }

    .video-testimonial-toggle {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .cube-cluster {
        width: 250px;
        height: 250px;
    }

    .intro-cube {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
    }

    .intro-copy {
        bottom: 12px;
        gap: 10px;
    }

    .intro-copy strong {
        max-width: 420px;
        font-size: 1.5rem;
    }

    .intro-copy p {
        max-width: 320px;
        font-size: 0.9rem;
    }

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

    .hero-points {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 460px;
        grid-template-rows: repeat(10, minmax(28px, 1fr));
    }

    .primary-photo,
    .hero-banner-photo {
        grid-column: 1 / span 12;
        grid-row: 1 / span 6;
    }

    .accent-photo,
    .hero-support-photo {
        grid-column: 7 / span 6;
        grid-row: 3 / span 4;
    }

    .floating-card {
        grid-column: 1 / span 7;
        grid-row: 7 / span 3;
    }

    .metric-stack {
        grid-column: 6 / span 7;
        grid-row: 7 / span 4;
    }

    .sector-grid,
    .advantage-points,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .position-card-media {
        height: 340px;
    }

    .story-card-media {
        height: 250px;
    }

    .employer-showcase-media {
        height: 270px;
    }

    .image-stack {
        padding: 18px 0 0;
    }

    .image-stack::before {
        inset: 0 24px 60px 0;
    }

    .image-main {
        min-height: 420px;
    }

    .branch-list {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        min-height: 76px;
    }

    .page-hero {
        padding-top: 20px;
    }

    .page-hero-copy {
        gap: 16px;
    }

    .page-hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.08;
    }

    .page-hero-copy p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .page-hero-panel {
        padding: 24px 20px;
        border-radius: 28px;
        gap: 14px;
    }

    .page-hero-panel h2 {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .page-hero-panel p,
    .page-hero-panel li {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .page-hero-panel ul {
        gap: 10px;
        margin-top: 12px;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .flag-strip {
        gap: 10px;
        margin-top: 18px;
    }

    .page-hero-panel .flag-chip {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        min-height: 48px;
        padding: 10px 12px;
        font-size: 0.94rem;
    }

    .page-intro__content {
        width: min(92vw, 420px);
        height: min(430px, 72vh);
    }

    .cube-cluster {
        width: 210px;
        height: 210px;
    }

    .intro-cube {
        width: 42px;
        height: 42px;
        margin: -21px 0 0 -21px;
        border-radius: 10px;
    }

    .intro-copy strong {
        max-width: 300px;
        font-size: 1.18rem;
        line-height: 1.16;
    }

    .intro-copy p {
        max-width: 280px;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .hero-actions,
    .hero-marquee,
    .split-callouts {
        gap: 12px;
    }

    .hero-actions .apply-link {
        display: none;
    }

    .hero-visual {
        min-height: 520px;
        display: flex;
        flex-direction: column;
    }

    .hero-banner {
        min-height: 560px;
        padding: 28px 18px 24px;
        background:
            linear-gradient(180deg, rgba(248, 252, 255, 0.78) 0%, rgba(248, 252, 255, 0.56) 42%, rgba(248, 252, 255, 0.18) 100%),
            url("../images/hero design.png") center top / cover no-repeat;
    }

    .visual-frame,
    .floating-card,
    .metric-stack {
        position: relative;
        inset: auto;
    }

    .primary-photo,
    .accent-photo,
    .floating-card,
    .metric-stack {
        grid-column: auto;
        grid-row: auto;
    }

    .accent-photo {
        margin-top: -42px;
        width: 78%;
        margin-left: auto;
    }

    .contact-banner,
    .application-panel,
    .application-form-card,
    .office-location-section,
    .support-panel,
    .content-panel,
    .contact-card,
    .info-card,
    .process-card,
    .faq-question {
        padding-left: 20px;
        padding-right: 20px;
    }

    .faq-answer p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .story-card-media,
    .employer-showcase-media {
        height: 220px;
        padding: 14px;
    }

    .support-panel {
        padding: 26px 20px;
        border-radius: 28px;
    }

    .support-panel h3 {
        margin: 14px 0 10px;
        font-size: 1.95rem;
        line-height: 1.08;
    }

    .support-panel p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .pill-row {
        gap: 10px;
        margin: 18px 0 20px;
    }

    .pill-row span {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
        justify-content: center;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
    }

    .support-panel .flag-strip {
        margin-top: 0;
    }

    .support-panel .flag-chip {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        min-height: 48px;
        font-size: 0.94rem;
    }

    .support-panel .button {
        width: 100%;
        margin-top: 16px;
    }

    .position-card-body {
        padding: 20px 20px 24px;
    }

    .position-card-body h3 {
        min-height: 0;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button,
    .quick-links a {
        width: 100%;
    }

    .chat-widget {
        inset: 0;
        width: 100%;
    }

    .chat-widget-shell {
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .chat-widget-header {
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .chat-widget-header h2 {
        margin: 8px 0 6px;
        font-size: 1.28rem;
    }

    .chat-widget-header p {
        max-width: none;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .chat-widget-icon {
        width: 38px;
        height: 38px;
    }

    .chat-widget-header,
    .chat-widget-form,
    .chat-widget-thread {
        padding-left: 18px;
        padding-right: 18px;
    }

    .chat-widget-thread {
        min-height: 0;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .chat-bubble {
        max-width: 92%;
        padding: 12px 14px;
    }

    .chat-widget-form {
        gap: 10px;
        padding-top: 12px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .chat-widget-field input,
    .chat-widget-field select,
    .chat-widget-field textarea {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .chat-widget-actions {
        gap: 10px;
        flex-direction: column;
    }

    .chat-widget-actions .button {
        min-height: 46px;
        width: 100%;
    }

    .chat-widget-summary li {
        flex-direction: column;
        gap: 4px;
    }

    .chat-widget-summary li strong {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 560px) and (max-height: 780px) {
    .chat-widget-header {
        padding-top: 12px;
        padding-bottom: 10px;
    }

    .chat-widget-header h2 {
        font-size: 1.16rem;
    }

    .chat-widget-header p {
        display: none;
    }

    .chat-widget-thread {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .chat-widget-form {
        padding-top: 10px;
    }
}
