/* ================================================================
   HOME PAGE HERO: CORPORATE OFFICE DESIGN
   Loaded after landing.css on index.html only. Scoped to
   <body class="lk-v3"> and only restyles the hero.
================================================================ */


/* ================================================================
   CORPORATE OFFICE  (index.html, body.lk-v3)
   Full-width office atrium photo under a navy/teal overlay, centred
   message (no portrait), a data-network graphic on the right, and the
   stats as a floating white card.
================================================================ */

.lk-v3 .lk-hero {
    background: var(--lk-navy-950) url(../img/bg-img/office-hero.jpg?v=c25144d95a) center 60% / cover no-repeat;
}

.lk-v3 .lk-hero::before {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(8, 145, 178, .20), transparent 60%),
        linear-gradient(180deg, rgba(3, 27, 40, .62) 0%, rgba(4, 43, 59, .44) 45%, rgba(3, 27, 40, .72) 100%);
}

.lk-v3 .lk-hero .hero-inner { padding-bottom: 200px; }
/* Compact buttons */
.lk-v3 .lk-hero .hero-btns .lkcentrix-btn,
.lk-v3 .lk-hero .hero-btns .btn-hero-outline {
    min-width: 138px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 12px;
}

.lk-v3 .lk-hero .hero-btns .lkcentrix-btn,
.lk-v3 .lk-hero .hero-btns .btn-hero-outline {
    transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* Hover: Our Services turns purple, Contact Us fills white */
.lk-v3 .lk-hero .hero-btns .lkcentrix-btn:hover,
.lk-v3 .lk-hero .hero-btns .lkcentrix-btn:focus-visible {
    border-color: rgba(255, 255, 255, .25);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 16px 34px rgba(109, 40, 217, .40);
    transform: translateY(-2px);
}

.lk-v3 .lk-hero .hero-btns .btn-hero-outline:hover,
.lk-v3 .lk-hero .hero-btns .btn-hero-outline:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--lk-navy-950);
    box-shadow: 0 16px 34px rgba(2, 20, 30, .30);
    transform: translateY(-2px);
}

.lk-v3 .lk-hero .hero-copy { max-width: none; }

/* "Welcome to LKCentrix Solutions" with the eyebrow line above it */
.lk-v3 .lk-hero h1.hero-welcome {
    min-height: 0;
    margin-bottom: 52px; /* breathing room above the rotating service name */
    color: #fff;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: -.03em;
    text-shadow: none;
}

.lk-v3 .lk-hero h1::before { color: var(--lk-cyan); }

