/*
Theme Name: HSE Archive Rebuild
Theme URI: https://hse.ecleva.com/
Author: OpenAI Codex
Description: Recreated WordPress theme based on the archived HSE ECLEVA homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: hse-archive
*/

:root {
    --hse-primary: #002d72;
    --hse-primary-deep: #0c1bae;
    --hse-primary-light: #3486fe;
    --hse-dark: #0f1012;
    --hse-charcoal: #222328;
    --hse-text: #616161;
    --hse-heading: #161616;
    --hse-white: #ffffff;
    --hse-off-white: #f8f8f8;
    --hse-black: #000000;
    --hse-border: rgba(255, 255, 255, 0.3);
    --hse-shadow: 0 18px 50px rgba(12, 27, 174, 0.12);
    --hse-gradient: linear-gradient(90deg, #0c1bae 0%, #3486fe 50%, #0c1bae 100%);
    --hse-radius: 22px;
    --hse-width: min(1180px, calc(100% - 40px));
    --hse-transition: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.875;
    color: var(--hse-text);
    background: var(--hse-white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--hse-heading);
    font-family: "Mulish", "Open Sans", sans-serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2.3rem, 4vw, 3rem);
    font-weight: 900;
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 900;
}

h4 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
}

h5 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
}

p,
ul {
    margin: 0 0 1rem;
}

ul {
    padding-left: 1.2rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site {
    overflow: clip;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    transition: background-color var(--hse-transition), box-shadow var(--hse-transition), padding var(--hse-transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: var(--hse-width);
    margin: 0 auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-branding {
    position: relative;
    z-index: 1001;
    flex: 0 0 auto;
}

.site-logo {
    width: min(220px, 26vw);
}

.site-logo--dark {
    display: none;
}

.site-header.is-scrolled .site-logo--light,
.menu-open .site-logo--light {
    display: none;
}

.site-header.is-scrolled .site-logo--dark,
.menu-open .site-logo--dark {
    display: block;
}

.primary-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--hse-white);
    cursor: pointer;
    transition: background-color var(--hse-transition), color var(--hse-transition);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--hse-transition), opacity var(--hse-transition);
}

.menu-toggle span + span {
    margin-top: 5px;
}

.site-header.is-scrolled .menu-toggle,
.menu-open .menu-toggle {
    background: rgba(12, 27, 174, 0.08);
    color: var(--hse-primary);
}

.site-header__nav {
    display: flex;
    align-items: center;
}

.site-header__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header__nav > ul,
.site-header__nav .menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-header__nav li {
    position: relative;
}

.site-header__nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    transition: color var(--hse-transition), background-color var(--hse-transition);
}

.site-header.is-scrolled .site-header__nav a,
.menu-open .site-header__nav a {
    color: #313131;
}

.site-header__nav li:hover > a,
.site-header__nav li:focus-within > a,
.site-header__nav .current-menu-item > a,
.site-header__nav .current_page_item > a {
    background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .site-header__nav li:hover > a,
.site-header.is-scrolled .site-header__nav li:focus-within > a,
.site-header.is-scrolled .site-header__nav .current-menu-item > a,
.site-header.is-scrolled .site-header__nav .current_page_item > a,
.menu-open .site-header__nav li:hover > a,
.menu-open .site-header__nav li:focus-within > a {
    background: rgba(12, 90, 219, 0.08);
}

.site-header__nav .menu-item-has-children > a::after {
    content: "+";
    font-weight: 700;
}

.site-header__nav .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--hse-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--hse-transition), transform var(--hse-transition), visibility var(--hse-transition);
}

.site-header__nav li:hover > .sub-menu,
.site-header__nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__nav .sub-menu a {
    width: 100%;
    color: #313131;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
}

.site-main {
    min-height: 60vh;
}

.hero {
    position: relative;
    padding: 170px 0 90px;
    color: var(--hse-white);
    background-color: var(--hse-black);
    background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.34)), url("assets/images/hero-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero__inner,
.section__inner,
.footer__inner,
.content-shell {
    width: var(--hse-width);
    margin: 0 auto;
}

.hero__title {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    color: var(--hse-white);
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    line-height: 1.12;
}

.hero__lede {
    max-width: 920px;
    margin: 1.1rem auto 0;
    text-align: center;
    font-size: 1.4rem;
    font-family: "Mulish", "Open Sans", sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.7rem;
}

.hero-point {
    text-align: center;
}

.hero-point__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.45);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-point h3 {
    color: var(--hse-white);
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.section {
    position: relative;
}

.section--light {
    background: var(--hse-white);
}

.section--soft {
    background: var(--hse-off-white);
}

.section--process {
    color: var(--hse-white);
    background: #323232 url("assets/images/process-bg.png") center/cover no-repeat;
}

.section--cta {
    overflow: hidden;
    background: var(--hse-primary);
}

.section__inner {
    padding: 100px 0;
}

.section__inner--narrow {
    width: min(920px, calc(100% - 40px));
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.75rem;
    align-items: center;
}

.eyebrow {
    margin-bottom: 0.95rem;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--hse-primary);
    text-transform: uppercase;
}

