/*
 * XyphorNet HR Solutions - main stylesheet
 * Ported 1:1 from the approved HTML prototype.
 * Source (pre-compile) lives in assets/scss/style.scss.
 * Google Fonts are enqueued separately in inc/assets.php (xyphornet_scripts)
 * instead of @import, so the font request isn't blocking/duplicated.
 */

:root {
    --bg: #111111;
    --card: #191919;
    --line: #303030;
    --text: #f5f5f2;
    --muted: #aaa8a1;
    --orange: #f16726;
    --orange2: #ff9d4d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.55;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

.eyebrow,
.tag {
    color: var(--orange);
    font: 500 11px/1.3 'DM Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.logo-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    object-position: 50% 44%;
    border: 2px solid var(--orange)
}

header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(17, 17, 17, .87);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(48, 48, 48, .65);
}

.nav {
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 800;
    font-size: 18px;
}

.mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: var(--orange);
    border-radius: 10px;
    font-weight: 800;
    color: #111;
}

.brand small {
    display: block;
    font: 10px 'DM Mono', monospace;
    color: var(--muted);
    font-weight: 400;
}

.links ul,
.site-footer ul {
    display: flex;
    gap: 21px;
    color: var(--muted);
    font: 11px 'DM Mono', monospace;
    list-style-type: none;
}

.links a:hover {
    color: white;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 21px;
    border-radius: 9px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: #16120f;
    font-weight: 700;
    transition: .2s;
    cursor: pointer;
}

.form input.button {
    margin-top: 10px;
}

.wpcf7-not-valid-tip {
    font-size: 14px;
}

.wpcf7 form .wpcf7-response-output {
    font-size: 14px;
    text-align: center;
    line-height: 24px;
}

.btn-submit {
    position: relative;
}

.btn-submit span.wpcf7-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--orange2);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    border-color: #555;
}

.button.ghost:hover {
    border-color: var(--orange);
}

.hero {
    min-height: 690px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 6% 20%, rgba(241, 103, 38, .17), transparent 28%), radial-gradient(circle at 96% 70%, rgba(241, 103, 38, .11), transparent 25%);
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 24.9%, rgba(255, 255, 255, .06) 25%, transparent 25.1%, transparent 49.9%, rgba(255, 255, 255, .04) 50%, transparent 50.1%, transparent 74.9%, rgba(255, 255, 255, .06) 75%, transparent 75.1%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.55fr .72fr;
    gap: 54px;
    align-items: center;
    padding: 100px 0 70px;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.status i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 7px rgba(241, 103, 38, .15);
}

.hero h1 {
    margin: 0;
    font-size: clamp(54px, 7.4vw, 102px);
    line-height: .96;
    letter-spacing: -.07em;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--orange);
}

.subhead {
    font-size: clamp(38px, 5vw, 65px) !important;
    margin-top: 9px !important;
}

.gradient {
    color: var(--orange2);
}

.intro {
    max-width: 630px;
    margin: 27px 0 34px;
    color: var(--muted);
    font-size: 17px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats {
    display: grid;
    gap: 13px;
}

.stat,
.spectrum {
    border: 1px solid var(--line);
    background: rgba(25, 25, 25, .85);
    border-radius: 15px;
    padding: 21px;
}

.stat b {
    display: block;
    font-size: 33px;
    letter-spacing: -.06em;
}

.stat span,
.spectrum span {
    color: var(--muted);
    font: 11px 'DM Mono', monospace;
}

.line {
    height: 2px;
    width: 48px;
    margin-top: 13px;
    background: var(--orange);
}

.spectrum {
    background: var(--orange);
    color: #20130c;
    border-color: var(--orange);
}

.spectrum p {
    margin: 0 0 8px;
    font-weight: 800;
}

.spectrum span {
    color: #60321d;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-video-wrap:after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .55)
}

.about-intro {
    padding-bottom: 0
}

.about-content {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px
}

.about-content p {
    margin: 0 0 18px
}

.about-content a {
    color: var(--orange)
}

.breadcrumb {
    padding: 18px 0;
    font: 11px 'DM Mono', monospace;
    color: var(--muted);
    border-bottom: 1px solid var(--line)
}

.breadcrumb a {
    color: var(--muted)
}

.breadcrumb a:hover {
    color: var(--orange)
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #555
}

.services-archive-grid {
    grid-template-rows: none !important
}

.services-archive-grid .service {
    height: 280px
}

.services-archive-grid .service:first-child,
.services-archive-grid .service:last-child {
    grid-row: auto;
    grid-column: auto
}

.service-single {
    padding: 70px 0 30px
}

.service-single-image {
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0 34px;
    border: 1px solid var(--line)
}

.service-single-image img {
    width: 100%;
    height: auto;
    display: block
}

.service-single-content {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px
}

.service-single-content p {
    margin: 0 0 18px
}

.service-single-cta {
    margin-top: 30px
}

#related-services {
    padding-top: 0
}

