/* =========================
   RESET & TOKENS
========================= */

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

:root {
    --primary: #07152E;
    --primary-soft: #0D2144;
    --gold: #C89B3C;
    --gold-dark: #9C7329;
    --bg: #F8F5F0;
    --white: #FFFFFF;
    --text: #5F6673;
    --muted: #CBD5E1;
    --ink: #111827;
    --line: rgba(200, 155, 60, .22);
    --shadow: 0 24px 70px rgba(7, 21, 46, .12);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    animation: pageFade .8s ease both;
    padding-bottom: 140px;
}


body.is-leaving {
    animation: pageExit .28s ease both;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
    line-height: 1.08;
}

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

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--primary);
    pointer-events: none;
    animation: pageReveal .85s ease forwards;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), #F1D489);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(1180px, calc(100% - 44px));
    border-radius: 999px;
    padding: 16px 24px;
    background: rgba(7, 21, 46, .88);
    box-shadow: 0 28px 80px rgba(7, 21, 46, .22);
    transition: padding .35s ease, background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, transform .35s ease;
}

.navbar.scrolled {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 44px));
    border-radius: 999px;
    padding: 14px 22px;
    background: rgba(7, 21, 46, .96);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

body.bottom-nav {
    padding-bottom: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 240px;
    max-width: 40vw;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    opacity: .9;
    transition: color .3s ease, opacity .3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   BUTTONS & GLOBAL SECTIONS
========================= */

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
    will-change: transform;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background: linear-gradient(var(--gold), var(--gold)) padding-box,
        linear-gradient(90deg, var(--gold-dark), #F1D489, var(--gold)) border-box;
    color: var(--white);
}

.btn-secondary {
    border: 1px solid rgba(200, 155, 60, .6);
    color: var(--white);
}

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

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(200, 155, 60, .22);
}

.text-link {
    display: inline-flex;
    margin-top: 22px;
    color: var(--gold);
    font-weight: 800;
}

.section {
    padding: 110px 0;
}

.white-section {
    background: var(--white);
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 62px;
    text-align: center;
}

.section-heading span,
.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-heading h2,
.split-content h2,
.page-hero h1,
.hero h1,
.cta-box h2 {
    color: var(--primary);
    font-size: clamp(36px, 5vw, 64px);
}

.section-heading h2 {
    margin: 18px 0 18px;
}

.section-heading p,
.split-content p,
.page-hero p,
.cta-box p {
    color: var(--text);
    font-size: 16px;
}

.light h2,
.light p {
    color: var(--white);
}

.light p {
    opacity: .72;
}

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

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(7, 21, 46, .88), rgba(7, 21, 46, .92)),
        var(--hero-image, url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")) center/cover;
}

.home-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 80px 0 120px;
}

/* Decorative hero overlays removed to avoid blocking content on small viewports */

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
}

.hero h1 {
    max-width: 780px;
    color: var(--white);
    font-size: clamp(46px, 6vw, 82px);
    margin: 20px 0 26px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 680px;
    color: #D9E1EA;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-visual,
.split-media,
.image-panel {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
    border: 1px solid rgba(200, 155, 60, .28);
}

.hero-visual img,
.split-media img,
.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform .7s ease;
}

.hero-visual:hover img,
.split-media:hover img,
.image-panel:hover img {
    transform: scale(1.05);
}

.floating-stats {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: min(390px, calc(100% - 48px));
    padding: 22px;
    border: 1px solid rgba(200, 155, 60, .36);
    border-radius: 12px;
    background: rgba(7, 21, 46, .72);
    backdrop-filter: blur(18px);
    animation: gentleFloat 5.5s ease-in-out infinite;
}

.floating-stats strong {
    display: block;
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 34px;
    line-height: 1;
}

.floating-stats span {
    color: #D7DEE8;
    font-size: 13px;
}

.page-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(rgba(7, 21, 46, .74), rgba(7, 21, 46, .75)),
        var(--hero-image, url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")) center/cover no-repeat;
    background-size: 110%;
    animation: heroZoom 22s ease-in-out infinite alternate;
    scroll-margin-top: 104px;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 26px;
}

.page-hero h1 {
    color: var(--white);
    margin: 0;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    color: rgba(229, 237, 247, .92);
    font-size: 18px;
    line-height: 1.85;
}

.page-hero .eyebrow {
    color: var(--gold);
    letter-spacing: .25em;
    font-size: 12px;
    text-transform: uppercase;
}

.page-hero .hero-actions {
    justify-content: center;
}

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

.stats-section {
    position: relative;
    z-index: 4;
    margin-top: -58px;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 34px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 20px 55px rgba(7, 21, 46, .12);
}

.stat-box {
    text-align: center;
    transition: transform .35s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
}

