/* --- Fonts --- */

@font-face {
    font-family: "NunitoSans";
    src: url("./fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NunitoSans";
    src: url("./fonts/NunitoSans-Italic-VariableFont_YTLC\,opsz\,wdth\,wght.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "PlusJakartaSans";
    src: url("./fonts/PlusJakartaSans-VariableFont_wght.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

/* --- Variables --- */
:root {
    --purple-primary: #560C6B;
    --gold-primary: #EEAF04;
    --gold-text: #8a6200; /* darker gold, passes contrast on light cards */
    --green-primary: #046846;
    --white-primary: #F6F7F8;
    --text-color: #1d1a33;
    --muted-color: #4d4870;

    --bg-1: #fdfdff;
    --bg-2: #e0d4fc;

    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed header */
}

body {
    font-family: 'NunitoSans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
    min-height: 100dvh;
}

/* One-time page-load animation: gentle slide up + fade for the content below the hero */
@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page-content {
    animation: page-in 0.6s ease-out backwards;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--purple-primary);
    color: var(--white-primary);
    border-radius: 0.5rem;
}

.skip-link:focus {
    top: 1rem;
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.section-head {
    margin-bottom: 3rem;
}

/* --- Card base class --- */
.info-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: var(--card-shadow);
    border-radius: 1.4rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    width: 100%;
}

/* Spacing inside cards (replaces <br> spacers) */
.info-card p {
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-top: 1.5rem;
}

.info-card h3:not(:first-child) {
    margin-top: 1.5rem;
}

.info-card h3+h4,
.info-card h3:first-child {
    margin-top: 0;
}

/* .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
} */

/* --- Header / Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--purple-primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.text-logo {
    text-decoration: none;
    color: var(--purple-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Thin gold underline that slides in from the left */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--gold-text);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--purple-primary);
    font-size: 1.75rem;
    cursor: pointer;
}

/* --- Layout Components --- */
.content-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Type scale: h1 hero > h2 section > track heading > h3 card > h4 / session title --- */
h1,
.subh1,
h2,
h3,
h4 {
    color: var(--purple-primary);
    font-family: "PlusJakartaSans", sans-serif;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Section intro copy: quieter and more readable than the heading above it */
.section-head p {
    max-width: 60ch;
    margin: 0 auto 0.5rem;
    font-size: 1.125rem;
    color: var(--muted-color);
}

.track-heading {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.track-meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted-color);
}

.cta {
    display: inline-block;
    padding: 14px 36px;
    text-decoration: none;
    color: var(--white-primary);
    border-radius: 50px; /* pill shape */
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    margin-bottom: 2rem;

    /* Deep purple with a glassy sheen (hero overrides this below) */
    background: linear-gradient(135deg, var(--purple-primary), #8B5CF6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(108, 92, 231, 0.4);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 25px rgba(108, 92, 231, 0.6);
    filter: brightness(1.1);
}

/* Press feedback: quick squish on click (must stay after :hover) */
.cta:active {
    transform: translateY(-1px) scale(0.96);
    transition-duration: 0.1s;
}

/* Hero variant: frosted white glass over the dark purple */
.home .cta {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 32px rgba(0, 0, 0, 0.25);
}

.home .cta:hover {
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 36px rgba(0, 0, 0, 0.35);
    filter: none;
}

.home .cta:focus-visible {
    outline-color: #ffffff;
}

/* --- Hero --- */
.home {
    background: linear-gradient(135deg, #3f0c5e 0%, #560C6B 40%, #7a3b8b 100%);
    color: var(--white-primary);
    padding-top: 145px;
    padding-bottom: 125px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind the text */
.home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: var(--gold-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2; /* keeps text above the glow */
}

.home h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.home .subh1 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* --- Session Grid --- */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.session-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 1.5rem;
    border-radius: 1.4rem;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* .session-card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
} */

.session-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.session-meta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.session-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

.session-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--green-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.session-bio {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

/* --- Info + Agenda grids --- */
.info-grid,
.agenda-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.agenda-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Make the cards flex columns so the CTA sits at the bottom of each */
.agenda-grid .info-card,
.info-grid .info-card.has-cta {
    display: flex;
    flex-direction: column;
}

.agenda-list {
    list-style: none;
    margin-bottom: 2rem;
}

.agenda-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.agenda-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.agenda-time {
    color: var(--gold-text);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.agenda-desc {
    font-size: 1rem;
    line-height: 1.4;
}

/* The button wrapper is pushed to the bottom of its card */
.card-cta {
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
}

.card-cta .cta {
    margin-bottom: 0;
}

.info-card .card-cta {
    margin-bottom: 0; /* beats .info-card p */
}

/* --- Footer --- */
.endbar {
    background: rgba(86, 12, 107, 0.95);
    color: white;
    padding: 2rem 1rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gold-primary);
}

.endbar nav ul {
    margin-top: 1rem;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.endbar a {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.endbar :focus-visible {
    outline-color: var(--gold-primary);
}

.contact-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info address {
    font-style: normal; /* <address> defaults to italic */
}

.contact-info p {
    margin-top: 0.75rem;
}

.contact-info b {
    color: var(--gold-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a::after {
        display: none;
    }

    .home h1 {
        margin: 1rem;
    }

    .endbar {
        flex-direction: column;
        text-align: center;
    }

    .endbar nav ul {
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }
}

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

    .page-content {
        animation: none;
    }

    .nav-links a::after {
        transition: none;
    }

    .cta,
    .cta:hover,
    .cta:active {
        transform: none;
        transition: none;
    }
}