/* ============================================
   PHI ETA PSI 2026 NATIONAL CONVENTION
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --green-dark:    #004d33;
  --green-darkest: #112400;
  --gold-bright:   #cbad00;
  --gold-warm:     #d4af37;
  --gold-text:     #8a7400;
  --bg:            #fafaf7;
  --surface:       #ffffff;
  --surface-alt:   #f3f2ec;
  --border:        #e2e0d5;
  --text-heading:  #292929;
  --text-body:     #626262;
  --text-muted:    #9a9a8e;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --transition:    0.2s ease;
  --nav-height:    68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--gold-warm);
  outline-offset: 3px;
  border-radius: 3px;
}
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ── */
.container {
  width: min(1140px, 100%);
  padding-inline: clamp(1rem, 4vw, 2rem);
  margin-inline: auto;
}
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-text); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Section Headers ── */
.section-header { margin-bottom: 2.5rem; }
.section-header .eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-body); font-size: 1.05rem; max-width: 640px; }
.text-center .section-header p { margin-inline: auto; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold-warm);
  border-radius: 2px;
  margin: 0.75rem 0 1rem;
}
.text-center .divider { margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gold-warm);
  color: var(--green-darkest);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,175,55,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--gold-warm);
  border: 2px solid var(--gold-warm);
}
.btn-secondary:hover { background: var(--gold-warm); color: var(--green-darkest); }
.btn-outline-dark {
  background: transparent;
  color: var(--text-heading);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--green-dark); color: var(--green-dark); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-icon.green { background: rgba(0,77,51,0.1); }
.card-icon.gold { background: rgba(212,175,55,0.15); }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-darkest);
  border-bottom: 2px solid rgba(203,173,0,0.3);
  height: var(--nav-height);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  height: 54px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-warm);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-cta {
  background: var(--gold-warm);
  color: var(--green-darkest) !important;
  font-weight: 600 !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: var(--gold-bright) !important; color: var(--green-darkest) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--green-darkest);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 2px solid rgba(203,173,0,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; font-size: 1rem; }
}

/* ── Footer ── */
.site-footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.7);
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.footer-brand img {
  width: 52px;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold-warm); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold-text); }
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Quick Info Strip ── */
.info-strip {
  background: var(--green-dark);
  color: rgba(255,255,255,0.9);
  padding-block: 0.9rem;
}
.info-strip .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.info-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.info-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  align-self: center;
}
@media (max-width: 580px) { .info-divider { display: none; } }

/* ── Countdown ── */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.countdown-unit {
  text-align: center;
  min-width: 72px;
}
.countdown-unit .number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-warm);
  line-height: 1;
}
.countdown-unit .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
}
.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold-warm);
  align-self: flex-start;
  margin-top: 0.25rem;
  opacity: 0.6;
}

/* ── Why Attend Cards ── */
.attend-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.attend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.attend-card .icon-wrap {
  width: 56px; height: 56px;
  background: rgba(0,77,51,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,77,51,0.12);
}
.attend-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--text-heading); }
.attend-card p { font-size: 0.95rem; color: var(--text-body); }

/* ── Day Tabs ── */
.tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition);
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--green-dark); color: var(--green-dark); }
.tab-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Session Cards ── */
.session-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
}
.session-time {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  padding-top: 0.2rem;
  line-height: 1.4;
}
.session-time .end { color: var(--text-muted); font-weight: 400; display: block; }
.session-body { border-left: 3px solid var(--border); padding-left: 1rem; }
.session-header { display: flex; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.session-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-heading); }
.session-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
/* Badge colors by type */
.badge-business   { background: rgba(0,77,51,0.12);  color: #004d33; }
.badge-workshop   { background: rgba(0,128,128,0.12); color: #006b6b; }
.badge-keynote    { background: rgba(203,173,0,0.18); color: #8a7400; }
.badge-social     { background: rgba(212,175,55,0.15); color: #7a6200; }
.badge-meal       { background: rgba(150,150,130,0.12); color: #5a5a4a; }
.badge-ritual     { background: rgba(17,36,0,0.12);  color: #112400; }
.badge-excursion  { background: rgba(0,80,160,0.10); color: #004aaa; }
.badge-registration { background: rgba(200,200,200,0.3); color: #555; }
.badge-free       { background: rgba(240,240,230,0.6); color: #777; border: 1px solid var(--border); }
.session-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.session-meta span { display: inline-flex; align-items: center; gap: 0.25rem; margin-right: 0.75rem; }
.session-desc { font-size: 0.9rem; color: var(--text-body); }
.session-attire {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}
@media (max-width: 600px) {
  .session-card { grid-template-columns: 1fr; }
  .session-time { text-align: left; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
  .session-body { border-left: none; border-top: none; padding-left: 0; }
}

/* ── Schedule Loading/Error States ── */
.schedule-loading, .schedule-error {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.htmx-request .schedule-placeholder { display: block; }

/* ── Register Page ── */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ticket-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ticket-card.featured {
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}
.ticket-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.ticket-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}
.ticket-price small { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.ticket-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.5; }
.ticket-includes {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ticket-includes li::before { content: "✓ "; color: var(--green-dark); font-weight: 600; }
.register-cta-box {
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-top: 3rem;
}
.register-cta-box h2 { color: #fff; margin-bottom: 1rem; }
.register-cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* ── Travel Page ── */
.travel-block {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.travel-block h3 { margin-bottom: 0.75rem; color: var(--text-heading); }
.travel-block ul { padding-left: 1.25rem; list-style: disc; }
.travel-block ul li { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--text-body); }
.notice-box {
  background: rgba(203,173,0,0.08);
  border: 1px solid rgba(203,173,0,0.3);
  border-left: 4px solid var(--gold-warm);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 1.5rem;
}
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.map-container iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

/* ── FAQ ── */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface-alt); }
.faq-question[aria-expanded="true"] { color: var(--green-dark); }
.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  transition: transform 0.25s, background 0.25s;
  color: var(--text-muted);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  background: var(--green-dark);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}
.faq-answer-inner p + p { margin-top: 0.75rem; }
.faq-item.open .faq-answer { max-height: 600px; }

/* ── Contact Page ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.contact-card h3 { color: var(--text-heading); margin-bottom: 0.25rem; }
.contact-card .role { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-text); margin-bottom: 0.75rem; }
.contact-card a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--green-dark); }
.contact-card a:hover { color: var(--gold-text); }

/* ── Page Hero (interior pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-darkest) 0%, var(--green-dark) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.page-hero .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 0.75rem;
  display: block;
}
.page-hero h1 {
  color: #fff;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 0;
}

/* ── Utility ── */
.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(203,173,0,0.1);
  border: 1px solid rgba(203,173,0,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}