.stat-box h2 {
    color: var(--primary);
    font-size: clamp(34px, 4vw, 48px);
}

.stat-box p {
    color: var(--text);
    font-weight: 600;
}

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

.service-card,
.value-card,
.mission-card,
.benefit-card,
.position-card,
.contact-card {
    min-height: 100%;
    padding: 36px;
    border: 1px solid rgba(200, 155, 60, 0);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(7, 21, 46, .06);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}

.service-card:hover,
.value-card:hover,
.mission-card:hover,
.benefit-card:hover,
.position-card:hover,
.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(200, 155, 60, .58);
    box-shadow: var(--shadow);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgba(200, 155, 60, .12);
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}
.service-card h3,
.value-card h3,
.mission-card h3,
.benefit-card h3,
.position-card h3,
.contact-card h3 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 14px;
}

.service-card p,
.value-card p,
.mission-card p,
.benefit-card p,
.position-card p,
.contact-card p {
    color: var(--text);
}

.premium-card {
    background: var(--primary);
}

.premium-card h3,
.premium-card p {
    color: var(--white);
}

.premium-card p {
    opacity: .78;
}

.split-grid {
    display: grid;
    align-items: center;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
}

.split-content h2 {
    margin: 18px 0 22px;
}

.trust-list,
.expertise-list {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.trust-list div,
.expertise-list li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-left: 3px solid var(--gold);
    background: rgba(248, 245, 240, .8);
}

.trust-list strong,
.expertise-list strong {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1;
}

.trust-list span,
.expertise-list span {
    color: var(--text);
    font-weight: 600;
}

.process-section {
    background: var(--primary);
}

.process-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-wrapper::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 34px;
    height: 1px;
    background: linear-gradient(90deg, rgba(200, 155, 60, 0), rgba(200, 155, 60, .65), rgba(200, 155, 60, 0));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s ease;
}

.process-wrapper.aos-animate::before {
    transform: scaleX(1);
}

.process-step {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(200, 155, 60, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    text-align: center;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 155, 60, .55);
    background: rgba(255, 255, 255, .08);
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-weight: 800;
}

.process-step h3 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 12px;
}

.process-step p {
    color: #CBD5E1;
    font-size: 14px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.industry-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 28px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: 27px;
    font-weight: 700;
    text-align: center;
    transition: transform .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
}

.industry-card:hover {
    transform: translateY(-8px);
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 18px 45px rgba(200, 155, 60, .25);
}

.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform .8s ease;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%;
    min-height: 285px;
    padding: 48px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.testimonial-card p {
    color: var(--primary);
    font-family: "Playfair Display", serif;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.25;
}

/* =========================
   RESPONSIVE RULES
========================= */