.career-single {
    padding: 70px 0 30px
}

.career-single-content {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 10px
}

.career-single-content p {
    margin: 0 0 18px
}

.career-apply {
    max-width: 600px;
    margin: 40px auto 0;
}

section {
    padding: 92px 0;
}

.section-title {
    max-width: 700px;
    margin: 10px 0 43px;
    font-size: clamp(34px, 4.3vw, 58px);
    line-height: 1.04;
    letter-spacing: -.06em;
}

.single-career h1.section-title {
    max-width: 100%;
    margin-bottom: 60px;
    font-size: clamp(24px, 4.3vw, 34px);
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 250px 230px;
    gap: 16px;
}

.service {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #222 center/cover;
    isolation: isolate;
}

.service:first-child {
    grid-row: span 2;
}

.service:last-child {
    grid-column: span 2;
}

.service:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(8, 8, 8, .96), rgba(8, 8, 8, .12) 75%);
}

.service img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s;
}

.service:hover img {
    transform: scale(1.06);
}

.service div {
    position: absolute;
    inset: auto 23px 21px;
}

.service h3 {
    margin: 6px 0;
    font-size: 20px;
    line-height: 1.2;
}

.service p {
    margin: 0;
    color: #cac8c1;
    font-size: 13px;
}

.services-count-1 {
    grid-template-columns: 1fr !important;
    grid-template-rows: 340px !important
}

.services-count-1 .service {
    grid-row: auto !important;
    grid-column: auto !important
}

.services-count-2 {
    grid-template-rows: 300px !important
}

.services-count-2 .service {
    grid-row: auto !important;
    grid-column: auto !important
}

.services-count-3 {
    grid-template-rows: 280px 280px !important
}

.services-count-3 .service:first-child {
    grid-row: auto !important
}

.services-count-3 .service:last-child {
    grid-column: span 2 !important
}

.founder-body svg {
    width: 16px;
    height: 16px;
    display: block;
    margin-top: 2px;
}

.founder-body a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.founder-body a:hover {
    color: var(--orange);
}

.founder-body a.call:hover svg path {
    fill: var(--orange);
}

.founder-body a.mail:hover svg path {
    stroke: var(--orange);
}

a,
svg path {
    transition: all 0.6s;
}

.menu li a {
    font-size: 14px;
}

@media (max-width:760px) {

    .services-count-1,
    .services-count-2,
    .services-count-3 {
        grid-template-rows: auto !important
    }

    .services-count-1 .service,
    .services-count-2 .service,
    .services-count-3 .service {
        height: 255px !important
    }
}

.founder-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

.founder-head p {
    color: var(--muted);
    max-width: 330px;
}

.founders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.founder {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.portrait {
    height: 315px;
    position: relative;
    background: #222;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 42%, rgba(15, 15, 15, .9));
}

.person {
    position: absolute;
    z-index: 1;
    bottom: 19px;
    left: 23px;
}

.person h3 {
    margin: 0;
    font-size: 24px;
}

.founder-body {
    padding: 23px;
}

.founder-body p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 17px;
}

.chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.chips span {
    border: 1px solid #494949;
    border-radius: 30px;
    padding: 5px 9px;
    color: var(--muted);
    font: 10px 'DM Mono', monospace;
}

.contact {
    background: #171717;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact h2 {
    margin-top: 8px;
}

.contact p {
    color: var(--muted);
    margin: 0;
}

.contact-list {
    margin: 29px 0;
    display: grid;
    gap: 12px;
}

.contact-list a,
.contact-list div {
    display: flex;
    gap: 12px;
    color: #d8d6cf;
}

.contact-list b {
    color: var(--orange);
    min-width: 70px;
    font: 11px 'DM Mono', monospace;
}

.available {
    border-left: 2px solid var(--orange);
    padding-left: 14px;
    color: var(--muted);
    font-size: 13px;
}

.available strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.form {
    padding: 29px;
    border-radius: 16px;
    background: #202020;
    border: 1px solid #373737;
}

.form h3 {
    margin: 0 0 4px;
}

