/* ==========================================================================
   I.U.P.A. Attorney & Local Leaders Conference 2026
   Mobile-first stylesheet
   ========================================================================== */

:root {
    --navy:        #0b2545;
    --navy-700:    #13315c;
    --navy-500:    #1d4e7e;
    --gold:        #c8a04b;
    --gold-bright: #e0b85c;
    --red:         #9e2b25;
    --ink:         #1a1f29;
    --body:        #3b424e;
    --muted:       #6b7280;
    --line:        #e3e6eb;
    --bg:          #ffffff;
    --bg-alt:      #f5f7fa;
    --bg-dark:     #0b2545;
    --radius:      10px;
    --radius-lg:   16px;
    --shadow:      0 6px 24px rgba(11, 37, 69, .08);
    --shadow-lg:   0 18px 50px rgba(11, 37, 69, .16);
    --maxw:        1140px;
    --font-head:   "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body:   "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.1;
    margin: 0 0 .5em;
    letter-spacing: .3px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.7); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; font-family: var(--font-head); font-weight: 600;
    font-size: 1.05rem; letter-spacing: .5px; text-transform: uppercase;
    padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 8px 22px rgba(200,160,75,.4); }
.btn-navy  { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg    { font-size: 1.15rem; padding: 16px 34px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.footer-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 1px; }
.brand-text small  { display: block; color: var(--gold); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }

.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--navy-700);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.primary-nav.open { max-height: 480px; box-shadow: var(--shadow-lg); }
.primary-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.primary-nav a {
    display: block; color: #eaf0f7; padding: 14px 22px;
    font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .5px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.primary-nav a:hover, .primary-nav a.active { background: rgba(255,255,255,.08); color: var(--gold-bright); text-decoration: none; }
.primary-nav .nav-cta { background: var(--gold); color: var(--navy); margin: 10px 22px; border-radius: var(--radius); text-align: center; border: 0; }
.primary-nav .nav-cta:hover { background: var(--gold-bright); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; text-align: center;
    background:
        linear-gradient(180deg, rgba(11,37,69,.78), rgba(11,37,69,.94)),
        url("../img/hero-bg.svg") center/cover no-repeat,
        var(--navy);
    padding: 44px 0 52px;
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 600;
    color: var(--gold); margin: 0 0 10px;
}
.hero h1 {
    color: #fff; font-size: clamp(2.1rem, 6.5vw, 3.6rem); text-transform: uppercase;
    line-height: .98; margin-bottom: .25em;
}
.hero-year { display: inline; color: var(--gold); margin-left: .35em; }
.hero-tagline { font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,.9); margin: 0 0 18px; }
.hero-facts {
    list-style: none; margin: 0 0 22px; padding: 0;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    font-family: var(--font-head); font-size: 1.12rem; letter-spacing: .5px;
}
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.fact-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex: none;
    color: var(--gold);
    background: rgba(200, 160, 75, .12);
    border: 1px solid rgba(200, 160, 75, .35);
    border-radius: 50%;
}
.fact-icon svg { width: 18px; height: 18px; }
.fact-icon svg { display: block; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 320px; margin: 0 auto; }

/* ---------- Countdown ---------- */
.countdown { margin-top: 24px; }
.countdown-label {
    text-transform: uppercase; letter-spacing: 3px; font-size: .76rem; font-weight: 600;
    color: var(--gold); margin: 0 0 10px;
}
.countdown-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    max-width: 440px; margin: 0 auto;
}
.cd-unit {
    background: rgba(255,255,255,.07); border: 1px solid rgba(200,160,75,.35);
    border-radius: var(--radius); padding: 10px 6px;
    display: flex; flex-direction: column; gap: 3px;
}
.cd-num {
    font-family: var(--font-head); font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700; color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-word { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.65); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #eaf0f7; }
.section-dark h2 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.kicker {
    display: inline-block; text-transform: uppercase; letter-spacing: 2.5px;
    font-size: .78rem; font-weight: 700; color: var(--red);
    margin-bottom: 10px;
}
.kicker-light { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); text-transform: uppercase; }
.section-sub { color: var(--muted); margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 36px; }
.lead { font-size: 1.3rem; color: var(--ink); font-weight: 500; line-height: 1.4; }
.link-arrow { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .5px; color: var(--red); }
.about-stats {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center;
}
.about-stats li {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 10px;
}
.about-stats strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.about-stats span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Pull quote ---------- */
.pull-quote {
    max-width: 880px; margin: 0 auto 40px; padding: 26px 28px;
    background: var(--bg-alt); border-left: 5px solid var(--gold);
    border-radius: var(--radius);
}
.pull-quote p { margin: 0; font-size: 1.18rem; line-height: 1.55; color: var(--ink); font-style: italic; }
@media (min-width: 640px) { .pull-quote { padding: 32px 40px; } .pull-quote p { font-size: 1.3rem; } }

