/*
Theme Name: Worix
Theme URI: https://worix.com.ua
Author: Worix Team
Description: Premium Custom WordPress theme for International Communications Company.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: worix
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ccfe03;
    --primary-dark: #b8e602;
    --accent: #27342f;
    --text-main: #1a1a1a;
    --text-light: #5e6b66;
    --text-dark: #000000;
    --bg-white: #ffffff;
    --bg-gray: #f9fbfa;
    --bg-dark: #0d0f0e;
    --header-h: 80px;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
    width: 100%;
}

/* Scroll Lock */
body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    color: var(--accent);
    line-height: 1.15;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Components --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--accent);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 16px;
    color: var(--accent);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.lang-switcher {
    display: flex;
    background: #f1f3f2;
    padding: 4px;
    border-radius: 100px;
}

.lang-switcher a {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    color: #888;
}

.lang-switcher a.active {
    background: var(--bg-white);
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.burger-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    width: 100%;
    height: 2.5px;
    background: var(--accent);
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 14, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100%;
    background: var(--bg-white);
    z-index: 2001;
    transition: var(--transition);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-open .mobile-menu-panel {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.menu-close {
    font-size: 40px;
    cursor: pointer;
    color: var(--accent);
    border: none;
    background: none;
    line-height: 1;
}

.mobile-nav-list li {
    margin-bottom: 25px;
}

.mobile-nav-link {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.menu-footer .lang-switcher {
    justify-content: center;
    margin-bottom: 20px;
    padding: 6px;
}

.menu-footer .lang-switcher a {
    font-size: 16px;
    padding: 10px 20px;
}

/* --- Sections --- */
section {
    padding: 120px 0;
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #f4ffcf 0%, #fff 40%);
    position: relative;
    overflow: visible;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

/* Hero Vacancies Card */
.hero-vacancies-card {
    flex: 0 0 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.h-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.pulse-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ffebeb;
    border-radius: 50%;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 99, 71, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
    }
}

.h-vacancy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f7f7f7;
    transition: var(--transition);
}

.h-vacancy-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.h-vacancy-item:hover {
    transform: translateX(5px);
}

.h-vac-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--accent);
    font-weight: 600;
}

.h-vac-salary {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 700;
    background: #f4ffcf;
    padding: 4px 8px;
    border-radius: 6px;
}

.h-vac-link {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--transition);
}

.h-vacancy-item:hover .h-vac-link {
    background: var(--primary);
}

@media (max-width: 900px) {
    .hot-vacancies-ticker {
        display: none;
    }

    .hero-vacancies-card {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .header-actions .lang-switcher {
        display: none;
    }
}

/* Inner Pages */
.page-hero {
    padding: 160px 0 80px;
    background: var(--bg-gray);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin: 0;
}

.page-content {
    background: var(--bg-white);
    padding: 80px 0;
}

.box-content {
    max-width: 900px;
    /* Narrower for reading */
}

/* Typography for content */
.entry-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #444;
}

.entry-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 25px;
}

.entry-content li {
    margin-bottom: 10px;
    color: #444;
}

/* WP Pagination */
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #f1f3f2;
    border-radius: 8px;
    font-weight: 600;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .hot-vacancies-ticker {
        display: none;
    }
}

.hero-tag {
    display: inline-flex;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 30px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 40px;
}

/* Vacancies */
.vacancies-section {
    background: var(--bg-gray);
}

.section-head {
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.v-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.v-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.v-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.v-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* About Mission */
.mission-box {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.mission-img {
    flex: 1;
    min-width: 300px;
}

.mission-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.mission-text {
    flex: 1;
    min-width: 300px;
}

.quote {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.4;
    position: relative;
    padding-left: 40px;
}

.quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.6;
}

/* Advantages */
.advantages-section {
    background: var(--bg-dark);
    color: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.advantages-section h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 80px;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.adv-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.adv-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 15px;
}

.adv-item h3 {
    color: var(--bg-white);
    font-size: 20px;
    margin-bottom: 10px;
}

.adv-item p {
    color: #888;
    font-size: 15px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-title {
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 16px;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 15px;
    color: #666;
}

/* --- Mobile Only Fixes --- */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .mission-box {
        gap: 40px;
    }

    .quote {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Single Vacancy Page (New Design)
   ========================================= */

.vacancy-page-wrapper {
    padding-top: 140px;
    /* Space for fixed header */
    padding-bottom: 80px;
    background: #fff;
    min-height: 100vh;
}

.vac-header {
    position: relative;
    display: flex;
    justify-content: center;
    /* Center the badge */
    align-items: center;
    margin-bottom: 30px;
}

.vac-back-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    transition: transform 0.2s;
}

.vac-back-arrow:hover {
    transform: translateY(-50%) translateX(-5px);
}

.vac-badge {
    background-color: #d1ff00;
    /* Lime / Neon Green */
    color: #000;
    padding: 8px 30px;
    border-radius: 8px;
    /* Slightly rounded */
    font-weight: 600;
    font-size: 14px;
    text-transform: lowercase;
    /* as in screenshot */
}

.vac-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #000;
}

.vacancy-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Approx 60/40 ratio */
    gap: 30px;
    align-items: start;
}

/* Cards */
.vac-card-gray,
.vac-card-blue {
    border-radius: 16px;
    padding: 30px;
}

.vac-card-gray {
    background-color: #f0f0f0;
    /* Light Gray */
}

.vac-card-blue {
    background-color: #eff2ff;
    /* Very Light Blue/Lavender */
    margin-bottom: 20px;
}

.vac-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

/* Content Typography w/ Bullets */
.entry-content ul,
.vac-block-content ul {
    list-style: none;
    /* We will use custom bullets or simple dashes if requested, but default bullets are cleaner */
    margin: 0 0 20px 0;
    padding: 0;
}

.entry-content li,
.vac-block-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.entry-content li::before,
.vac-block-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    /* Bullet color */
    font-weight: bold;
}

.vac-block-content {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .vacancy-details-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
    }

    .vac-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .vacancy-page-wrapper {
        padding-top: 100px;
    }
}

/* =========================================
   Premium Modal Styles
   ========================================= */
.modal-backdrop {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    line-height: 1;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 14px;
    color: #666;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9f9f9;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* =========================================
   Premium Vacancy Card Styles
   ========================================= */
.v-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08) !important; /* Override inline */
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.v-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary) !important;
}

.v-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s;
}

.v-card:hover h3 {
    color: var(--accent);
}

.v-card p, .v-card .entry-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes bottom content down */
}

/* Tags: Salary & Location */
.v-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px !important; /* Override inline */
}

.v-tag-salary {
    background: #f4ffcf !important;
    color: #4b6700 !important;
    font-weight: 700;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    border: 1px solid rgba(75, 103, 0, 0.1);
}

.v-tag-location {
    background: #f7f7f7 !important;
    color: #666 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Footer Actions */
.v-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.v-btn-details {
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
}

.v-card:hover .v-btn-details {
    color: var(--accent);
    gap: 10px;
}

.v-btn-apply {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.v-btn-apply:hover {
    background: var(--text-dark);
    color: #fff;
    text-decoration: none;
}