.form>p {
    margin: 0 0 21px;
    font-size: 13px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field {
    display: grid;
    gap: 6px;
}

.field.full {
    grid-column: span 2;
}

.field label {
    color: #d9d7cf;
    font-size: 12px;
}

input,
select,
textarea {
    border: 1px solid #454545;
    border-radius: 8px;
    padding: 12px;
    background: #161616;
    color: white;
    font: 14px Manrope, sans-serif;
    width: 100%;
    outline: 0;
}

textarea {
    height: 100px;
    resize: vertical;
    outline: 0;
}

.form button {
    width: 100%;
    margin-top: 18px;
    cursor: pointer;
}

.careers {
    background: #171717;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.career-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end
}

.career-head p {
    color: var(--muted);
    max-width: 360px
}

.career-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.career {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #202020
}

.career h3 {
    font-size: 18px;
    margin: 10px 0 7px
}

.career p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.career .button {
    margin-top: 18px;
    padding: 9px 14px;
    font-size: 12px
}

.career-empty {
    color: var(--muted);
    padding: 24px 0
}

.admin-login {
    background: transparent !important;
    color: var(--text) !important;
    border-color: #555 !important
}

.admin-login:hover {
    border-color: var(--orange) !important;
    color: var(--orange) !important
}

.career-head+.career-list {
    margin-top: 34px
}

footer {
    padding: 27px 0;
    color: var(--muted);
    font: 11px 'DM Mono', monospace;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer nav {
    display: flex;
    gap: 18px;
}

.footer nav a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 14px
}

.footer-social a:hover {
    color: var(--orange)
}

.links ul li a.is-active,
.footer nav a.is-active,
.mobile-drawer-nav a.is-active {
    color: var(--orange);
}

/* Mobile menu toggle + slide-in drawer */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #454545;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, .65);
    z-index: 19;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 84vw);
    background: var(--card);
    border-left: 1px solid var(--line);
    z-index: 20;
    padding: 22px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-close {
    align-self: flex-end;
    background: none;
    border: 1px solid #454545;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 26px;
}

.mobile-drawer-close:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
}

.mobile-drawer-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font: 15px Manrope, sans-serif;
    font-weight: 600;
}

.mobile-drawer-nav a:hover {
    color: var(--orange);
}

.mobile-drawer .button {
    width: 100%;
    text-align: center;
}

body.no-scroll {
    overflow: hidden;
}

@media (min-width:761px) {

    .mobile-drawer,
    .mobile-drawer-backdrop {
        display: none;
    }
}

@media (max-width:767px) {
    .links {
        display: none;
    }

    .nav .button {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 100px 0 65px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat,
    .spectrum {
        padding: 14px;
    }

    .stat b {
        font-size: 25px;
    }

    .spectrum {
        display: none;
    }

    section {
        padding: 65px 0;
    }

    .services {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .service,
    .service:first-child,
    .service:last-child {
        grid-column: auto;
        grid-row: auto;
        height: 255px;
    }

    .founder-head,
    .footer {
        display: block;
    }

    .founder-head p {
        margin-bottom: 35px;
    }

    .founders,
    .career-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 35px;
    }

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

    .field.full {
        grid-column: auto;
    }

    .footer nav {
        margin: 18px 0;
        flex-wrap: wrap;
    }

    .links ul,
    .site-footer ul {
        flex-wrap: wrap;
        flex-direction: column;
        list-style-type: none;
        padding: 0;
    }

    .mobile-drawer-nav {
        margin: 0;
    }

    .mobile-drawer-nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .mobile-drawer-nav ul li a {
        width: 100%;
        display: block;
        padding: 16px 30px;
    }

    .mobile-drawer {
        padding: 0;
    }

    .mobile-drawer-close {
        margin: 30px 20px 20px 20px;
    }

    .stats {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-grid {
        padding: 0;
    }

    .hero {
        padding-bottom: 0;
    }

    section#services {
        padding-bottom: 0;
    }

    .career-head {
        flex-wrap: wrap;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .career-head {
        gap: 0;
    }

    .career-head br {}

    .career-head h2.section-title {
        margin-bottom: 0;
    }

    .form {
        padding: 20px;
    }
}

.portrait {
    height: auto;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
    background: #202020
}

.portrait img,
.portrait:after {
    display: none
}

.person {
    position: static
}

.person h3 {
    font-size: 23px
}

.founder-body p {
    display: none
}

/* WordPress-required baseline (screen-reader text, alignment classes) so core/comment markup doesn't break the design */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important
}

.alignleft {
    float: left;
    margin: 0 24px 24px 0
}

.alignright {
    float: right;
    margin: 0 0 24px 24px
}

.aligncenter {
    display: block;
    margin: 0 auto 24px
}