/* Home landing page styles */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    z-index: 1;
    will-change: transform;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.hero-logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-brand-lockup {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.hero-brand-lockup-divider {
    width: 1.5px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.hero-brand-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.hero-brand-text {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.2em;
    white-space: nowrap;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.5),
        0 4px 40px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.hero-brand-sub {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.22em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.5),
        0 4px 40px rgba(0, 0, 0, 0.4);
}

/* Service Cards Section */
.services-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 24px 40px;
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.service-card-header {
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-card-icon {
    width: 44px;
    height: 44px;
    background: var(--mira-gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--mira-gold);
}

.service-card-title-wrap {
    flex: 1;
}

.service-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px;
}

.service-card-subtitle {
    font-size: 13px;
    color: var(--gray-text);
    font-weight: 400;
}

.service-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-description {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: auto;
    padding-left: 20px;
}

.service-card-description li {
    margin-bottom: 8px;
    position: relative;
}

.service-card-description li::marker {
    color: var(--mira-gold);
}

.service-card-bottom {
    margin-top: 24px;
}

.service-card-contact {
    padding: 16px;
    background: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--black);
}

.contact-item + .contact-item {
    margin-top: 10px;
}

.contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--mira-gold);
    flex-shrink: 0;
}

.service-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 24px;
    background: var(--mira-gold-light);
    color: var(--black);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.service-card-btn:hover {
    background: var(--mira-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card-btn .icon-svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-card-btn:hover .icon-svg {
    transform: translateX(4px);
}

/* HR Card specific button styling */
#hrCard .service-card-btn {
    background: var(--mira-green-light);
    color: var(--mira-green);
}

#hrCard .service-card-btn:hover {
    background: var(--mira-green);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(22, 52, 30, 0.3);
}

/* HR Operations Map Section */
.ops-map-section {
    background: var(--white);
    padding: 24px 0 16px;
}

.ops-map-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.ops-map-header {
    max-width: 860px;
    margin: 0 auto 26px;
    text-align: center;
}

.ops-map-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ops-map-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.ops-map-title span {
    color: var(--black);
}

.ops-map-subtitle {
    font-size: 18px;
    color: var(--gray-text);
    font-weight: 400;
}

.ops-map-frame {
    position: relative;
    width: 100%;
    margin-left: 0;
    background: var(--white);
    padding: 18px 0 0;
}

.ops-map-crop {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
    background: var(--white);
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 6%,
        black 94%,
        transparent 100%
    );
}

.ops-map-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ops-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.95;
}

.ops-map-image-wrap {
    display: none;
}

.ops-map-edge {
    display: none;
}

.ops-marker {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    transform: translate(-50%, -100%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    appearance: none;
    background: none;
    border: none;
    transition: transform 0.2s ease;
}

.ops-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--mira-gold);
    -webkit-mask: url("../resources/icons/location-dot.svg") center / contain no-repeat;
    mask: url("../resources/icons/location-dot.svg") center / contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition:
        background-color 0.2s ease,
        filter 0.2s ease;
}

.ops-marker-pin {
    display: none;
}

.ops-marker:hover {
    transform: translate(-50%, -100%) scale(1.15);
}

