/*
 * Author: Eric Hendrickson
 * Date: May 28, 2026
 * Version: 1.5
 * File name: main.css
 * Revision history: Updated hero section to properly display assets/images/hero.jpg as the background image.
 */

:root {
    --bg: #0b1220;
    --bg-soft: #111b2f;
    --text: #f7fafc;
    --muted: #cbd5e1;
    --card: rgba(255, 255, 255, 0.94);
    --card-text: #172033;
    --accent: #f36f21;
    --accent-strong: #d71920;
    --accent-cool: #2b73ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99;
    width: auto;
    height: auto;
    padding: .75rem 1rem;
    background: white;
    color: black;
    border-radius: .5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 18, 32, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}

.brand img {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.site-nav a {
    text-decoration: none;
    padding: .7rem .9rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: .95rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.site-nav .nav-donate {
    color: white;
    background: var(--accent-strong);
    margin-left: .35rem;
}

.site-nav .nav-donate:hover {
    background: #ff3038;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: white;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/*
 * Hero image notes:
 * The homepage index.php should contain:
 * <section class="hero">
 *
 * This CSS loads the image directly from:
 * assets/images/hero.jpg
 *
 * Make sure the uploaded image filename is exactly:
 * hero.jpg
 */
.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: 2rem 1.25rem 2rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 18, 32, 0.28), rgba(11, 18, 32, 0.74)),
        url("../images/hero.jpg") center center / cover no-repeat,
        linear-gradient(135deg, #0b1220, #15223c 58%, #0b1220);
}

/* Disabled for now so the uploaded hero image remains clearly visible. */
.hero::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(43, 115, 255, 0.22), transparent 30%),
        radial-gradient(circle at 82% 26%, rgba(243, 111, 33, 0.20), transparent 28%),
        linear-gradient(to bottom, rgba(11,18,32,.05), rgba(11,18,32,.62));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.eyebrow {
    color: #ffbf8e;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 900;
}

.hero h1,
.page-hero h1 {
    margin: .2rem 0 1rem;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.hero-copy,
.page-hero p {
    max-width: 760px;
    margin: 0 auto 1.6rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-copy {
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.page-hero .button {
    margin-top: 1.2rem;
    margin-bottom: 10rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: var(--shadow);
    transition: transform .18s ease, filter .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.button-primary {
    background: var(--accent-strong);
    color: white;
}

.button-secondary {
    background: white;
    color: #172033;
    margin-left: .75rem;
}

.quick-actions {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%);
    width: min(var(--max-width), calc(100% - 2.5rem));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.quick-actions a {
    min-height: 126px;
    padding: 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.92);
    color: #172033;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .18s ease, background .18s ease;
}

.quick-actions a:hover {
    transform: translateY(-5px);
    background: #fff7ef;
}

.quick-actions span {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.quick-actions small {
    color: #526174;
    font-weight: 800;
}

.content-band {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.content-card,
.page-content {
    background: var(--card);
    color: var(--card-text);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.content-card h2,
.page-content h2 {
    margin-top: 0;
    letter-spacing: -.03em;
}

.page-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.page-hero {
    min-height: 330px;
    display: grid;
    align-content: center;
    padding: 3rem 0;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.page-content {
    max-width: 850px;
}

.site-footer {
    background: #070b14;
    color: var(--muted);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .75rem;
        background: rgba(11, 18, 32, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        border-radius: 12px;
    }

    .quick-actions,
    .content-band {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: -6rem;
        padding: 0 1.25rem 2rem;
    }

    .hero {
        display: block;
        min-height: auto;
        padding: 4rem 0 0;
        background-position: center top;
    }

    .hero-content {
        padding: 0 1.25rem 7rem;
        margin: 0 auto;
    }

    .button-secondary {
        margin-left: 0;
        margin-top: .75rem;
    }

    .hero-actions {
        display: grid;
        gap: .75rem;
        justify-items: center;
    }

    .footer-inner {
        display: block;
    }
}


/*
 * WVARA Header Ticker
 * Added: May 25, 2026
 * Version: 1.4
 * Updated: May 27, 2026
 * Purpose: Rotating event ticker below site navigation.
 */

.header-ticker {
    width: 100%;
    background: linear-gradient(90deg, rgba(243,111,33,.16), rgba(43,115,255,.14));
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}

.header-ticker-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .72rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 52px;
}

.ticker-label {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ffbf8e;
}

.ticker-content {
    position: relative;
    width: 100%;
    min-height: 1.6em;
    overflow: hidden;
}

.ticker-item {
    display: none;
    color: rgba(255,255,255,.92);
    font-size: .96rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ticker-item.active {
    display: block;
}

.ticker-item a {
    text-decoration: none;
}

.ticker-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ticker-date {
    color: #ffbf8e;
    font-weight: 800;
    margin-right: .5rem;
}

@media (max-width: 820px) {
    .header-ticker {
        overflow: visible;
    }

    .header-ticker-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: .3rem;
        padding: .65rem 1rem;
        min-height: 0;
    }

    .ticker-content {
        width: 100%;
        min-height: 0;
        overflow: visible;
    }

    .ticker-item {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.35;
        font-size: .9rem;
    }
}
.page-content img,
.about-document img {
    display: block;
    max-width: 100%;
    height: auto;
}
.page-lead-image {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
}
.board-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.board-card-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid #f36f21;
}

.board-card-content h3 {
    margin-top: 0;
}
.about-wvara {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-wvara h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.about-wvara p {
    margin-bottom: 1.1rem;
}

.about-highlight {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #f36f21;
    background: rgba(243, 111, 33, 0.08);
    border-radius: 8px;
}

.about-highlight p {
    margin-bottom: 0;
}
/* WVARA Groups.io latest post widget */

.wvara-groupsio-latest h3 {
    margin-bottom: 0.35rem;
}

.wvara-groupsio-meta {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

.wvara-groupsio-message p {
    margin-bottom: 0;
}
.wvara-events-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.wvara-event-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.wvara-event-card-header {
  background: #dadfe5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
}

.wvara-event-card-header h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.wvara-event-schedule {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #345;
}

.wvara-event-card-body {
  padding: 1.5rem;
}

.wvara-event-detail {
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.wvara-event-label {
  font-weight: 700;
  margin-right: 0.35rem;
}
.wvara-event-details {
  margin: 0;
  padding: 0;
}

.wvara-event-detail-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.wvara-event-detail-row dt {
  font-weight: 700;
  color: #223344;
}

.wvara-event-detail-row dd {
  margin: 0;
  min-width: 0;
}

.wvara-event-detail-row a {
  overflow-wrap: anywhere;
}
.wvara-event-description {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wvara-event-description p {
  margin: 0;
  line-height: 1.6;
}

.wvara-event-card a {
  color: #0b5cab;
  font-weight: 600;
  text-decoration: none;
}

.wvara-event-card a:hover,
.wvara-event-card a:focus {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .wvara-event-card-header,
  .wvara-event-card-body {
    padding: 1rem;
  }

  .wvara-event-card-header h2 {
    font-size: 1.25rem;
  }
}