.section--process .eyebrow,
.section--cta .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.section-copy h2,
.section-copy h3 {
    margin-bottom: 1.1rem;
}

.section-copy p:last-of-type {
    margin-bottom: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 1rem 1.8rem;
    border: 0;
    border-radius: 999px;
    font-family: "Mulish", "Open Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hse-white);
    background: var(--hse-gradient);
    background-size: 300% 100%;
    box-shadow: 0 14px 34px rgba(12, 90, 219, 0.3);
    transition: transform var(--hse-transition), box-shadow var(--hse-transition), background-position var(--hse-transition);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(12, 90, 219, 0.36);
    background-position: 100% 0;
}

.cta-button::after {
    content: "→";
    font-size: 1.1rem;
}

.section-figure img {
    width: 100%;
}

.accordion {
    display: grid;
    gap: 0.95rem;
}

.accordion-item {
    border-radius: 20px;
    border: 1px solid rgba(12, 90, 219, 0.12);
    background: #fbfdff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border: 0;
    background: transparent;
    color: var(--hse-heading);
    font-family: "Mulish", "Open Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.accordion-button span:last-child {
    flex: 0 0 auto;
    font-size: 1.4rem;
    color: var(--hse-primary);
}

.accordion-panel {
    padding: 0 1.35rem 1.35rem;
}

.accordion-panel[hidden] {
    display: none;
}

.accordion-panel ul {
    margin: 0;
}

.process-title {
    text-align: center;
    color: var(--hse-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 3rem;
}

.process-grid--lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(760px, 100%);
    margin: 1.4rem auto 0;
}

.process-card {
    min-height: 190px;
    padding: 1.8rem;
    border: 1px solid var(--hse-border);
    background: rgba(51, 48, 48, 0.51);
    backdrop-filter: blur(2px);
}

.process-card h5 {
    color: var(--hse-white);
    margin-bottom: 0.7rem;
}

.process-card p {
    margin: 0;
    color: #bebebe;
}

.cta-band {
    position: relative;
    text-align: center;
    color: var(--hse-white);
}

.cta-band h4,
.cta-band p {
    position: relative;
    z-index: 1;
}

.cta-band h4 {
    color: var(--hse-white);
}

.cta-band p {
    max-width: 760px;
    margin: 1rem auto 0;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
}

.cta-band__button {
    margin-top: 2rem;
}

.cta-band__ornament {
    position: absolute;
    width: 180px;
    opacity: 0.35;
    pointer-events: none;
}

.cta-band__ornament--left {
    left: -50px;
    bottom: -70px;
}

.cta-band__ornament--top {
    left: -160px;
    top: -120px;
}

.entry-content {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 180px 0 100px;
}

.archive-page-hero {
    margin-bottom: 40px;
    padding: 150px 0 88px;
    background: #14081f;
    color: var(--hse-white);
}

.archive-page-hero__inner,
.archive-support__inner {
    width: var(--hse-width);
    margin: 0 auto;
}

.archive-page-hero__eyebrow {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
}

.archive-page-hero__title {
    color: var(--hse-white);
    font-size: clamp(2.6rem, 5vw, 3.2rem);
}

.archive-support {
    padding: 10px 0 90px;
}

.archive-support__inner {
    width: min(1100px, calc(100% - 40px));
}

.archive-support__inner--two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.archive-support__intro {
    margin-bottom: 1.4rem;
}

.archive-support__main {
    min-width: 0;
}

.archive-support__aside {
    position: sticky;
    top: 120px;
}

.archive-support-card {
    padding: 2rem;
    border-radius: 26px;
    color: var(--hse-white);
    background: linear-gradient(180deg, #173f97 0%, #002d72 100%);
    box-shadow: 0 22px 52px rgba(0, 45, 114, 0.26);
}

.archive-support-card__eyebrow {
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 700;
}

.archive-support-card h3 {
    margin-bottom: 0.9rem;
    color: var(--hse-white);
}

.archive-support-card p,
.archive-support-card li {
    color: rgba(255, 255, 255, 0.9);
}

.archive-support-card ul {
    margin: 1rem 0 0;
}

.hse-ticket-form {
    margin-top: 1.5rem;
}

.hse-ticket-form .wpcf7 {
    width: 100%;
}

.hse-ticket-form .wpcf7 form {
    display: block;
}

.hse-ticket-form__field {
    margin-bottom: 1.15rem;
}

.hse-ticket-form__field label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--hse-heading);
    font-weight: 700;
}

