/* Coming Soon / Maintenance page. Colours and fonts come from
   Theme Settings → Coming Soon (set on .sc-cs). */

.sc-cs-page { margin: 0; }
.sc-cs, .sc-cs * { box-sizing: border-box; }

.sc-cs {
    --sc-cs-bg: #171815;
    --sc-cs-ink: #fff;
    --sc-cs-accent: #C99A55;
    --sc-cs-button-text: #171815;
    --sc-cs-soft: color-mix(in srgb, var(--sc-cs-ink) 76%, transparent);
    --sc-cs-faint: color-mix(in srgb, var(--sc-cs-ink) 22%, transparent);
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--sc-cs-bg);
    color: var(--sc-cs-ink);
    font-family: var(--sc-cs-font-text, system-ui), -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sc-cs__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    min-width: 0;
    padding: clamp(24px, 4vw, 48px) clamp(24px, 6vw, 88px);
}

.sc-cs__brand, .sc-cs__heading, .sc-cs__number {
    font-family: var(--sc-cs-font-heading, system-ui), -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.sc-cs__brand { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sc-cs__brand img { display: block; width: auto; max-width: 200px; max-height: 56px; }

.sc-cs__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    width: 100%;
    max-width: 620px;
    padding: 48px 0;
}

.sc-cs__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.sc-cs__eyebrow::before { content: ""; flex: none; width: 34px; height: 1px; background: var(--sc-cs-accent); }

.sc-cs__heading {
    margin: 0 0 18px;
    color: inherit;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.sc-cs__text { margin: 0; color: var(--sc-cs-soft); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }

/* Countdown */
.sc-cs__countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 480px; margin-top: 34px; border: 1px solid var(--sc-cs-faint); }
.sc-cs__unit { padding: 16px 6px 14px; text-align: center; }
.sc-cs__unit + .sc-cs__unit { border-left: 1px solid var(--sc-cs-faint); }
.sc-cs__number { display: block; color: var(--sc-cs-accent); font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-cs__unit-label { display: block; margin-top: 6px; color: var(--sc-cs-soft); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* Signup form: styles the fields of any form plugin's shortcode */
.sc-cs__form { width: 100%; max-width: 520px; margin-top: 34px; }
.sc-cs__form form { margin: 0; }
.sc-cs__form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.sc-cs__form textarea {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid var(--sc-cs-faint);
    border-radius: 0;
    background: color-mix(in srgb, var(--sc-cs-ink) 5%, transparent);
    color: inherit;
    font: inherit;
    font-size: 16px; /* below 16px, iPhones zoom in on tap */
}
.sc-cs__form input::placeholder { color: var(--sc-cs-soft); opacity: 1; }
.sc-cs__form input:focus, .sc-cs__form textarea:focus { outline: none; border-color: var(--sc-cs-accent); }
.sc-cs__form button, .sc-cs__form input[type="submit"], .sc-cs__form input[type="button"] {
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    padding: 0 26px;
    border: 0;
    border-radius: 0;
    background: var(--sc-cs-accent);
    color: var(--sc-cs-button-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s;
}
.sc-cs__form button:hover, .sc-cs__form input[type="submit"]:hover { filter: brightness(1.1); }
.sc-cs__form button:focus-visible, .sc-cs__form input[type="submit"]:focus-visible { outline: 2px solid var(--sc-cs-ink); outline-offset: 2px; }
/* The landing page's signup form, if it is reused here */
.sc-cs__form .sl-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.sc-cs__form .sl-form__button span { margin-left: 8px; }
.sc-cs__form .mc4wp-alert { margin-top: 12px; font-size: 15px; }
.sc-cs__form .mc4wp-alert p { margin: 0; }

.sc-cs__email { margin: 24px 0 0; font-size: 16px; }
.sc-cs__email a { color: inherit; text-decoration: underline; text-decoration-color: var(--sc-cs-accent); text-underline-offset: 4px; }

/* Footer */
.sc-cs__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; color: var(--sc-cs-soft); font-size: 13px; }
.sc-cs__social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sc-cs__social a { color: inherit; text-decoration: none; transition: color .2s; }
.sc-cs__social a:hover { color: var(--sc-cs-accent); }

/* Layout: centered, with an optional full background image */
.sc-cs--center .sc-cs__media { position: absolute; inset: 0; }
.sc-cs--center .sc-cs__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--sc-cs-focus, 50% 0%); }
.sc-cs--center .sc-cs__media::after { content: ""; position: absolute; inset: 0; background: var(--sc-cs-bg); opacity: var(--sc-cs-overlay, .65); }
.sc-cs--center .sc-cs__panel { align-items: center; text-align: center; }
.sc-cs--center .sc-cs__brand img { margin: 0 auto; }
.sc-cs--center .sc-cs__content { align-items: center; max-width: 760px; }
.sc-cs--center .sc-cs__text { max-width: 560px; }
.sc-cs--center .sc-cs__countdown { width: 100%; }
.sc-cs--center .sc-cs__eyebrow::after { content: ""; flex: none; width: 34px; height: 1px; background: var(--sc-cs-accent); }
.sc-cs--center .sc-cs__footer { justify-content: center; width: 100%; }

/* Layout: split with an image */
.sc-cs--split .sc-cs__media { position: relative; flex: 0 0 50%; order: 2; }
.sc-cs--split .sc-cs__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: var(--sc-cs-fit, cover); object-position: var(--sc-cs-focus, 50% 0%); }
.sc-cs--split .sc-cs__panel { flex: 0 0 50%; order: 1; }
.sc-cs--split.sc-cs--image-left .sc-cs__media { order: 1; }
.sc-cs--split.sc-cs--image-left .sc-cs__panel { order: 2; }

@media (max-width: 900px) {
    .sc-cs--split { flex-direction: column; }
    .sc-cs--split .sc-cs__media { flex: 0 0 38vh; order: 1; }
    .sc-cs--split .sc-cs__panel { flex: 1 1 auto; order: 2; }
    .sc-cs--split .sc-cs__content { justify-content: flex-start; } /* No big gap under the brand when stacked */
    .sc-cs__content { padding: 36px 0; }
}

@media (max-width: 480px) {
    .sc-cs__footer { flex-direction: column; align-items: inherit; }
    .sc-cs--center .sc-cs__footer { align-items: center; }
    .sc-cs__eyebrow { font-size: 11px; letter-spacing: .16em; }
}

/* Sending without a page reload (js/mailchimp-ajax.js) */
.sc-cs__form .mc4wp-form.is-sending button, .sc-cs__form .mc4wp-form.is-sending input[type="submit"] { opacity: .6; cursor: progress; }

/* Whole Image: centred in its area, never cropped */
.sc-cs--fit-contain.sc-cs--split .sc-cs__media img {
    inset: clamp(24px, 4vw, 56px);
    width: calc(100% - 2 * clamp(24px, 4vw, 56px));
    height: calc(100% - 2 * clamp(24px, 4vw, 56px));
    object-position: 50% 50%;
}

@media (max-width: 900px) {
    /* Stacked: the area takes the image's own height, so there is no empty band */
    .sc-cs--fit-contain.sc-cs--split .sc-cs__media { flex: none; padding: 24px 24px 0; }
    .sc-cs--fit-contain.sc-cs--split .sc-cs__media img { position: static; width: 100%; height: auto; max-height: 38vh; }
}
