/* Explain: Styles for various UI components including navigation, modals, cards, and forms. - */
.brand-lockup {
    align-items: center;
    background: rgba(47, 79, 79, 0.9);
    border: 1px solid rgba(211, 211, 211, 0.28);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    color: white;
    display: inline-flex;
    font-family: var(--font-heading);
    gap: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.5rem 0.8rem 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
}

.brand-mark {
    background: var(--accent-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    display: inline-block;
    height: 1.2rem;
    width: 1.2rem;
}

.menu-toggle {
    align-items: center;
    background: rgba(47, 79, 79, 0.94);
    border: 1px solid rgba(211, 211, 211, 0.32);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-heading);
    gap: 0.85rem;
    letter-spacing: 0.08em;
    min-height: 3.35rem;
    padding: 0.8rem 1.45rem 0.8rem 1.2rem;
    pointer-events: auto;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
}

.menu-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 100;
}

.menu-modal[hidden] {
    display: none;
}

.menu-modal-backdrop {
    background: rgba(20, 35, 35, 0.78);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 0.22s ease;
}

.menu-modal-panel {
    background:
        linear-gradient(135deg, rgba(255, 140, 0, 0.12), transparent 48%),
        var(--surface-color);
    box-shadow: var(--shadow-strong);
    border-radius: 1.5rem;
    max-height: min(92dvh, 54rem);
    opacity: 0;
    overflow-y: auto;
    padding: clamp(1.4rem, 4vw, 2.7rem);
    position: relative;
    transform: translateY(1rem) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
    width: min(58rem, calc(100vw - 2rem));
}

.menu-modal.is-open .menu-modal-backdrop,
.menu-modal.is-open .menu-modal-panel {
    opacity: 1;
}

.menu-modal.is-open .menu-modal-panel {
    transform: translateY(0) scale(1);
}

.menu-modal-close {
    align-items: center;
    background: var(--slate-color);
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 0.55rem;
    letter-spacing: 0.14em;
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    position: absolute;
    right: 1.15rem;
    text-transform: uppercase;
    top: 1.15rem;
    transition: all 0.25s ease;
}

.menu-modal-close:hover,
.menu-modal-close:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
}

.menu-modal-title {
    color: var(--slate-color);
    font-size: clamp(3rem, 8vw, 5.8rem);
    letter-spacing: -0.03em;
    margin-top: 1.2rem;
    max-width: 11ch;
}

.menu-modal-nav {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

.menu-modal-link {
    align-items: center;
    background: rgba(47, 79, 79, 0.07);
    border: 1px solid rgba(47, 79, 79, 0.16);
    clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 50%, calc(100% - 1.25rem) 100%, 0 100%);
    color: var(--slate-color);
    display: flex;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 7vw, 3.1rem);
    gap: 1rem;
    justify-content: space-between;
    letter-spacing: -0.015em;
    line-height: 1;
    min-height: 4.5rem;
    padding: 0.9rem 1.35rem;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.menu-modal-link:hover,
.menu-modal-link:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
    transform: translateX(0.35rem);
}