/* Tablet and smaller: move navbar to top, enable mobile menu */
@media (max-width: 900px) {
    .nav-container {
        gap: 12px;
    }

    .brand img {
        width: 160px;
        max-height: 56px;
    }

    .nav-links {
        display: none;
        position: fixed; /* make independent of container to avoid clipping */
        /* place the menu above the floating bottom navbar */
        bottom: calc(72px + 12px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(7,21,46,0.98);
        border-radius: 12px;
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        min-width: 220px;
        max-width: calc(100% - 40px);
        box-shadow: 0 18px 40px rgba(7,21,46,0.45);
        z-index: 2200;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }

    .nav-menu.open .nav-links {
        display: flex;
    }

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

    /* ensure nav-menu is the positioned ancestor for the dropdown */
    .nav-menu {
        position: relative;
    }

    .nav-links li a {
        display: block;
        padding: 10px 14px;
        color: var(--white);
        font-weight: 700;
    }

    /* force visible when open */
    .nav-menu.open .nav-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .menu-toggle {
        z-index: 2300;
        position: relative;
    }

    .nav-cta {
        display: none;
    }

    .container {
        width: min(94%, 1100px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 0;
    }

    /* hide decorative hero overlays on small and tablet screens */
    .hero::after,
    .page-hero::after,
    .hero-cursor-glow {
        display: none;
    }


/* Strong override for narrower viewports in case of caching or specificity issues */
@media (max-width: 1200px) {
    .hero::after,
    .page-hero::after,
    .hero-cursor-glow {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate3d(0,0,0) scale(0) !important;
        pointer-events: none !important;
    }
}
    .hero-visual img,
    .split-media img,
    .image-panel img {
        min-height: 260px;
    }

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

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

/* Mobile: stack content, reduce paddings */
@media (max-width: 600px) {
    .container {
        width: min(96%, 960px);
    }

    .section {
        padding: 48px 0;
    }

    .hero.home-hero {
        min-height: 60vh;
        padding: 40px 0 60px;
    }

    .hero h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .page-hero {
        padding: 60px 0 48px;
    }

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

    .services-grid,
    .value-grid,
    .benefits-grid,
    .positions-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .brand img {
        width: 140px;
        max-height: 48px;
    }

    .testimonial-card {
        padding: 28px;
        min-height: auto;
    }

    .hero-visual img,
    .split-media img,
    .image-panel img {
        min-height: 180px;
    }

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

    .form-panel {
        width: 100%;
        padding: 20px;
    }

    /* hide large decorative glows/overlays on small screens to avoid blocking content */
    .hero::after,
    .page-hero::after,
    .hero-cursor-glow {
        display: none;
    }
}

/* Small desktops / laptops: moderate widths */
@media (min-width: 901px) and (max-width: 1366px) {
    .container {
        width: min(92%, 1200px);
    }

    .services-grid,
    .value-grid,
    .benefits-grid,
    .positions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial-card h4 {
    margin-top: 28px;
    color: var(--primary);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.testimonial-card span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cta-section {
    padding: 105px 0;
    background: linear-gradient(120deg, var(--primary), var(--primary-soft), #211909, var(--primary));
    background-size: 260% 260%;
    animation: gradientDrift 13s ease infinite;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    margin: 18px 0;
    color: var(--white);
}

.cta-box p {
    max-width: 700px;
    margin: 0 auto 34px;
    color: #D5DCE7;
}

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

.about-hero {
    --hero-image: url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1800&q=80");
}

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

.mission-card {
    border-color: rgba(200, 155, 60, .28);
}

.mission-card h3 {
    font-size: 36px;
}

.about-values {
    background: var(--white);
}

.expertise-section {
    background: var(--primary);
}

.expertise-section .split-content h2,
.expertise-section .split-content p {
    color: var(--white);
}

.expertise-section .split-content p {
    opacity: .78;
}

.expertise-section .trust-list div {
    background: rgba(255, 255, 255, .06);
}

.expertise-section .trust-list span {
    color: #D7DEE8;
}

.founders-section {
    background: rgba(255, 255, 255, .95);
}

.founders-section .section-heading {
    margin-bottom: 42px;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    justify-items: center;
}

.founder-card {
    width: min(420px, 100%);
    padding: 34px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(7, 21, 46, .08);
    border: 1px solid rgba(200, 155, 60, .12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(7, 21, 46, .14);
}

.founder-card h3 {
    font-size: clamp(28px, 3vw, 34px);
    margin-bottom: 10px;
    color: var(--primary);
}

.founder-card p {
    color: var(--text);
    font-weight: 600;
    letter-spacing: .02em;
}

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
    }
}

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

.services-hero {
    --hero-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=80");
}

.service-detail {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
    align-items: start;
    padding: 46px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 12px 38px rgba(7, 21, 46, .07);
}

.service-detail + .service-detail {
    margin-top: 28px;
}

.service-detail:nth-child(even) {
    background: #FCFBF8;
}

.service-detail h2 {
    color: var(--primary);
    font-size: clamp(32px, 4vw, 48px);
}

.service-detail p {
    margin-top: 18px;
    color: var(--text);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-list li {
    padding: 16px 18px;
    border: 1px solid rgba(200, 155, 60, .22);
    border-radius: 8px;
    background: rgba(248, 245, 240, .72);
    color: var(--primary);
    font-weight: 700;
}

/* =========================
   INDUSTRIES PAGE
========================= */

.industries-hero {
    --hero-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.industry-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.industry-panel {
    min-height: 260px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.industry-panel img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    opacity: .82;
    transition: transform .6s ease, opacity .35s ease;
}

.industry-panel:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.industry-panel div {
    padding: 24px;
}

.industry-panel h3 {
    color: var(--white);
    font-size: 25px;
}

.industry-panel p {
    margin-top: 10px;
    color: #CBD5E1;
    font-size: 14px;
}

/* =========================
   CAREERS & CONTACT
========================= */

.careers-hero {
    --hero-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=80");
}

.contact-hero {
    --hero-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80");
}

.position-card ul {
    margin: 18px 0 24px;
}

.position-card li {
    color: var(--text);
    margin-bottom: 8px;
}

.form-grid,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-panel,
.map-placeholder {
    padding: 42px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-panel h2,
.map-placeholder h2 {
    color: var(--primary);
    font-size: 40px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(7, 21, 46, .14);
    border-radius: 8px;
    background: #FCFBF8;
    color: var(--ink);
    font: inherit;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 155, 60, .12);
}

.form-note {
    margin-top: 18px;
    color: var(--gold);
    font-weight: 800;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 34px;
}

.map-box {
    min-height: 360px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(200, 155, 60, .55);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(7, 21, 46, .92), rgba(13, 33, 68, .92)),
        url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80") center/cover;
    color: var(--white);
    text-align: center;
}

.whatsapp-cta {
    margin-top: 24px;
    padding: 26px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
}

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

.footer {
    background: #020817;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.1fr;
    gap: 42px;
    padding: 78px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 210px;
    max-width: 100%;
    height: auto;
}

.footer p,
.footer li,
.footer a {
    color: #AEB9C8;
}

.footer h4 {
    margin-bottom: 18px;
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.footer li {
    margin-bottom: 10px;
    font-size: 14px;
}

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

.copyright {
    padding: 28px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8D99AA;
    font-size: 14px;
    text-align: center;
}

/* =========================
   ANIMATIONS
========================= */

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

@keyframes pageReveal {
    from { opacity: 1; transform: scaleY(1); transform-origin: top; }
    to { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

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

@keyframes gentleFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@keyframes heroZoom {
    from { background-size: 105%; }
    to { background-size: 112%; }
}

@keyframes gradientDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .hero-container,
    .split-grid,
    .service-detail {
        gap: 42px;
    }

    .industry-panel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        bottom: 90px;
        top: auto;
        left: 5%;
        right: 5%;
        z-index: 1001;
        max-height: 0;
        overflow: hidden;
        border: 1px solid rgba(200, 155, 60, .24);
        border-radius: 12px;
        background: rgba(7, 21, 46, .98);
        box-shadow: var(--shadow);
        transition: max-height .35s ease;
    }

    .nav-menu.open {
        max-height: 460px;
    }

    .nav-links {
        display: grid;
        gap: 0;
        padding: 16px;
    }

    .nav-links a {
        display: block;
        padding: 13px 8px;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container,
    .split-grid,
    .service-detail,
    .form-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual img,
    .split-media img,
    .image-panel img {
        min-height: 340px;
    }

    .stats-wrapper,
    .industry-grid,
    .process-wrapper,
    .footer-grid,
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .value-grid,
    .benefits-grid,
    .positions-grid,
    .industry-panel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-wrapper::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 78px 0;
    }

    .home-hero,
    .page-hero {
        padding: 90px 0 72px;
        min-height: 70vh;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-light {
        width: 100%;
    }

    .floating-stats {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: -10px;
        animation: none;
    }

    .stats-wrapper,
    .services-grid,
    .value-grid,
    .benefits-grid,
    .positions-grid,
    .industry-grid,
    .industry-panel-grid,
    .process-wrapper,
    .footer-grid,
    .mission-grid,
    .feature-list,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .value-card,
    .mission-card,
    .benefit-card,
    .position-card,
    .contact-card,
    .service-detail,
    .form-panel,
    .map-placeholder {
        padding: 28px;
    }

    .testimonial-card {
        padding: 32px;
        min-height: 330px;
    }

    .hero-cursor-glow,
    .hero::after,
    .page-hero::after {
        display: none;
    }

    [data-aos-delay] {
        transition-delay: 0s !important;
    }
}

/* Final mobile cleanup override for all pages */
@media (max-width: 900px) {
    .navbar {
        bottom: 24px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: min(1180px, calc(100% - 44px));
        border-radius: 999px;
    }

    .nav-menu {
        position: fixed;
        bottom: 90px;
        left: 5%;
        right: 5%;
        max-height: 0;
        overflow: hidden;
        border: 1px solid rgba(200, 155, 60, .24);
        border-radius: 16px;
        background: rgba(7, 21, 46, .98);
        box-shadow: 0 28px 80px rgba(7, 21, 46, .18);
        transition: max-height .35s ease;
        z-index: 1200;
    }

    .nav-menu.open {
        max-height: 460px;
    }

    .nav-links {
        display: grid;
        gap: 0;
        padding: 16px;
    }

    .nav-links li a {
        display: block;
        padding: 14px 16px;
    }

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

    .nav-cta {
        display: none;
    }

    .hero-container,
    .split-grid,
    .service-detail,
    .form-grid,
    .contact-layout,
    .industry-panel-grid,
    .mission-grid,
    .founder-grid,
    .services-grid,
    .value-grid,
    .benefits-grid,
    .positions-grid,
    .industry-grid,
    .feature-list,
    .contact-info-grid,
    .process-wrapper,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-visual img,
    .split-media img,
    .image-panel img {
        min-height: 220px;
    }

    .home-hero,
    .page-hero {
        padding: 70px 0 48px;
        min-height: auto;
    }

    .page-hero-content {
        gap: 20px;
    }

    .section {
        padding: 56px 0;
    }

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

@media (max-width: 480px) {
    .brand img {
        width: 150px;
        height: 46px;
    }

    .stats-wrapper {
        padding: 24px;
    }

    .floating-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