.hse-ticket-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.45rem;
}

.hse-ticket-form__field input,
.hse-ticket-form__field textarea,
.hse-ticket-form__field select,
.hse-ticket-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(22, 22, 22, 0.12);
    border-radius: 16px;
    background: #fbfcff;
    color: var(--hse-heading);
}

.hse-ticket-form__field input:focus,
.hse-ticket-form__field textarea:focus,
.hse-ticket-form__field select:focus,
.hse-ticket-form .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: 2px solid rgba(12, 90, 219, 0.18);
    border-color: rgba(12, 90, 219, 0.45);
}

.hse-ticket-form__hint {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.hse-ticket-form__actions {
    margin-top: 1.5rem;
}

.hse-ticket-form .wpcf7-submit {
    cursor: pointer;
}

.hse-ticket-form .wpcf7-spinner {
    display: block;
    margin: 0.9rem 0 0;
}

.hse-ticket-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.45rem;
    color: #8d1d28;
    font-size: 0.92rem;
}

.hse-form-notice {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-weight: 600;
}

.hse-ticket-form .wpcf7-response-output {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-weight: 600;
}

.hse-ticket-form .wpcf7 form.sent .wpcf7-response-output {
    color: #0e5f2e;
    background: #e7f7ec;
    border: 1px solid #b9e3c6;
}

.hse-ticket-form .wpcf7 form.invalid .wpcf7-response-output,
.hse-ticket-form .wpcf7 form.failed .wpcf7-response-output,
.hse-ticket-form .wpcf7 form.aborted .wpcf7-response-output,
.hse-ticket-form .wpcf7 form.spam .wpcf7-response-output {
    color: #8d1d28;
    background: #fdecef;
    border: 1px solid #f5c2cb;
}

.hse-form-notice--success {
    color: #0e5f2e;
    background: #e7f7ec;
    border: 1px solid #b9e3c6;
}

.hse-form-notice--error {
    color: #8d1d28;
    background: #fdecef;
    border: 1px solid #f5c2cb;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.site-footer {
    background: #f8f7f6;
}

.site-footer__copyright {
    background: var(--hse-black);
    color: var(--hse-white);
}

.footer__inner {
    padding: 20px 0;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 1260px) {
    .site-header {
        background: rgba(49, 49, 49, 1);
    }

    .site-header__inner {
        min-height: 92px;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        padding: 100px 20px 20px;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--hse-transition), visibility var(--hse-transition);
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
    }

    .menu-open .primary-nav {
        opacity: 1;
        visibility: visible;
    }

    .site-header__nav > ul,
    .site-header__nav .menu {
        width: min(460px, 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .site-header__nav a,
    .site-header.is-scrolled .site-header__nav a,
    .menu-open .site-header__nav a {
        width: 100%;
        justify-content: space-between;
        color: #313131;
        background: #f6f8fc;
    }

    .site-header__nav .sub-menu {
        position: static;
        min-width: 100%;
        margin-top: 0.4rem;
        padding: 0.4rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: 1px solid rgba(12, 90, 219, 0.12);
    }

    .site-header__nav li:hover > .sub-menu,
    .site-header__nav li:focus-within > .sub-menu,
    .site-header__nav li.is-open > .sub-menu {
        display: block;
    }

    .hero {
        padding-top: 150px;
    }
}

@media (max-width: 980px) {
    .hero-points,
    .grid-two,
    .process-grid,
    .process-grid--lower {
        grid-template-columns: 1fr;
    }

    .section__inner {
        padding: 72px 0;
    }

    .grid-two {
        gap: 2.5rem;
    }

    .process-grid--lower {
        width: 100%;
    }

    .cta-band__ornament {
        width: 130px;
    }

    .archive-support__inner--two-column {
        grid-template-columns: 1fr;
    }

    .archive-support__aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-logo {
        width: 168px;
    }

    .hero {
        padding: 140px 0 72px;
    }

    .hero__lede {
        font-size: 1.1rem;
    }

    .hero-point__icon {
        width: 46px;
        height: 46px;
    }

    .section__inner {
        padding: 60px 0;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .entry-content {
        padding-top: 140px;
    }

    .archive-page-hero {
        padding: 130px 0 60px;
    }

    .archive-support {
        padding-bottom: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