/* ---------- Topics ---------- */
.topic-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 18px;
}
.topic-card {
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
    border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topic-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-bottom: 16px;
    color: var(--navy); background: rgba(200, 160, 75, .15);
    border: 1px solid rgba(200, 160, 75, .45); border-radius: 14px;
}
.topic-icon svg { display: block; }
.topic-more .topic-icon { color: var(--red); background: rgba(158, 43, 37, .1); border-color: rgba(158, 43, 37, .3); }
.topic-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.topic-card p { margin: 0; color: var(--body); }
.topic-more { border-top-color: var(--red); background: var(--bg-alt); }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
    .topic-grid { grid-template-columns: repeat(3, 1fr); }
    .topic-more { grid-column: span 1; }
}

/* ---------- Agenda ---------- */
.agenda-day { max-width: 800px; margin: 0 auto 36px; }
.agenda-day:last-child { margin-bottom: 0; }
.agenda-day-head {
    font-size: 1.6rem; color: var(--navy); text-transform: uppercase; letter-spacing: .5px;
    padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--gold);
    display: flex; align-items: center; gap: 10px;
}
.agenda-day-head::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none;
}
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-item {
    display: grid; grid-template-columns: 1fr; gap: 4px;
    padding: 18px 20px; background: #fff; border: 1px solid var(--line);
    border-left: 4px solid var(--gold); border-radius: var(--radius); margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.agenda-item.is-break { border-left-color: var(--muted); background: var(--bg-alt); box-shadow: none; }
.agenda-time { font-family: var(--font-head); font-weight: 600; color: var(--red); letter-spacing: .5px; font-size: 1.02rem; }
.agenda-body h4 { font-size: 1.3rem; margin: 0; color: var(--ink); font-family: var(--font-head); }
.agenda-body p { margin: 2px 0 0; color: var(--muted); font-size: .98rem; }
.agenda-speaker { color: var(--navy-500) !important; font-weight: 600; }
.agenda-loc { font-size: .88rem !important; }

/* ---------- Speakers ---------- */
.speaker-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.speaker-card {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.speaker-photo {
    width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--gold); background: var(--bg-alt);
}
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.speaker-role { color: var(--navy-500); font-weight: 600; margin: 0 0 10px; font-size: .92rem; text-transform: uppercase; letter-spacing: .8px; }
.speaker-topic { color: var(--body); font-style: italic; margin: 0 0 18px; }
.btn-bio { margin-top: 6px; padding: 9px 22px; font-size: .95rem; }

/* ---------- Speaker bio modal ---------- */
body.modal-open { overflow: hidden; }
.bio-modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.bio-modal[hidden] { display: none; }
.bio-modal-overlay { position: absolute; inset: 0; background: rgba(11, 37, 69, .6); }
.bio-modal-dialog {
    position: relative; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); max-width: 640px; width: 100%;
    max-height: 88vh; overflow-y: auto; padding: 30px;
    animation: bioModalIn .22s ease;
}
@keyframes bioModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bio-modal-close {
    position: absolute; top: 12px; right: 14px; width: 38px; height: 38px;
    border: 0; background: var(--bg-alt); color: var(--ink); border-radius: 50%;
    font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.bio-modal-close:hover { background: var(--line); }
.bio-modal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-right: 34px; }
.bio-modal-photo {
    flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--gold); background: var(--bg-alt);
}
.bio-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-modal-head h3 { font-size: 1.5rem; margin: 0 0 2px; }
.bio-modal-body p { margin: 0 0 14px; }
.bio-modal-body p:last-child { margin-bottom: 0; }
.bio-modal-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }

