/**
 * StawiHR — modern public landing & front shell
 */
:root {
    --front-blue: #2F70FF;
    --front-blue-dark: #1e55d4;
    --front-blue-deep: #163a9e;
    --front-orange: #f97316;
    --front-orange-soft: rgba(249, 115, 22, 0.28);
    --front-text: #0f172a;
    --front-muted: #64748b;
    --front-surface: #ffffff;
    --front-page-bg: #f1f5f9;
    --front-radius: 14px;
    --front-header-h: 72px;
    --landing-footer-h: 44px;
}

body.front-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--front-text);
    background: var(--front-page-bg);
    margin: 0;
}

/* Home: single viewport, no scroll */
html.landing-home-html,
html.landing-home-html body.landing-home {
    height: 100%;
    overflow: hidden;
}

body.landing-home {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--front-blue-deep);
}

body.landing-home .landing-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.landing-home .front-header {
    position: relative;
    flex-shrink: 0;
}

body.landing-home .landing-home-footer {
    flex-shrink: 0;
    height: var(--landing-footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.front-modern #preloader {
    background: linear-gradient(165deg, var(--front-blue-deep), var(--front-blue));
}

/* ── Header ── */
.front-modern .front-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--front-header-h);
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(22, 58, 158, 0.92) 0%,
        rgba(47, 112, 255, 0.88) 55%,
        rgba(36, 84, 201, 0.9) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(22, 58, 158, 0.2);
}

.front-modern .front-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 120% at 100% 0%, var(--front-orange-soft), transparent 60%);
    pointer-events: none;
}

.front-modern .front-header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.front-modern .front-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
}

.front-modern .front-brand img {
    max-height: 44px;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.front-modern .front-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.front-modern .front-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.front-modern .front-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
}

.front-modern .front-btn-primary {
    background: #fff;
    color: var(--front-blue-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.front-modern .front-btn-primary:hover {
    background: #f8fafc;
    color: var(--front-blue-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.front-modern .front-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.front-modern .front-btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ── Hero (fills remaining viewport on home) ── */
.front-modern .landing-hero {
    position: relative;
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

body:not(.landing-home) .landing-hero {
    min-height: calc(100vh - var(--front-header-h));
    padding-top: calc(var(--front-header-h) + 2rem);
}

.front-modern .landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(22, 58, 158, 0.88) 0%,
        rgba(47, 112, 255, 0.82) 45%,
        rgba(30, 85, 212, 0.85) 100%
    );
}

.front-modern .landing-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 85% 15%,
        rgba(249, 115, 22, 0.32) 0%,
        transparent 55%
    );
}

.front-modern .landing-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.front-modern .landing-tagline {
    color: #fff;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

/* ── Footer (non-home pages) ── */
.front-modern .front-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 1.25rem;
}

.front-modern .front-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.front-modern .front-footer-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.front-modern .front-footer-meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.front-modern .front-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
}

.front-modern .front-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.front-modern .front-footer-links a:hover {
    color: #fff;
}

body.front-modern .front-page-content {
    padding-top: var(--front-header-h);
}

body.front-modern #back-to-top {
    background: var(--front-blue);
    border-color: var(--front-blue);
}

@media (max-width: 575.98px) {
    :root {
        --front-header-h: 64px;
        --landing-footer-h: 40px;
    }
}
