/*
Theme Name: JDC NICKSKAR
Description: Custom lightweight child theme for NICKSKAR.
Author: JDC
Template: generatepress
Version: 1.1.0
Text Domain: jdc-nickskar
*/

:root {
    --nks-bg: #f0eee8;
    --nks-text: #151515;
    --nks-muted: #6d6a64;
    --nks-line: rgba(20,20,20,.16);
    --nks-dark: #151515;
}

body.jdc-nickskar-site {
    background: var(--nks-bg);
    color: var(--nks-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home.jdc-nickskar-site .site-header,
body.home.jdc-nickskar-site .main-navigation,
body.home.jdc-nickskar-site .site-content {
    display: none;
}

.nks-home {
    background: var(--nks-bg);
}

.nks-topbar {
    max-width: 1380px;
    margin: auto;
    padding: 30px 36px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--nks-line);
}

.nks-brand {
    color: var(--nks-text);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: .18em;
    font-weight: 850;
}

.nks-nav {
    display: flex;
    gap: 28px;
}

.nks-nav a {
    color: var(--nks-text);
    text-decoration: none;
    font-size: 13px;
}

.nks-hero {
    max-width: 1380px;
    margin: auto;
    padding: 100px 36px 80px;
}

.nks-kicker,
.nks-profile > span,
.nks-projects > span,
.nks-contact > span,
.nks-grid article > span {
    font-size: 11px;
    letter-spacing: .17em;
    font-weight: 800;
}

.nks-hero h1 {
    color: var(--nks-text);
    font-size: clamp(64px, 10vw, 150px);
    letter-spacing: -.075em;
    line-height: .78;
    margin: 45px 0 70px;
    font-weight: 750;
}

.nks-hero h1 em {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.nks-hero-bottom {
    max-width: 760px;
    margin-left: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
}

.nks-hero-bottom p {
    color: var(--nks-muted);
    font-size: 18px;
    line-height: 1.75;
}

.nks-hero-bottom a {
    color: var(--nks-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.nks-profile {
    max-width: 1380px;
    margin: auto;
    padding: 120px 36px;
    border-top: 1px solid var(--nks-line);
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.nks-profile h2 {
    color: var(--nks-text);
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 0 0 35px;
}

.nks-profile p {
    max-width: 700px;
    color: var(--nks-muted);
    font-size: 18px;
    line-height: 1.8;
}

.nks-grid {
    border-top: 1px solid var(--nks-line);
    border-bottom: 1px solid var(--nks-line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.nks-grid article {
    padding: 50px 34px;
    min-height: 300px;
    border-right: 1px solid var(--nks-line);
}

.nks-grid h3 {
    font-size: 30px;
    color: var(--nks-text);
    margin-top: 100px;
    letter-spacing: -.035em;
}

.nks-grid p {
    color: var(--nks-muted);
    line-height: 1.7;
}

.nks-projects {
    max-width: 1380px;
    margin: auto;
    padding: 130px 36px;
}

.nks-projects h2 {
    color: var(--nks-text);
    font-size: clamp(50px, 7vw, 100px);
    line-height: .95;
    letter-spacing: -.06em;
    margin: 50px 0;
}

.nks-projects p {
    max-width: 650px;
    color: var(--nks-muted);
    font-size: 17px;
    line-height: 1.8;
}

.nks-contact {
    background: var(--nks-dark);
    color: white;
    padding: 110px 36px;
}

.nks-contact h2 {
    color: white;
    font-size: clamp(60px, 9vw, 125px);
    line-height: .9;
    letter-spacing: -.07em;
    margin: 50px 0;
}

.nks-contact p {
    letter-spacing: .17em;
    font-size: 12px;
}

.jdc-nickskar-site .site-footer {
    background: #0e0e0e;
    color: #9b9b9b;
}

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

    .nks-hero {
        padding-top: 70px;
    }

    .nks-hero h1 {
        font-size: clamp(58px, 18vw, 90px);
    }

    .nks-hero-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nks-profile {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .nks-grid article {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--nks-line);
    }

    .nks-grid h3 {
        margin-top: 50px;
    }
}


/* JDC CUSTOM LANGUAGE FLAGS CSS */

.jdc-custom-languages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-left: 18px;
}

.jdc-custom-language {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    opacity: .62;
    transition:
        opacity .2s ease,
        background .2s ease,
        transform .2s ease;
}

.jdc-custom-language:hover,
.jdc-custom-language.is-current {
    opacity: 1;
    background: rgba(127, 127, 127, .12);
}

.jdc-custom-language:hover {
    transform: translateY(-1px);
}

.jdc-custom-flag {
    display: inline-block;
    font-family:
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;
    font-size: 18px;
    line-height: 1;
}

.jdc-custom-code {
    font-size: 10px;
    letter-spacing: .04em;
}

@media (max-width: 1100px) {

    .jdc-custom-languages {
        width: 100%;
        margin: 10px 0 0;
        gap: 5px;
    }

    .jdc-custom-language {
        padding: 5px;
    }
}

/* END JDC CUSTOM LANGUAGE FLAGS CSS */

/* JDC REAL SVG LANGUAGE FLAGS START */

.jdc-custom-flag {
    width: 22px !important;
    height: 15px !important;
    display: inline-block !important;
    flex: 0 0 22px;
    font-size: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.jdc-custom-language[hreflang="el"] .jdc-custom-flag {
    background-image: url("assets/flags/gr.svg");
}

.jdc-custom-language[hreflang="en"] .jdc-custom-flag {
    background-image: url("assets/flags/gb.svg");
}

.jdc-custom-language[hreflang="de"] .jdc-custom-flag {
    background-image: url("assets/flags/de.svg");
}

.jdc-custom-language[hreflang="fr"] .jdc-custom-flag {
    background-image: url("assets/flags/fr.svg");
}

.jdc-custom-language[hreflang="it"] .jdc-custom-flag {
    background-image: url("assets/flags/it.svg");
}

.jdc-custom-language[hreflang="bg"] .jdc-custom-flag {
    background-image: url("assets/flags/bg.svg");
}

.jdc-custom-language[hreflang="tr"] .jdc-custom-flag {
    background-image: url("assets/flags/tr.svg");
}

.jdc-custom-language[hreflang="sq"] .jdc-custom-flag {
    background-image: url("assets/flags/al.svg");
}

.jdc-custom-language[hreflang="sr"] .jdc-custom-flag {
    background-image: url("assets/flags/rs.svg");
}


/* Also support the JDC plugin/header switchers */

.jdc-header-language[hreflang]::before,
.jdc-language-switcher a[hreflang]::before {
    content: "";
    width: 22px;
    height: 15px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: -2px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.jdc-header-language[hreflang="el"]::before,
.jdc-language-switcher a[hreflang="el"]::before {
    background-image: url("assets/flags/gr.svg");
}

.jdc-header-language[hreflang="en"]::before,
.jdc-language-switcher a[hreflang="en"]::before {
    background-image: url("assets/flags/gb.svg");
}

.jdc-header-language[hreflang="de"]::before,
.jdc-language-switcher a[hreflang="de"]::before {
    background-image: url("assets/flags/de.svg");
}

.jdc-header-language[hreflang="fr"]::before,
.jdc-language-switcher a[hreflang="fr"]::before {
    background-image: url("assets/flags/fr.svg");
}

.jdc-header-language[hreflang="it"]::before,
.jdc-language-switcher a[hreflang="it"]::before {
    background-image: url("assets/flags/it.svg");
}

.jdc-header-language[hreflang="bg"]::before,
.jdc-language-switcher a[hreflang="bg"]::before {
    background-image: url("assets/flags/bg.svg");
}

.jdc-header-language[hreflang="tr"]::before,
.jdc-language-switcher a[hreflang="tr"]::before {
    background-image: url("assets/flags/tr.svg");
}

.jdc-header-language[hreflang="sq"]::before,
.jdc-language-switcher a[hreflang="sq"]::before {
    background-image: url("assets/flags/al.svg");
}

.jdc-header-language[hreflang="sr"]::before,
.jdc-language-switcher a[hreflang="sr"]::before {
    background-image: url("assets/flags/rs.svg");
}

/* JDC REAL SVG LANGUAGE FLAGS END */

/* JDC REMOVE OLD FLAG PLACEHOLDER */
.jdc-header-language[hreflang]::before,
.jdc-language-switcher a[hreflang]::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.jdc-header-language {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.jdc-header-flag {
    display: inline-block !important;
    width: 22px !important;
    height: 15px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* ==========================================================
   JDC PROJECT RULE - HERO H1
   Hero titles must be strong, refined and never oversized.
   Desktop target: 38–52px
   Mobile target: 32–38px
   ========================================================== */

.nks-hero h1 {
    font-size: clamp(38px, 4.5vw, 52px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
    max-width: 900px;
}

.nks-hero h1 em {
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 768px) {
    .nks-hero h1 {
        font-size: clamp(32px, 9vw, 38px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.025em !important;
    }
}


/* ==========================================================
   JDC NICKSKAR INTERNAL PAGE LAYOUT
   Clean full-width pages, no GeneratePress sidebar look.
   ========================================================== */

body.jdc-nickskar-site.page:not(.home) .site-content {
    display: block;
    width: 100%;
    max-width: 100%;
}

body.jdc-nickskar-site.page:not(.home) .content-area {
    width: 100% !important;
    float: none !important;
}

body.jdc-nickskar-site.page:not(.home) #right-sidebar,
body.jdc-nickskar-site.page:not(.home) .widget-area {
    display: none !important;
}

body.jdc-nickskar-site.page:not(.home) .site-main {
    width: 100%;
    margin: 0;
}

body.jdc-nickskar-site.page:not(.home) .inside-article {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 40px;
    background: transparent;
}

body.jdc-nickskar-site.page:not(.home) .entry-header,
body.jdc-nickskar-site.page:not(.home) .entry-content {
    max-width: 900px;
}

body.jdc-nickskar-site.page:not(.home) .entry-title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
}

body.jdc-nickskar-site.page:not(.home) .entry-content {
    font-size: 17px;
    line-height: 1.75;
}

body.jdc-nickskar-site.page:not(.home) .entry-content h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-top: 56px;
}

body.jdc-nickskar-site.page:not(.home) .entry-content h3 {
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.2;
    margin-top: 38px;
}

@media (max-width: 768px) {

    body.jdc-nickskar-site.page:not(.home) .inside-article {
        padding: 44px 22px;
    }

    body.jdc-nickskar-site.page:not(.home) .entry-title {
        font-size: 34px;
    }

    body.jdc-nickskar-site.page:not(.home) .entry-content {
        font-size: 16px;
    }
}


/* JDC FINAL CUSTOM PNG FLAGS */
.jdc-custom-language {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.jdc-custom-language::before,
.jdc-custom-language::after {
    content: none !important;
    display: none !important;
}

img.jdc-custom-flag {
    display: block !important;
    width: 22px !important;
    height: 15px !important;
    min-width: 22px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}


/* ==========================================================
   JDC NICKSKAR CLASSIC LANGUAGE DROPDOWN
   ========================================================== */

.jdc-custom-languages.nks-lang-dropdown,
.jdc-header-language-switcher.nks-lang-dropdown {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    margin-left: 18px;
    font-family: inherit;
    z-index: 9999;
}

.nks-lang-toggle {
    appearance: none;
    border: 1px solid rgba(20, 20, 20, .14);
    background: #ffffff;
    color: #171717;
    min-width: 145px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 3px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: none;
}

.nks-lang-toggle:hover,
.nks-lang-toggle:focus {
    border-color: rgba(20, 20, 20, .32);
    background: #ffffff;
    color: #171717;
}

.nks-lang-toggle-flag {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
    display: block;
    flex: 0 0 20px;
}

.nks-lang-toggle-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.nks-lang-arrow {
    font-size: 15px;
    line-height: 1;
    margin-left: 5px;
    transform: translateY(-1px);
}

.nks-lang-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: 190px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid rgba(20, 20, 20, .12);
    border-radius: 4px;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, .10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.nks-lang-dropdown.is-open .nks-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nks-lang-menu a {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    min-height: 37px;
    gap: 9px !important;
    padding: 7px 9px !important;
    margin: 0 !important;

    color: #242424 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 2px !important;

    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.nks-lang-menu a:hover {
    background: #f4f2ed !important;
}

.nks-lang-menu a.is-current {
    background: #f0eee8 !important;
    font-weight: 600 !important;
}

.nks-lang-menu img {
    width: 20px !important;
    height: 14px !important;
    min-width: 20px !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.nks-lang-menu .jdc-lang-code,
.nks-lang-menu .jdc-custom-code {
    width: 24px;
    font-size: 10px !important;
    color: #777 !important;
    letter-spacing: .05em;
}

.nks-lang-name {
    font-size: 12px;
    color: #222;
}

body.jdc-nickskar-site
.jdc-header-language-item {
    position: relative;
}

/* Hide old inline separators */
body.jdc-nickskar-site
.jdc-header-language-switcher
> span[aria-hidden="true"] {
    display: none !important;
}

/* The old flag pseudo-elements are not needed here */
body.jdc-nickskar-site
.nks-lang-dropdown
a::before,
body.jdc-nickskar-site
.nks-lang-dropdown
a::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 900px) {

    .jdc-custom-languages.nks-lang-dropdown,
    .jdc-header-language-switcher.nks-lang-dropdown {
        margin-left: 0;
        margin-top: 8px;
    }

    .nks-lang-menu {
        left: 0;
        right: auto;
    }
}


/* ==========================================================
   JDC NICKSKAR SAFE HOME VISIBILITY
   Keep the custom homepage visible.
   ========================================================== */

body.home.jdc-nickskar-site #page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home.jdc-nickskar-site .site-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home.jdc-nickskar-site .content-area,
body.home.jdc-nickskar-site .site-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home.jdc-nickskar-site .nks-home {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 100vh !important;
}

