/* ——— Top navigation (logo + links + actions) ——— */
.front-nav-shell {
    border-radius: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 768px) {
    .front-nav-shell {
        border-radius: 1rem;
        padding: 0.625rem 1rem;
    }
}

.front-nav-brand img {
    display: block;
    height: 2.25rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .front-nav-brand img {
        height: 2.5rem;
        max-width: 11rem;
    }
}

/* Desktop nav: use CSS breakpoints — compiled output.css has no .lg:flex, so Tailwind
   "hidden lg:flex" never showed the menu. Toggle display here instead. */
.front-nav-links {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin: 0 0.5rem;
}

.front-nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.front-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.front-nav-actions {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .front-nav-links {
        display: flex;
    }

    .front-nav-actions {
        display: flex;
    }
}

.front-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
        border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .front-nav-btn {
        font-size: 0.875rem;
        padding: 0.55rem 1.25rem;
    }
}

.front-nav-btn--primary {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.front-nav-btn--primary:hover {
    background: #f9fafb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.front-nav-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.front-nav-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
}

.front-nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 5.5rem;
    padding: 0.45rem 0.65rem;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.front-nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
}

.front-nav-lang-flag {
    border-radius: 2px;
    flex-shrink: 0;
}

.front-nav-lang-chevron {
    width: 1rem;
    height: 1rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.front-nav-lang-menu {
    min-width: 7.5rem;
    list-style: none;
    margin: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.front-nav-lang-item {
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.12s ease;
}

.front-nav-lang-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.front-nav-burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.front-nav-burger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1024px) {
    .front-nav-burger-btn {
        display: none !important;
    }
}

/* Mobile slide-out panel */
.front-mobile-drawer {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* Register (and similar): top bar only, no hero image or breadcrumb band */
.front-header-compact {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 48%, #5b21b6 100%);
}

.front-header-compact .front-hero-nav {
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .front-header-compact .front-hero-nav {
        padding-bottom: 1rem;
    }
}

/* Full-viewport hero (home only) */
.front-hero-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.front-hero-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.front-hero-body--full {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.front-hero-content {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.75rem, 2.5vw, 2.5rem);
    padding-right: clamp(0.75rem, 2.5vw, 2.5rem);
}

@media (min-width: 1536px) {
    .front-hero-content {
        max-width: 1920px;
    }
}

/* Hero row: fill width + vertical balance */
.front-hero-layout {
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .front-hero-layout {
        flex-wrap: nowrap;
        min-height: calc(100vh - 5.75rem);
        min-height: calc(100dvh - 5.75rem);
        align-items: center;
    }

    .front-hero-copy {
        flex: 0 1 44%;
        max-width: 40rem;
        min-width: 0;
    }

    .front-hero-visual {
        flex: 1 1 56%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .front-hero-visual-inner {
        width: 100%;
        max-width: 42rem;
        margin-left: auto;
    }
}

@media (min-width: 1280px) {
    .front-hero-copy {
        flex-basis: 42%;
        max-width: 44rem;
    }

    .front-hero-visual-inner {
        max-width: 48rem;
    }
}

@media (min-width: 1536px) {
    .front-hero-copy {
        max-width: 50rem;
    }

    .front-hero-visual-inner {
        max-width: none;
        width: 100%;
    }
}

/* Hero heading: subtitle, title, description */
.front-hero-heading {
    margin-bottom: 0.25rem;
}

.front-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 1.25rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.front-hero-title {
    margin: 0 0 1.25rem;
    max-width: 100%;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
}

.front-hero-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 1.1rem;
    border-radius: 9999px;
    background: linear-gradient(
        90deg,
        #4ade80 0%,
        #6cd5f7 45%,
        #5b6af0 100%
    );
    box-shadow: 0 2px 12px rgba(91, 106, 240, 0.35);
}

@media (min-width: 768px) {
    .front-hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .front-hero-title {
        font-size: 3.25rem;
    }
}

.front-hero-lead {
    position: relative;
    margin: 0 0 1.75rem;
    max-width: 100%;
    padding-left: 1.15rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.front-hero-lead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 3px;
    border-radius: 9999px;
    background: linear-gradient(
        180deg,
        #86efac 0%,
        #6cd5f7 50%,
        #818cf8 100%
    );
}

/* Hero feature grid (replaces bullet list) */
.front-hero-features {
    display: flex;
    flex-wrap: wrap;
    margin: -0.375rem -0.5rem;
}

.front-hero-feature-item {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 0.375rem 0.5rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.front-hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .front-hero-feature-item {
        width: calc(50% - 1rem);
    }
}

.front-hero-feature-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, #bbf7d0 0%, #4ade80 55%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.front-hero-feature-icon img {
    width: 0.75rem;
    height: 0.75rem;
    filter: brightness(0) invert(1);
}

.front-hero-feature-text {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    padding-top: 0.125rem;
}
