/*
 * JN. Registration
 *
 * Pages:
 * /registrace/akce/
 * /registrace/moje-registrace/
 */


/* =========================================================
   FONTS
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap");


/* =========================================================
   DESIGN VARIABLES
   ========================================================= */

:root {
    --jn-black: #0A0A0A;
    --jn-red: #D90C0C;
    --jn-bg: #FFFFFF;
    --jn-white: #FFFFFF;

    --jn-font-display: "Barlow Condensed", sans-serif;
    --jn-font-body: "Barlow", sans-serif;

    /*
     * Remove WordPress global horizontal page padding.
     */
    --wp--style--root--padding-left: 0px !important;
    --wp--style--root--padding-right: 0px !important;
}


/* =========================================================
   GLOBAL PAGE
   ========================================================= */

html {
    margin: 0;
    padding: 0;

    width: 100%;

    overflow-x: clip;

    background: var(--jn-bg);
}

body {
    margin: 0 !important;
    padding: 0 !important;

    width: 100%;

    overflow-x: clip;

    background: var(--jn-bg) !important;
    color: var(--jn-black);

    font-family: var(--jn-font-body);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /*
     * Some WordPress themes output these directly on body.
     */
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* =========================================================
   WORDPRESS GLOBAL PADDING RESET
   ========================================================= */

/*
 * WordPress commonly generates:
 *
 * padding-right: var(--wp--style--root--padding-right);
 * padding-left: var(--wp--style--root--padding-left);
 *
 * Remove both the variables and their resulting padding.
 */

.wp-site-blocks,
.has-global-padding,
.wp-block-post-content,
.entry-content,
.site,
.site-content,
.site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/*
 * Gutenberg full-width blocks can otherwise receive negative
 * margins based on global padding.
 */

.has-global-padding > .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/*
 * Remove unwanted space above the page content.
 */

.entry-content,
.site-main,
.wp-block-post-content {
    margin-top: 0 !important;
}


/* =========================================================
   HEADER BLOCK WIDTH
   ========================================================= */

/*
 * WordPress constrained layouts normally limit individual
 * blocks to the global content width.
 *
 * The HTML block containing .jn-header must instead occupy
 * the full available page width.
 *
 * This avoids using width: 100vw, which caused horizontal
 * overflow in the previous version.
 */

.wp-block-html:has(.jn-header),
.wp-block-post-content > .wp-block-html:has(.jn-header),
.is-layout-constrained > .wp-block-html:has(.jn-header) {
    width: 100% !important;
    max-width: none !important;

    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;

    padding: 0 !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.jn-header {
    position: relative;
    z-index: 50;

    box-sizing: border-box;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    background: var(--jn-black);

    border-bottom: 1px solid var(--jn-red);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.jn-nav {
    box-sizing: border-box;

    width: 100%;
    max-width: none;

    height: 62px;

    margin: 0;
    padding-top: 0;
    padding-bottom: 0;

    /*
     * Matches the strong desktop inset of the static site.
     */
    padding-left: clamp(24px, 12.25vw, 250px);
    padding-right: clamp(24px, 12.25vw, 250px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: transparent;
}


/* =========================================================
   JN. LOGO
   ========================================================= */

.jn-logo {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;

    margin: 0;
    padding: 0;

    font-family: var(--jn-font-display);

    font-size: 24px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -0.025em;

    text-transform: none;

    color: var(--jn-white) !important;

    text-decoration: none !important;

    box-shadow: none !important;
}

.jn-logo:visited,
.jn-logo:hover,
.jn-logo:active {
    color: var(--jn-white) !important;

    text-decoration: none !important;
}

.jn-logo-dot {
    color: var(--jn-red);
}


/* =========================================================
   RIGHT NAVIGATION
   ========================================================= */

.jn-nav-links {
    display: flex;
    align-items: center;

    gap: 40px;

    margin: 0;
    padding: 0;
}


/* Individual navigation link */

.jn-nav-link {
    position: relative;

    display: inline-block;

    margin: 0;
    padding: 0;

    white-space: nowrap;

    font-family: var(--jn-font-body);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;

    letter-spacing: 0.025em;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.8) !important;

    text-decoration: none !important;

    box-shadow: none !important;

    transition:
        color 0.15s cubic-bezier(.4, 0, .2, 1);
}

.jn-nav-link:visited {
    color: rgba(255, 255, 255, 0.8) !important;
}

.jn-nav-link:hover,
.jn-nav-link:focus-visible,
.jn-nav-link.is-active,
.jn-nav-link.is-active:visited {
    color: var(--jn-white) !important;

    text-decoration: none !important;
}


/* =========================================================
   NAVIGATION RED UNDERLINE
   ========================================================= */

.jn-nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: var(--jn-red);

    transition: width 0.25s;
}

.jn-nav-link:hover::after,
.jn-nav-link:focus-visible::after,
.jn-nav-link.is-active::after {
    width: 100%;
}


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.jn-logo:focus-visible,
.jn-nav-link:focus-visible {
    outline: 2px solid var(--jn-red);
    outline-offset: 5px;
}


/* =========================================================
   MAIN REGISTRATION CONTENT
   ========================================================= */

.jn-registration-main {
    box-sizing: border-box;

    width: 100%;
    max-width: 1400px;

    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;

    padding-top: 80px;
    padding-right: 32px;
    padding-bottom: 96px;
    padding-left: 32px;

    background: var(--jn-bg);
}


/*
 * WordPress constrained layouts may try to restrict the
 * <main> element as well.
 */

.jn-registration-main {
    max-width: 1400px !important;
}


/* =========================================================
   MAIN PAGE TITLE
   ========================================================= */

/*
 * Used for:
 *
 * AKCE
 * MOJE REZERVACE
 */

.jn-page-title {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 48px;
    margin-left: 0;

    padding: 0;

    font-family: var(--jn-font-display);

    font-size: 48px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -0.025em;

    text-transform: uppercase;

    color: var(--jn-black);
}


/* =========================================================
   AMELIA
   ========================================================= */

/*
 * Prevent WordPress article-width rules from unnecessarily
 * restricting Amelia inside our own 1400px container.
 */

.jn-registration-main .amelia-v2-booking,
.jn-registration-main [class*="amelia"],
.jn-registration-main .wp-block-amelia {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   WORDPRESS THEME LINK OVERRIDES
   ========================================================= */

.jn-header a,
.jn-header a:hover,
.jn-header a:focus,
.jn-header a:active {
    box-shadow: none !important;
    text-decoration: none !important;
}


/* =========================================================
   WORDPRESS BLOCK MARGINS
   ========================================================= */

/*
 * WordPress sometimes applies blockGap between the header
 * Custom HTML block and the following block.
 */

.wp-block-html:has(.jn-header) {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}


/*
 * Prevent default block margins from producing a gap
 * directly after the header.
 */

.wp-block-html:has(.jn-header) + * {
    margin-block-start: 0 !important;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #FFFFFF;
}

::-webkit-scrollbar-thumb {
    background: var(--jn-red);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .jn-nav {
        padding-left: 32px;
        padding-right: 32px;
    }

    .jn-registration-main {
        padding-top: 64px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .jn-nav {
        height: 56px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .jn-logo {
        font-size: 22px;
    }

    .jn-nav-links {
        gap: 20px;
    }

    .jn-nav-link {
        font-size: 12px;

        letter-spacing: 0.025em;
    }

    .jn-registration-main {
        padding-top: 48px;
        padding-right: 20px;
        padding-bottom: 72px;
        padding-left: 20px;
    }

    .jn-page-title {
        margin-bottom: 32px;

        font-size: 36px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .jn-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jn-nav-links {
        gap: 14px;
    }

    .jn-nav-link {
        font-size: 11px;
        letter-spacing: 0.015em;
    }

    .jn-registration-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}