@charset "UTF-8";

@font-face {
    font-family: 'OceaniaRO';
    src: url('../oceania_ro/OceaniaRO_2-Bold.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy:        #00155E;       --navy-2:      #0B2072;       --white:       #FFFFFF;
    --blue:        #1B78BF;       --cyan:        #29ABE2;       --sky:         #DCEBFA;       --gray:        #B5BAC3;

    --font-text:   'Rubik', system-ui, sans-serif;
    --font-titlu:  'OceaniaRO';

    --maxw:        1440px;        --nav-h:       118px;         --nav-h-mob:   88px;

    --t-fast: .2s ease;
    --t: .35s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-text);
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titlu);
    font-weight: 800;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 21, 94, .06);
}

.nav-edge {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 26px;
    transform: translateY(99%);
    fill: var(--white);
    pointer-events: none;
    display: block;
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo img {
    height: 131px;
    width: auto;
}

.nav-menu { display: contents; }

.nav-grup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 7vw, 6.5rem);
}

.nav-stanga  { grid-column: 1; grid-row: 1; justify-self: end; margin-right: clamp(1.75rem, 3.8vw, 3.5rem); }
.nav-dreapta {
    grid-column: 3;
    grid-row: 1;
    justify-self: stretch;
    margin-left: clamp(1.75rem, 3.8vw, 3.5rem);
}
.nav-dreapta li:last-child { margin-left: auto; }

.nav-menu a {
    position: relative;
    display: inline-block;
    color: var(--navy);
    font-weight: 700;
    font-size: clamp(.875rem, 1.05vw, 1.0625rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .5rem 0;
    white-space: nowrap;
    transition: color var(--t-fast);
}

.nav-dreapta li:last-child a {
    font-size: clamp(.625rem, .72vw, .75rem);
    padding: .85em 2.1em;
    border: 2px solid var(--navy);
    border-radius: 999px;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav-dreapta li:last-child a::after { content: none; }
.nav-dreapta li:last-child a:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--navy-2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t);
}
.nav-menu a:hover { color: var(--navy-2); }
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
    display: none;
    width: 34px; height: 26px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: var(--navy);
    transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

@media (max-width: 900px) {
    :root { --nav-h: var(--nav-h-mob); }

    .navbar {
        background: transparent;
        box-shadow: none;
        position: absolute;
        top: 0;
        z-index: 100;
    }

    .nav-inner {
        visibility: hidden;
        height: 0;
        overflow: visible;
        padding: 0;
        display: flex;
    }

    .nav-logo {
        display: none;
    }

    .nav-edge {
        display: none;
    }

    .nav-toggle {
        display: flex !important;
        visibility: visible !important;
        position: fixed;
        top: 1rem;
        right: 1.25rem;
        z-index: 1001;
        background: none;
        width: 34px;
        height: 26px;
    }
    .nav-toggle span {
        background: var(--white);
        visibility: visible;
    }
    .nav-toggle.open span {
        background: var(--navy);
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0);
        box-shadow: none;
        transition: max-height var(--t);
        flex-direction: column;
        justify-content: flex-start;
        z-index: 999;
        padding-top: 100px;
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
        visibility: visible;
    }
    .nav-menu.open { max-height: 90vh; overflow-y: auto; background: rgba(255, 255, 255, 1); }
    .nav-grup {
        grid-column: auto;
        justify-self: auto;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        border: none;
    }
    .nav-stanga {
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
        margin-right: 0;
        width: 100%;
        border-top: 1px solid rgba(0, 21, 94, .1);
        border-bottom: 1px solid rgba(0, 21, 94, .1);
    }
    .nav-dreapta {
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
        margin-left: 0;
        width: 100%;
    }
    .nav-dreapta li:last-child { margin-left: 0; }
    .nav-menu a {
        display: block;
        padding: 1.25rem 0;
        text-align: center;
        color: var(--navy);
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 21, 94, .07);
    }
    .nav-menu li:last-child a { border-bottom: none; }
    .nav-dreapta li:last-child a {
        padding: 1.25rem 0;
        border: none;
        font-size: clamp(.625rem, .72vw, .75rem);
        padding: .85em 2.1em;
        border: 2px solid var(--navy);
        border-radius: 999px;
        transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
    }
    .nav-dreapta li:last-child a:hover {
        background: none;
        color: var(--navy);
        transform: none;
    }
}

.footer {
    position: relative;
    z-index: 1;
    background: var(--navy);
    color: var(--white);
    padding: clamp(2.5rem, 4.5vw, 3.5rem) 0 clamp(1.5rem, 2.5vw, 2.25rem);
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.footer-logo { justify-self: start; }
.footer-logo img {
    height: clamp(40px, 4.2vw, 54px);
    width: auto;
}

.footer-nav {
    grid-column: 2;
    display: flex;
    justify-content: center;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
}
.footer-nav a {
    position: relative;
    display: inline-block;
    color: var(--white);
    font-weight: 700;
    font-size: clamp(.6875rem, .85vw, .8125rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .92;
    padding: .35rem 0;
    transition: opacity var(--t-fast);
}
.footer-nav a:hover { opacity: 1; }

.footer-social {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 3.4vw, 46px);
    height: clamp(38px, 3.4vw, 46px);
    color: var(--white);
    opacity: .92;
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.footer-social-link svg { width: 100%; height: 100%; }
.footer-social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-legal {
    max-width: var(--maxw);
    margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
    text-align: center;
}
.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem clamp(.5rem, 1vw, .875rem);
    margin-bottom: .625rem;
}
.footer-legal li + li::before {
    content: '|';
    margin-right: clamp(.5rem, 1vw, .875rem);
    opacity: .45;
}
.footer-legal a {
    color: var(--white);
    font-weight: 500;
    font-size: clamp(.75rem, .9vw, .875rem);
    opacity: .92;
}
.footer-legal a:hover { text-decoration: underline; }

.footer p {
    color: var(--white);
    font-weight: 500;
    font-size: .6875rem;
    opacity: .6;
    margin: 0;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-logo { justify-self: center; }
    .footer-nav { grid-column: 1; }
    .footer-nav ul { gap: .75rem 1.25rem; }
    .footer-social { grid-column: 1; justify-self: center; }
}
.nav-menu li:has(a[href*="castigatori"]),
.nav-menu a[href*="castigatori"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-menu a[href*="castigatori"] {
    color: var(--navy) !important;
}