/* The rotating service name: the big line of the hero */
.lk-v3 .hero-rotator {
    margin-bottom: 22px;
    color: var(--lk-cyan);
    font-family: 'Lexend', sans-serif;
    font-size: clamp(34px, 3.5vw, 46px); /* fits "Supply Chain Management" beside the network graphic */
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.lk-v3 .hcw-word { color: var(--lk-cyan); }

.lk-v3 .lk-hero .hero-sub {
    max-width: 620px;
    color: rgba(255, 255, 255, .82);
}

.lk-v3 .lk-hero .btn-hero-outline {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.lk-v3 .lk-hero .btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* Stats: a floating white card instead of a full-width bar */
.lk-v3 .hero-stats {
    right: 24px;
    bottom: 32px;
    left: 24px;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--lk-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(2, 20, 30, .35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lk-v3 .hero-stat { min-height: 74px; padding: 12px 10px; border-right-color: var(--lk-border); border-bottom-color: var(--lk-border); }
.lk-v3 .hero-stat strong { font-size: 24px; }
.lk-v3 .hero-stat span { margin-top: 5px; font-size: 8px; }
.lk-v3 .hero-stat span { color: var(--lk-ink-soft); }
.lk-v3 .hero-stat:nth-child(1) strong { color: #7c3aed; }
.lk-v3 .hero-stat:nth-child(2) strong { color: #059669; }
.lk-v3 .hero-stat:nth-child(3) strong { color: var(--lk-navy-950); }
.lk-v3 .hero-stat:nth-child(4) strong { color: #dc2626; }

@media (max-width: 767px) {
    .lk-v3 .lk-hero .hero-inner { padding-bottom: 240px; }
    .lk-v3 .hero-stat { min-height: 62px; padding: 10px 6px; }
    .lk-v3 .hero-stat strong { font-size: 20px; }
    .lk-v3 .lk-hero .hero-btns { flex-direction: row; max-width: none; }
    .lk-v3 .lk-hero .hero-btns .lkcentrix-btn,
    .lk-v3 .lk-hero .hero-btns .btn-hero-outline { width: auto; min-width: 130px; }
    .lk-v3 .hero-stats { right: 12px; left: 12px; bottom: 20px; border-radius: 18px; }
}

/* Data network graphic on the right */
.lk-v3 .hero-network {
    position: relative;
    max-width: 560px;
    margin-left: auto;
    /* push out of the page container to sit near the right edge of the screen */
    --cw: 1140px;
    margin-right: min(0px, calc((100vw - var(--cw)) / -2 + 32px));
    animation: v3Enter 1s cubic-bezier(.2, .8, .2, 1) both, v3NetFloat 7s ease-in-out 2s infinite alternate;
    --from: translateX(80px);
    animation-delay: calc(.5s + var(--wait, 1.1s)), 2.5s;
}

.lk-return .lk-v3 .hero-network { --wait: 0s; }

/* soft glow behind the network */
.lk-v3 .hero-network::before {
    content: '';
    position: absolute;
    inset: 12% 10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 197, 231, .30), transparent 70%);
    filter: blur(20px);
}

.lk-v3 .hero-network img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(2, 20, 30, .45));
}

@keyframes v3NetFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}

@media (max-width: 1199px) {
    .lk-v3 .hero-network { --cw: 960px; }
}

@media (max-width: 991px) {
    .lk-v3 .hero-network { max-width: 460px; margin: 44px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
    .lk-v3 .hero-network { animation: none; }
}

/* ---- Design D motion ----------------------------------------- */

/* Rotating service name + description: enter from the side set in data-dir,
   and leave by carrying on in the same direction */
@keyframes v3InLeft   { from { opacity: 0; transform: translateX(-90px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes v3InRight  { from { opacity: 0; transform: translateX(90px);  filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes v3InTop    { from { opacity: 0; transform: translateY(-45px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes v3InBottom { from { opacity: 0; transform: translateY(45px);  filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes v3OutLeft   { to { opacity: 0; transform: translateX(90px);  filter: blur(6px); } }
@keyframes v3OutRight  { to { opacity: 0; transform: translateX(-90px); filter: blur(6px); } }
@keyframes v3OutTop    { to { opacity: 0; transform: translateY(45px);  filter: blur(6px); } }
@keyframes v3OutBottom { to { opacity: 0; transform: translateY(-45px); filter: blur(6px); } }

.lk-v3 .hcw-entering[data-dir="left"]   { animation-name: v3InLeft; }
.lk-v3 .hcw-entering[data-dir="right"]  { animation-name: v3InRight; }
.lk-v3 .hcw-entering[data-dir="top"]    { animation-name: v3InTop; }
.lk-v3 .hcw-entering[data-dir="bottom"] { animation-name: v3InBottom; }
.lk-v3 .hcw-exiting[data-dir="left"]    { animation-name: v3OutLeft; }
.lk-v3 .hcw-exiting[data-dir="right"]   { animation-name: v3OutRight; }
.lk-v3 .hcw-exiting[data-dir="top"]     { animation-name: v3OutTop; }
.lk-v3 .hcw-exiting[data-dir="bottom"]  { animation-name: v3OutBottom; }

/* Page load: each part of the message slides in from a different side.
   On a first visit it waits ~1.1s for the preloader to clear. */
@keyframes v3Enter { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }

.lk-v3 .hero-copy > * {
    animation: v3Enter .9s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--d, 0s) + var(--wait, 1.1s));
}

.lk-return .lk-v3 .hero-copy > * { --wait: 0s; }

.lk-v3 .hero-copy > .hero-welcome { --from: translateX(-70px); --d: .15s; }
.lk-v3 .hero-copy > .hero-rotator { --from: translateX(70px);  --d: .35s; }
.lk-v3 .hero-copy > .hero-sub     { --from: translateX(-50px); --d: .55s; }
.lk-v3 .hero-copy > .hero-btns    { --from: translateY(40px);  --d: .75s; }

@media (prefers-reduced-motion: reduce) {
    .lk-v3 .hero-copy > * { animation: none; }
}

/* ---- Design D: typewriter service name ---------------------- */
/* blinking caret after the typed text */
.lk-v3 .hcw-word.is-typing::after {
    content: '';
    display: inline-block;
    width: .08em;
    height: .9em;
    margin-left: .08em;
    vertical-align: -.08em;
    background: currentColor;
    animation: v3Caret .9s steps(1) infinite;
}

@keyframes v3Caret { 50% { opacity: 0; } }

/* first word white, the rest brand blue; the caret takes the blue */
.lk-v3 .hcw-word .hcw-first { color: #fff; }
.lk-v3 .hcw-word .hcw-rest { color: var(--lk-cyan); }

/* description cross-fade while the name is retyped */
/* (filter, not opacity: the load animation keeps opacity locked at 1) */
.lk-v3 .hero-sub { transition: filter .25s ease; }
.lk-v3 .hero-sub.hcw-fade { filter: opacity(0); }

@media (prefers-reduced-motion: reduce) {
    .lk-v3 .hcw-word.is-typing::after { animation: none; }
}
