/* Event Portal shared styles. Load after Bootstrap 5. */

:root {
    --ink: #12203F;
    --ink-soft: #1C2E57;
    --cobalt: #2F5BEA;
    --cobalt-deep: #2247C4;
    --sun: #FFC94A;
    --sun-hover: #FFD772;
    --paper: #F5F7FB;
    --line: #DCE2EE;
    --text: #1F2A44;
    --muted: #55607A;
    --focus: var(--cobalt);

    --font-display: 'Epilogue', 'Segoe UI', system-ui, sans-serif;
    --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--text);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

section,
header {
    scroll-margin-top: 72px;
}

h1,
h2,
h3,
.brand-name {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    color: inherit;
}

p {
    max-width: 62ch;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.on-dark {
    --focus: var(--sun);
}

/* ---------- Navbar ---------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-block: .75rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .55rem;
    background: var(--cobalt);
    color: #fff;
    font-size: 1rem;
}

.brand-name {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
}

.site-nav .nav-link {
    color: var(--text);
    font-weight: 600;
    padding: .5rem 1rem;
}

.site-nav .nav-link:hover {
    color: var(--cobalt);
}

/* ---------- Buttons ---------- */
.btn-sun {
    --bs-btn-bg: var(--sun);
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--sun);
    --bs-btn-hover-bg: var(--sun-hover);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--sun-hover);
    --bs-btn-active-bg: var(--sun-hover);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-border-color: var(--sun-hover);
    font-weight: 700;
    border-radius: .6rem;
}

.btn-cobalt {
    --bs-btn-bg: var(--cobalt);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--cobalt);
    --bs-btn-hover-bg: var(--cobalt-deep);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--cobalt-deep);
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-color: #fff;
    --bs-btn-active-border-color: var(--ink);
    font-weight: 700;
    border-radius: .6rem;
}

.btn-outline-ink {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-color: #fff;
    font-weight: 700;
    border-radius: .6rem;
    border-width: 1.5px;
}

.btn-ghost {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .5);
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .18);
    --bs-btn-active-color: #fff;
    --bs-btn-active-border-color: #fff;
    font-weight: 600;
    border-radius: .6rem;
    border-width: 1.5px;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--ink);
    color: #fff;
    padding-block: clamp(3rem, 7vw, 5.5rem);
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 15ch;
}

.hero .lead-copy {
    color: #C9D2EA;
    font-size: 1.15rem;
    margin-top: 1.4rem;
}

/* Delegate pass: the one memorable element */
.pass {
    width: 100%;
    max-width: 21rem;
    margin: 0 auto 10px;
    background: #fff;
    color: var(--text);
    border-radius: 1.1rem;
    box-shadow: 10px 10px 0 var(--sun);
    transform: rotate(2deg);
    overflow: hidden;
}

.pass-slot {
    width: 4.5rem;
    height: .9rem;
    border-radius: 1rem;
    background: var(--ink);
    margin: 1.1rem auto 0;
}

.pass-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.pass-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
}

.pass-brand .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: .8rem;
    border-radius: .45rem;
}

.pass-name {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.05;
    margin-top: 2rem;
}

.pass-org {
    color: var(--muted);
    margin: .35rem 0 0;
}

.pass-event {
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.pass-event small {
    display: block;
    color: var(--muted);
    font-size: .85rem;
}

.pass-event strong {
    color: var(--ink);
    font-weight: 700;
}

.pass-stripe {
    background: var(--cobalt);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

/* ---------- Sections ---------- */
.section {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.section .intro {
    color: var(--muted);
    margin-top: 1.1rem;
}

@media (min-width: 992px) {
    .sticky-col {
        position: sticky;
        top: 100px;
    }
}

/* What is Event Portal */
.about {
    background: #fff;
}

.fact {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}

.fact:last-child {
    border-bottom: 1px solid var(--line);
}

.fact i {
    color: var(--cobalt);
    font-size: 1.5rem;
    padding-top: .2rem;
}

.fact h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .35rem;
}

.fact p {
    color: var(--muted);
    margin: 0;
}

.fact a,
.text-link {
    color: var(--cobalt);
    font-weight: 600;
    text-underline-offset: 3px;
}

.fact a:hover,
.text-link:hover {
    color: var(--cobalt-deep);
}

/* How to register */
.register {
    background: var(--paper);
}

.step {
    border-top: 2px solid var(--ink);
    padding-top: 1.25rem;
    height: 100%;
}

.step .n {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--cobalt);
}

.step h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin: .35rem 0 .5rem;
}

.step p {
    color: var(--muted);
    margin: 0;
}

/* About Dreamz */
.dreamz {
    background: var(--ink);
    color: #fff;
}

.dreamz h2 {
    color: #fff;
}

.dreamz p {
    color: #D3DBF0;
}

.dreamz .tags {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.dreamz .tags li {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 2rem;
    padding: .25rem .9rem;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
}

/* Contact */
.help {
    background: #fff;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
}

.contact-line i {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--sun);
    font-size: 1rem;
    flex: none;
}

.contact-line:hover {
    color: var(--cobalt);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #B5C0DD;
    padding-block: 2.5rem;
    font-size: .96rem;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--sun);
}

.site-footer .brand-name {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

/* ---------- Legal pages ---------- */
.legal-hero {
    background: var(--ink);
    color: #fff;
    padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legal-hero p {
    color: #C9D2EA;
    margin: .75rem 0 0;
}

.legal {
    background: #fff;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.toc {
    position: sticky;
    top: 96px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--line);
}

.toc a {
    display: block;
    padding: .35rem 0 .35rem 1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
}

.toc a:hover {
    color: var(--cobalt);
}

.legal-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin: 2.5rem 0 .75rem;
    scroll-margin-top: 90px;
}

.legal-body h2:first-of-type {
    margin-top: 1.75rem;
}

.legal-body p,
.legal-body li {
    max-width: 70ch;
    line-height: 1.7;
}

.legal-body ul {
    padding-left: 1.25rem;
}

.legal-body li {
    margin-bottom: .4rem;
}

.legal-body a {
    color: var(--cobalt);
    font-weight: 600;
    text-underline-offset: 3px;
}

.legal-body .lead-in {
    font-size: 1.15rem;
    color: var(--text);
}

/* Highlights details you still need to fill in. Remove the mark tags once done. */
mark.ph {
    background: #FFF0B8;
    color: var(--ink);
    padding: 0 .3rem;
    border-radius: .25rem;
}