/* ---------- Feature banner (keynote / CLE images) ---------- */
.feature-banner {
    margin: 0 auto; max-width: 1000px;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.feature-banner img { width: 100%; height: auto; display: block; }

/* ---------- Venue ---------- */
.venue-grid { display: grid; gap: 34px; }
.venue-details { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 0; }
.venue-details li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.venue-details span { width: 120px; color: var(--gold); font-family: var(--font-head); letter-spacing: .5px; }
.venue-details strong { color: #fff; font-size: 1.05rem; }
.venue-details em { color: rgba(255,255,255,.55); font-size: .85rem; font-style: normal; }
.venue-details a { color: var(--gold-bright); }
.venue-note {
    background: rgba(158,43,37,.25); border: 1px solid rgba(200,160,75,.4);
    padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; color: #fff;
}
.venue-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 300px; }
.venue-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--navy), var(--navy-500));
    color: #fff; padding: 50px 0;
}
.cta-inner { display: grid; gap: 22px; text-align: center; }
.cta-inner h2 { color: #fff; font-size: 2rem; text-transform: uppercase; }
.cta-inner p { color: rgba(255,255,255,.85); margin: 6px 0 0; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
    background: linear-gradient(180deg, var(--navy), var(--navy-700));
    color: #fff; padding: 50px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; }
.page-hero-sub { max-width: 640px; margin: 10px auto 0; color: rgba(255,255,255,.85); }

/* ---------- Registration ---------- */
.reg-layout { display: grid; gap: 32px; }
.zoho-embed {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow); min-height: 640px;
}
.zoho-embed iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.form-fineprint { font-size: .9rem; color: var(--muted); margin-top: 14px; }

.alert { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.alert h2 { font-size: 1.5rem; }
.alert-success { background: #eaf7ee; border: 1px solid #b6e0c2; color: #1f5132; }
.alert-error   { background: #fdecea; border: 1px solid #f5c2bd; color: #8a2018; }
.alert-info    { background: #eef4fb; border: 1px solid #c4d8ef; color: #1d3d63; }
.alert code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; }

.reg-aside { display: grid; gap: 18px; align-content: start; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.aside-card-gold { background: var(--navy); color: #fff; border-color: var(--navy); }
.aside-card-gold h3 { color: var(--gold); }
.aside-card-gold a { color: var(--gold-bright); }
.aside-card-gold p { margin: 4px 0; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd7e4; padding: 50px 0 0; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin: 6px 0; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-col h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: #cdd7e4; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding: 20px 0; font-size: .85rem; }
.footer-bar p { margin: 3px 0; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--gold); color: var(--navy); font-size: 1.3rem; cursor: pointer;
    box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px);
    transition: opacity .25s, transform .25s;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top[hidden] { display: none; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 640px) {
    .hero-facts { flex-direction: row; justify-content: center; gap: 28px; }
    .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
    .cta-inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
    .agenda-item { grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; }
    .speaker-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .primary-nav {
        position: static; inset: auto; max-height: none; overflow: visible;
        background: transparent; box-shadow: none;
    }
    .primary-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
    .primary-nav a { border: 0; padding: 8px 14px; font-size: 1.05rem; border-radius: 6px; }
    .primary-nav .nav-cta { margin: 0 0 0 8px; padding: 10px 20px; }

    .about-grid { grid-template-columns: 1.6fr 1fr; align-items: center; }
    .speaker-grid { grid-template-columns: repeat(3, 1fr); }
    .venue-grid { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
    .reg-layout { grid-template-columns: 1fr 330px; align-items: start; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
    .section { padding: 80px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
