/*
 * Author:      Ivan Ribeiro <iribeiro@unifesp.br>
 * Project:     CEOE Website — CEOE/UNIFESP
 * File:        manutencao.css
 * Purpose:     Styles of the maintenance landing page, following the
 *              colours and typefaces of the former Kalium-based site
 * Created:     2026-11-27
 * Modified:    2026-11-27
 * Version:     1.0.0
 * License:     Proprietary
 *
 * Change Log:
 *   2026-11-27  v1.0.0  Initial stylesheet
 */

/* ==== Fonts ========================================================== */

/*
 * Served from this host instead of Google Fonts, so the page makes no
 * third-party request. Only the Latin subset is shipped, which covers
 * Portuguese.
 */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700.woff2") format("woff2");
}

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/cinzel.woff2") format("woff2");
}


/* ==== Design Tokens ================================================== */

/* Values taken from custom-skin.css and the custom CSS of the old site. */
:root {
    --color-navy: #241f59;
    --color-navy-deep: #1e1c4d;
    --color-navy-field: #333164;
    --color-green: #79a342;
    --color-blue: #0088ff;
    --color-white: #ffffff;
    --color-text-soft: rgba(255, 255, 255, 0.78);
    --color-rule: rgba(255, 255, 255, 0.2);

    --font-body: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
    --font-unifesp: "Cinzel", Georgia, "Times New Roman", serif;

    --container-width: 1170px;
    --gutter: 30px;
}


/* ==== Base =========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    /* dvh avoids the jump caused by mobile browser toolbars. */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--color-navy);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 4px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}


/* ==== Unifesp Top Bar ================================================ */

.top-bar {
    background: var(--color-navy-deep);
    border-bottom: 1px solid var(--color-rule);
}

.top-bar__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar__logo {
    flex-shrink: 0;
}

.top-bar__logo-full {
    height: 60px;
    width: auto;
    margin: 15px 0 10px -6px;
}

/* The short "sigla" logo replaces the building on narrow screens. */
.top-bar__logo-short {
    display: none;
    height: 20px;
    width: auto;
    margin: 12px 0;
}

.top-bar__title,
.top-bar__subtitle {
    margin: 0;
    font-family: var(--font-unifesp);
    line-height: 1.3;
}

.top-bar__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 3px;
}

.top-bar__subtitle {
    font-size: 15px;
    font-weight: 400;
}


/* ==== Site Header ==================================================== */

.site-header {
    background: var(--color-navy);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 26px;
    padding-bottom: 26px;
}

.site-header__logo {
    width: 160px;
}

.site-header__status {
    padding: 6px 16px;
    border: 1px solid var(--color-rule);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}


/* ==== Maintenance Notice ============================================= */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background: var(--color-navy);
}

/*
 * Watermark drawn after the CEOE symbol (ring with a green centre), as
 * the old site did behind its section headers. Pure CSS, no image file.
 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 760px;
    height: 760px;
    right: -260px;
    top: 50%;
    transform: translateY(-50%);
    border: 150px solid rgba(255, 255, 255, 0.045);
}

.hero::after {
    width: 200px;
    height: 200px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(121, 163, 66, 0.16);
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-green);
}

.hero__title {
    margin: 0;
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.12;
}

.hero__text {
    max-width: 620px;
    margin: 20px 0 0;
    font-size: 18px;
    color: var(--color-text-soft);
}


/* ==== Countdown ====================================================== */

.countdown {
    margin-top: 44px;
}

.countdown__label {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 190px));
    gap: 16px;
}

.countdown__grid[hidden] {
    display: none;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 8px 22px;
    border-radius: 7px;
    border-bottom: 4px solid var(--color-green);
    background: var(--color-navy-field);
}

.countdown__value {
    font-size: clamp(38px, 8.5vw, 96px);
    font-weight: 700;
    line-height: 1;
    /* Fixed-width digits keep the tiles from shaking every second. */
    font-variant-numeric: tabular-nums;
}

.countdown__name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.countdown__done {
    max-width: 620px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}


/* ==== Footer ========================================================= */

.site-footer {
    padding: 34px 0 28px;
    background: var(--color-navy-deep);
}

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

.site-footer__logo {
    width: 130px;
}

.site-footer__rule {
    margin: 24px 0 18px;
    border: 0;
    border-top: 1px solid var(--color-rule);
}

.site-footer__copyright {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-soft);
}


/* ==== Responsive ===================================================== */

@media (max-width: 1024px) {
    .top-bar__logo-full {
        display: none;
    }

    .top-bar__logo-short {
        display: block;
    }

    .top-bar__subtitle {
        display: none;
    }

    .top-bar__title {
        margin: 0;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 22px;
    }

    .top-bar__title {
        display: none;
    }

    .site-header__logo {
        width: 120px;
    }

    .site-header__status {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero {
        padding: 36px 0 48px;
    }

    .hero__text {
        font-size: 16px;
    }

    .countdown__grid {
        gap: 8px;
    }

    .countdown__unit {
        padding: 16px 4px 12px;
    }

    .countdown__name {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .hero::before {
        opacity: 0.6;
    }

    .hero::after {
        display: none;
    }
}

/* --- end of manutencao.css --- */