.menu-modal-icon {
    align-items: center;
    background: var(--slate-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    color: var(--accent-color);
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.2rem;
    justify-content: center;
    padding-top: 0.7rem;
    width: 3.2rem;
}

.orbit-nav {
    height: 11rem;
    position: relative;
    width: 11rem;
}

.orbit-ring {
    animation: orbitSpin 18s linear infinite;
    border: 1px solid rgba(255, 140, 0, 0.45);
    border-radius: 999px;
    inset: 0;
    position: absolute;
}

.orbit-ring::before,
.orbit-ring::after {
    background: var(--accent-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
    height: 1rem;
    position: absolute;
    width: 1rem;
}

.orbit-ring::before {
    left: 50%;
    top: -0.5rem;
    transform: translateX(-50%);
}

.orbit-ring::after {
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.orbit-link {
    align-items: center;
    background: rgba(47, 79, 79, 0.94);
    border: 1px solid rgba(211, 211, 211, 0.38);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(20, 35, 35, 0.18);
    color: white;
    display: flex;
    flex-direction: column;
    font-size: 0.64rem;
    gap: 0.15rem;
    height: 3.6rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 3.6rem;
}

.orbit-link:hover,
.orbit-link:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
    transform: translateY(-3px) scale(1.04);
}

.orbit-link-1 {
    left: 50%;
    top: -1.3rem;
    transform: translateX(-50%);
}

.orbit-link-2 {
    right: -1.2rem;
    top: 2.1rem;
}

.orbit-link-3 {
    bottom: -0.9rem;
    right: 1.1rem;
}

.orbit-link-4 {
    bottom: -0.9rem;
    left: 1.1rem;
}

.orbit-link-5 {
    left: -1.2rem;
    top: 2.1rem;
}

.eyebrow {
    color: var(--accent-color);
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.slash-accent {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.slash-accent::before {
    background: var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    content: "";
    height: 0.9rem;
    width: 2.8rem;
}

.hero-title {
    color: var(--slate-color);
    font-size: clamp(3.2rem, 7.5vw, 6.5rem);
    letter-spacing: -0.035em;
    max-width: 7.7ch;
    text-wrap: balance;
}

.hero-lede,
.section-lede {
    color: var(--text-muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-proof span,
.footer-link {
    border: 1px solid rgba(47, 79, 79, 0.28);
    border-radius: 0;
    color: var(--slate-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 0.72rem 1.1rem;
    text-transform: uppercase;
}

.triangle-frame {
    aspect-ratio: 0.86;
    background: var(--accent-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 32px 40px rgba(20, 35, 35, 0.28));
    padding: 0.55rem;
}

.triangle-frame img {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    height: 100%;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.triangle-signal {
    background: rgba(47, 79, 79, 0.92);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    position: absolute;
}

.triangle-signal-one {
    height: 6rem;
    right: -1.4rem;
    top: 4rem;
    width: 6rem;
}

.triangle-signal-two {
    background: rgba(255, 140, 0, 0.82);
    bottom: 2rem;
    height: 3.4rem;
    left: -1rem;
    transform: rotate(180deg);
    width: 3.4rem;
}

.schedule-panel {
    background: var(--accent-color);
    box-shadow: var(--shadow-orange);
    clip-path: polygon(0 0, calc(100% - 2.2rem) 0, 100% 2.2rem, 100% 100%, 2.2rem 100%, 0 calc(100% - 2.2rem));
    color: var(--slate-color);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    position: relative;
}

.panel-kicker,
.panel-label {
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-kicker {
    color: rgba(47, 79, 79, 0.72);
    margin-bottom: 0.65rem;
}

.panel-label {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 0.38rem;
}

.panel-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(47, 79, 79, 0.28);
    border-radius: 0;
    color: var(--slate-color);
    min-height: 3rem;
    placeholder-color: rgba(47, 79, 79, 0.52);
}

.panel-input:focus {
    border-color: var(--slate-color);
    outline: 3px solid rgba(47, 79, 79, 0.18);
}

.geometric-submit,
.meet-cta {
    background: var(--slate-color);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
    color: white;
    font-weight: 900;
}

.geometric-submit:hover,
.geometric-submit:focus-visible,
.meet-cta:hover,
.meet-cta:focus-visible {
    background: var(--primary-hover);
    color: var(--accent-color);
}

.form-status {
    color: var(--slate-color);
    font-size: 0.92rem;
    font-weight: 900;
    min-height: 1.4rem;
}

.mobile-panel-close,
.sticky-call-trigger {
    display: none;
}

.section-title {
    color: var(--slate-color);
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.geometric-card,
.success-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(47, 79, 79, 0.16);
    box-shadow: 0 20px 50px rgba(20, 35, 35, 0.09);
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.mind-icon {
    align-items: center;
    background: var(--accent-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    color: var(--slate-color);
    display: flex;
    height: 5rem;
    justify-content: center;
    padding-top: 1.3rem;
    width: 5rem;
}

.pathway-step {
    align-items: start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(211, 211, 211, 0.2);
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 50%, calc(100% - 2rem) 100%, 0 100%);
    display: grid;
    gap: 1.4rem;
    grid-template-columns: auto 1fr;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.step-number,
.success-card span {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.9;
}

.success-quote {
    background: var(--slate-color);
    box-shadow: var(--shadow-strong);
    clip-path: polygon(1.5rem 0, 100% 0, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 0 100%, 0 1.5rem);
    color: var(--silver-color);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 900;
    line-height: 1.35;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.meet-portrait {
    aspect-ratio: 0.82;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.meet-portrait-wrap {
    background: var(--accent-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    padding: 0.6rem;
}

.meet-point {
    align-items: center;
    background: rgba(47, 79, 79, 0.06);
    border-left: 5px solid var(--accent-color);
    color: var(--slate-color);
    display: flex;
    font-weight: 900;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
}

.footer-link {
    border-color: rgba(211, 211, 211, 0.28);
    color: var(--silver-color);
    transition: all 0.25s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    background: var(--accent-color);
    color: var(--slate-color);
    outline: none;
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

/* CV WIDGET STYLES */
.cv-widget-container .tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.cv-widget-container .tab-btn {
    color: var(--slate-color);
    border-bottom: 2px solid transparent;
}

/* CV BUILDER STYLES */
.cv-preview-container {
    background: #525659;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.cv-preview-paper {
    background: white;
    width: 100%;
    max-width: 210mm; /* A4 width */
    min-height: 297mm; /* A4 height */
    padding: 20mm;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
}

/* RANKA CLASSIC */
.cv-tpl-classic {
    font-family: 'Times New Roman', Times, serif;
}
.cv-tpl-classic .cv-name {
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}
.cv-tpl-classic .cv-contact {
    text-align: center;
    font-size: 12px;
    margin-bottom: 15px;
}
.cv-tpl-classic .cv-section-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #000;
    margin-top: 15px;
    margin-bottom: 8px;
    padding-bottom: 2px;
}
.cv-tpl-classic .cv-job-title { font-weight: bold; }
.cv-tpl-classic .cv-company { font-style: italic; }
.cv-tpl-classic .cv-dates { float: right; }
.cv-tpl-classic ul { padding-left: 20px; margin-top: 5px; margin-bottom: 10px; }
.cv-tpl-classic li { margin-bottom: 3px; }

/* RANKA MODERN */
.cv-tpl-modern {
    font-family: 'Roboto', sans-serif;
}
.cv-tpl-modern .cv-name {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 900;
    text-transform: uppercase;
}
.cv-tpl-modern .cv-contact {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}
.cv-tpl-modern .cv-section-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 4px;
}
.cv-tpl-modern .cv-job-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-tpl-modern .cv-job-title { font-weight: bold; font-size: 14px; }
.cv-tpl-modern .cv-company { font-weight: 500; color: #555; }
.cv-tpl-modern .cv-dates { color: var(--primary-color); font-size: 12px; font-weight: bold; }
.cv-tpl-modern ul { padding-left: 15px; margin-top: 5px; margin-bottom: 10px; list-style-type: square; }
.cv-tpl-modern li { margin-bottom: 4px; }

/* RANKA EXECUTIVE */
.cv-tpl-executive {
    font-family: 'Arial', sans-serif;
}
.cv-tpl-executive .cv-header {
    border-bottom: 3px solid #172033;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.cv-tpl-executive .cv-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #172033;
}
.cv-tpl-executive .cv-contact {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}
.cv-tpl-executive .cv-section-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: #172033;
    margin-top: 20px;
    margin-bottom: 10px;
}
.cv-tpl-executive .cv-job-title { font-weight: 800; font-size: 14px; }
.cv-tpl-executive .cv-company { font-weight: normal; }
.cv-tpl-executive .cv-dates { float: right; font-weight: bold; }
.cv-tpl-executive ul { padding-left: 15px; margin-top: 5px; margin-bottom: 10px; }
.cv-tpl-executive li { margin-bottom: 5px; }

@media print {
    body * { visibility: hidden; }
    #cvPreviewArea, #cvPreviewArea * { visibility: visible; }
    #cvPreviewArea { position: absolute; left: 0; top: 0; width: 100%; }
    .cv-preview-paper { box-shadow: none; padding: 0; width: 100%; max-width: none; }
}

@media (max-width: 900px) {
    .orbit-nav {
        align-items: center;
        background: rgba(47, 79, 79, 0.94);
        border: 1px solid rgba(211, 211, 211, 0.25);
        border-radius: 999px;
        display: flex;
        gap: 0.35rem;
        height: auto;
        padding: 0.35rem;
        width: auto;
    }

    .orbit-ring {
        display: none;
    }

    .orbit-link,
    .orbit-link-1,
    .orbit-link-2,
    .orbit-link-3,
    .orbit-link-4,
    .orbit-link-5 {
        box-shadow: none;
        height: 3rem;
        inset: auto;
        position: relative;
        transform: none;
        width: 3rem;
    }

    .orbit-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3rem);
        max-width: 8.6ch;
    }

    .hero-lede {
        font-size: 1.02rem;
    }

    .hero-proof span {
        width: 100%;
    }

    .section-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .schedule-panel {
        bottom: 0;
        clip-path: polygon(0 1.2rem, 1.2rem 0, 100% 0, 100% 100%, 0 100%);
        display: none;
        left: 0;
        max-height: 88vh;
        overflow-y: auto;
        padding: 1.25rem;
        position: fixed;
        right: 0;
        z-index: 80;
    }

    .schedule-panel.is-mobile-form-open {
        display: block;
    }

    .mobile-panel-close {
        align-items: center;
        background: rgba(47, 79, 79, 0.18);
        border-radius: 999px;
        color: var(--slate-color);
        cursor: pointer;
        display: inline-flex;
        height: 2.8rem;
        justify-content: center;
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: 2.8rem;
    }

    .sticky-call-trigger {
        background: var(--accent-color);
        bottom: 0.75rem;
        box-shadow: var(--shadow-orange);
        clip-path: none;
        color: var(--slate-color);
        cursor: pointer;
        display: block;
        font-weight: 900;
        letter-spacing: 0.18em;
        margin: 0;
        min-height: 3.25rem;
        position: fixed;
        left: 1rem;
        right: 1rem;
        text-transform: uppercase;
        width: calc(100% - 2rem);
        z-index: 70;
    }

    .has-mobile-panel .sticky-call-trigger {
        display: none;
    }

    .menu-modal {
        align-items: stretch;
        padding: 0.65rem;
    }

    .menu-modal-panel {
        border-radius: 1.1rem;
        max-height: calc(100dvh - 1.3rem);
        padding: 1rem;
        width: calc(100vw - 1.3rem);
    }

    .menu-modal-close {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .menu-modal-title {
        font-size: clamp(2.4rem, 13vw, 3.6rem);
        max-width: 10ch;
    }

    .menu-modal-link {
        font-size: clamp(1.55rem, 9vw, 2.35rem);
        min-height: 4rem;
        padding: 0.75rem 1rem;
    }

    .pathway-step {
        clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 0 100%);
        grid-template-columns: 1fr;
    }
}
