/* ============================================
   COLORS & TYPOGRAPHY
   (EPFL Quantum Hackathon visual language)
============================================ */
:root {
    --rouge: #FF0000;
    --groseille: #B51F1F;
    --leman: #00A79F;
    --canard: #007480;
    --taupe: #413D3A;
    --perle: #CAC7C7;
    --white: #FFFFFF;

    --font-main: "Lora", serif;
    --font-ui: "Space Grotesk", sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================
   GLOBAL RESET & BASE
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--taupe);
    background: var(--white);
    line-height: 1.6;
}

/* ============================================
   HEADER / NAVIGATION
============================================ */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 16px;
}

.brand-text {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--taupe);
}

/* Primary nav */
.primary-nav {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-ui);
}

.primary-nav a {
    text-decoration: none;
    color: var(--taupe);
    position: relative;
    padding-bottom: 2px;
    font-size: 0.95rem;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--taupe);
    transition: width 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.3rem;
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--taupe);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* ============================================
   HERO (STATIC)
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Static image instead of video */
.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: min(70vw, 700px);
    height: auto;
    margin-bottom: 3rem;
}

.hero-overlay {
    margin-top: 2rem;
}

.hero-kicker {
    font-family: var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--taupe);
}

.hero-actions {
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
}

.hero-register {
    width: 100%;
}


/* ============================================
   BUTTONS
============================================ */
.btn {
    font-family: var(--font-ui);
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    border: 1.5px solid var(--taupe);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.25s ease;
    color: var(--taupe);
    display: inline-block;
    background: transparent;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: var(--taupe);
    color: var(--white);
}

.btn-primary {
    border-color: var(--canard);
    background: var(--leman);
    color: var(--white);
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--canard);
    border-color: var(--canard);
}

.btn-secondary {
    border-color: var(--taupe);
    background: var(--white);
}

.btn-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.btn-row .btn-secondary {
    flex: 1;
}

/* ============================================
   GENERIC SECTIONS
============================================ */
.section {
    padding: 1.5rem 1.5rem;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.section-intro {
    max-width: var(--section-intro-width);
    margin-bottom: 2rem;
    font-size: 0.98rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
}


.section-footer-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}


/* ============================================
   ALTERNATING SECTION BACKGROUNDS
============================================ */

/* Default section background */
.section {
    background: var(--white);
}

/* Every even section */
main > section.section:nth-of-type(even) {
    background: #FAFAFA;
}

/* Every odd section (optional explicitness) */
main > section.section:nth-of-type(odd) {
    background: var(--white);
}

/* Ensure cards remain white */
.section .card,
.section .practical-block,
.section .committee-card {
    background: var(--white);
}


/* ============================================
   ABOUT SECTION
============================================ */
.section-about {
    background: #FAFAFA;
}

.section-about .section-body p + p {
    margin-top: 1rem;
}

/* ============================================
   CHALLENGES
============================================ */
.card-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

/* ============================================
   PRACTICAL INFORMATION
============================================ */
.section-practical {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F6F5F5 100%);
}

.practical-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.practical-block {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.practical-block h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.practical-icon-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.practical-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--taupe);
    color: var(--white);
}

.practical-list {
    padding-left: 1.1rem;
    margin: 0.35rem 0 0;
}

.practical-list li {
    margin-bottom: 0.4rem;
}

/* ============================================
   SCHEDULE / TIMELINE
============================================ */
.section-schedule {
    background: #FFFFFF;
}

.schedule-timeline {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    position: relative;
}

.schedule-timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--perle);
}

.schedule-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.75rem;
}

.schedule-marker {
    position: absolute;
    left: 4px;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--leman);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--perle);
}

.schedule-content h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

/* ============================================
   SCHEDULE – CLEAN GRID LAYOUT
============================================ */

.schedule-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.schedule-day h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-ui);
    font-size: 1.1rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-time {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--canard);
    white-space: nowrap;
}

.schedule-event {
    font-size: 0.95rem;
}

/* Desktop: 3 columns */
@media (min-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================
   SPONSORS – GOLD / BRONZE TIERS
============================================ */

/* Prevent any logo from overflowing its tile */
.sponsor-logo {
  overflow: hidden;
}

.sponsor-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sponsor-logos--gold {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .sponsor-logos--gold {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sponsor-logos--gold {
    grid-template-columns: 1fr;
  }
}

/* Gold tiles + logo sizing */
.sponsor-logo--gold {
  min-height: 180px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo--gold img {
  /* Key part: keep them big but never too tall */
  max-height: 95px;
  width: auto;
}

/* BRONZE: force two logos side-by-side */
.sponsor-logos--bronze {
  display: grid;
  gap:rem;
  align-items: center;
grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .sponsor-logos--bronze {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
  .sponsor-logos--bronze {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .sponsor-logo--bronze {
    min-height: 100px; /* Optional: reduce height on mobile */
  }
}


/* Equal tile sizes (remove the huge horizontal padding) */
.sponsor-logo--bronze {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Normalize both logos to same visual weight */
.sponsor-logo--bronze img {
  max-height: 44px;      /* same height = same perceived size */
  max-width: 220px;      /* prevents one being tiny */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Optional: if qBraid still looks a bit larger, nudge only that logo */
.sponsor-logo--bronze img[alt*="qBraid"] {
  max-height: 35px;
}
.sponsor-logo--bronze img[alt*="Zurich"] {
  max-height: 70px;   /* was 44px */
  max-width: 230px;
}
.sponsor-logo--bronze img[alt*="SQI"] {
  max-height: 90px;   /* was 44px */
  max-width: 170px;
}

.sponsor-logo--bronze img[alt*="QSE"] {
  max-height: 90px;   /* was 44px */
  max-width: 170px;
}

/* ============================================
   COMMITTEE (HORIZONTAL SCROLL)
============================================ */
.section-committee {
    background: #FFFFFF;
}

.committee-header {
    margin-bottom: 1.5rem;
}

.committee-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.committee-card {
    flex: 0 0 210px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    padding: 1.1rem 1rem 1.2rem;
    text-align: center;
    scroll-snap-align: start;
}

.committee-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}



/* Logo-specific styles */
.committee-photo--logo {
    background: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.1);
}

.committee-photo--logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   FOOTER / CONTACT
============================================ */
.site-footer {
    background: #F0EDEC;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2.5rem 1.5rem 2rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: center;   /* centers the two blocks horizontally */
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    row-gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}




.footer-column a {
    color: var(--taupe);
    text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    text-decoration: underline;
}

/* Mobile fix */
@media (max-width: 600px) {
    .footer-columns {
        flex-direction: column;
        gap: 1.5rem;
    }
}



/* ============================================
   RESPONSIVE / MEDIA QUERIES
============================================ */

/* Medium screens */
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sponsor-tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop */
@media (min-width: 768px) {
    /* Show nav inline, hide mobile toggle */
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        flex-direction: row;
        background: transparent;
        max-height: none;
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding-top: 6rem;
    }

    .practical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Small screens */
@media (max-width: 767px) {
    .header-inner {
        padding-inline: 1rem;
    }

    .nav-toggle {
        display: inline-block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0.5rem 1.5rem 1rem;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition:
            max-height 0.25s ease,
            opacity 0.25s ease;
    }

    .primary-nav.is-open {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
    }

    .primary-nav a {
        padding-block: 0.35rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-register {
        align-self: stretch;
        text-align: center;
    }
}

/* Larger desktops */
@media (min-width: 1024px) {
    .hero-inner {
        max-width: 1000px;
    }

    .hero {
        padding-top: 6.5rem;
    }
}