.ops-marker:hover::before {
    background: var(--mira-gold-hover);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.ops-marker.is-active {
    transform: translate(-50%, -100%) scale(1.25);
    z-index: 5;
}

.ops-marker.is-active::before {
    background: var(--black);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.ops-marker-ring {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 10px;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    transform: translateX(-50%) scale(1);
    transition: all 0.2s ease;
}

.ops-marker:hover .ops-marker-ring {
    transform: translateX(-50%) scale(1.3);
    background: rgba(0, 0, 0, 0.1);
}

.ops-marker.is-active .ops-marker-ring {
    animation: ringPulse 1.5s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    70% {
        transform: translateX(-50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
}

.ops-marker:focus-visible {
    outline: 2px solid var(--mira-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.ops-panel {
    position: absolute;
    top: 40px;
    right: 40px;
    width: min(380px, 30%);
    max-width: 380px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 2px 24px 2px 2px;
    padding: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
    overflow: hidden;
}

.ops-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-top: 2px solid var(--mira-gold);
    border-left: 2px solid var(--mira-gold);
    border-radius: 2px 0 0 0;
    transition:
        width 0.3s ease,
        height 0.3s ease;
    pointer-events: none;
}

.ops-panel:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ops-panel:hover::before {
    width: 32px;
    height: 32px;
}

.ops-panel-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 2px 18px 2px 2px;
    display: block;
}

.ops-panel-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
}

.ops-panel-country {
    font-size: 10px;
    font-weight: 600;
    color: var(--mira-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ops-panel-city {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--black);
    letter-spacing: -0.005em;
}

.ops-panel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 2px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 4px;
}

.ops-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    appearance: none;
    transition: all 0.2s ease;
}

.ops-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.ops-dot.is-active {
    width: 22px;
    background: var(--mira-gold);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-container {
        max-width: 700px;
    }

    .ops-panel {
        width: min(360px, 38%);
        padding: 20px 20px 14px;
        top: 30px;
        right: 30px;
        gap: 6px;
    }

    .ops-panel-image {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .ops-panel-city {
        font-size: 22px;
    }

    .ops-panel-dots {
        padding-top: 5px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        left: 12px;
        right: 12px;
        padding: 8px 14px;
    }

    .logo-mg {
        height: 24px;
    }

    .logo-text {
        font-size: 12px;
    }

    .logo-subtext {
        font-size: 9px;
    }

    .navbar.compact .logo-mg {
        height: 20px;
    }

    .navbar.compact .logo-text {
        font-size: 11px;
    }

    .navbar.compact .logo-subtext {
        font-size: 8px;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .navbar.menu-open .nav-right {
        display: flex;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-contact {
        font-size: 14px;
    }

    .lang-toggle {
        align-self: flex-start;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-logo {
        width: 70px;
    }

    .hero-brand-lockup {
        gap: 16px;
        margin-bottom: 20px;
    }

    .hero-brand-lockup-divider {
        height: 48px;
    }

    .hero-brand-text {
        font-size: 26px;
    }

    .hero-brand-sub {
        font-size: 12px;
    }

    .hero-tagline {
        font-size: 14px;
        letter-spacing: 0.15em;
    }

    .services-section {
        margin-top: -60px;
        padding: 0 16px 60px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .service-card {
        min-height: auto;
    }

    .ops-map-container {
        padding: 0 16px;
    }

    .ops-map-title {
        font-size: 28px;
    }

    .ops-map-subtitle {
        font-size: 16px;
    }

    .ops-panel {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 14px auto 0;
        border-radius: 2px 20px 2px 2px;
        padding: 20px;
        gap: 12px;
    }

    .ops-panel::before {
        display: none;
    }

    .ops-panel-image {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .ops-panel-city {
        font-size: 22px;
    }

    .ops-panel-country {
        font-size: 14px;
    }

    .ops-panel-dots {
        padding-top: 5px;
        gap: 8px;
    }

    .ops-map-crop {
        min-height: 280px;
    }

    .footer {
        padding: 40px 24px 24px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-right {
        align-items: center;
        margin-left: 0;
    }

    .footer-social {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .footer-social-group {
        align-items: center;
    }

    .footer-social-divider {
        display: none;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 55px;
    }

    .hero-brand-lockup {
        gap: 12px;
        margin-bottom: 16px;
    }

    .hero-brand-lockup-divider {
        height: 40px;
    }

    .hero-brand-text {
        font-size: 22px;
    }

    .hero-brand-sub {
        font-size: 10px;
    }

    .service-card-title {
        font-size: 18px;
    }

    .ops-map-crop {
        min-height: 250px;
    }
}

/* About CTA Section */
.about-cta-section {
    padding: 48px 24px 80px;
    background: var(--white);
    text-align: center;
    border-top: none;
}

.about-cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.about-cta-icon {
    width: 72px;
    height: 72px;
    background: var(--mira-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.about-cta-info-mark {
    width: 28px;
    height: 34px;
    background: var(--mira-gold);
    -webkit-mask: url("../resources/icons/info.svg") center / contain no-repeat;
    mask: url("../resources/icons/info.svg") center / contain no-repeat;
}

.about-cta-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    font-family: "Montserrat", sans-serif;
}

.about-cta-text {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 32px;
    line-height: 1.7;
    font-family: "Montserrat", sans-serif;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--black);
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.about-cta-btn:hover {
    background: var(--mira-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 169, 99, 0.3);
}

.about-cta-btn .icon-svg {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .about-cta-section {
        padding: 44px 24px 60px;
    }

    .about-cta-title {
        font-size: 24px;
    }

    .about-cta-icon {
        width: 64px;
        height: 64px;
    }

    .about-cta-info-mark {
        width: 25px;
        height: 31px;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--mira-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Page-specific consolidation after shared class migration */
body.page-home .services-section {
    position: relative;
    z-index: 10;
    margin-top: -110px;
    padding: 0 24px 40px;
    background: transparent;
}

body.page-home .services-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

body.page-home .service-card {
    min-height: 400px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

body.page-home .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.14);
}

body.page-home .service-card-header {
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    gap: 16px;
}

body.page-home .service-card-body {
    padding: 24px;
}

body.page-home .service-card-title::after {
    display: none;
}

body.page-home .service-card-title {
    padding-bottom: 0;
    margin-bottom: 2px;
    font-size: 20px;
}

@media (max-width: 768px) {
    body.page-home .services-section {
        margin-top: -72px;
        padding: 0 16px 60px;
    }

    body.page-home .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    body.page-home .service-card {
        min-height: auto;
    }
}

body.page-home #reCard .service-card-icon {
    background: var(--mira-gold-light);
}

body.page-home #reCard .service-card-icon .icon-svg,
body.page-home #reCard .service-card-btn .icon-svg {
    filter: invert(58%) sepia(23%) saturate(1005%) hue-rotate(353deg)
        brightness(90%) contrast(86%);
}

body.page-home #hrCard .service-card-icon {
    background: var(--mira-green-light);
}

body.page-home #hrCard .service-card-icon .icon-svg,
body.page-home #hrCard .service-card-btn .icon-svg {
    filter: invert(27%) sepia(44%) saturate(468%) hue-rotate(88deg)
        brightness(94%) contrast(91%);
}

body.page-home #reCard .service-card-btn:hover .icon-svg,
body.page-home #hrCard .service-card-btn:hover .icon-svg {
    filter: brightness(0) invert(1);
}
