/*
 * FLYEfit site.css. Loaded after dist/bundle.min.css and before the block stylesheets.
 *
 * Contents
 *  1. Poppins, self-hosted (no Google Fonts). Latin and latin-ext subsets; weights 300 to 700.
 *  2. The rules the WordPress theme added in lib/hack.php (wp_head).
 *  3. The rules the WordPress theme added in functions.php (my_custom_styles) that
 *     actually took effect on the live site. Left out on purpose:
 *       .page-id-678 and .page-id-2714 rules: those pages no longer exist (the careers
 *       page is 32092), so the rules never matched anything.
 *       #goToGalway { display: none }: a stray "}" before it in the WordPress source made
 *       browsers drop this rule, so it never applied. Revisit when the gyms map is
 *       built (step 6).
 *       The .poppins-thin ... .poppins-black helper classes: unused in any content.
 *
 *  4. Rules added in the new site: the click-to-load video embed placeholder, and the pricing
 *     box rules the WordPress join-boxes template printed inline, and the news post share links.
 *
 * Panton is not used any more (no licence); dist/bundle.min.css names Poppins instead.
 */

/* 1. Poppins */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/poppins-latin-300-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/poppins-latin-400-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/poppins-latin-500-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/poppins-latin-600-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/poppins-latin-700-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins latin-ext: letters such as i-macron and z-caron in names. Browsers fetch these
   files only on pages that contain such a letter. */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/poppins-latin-ext-300-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/poppins-latin-ext-400-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/poppins-latin-ext-500-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(fonts/poppins-latin-ext-600-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/poppins-latin-ext-700-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. lib/hack.php */
body.single-gyms .faq-tabs .faq-tabs__heading,
body.single-gyms .faq-tabs .faq-tabs__tabs { display: none; }

.acf-block-preview, body { font-family: "Poppins", sans-serif; font-weight: 300; line-height: 1.1; font-style: normal; }
.site-header .site-menu nav ul li a { font-weight: 400; line-height: 1.1; }
.site-header .site-nav ul li a { font-weight: 500; }
.link { font-weight: 500; }

/* Gym guide (page 35372, bare layout). In WordPress the page content was a direct child
   of <body>; here it sits inside <main>, so both are matched. The original second
   selector "wp-block-heading" had no dot and matched nothing. */
body.page-id-35372 > h2.wp-block-heading,
body.page-id-35372 > figure.wp-block-image,
body.page-id-35372 > div.sb_youtube,
body.page-id-35372 > main > h2.wp-block-heading,
body.page-id-35372 > main > figure.wp-block-image,
body.page-id-35372 > main > div.sb_youtube { padding: 1rem 3rem 0rem 3rem !important; }
body.page-id-35372 > h2,
body.page-id-35372 > main > h2 { font-size: 2rem; }

/* 3. functions.php */

/* FLYEfit Games page (31776): select and radio fields of the entry form */
.page-id-31776 .contact-form__form.form fieldset.is-select { text-align: left; }
.page-id-31776 .contact-form__form.form fieldset.is-select label { display: block; margin-bottom: 1rem; }
.page-id-31776 .contact-form__form.form fieldset.is-select select { border: none; background-color: #e8eff1; border-radius: 5px; padding: 10px 15px; height: 80px; margin-bottom: 15px; width: 100%; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.page-id-31776 .contact-form__form.form fieldset.is-radio { text-align: left; }
.page-id-31776 .contact-form__form.form fieldset.is-radio label { display: block; margin-bottom: 1rem; }
.page-id-31776 .contact-form__form.form fieldset.is-radio div.is-qualified-notice { display: none; background-color: #ffa6a6; color: #fff; padding: 10px; margin-bottom: 1rem; }

/* Gyms map (/gyms/): the Galway button */
@media (min-width: 992px) {
    #goToGalway { display: block; position: absolute; bottom: 3.5rem; left: 1rem; }
    #goToGalway span:after { transform: rotate(135deg); }
}

/* Classes carousel heading size (WordPress had the same rule at 768px and at 1280px) */
@media (min-width: 768px) {
    .carousel-classes__carousel .item .heading h2 { font-size: 1.5rem !important; }
}

/* 4. Added in the new site */

/* Click-to-load video embeds (views/blocks/embed.php, site.js). The placeholder fills the
   16:9 .embed-container; no request goes to the video provider until it is clicked. */
.embed-container .embed-consent {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
    margin: 0; padding: 1.5rem; border: 0; border-radius: 0; cursor: pointer;
    background: #0b1b2b; color: #fff; font: inherit; text-align: center;
}
.embed-container .embed-consent:hover .embed-consent__play,
.embed-container .embed-consent:focus-visible .embed-consent__play { background: #fff; }
.embed-container .embed-consent:hover .embed-consent__play:before,
.embed-container .embed-consent:focus-visible .embed-consent__play:before { border-left-color: #009ada; }
.embed-container .embed-consent:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.embed-consent__play { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #009ada; transition: background 0.2s; }
.embed-consent__play:before {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-30%, -50%);
    border-style: solid; border-width: 0.85rem 0 0.85rem 1.4rem; border-color: transparent transparent transparent #fff;
}
.embed-consent__title { font-size: 1.1rem; font-weight: 600; }
.embed-consent__note { font-size: 0.85rem; font-weight: 300; opacity: 0.85; }
.embed-consent__link { margin: 0 0 2rem; font-size: 0.9rem; }

/* Pricing boxes ("Join Today"): the CSS the WordPress join-boxes template printed inline */
.misc-addition { position: relative; }
.misc-addition img { position: absolute; right: 16px; width: 50px; height: auto; }
.join-boxes__box.students .box-heading { margin-top: 70px; margin-bottom: 35px; }
.join-boxes__box.students .box-figure { background-color: #000; }
.join-boxes__box.students .box-option.flex .w100 { padding-left: 15px; padding-right: 15px; }
.join-boxes__box.students .box-option.flex .w100:after { display: none; }

/* News post "Share" links (views/partials/share.php): plain links inside the white box that
   the WordPress theme CSS already positions under the Share button. */
.resources-single__share .share-links > div { flex-wrap: wrap; }
.share-link {
    display: inline-block; margin: 0 3px 5px; padding: 6px 14px; border-radius: 15px;
    background: #009ada; color: #fff; font-size: 0.85rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.share-link:hover, .share-link:focus-visible { background: #444659; color: #fff; }

/* Site forms (views/blocks/form.php, template-parts/blocks/contact-form/script.min.js). The messages,
   the field errors and the spinner look as the Contact Form 7 plugin styles did on the WordPress site
   (same colours), under the new class names. */
.flye-form-control-wrap { position: relative; }
.flye-form-tip { display: block; color: #dc3232; font-size: 1em; font-weight: normal; }
.flye-list-item { display: inline-block; margin: 0 0 0 1em; }
.flye-list-item.first { margin-left: 0; }
.flye-list-item-label:before, .flye-list-item-label:after { content: " "; }
.flye-form__response { margin: 2em 0.5em 1em; padding: 0.2em 1em; border: 2px solid #00a0d2; }
.flye-form__response[hidden] { display: none; }
.flye-form__form[data-status="invalid"] .flye-form__response { border-color: #ffb900; }
.flye-form__form[data-status="sent"] .flye-form__response { border-color: #46b450; }
.flye-form__form[data-status="error"] .flye-form__response { border-color: #dc3232; }
.flye-form__form[data-status="sending"] .flye-form__response { display: none; }
.flye-form__form[data-status="sending"] .flye-submit { opacity: 0.6; cursor: wait; }
.flye-spinner {
    visibility: hidden; display: inline-block; vertical-align: middle; position: relative;
    width: 24px; height: 24px; margin: 0 24px; padding: 0; border: none; border-radius: 100%;
    background-color: #23282d; opacity: 0.75;
}
.flye-form__form[data-status="sending"] .flye-spinner { visibility: visible; }
.flye-spinner:before {
    content: ""; position: absolute; top: 4px; left: 4px; width: 6px; height: 6px;
    border: none; border-radius: 100%; background-color: #fbfbfc; transform-origin: 8px 8px;
    animation: flye-spin 1000ms linear infinite;
}
@keyframes flye-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .flye-spinner:before { animation: none; } }
/* "Are you a qualified personal trainer?": the notice is hidden by the script unless No is chosen
   (without JavaScript it stays visible) */
.contact-form__form .is-qualified-notice { background-color: #ffa6a6; color: #fff; padding: 10px; margin-bottom: 1rem; }
.contact-form__form .is-qualified-notice.is-hidden { display: none; }
