/* ============================================================
   KWITU EVENTS - Global Stylesheet
   Theme: Kenyan Women in the United States
   Colors: #C0392B (primary red), #E8621A (orange), #1a1a1a (dark), #F5F0EB (cream)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --primary: #c0392b;
  --primary-dark: #9b2e21;
  --bs-btn-bg: #c0392b;
  --bs-btn-border-color: #c0392b;
  --bs-btn-hover-bg: #9b2e21;
  --bs-btn-hover-border-color: #9b2e21;
  --accent: #e8621a;
  --accent-light: #f08030;
  --gold: #c9a84c;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --mid: #555555;
  --light: #f5f0eb;
  --white: #ffffff;
  --border: #e0d8d0;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
h3 {
  font-size: 1.4rem;
}
p {
  color: var(--mid);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── NAVBAR ── */
.kwitu-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.3s;
}
.kwitu-nav.scrolled {
  background: rgba(26, 26, 26, 0.97);
}
.kwitu-nav .navbar-brand img {
  height: 42px;
}
.kwitu-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: #ddd !important;
  padding: 6px 14px !important;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.kwitu-nav .nav-link:hover,
.kwitu-nav .nav-link.active {
  color: var(--accent-light) !important;
}

.btn-nav-login {
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 6px;
  padding: 5px 16px !important;
  font-weight: 600 !important;
}
.btn-nav-login:hover {
  background: var(--accent);
  color: #fff !important;
}

.btn-nav-signup {
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  padding: 5px 16px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--primary);
}
.btn-nav-signup:hover {
  background: var(--primary-dark);
}

.navbar-toggler {
  border-color: var(--accent);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ── BUTTONS ── */
.btn-primary-kwitu {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary-kwitu:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}

.btn-accent-kwitu {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-accent-kwitu:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-kwitu {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-kwitu:hover {
  background: var(--white);
  color: var(--primary);
}

/* ── SECTION SPACING ── */
.section-pad {
  padding: 80px 0;
}
.section-pad-sm {
  padding: 48px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  color: var(--dark);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── CARDS ── */
.kwitu-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.kwitu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}
.kwitu-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.event-hero-content .card-badge {
  position: unset;
}
.card-badge.badge-community {
  background: var(--accent);
}
.card-badge.badge-professional {
  background: #2c6e49;
}
.card-badge.badge-gala {
  background: var(--gold);
  color: var(--dark);
}

.card-body-kwitu {
  padding: 22px 24px 26px;
}
.card-title-kwitu {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--mid);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-meta i {
  color: var(--accent);
  margin-right: 4px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mid);
  font-family: var(--font-body);
}

/* ── DIVIDER ── */
.kwitu-divider {
  height: 3px;
  width: 56px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  margin: 12px 0 28px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-height) + 56px) 0 56px;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    #2a0f0a 60%,
    #1a1a1a 100%
  );
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C0392B' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
}
.page-hero p {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 540px;
}
.breadcrumb-kwitu {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 16px;
}
.breadcrumb-kwitu a {
  color: var(--accent-light);
}
.breadcrumb-kwitu span {
  color: #666;
}

/* ── FOOTER ── */
.kwitu-footer {
  background: var(--dark);
  color: #ccc;
  padding: 56px 0 0;
  border-top: 3px solid var(--primary);
}
.footer-brand img {
  height: 44px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #888;
  max-width: 260px;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #888;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent-light);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 1rem;
  margin-right: 8px;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  color: var(--accent);
  font-style: italic;
}

/* ── FORM STYLES ── */
.kwitu-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.form-label-kwitu {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}
.form-control-kwitu {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: #faf8f6;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.form-control-kwitu:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
  background: #fff;
}
.form-control-kwitu::placeholder {
  color: #bbb;
}
.form-group-kwitu {
  margin-bottom: 20px;
}

/* ── SPONSOR TIER BADGES ── */
.tier-platinum {
  background: linear-gradient(135deg, #e5e5e5, #b0b0b0);
  color: #333;
}
.tier-gold {
  background: linear-gradient(135deg, #f9e08b, #c9a84c);
  color: #2a1a00;
}
.tier-silver {
  background: linear-gradient(135deg, #d9d9d9, #9e9e9e);
  color: #2a2a2a;
}
.tier-bronze {
  background: linear-gradient(135deg, #e8b88a, #b87040);
  color: #fff;
}

.sponsor-tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ── UTILITIES ── */
.text-primary-kwitu {
  color: var(--primary) !important;
}
.text-accent-kwitu {
  color: var(--accent) !important;
}
.text-gold-kwitu {
  color: var(--gold) !important;
}
.bg-light-kwitu {
  background: var(--light) !important;
}
.bg-dark-kwitu {
  background: var(--dark) !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 98, 26, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MODAL ADJUSTMENTS ── */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.modal-header {
  background: var(--dark);
  border-bottom: 2px solid var(--primary);
  padding: 20px 28px;
}
.modal-header .modal-title {
  font-family: var(--font-display);
  color: #fff;
}
.modal-header .btn-close {
  filter: invert(1);
}
.modal-body {
  padding: 28px;
}
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
}

/* ── OTP BOX ── */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}
.otp-inputs input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  transition: border-color 0.2s;
}
.otp-inputs input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* ── TICKET CARD ── */
.ticket-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  position: relative;
}
.ticket-card::before {
  content: "";
  position: absolute;
  left: 180px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 8px,
    transparent 8px,
    transparent 16px
  );
}
.ticket-left {
  width: 180px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--primary), var(--accent));
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.ticket-left .t-month {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ticket-left .t-day {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}
.ticket-left .t-year {
  font-size: 0.8rem;
  opacity: 0.75;
}
.ticket-right {
  flex: 1;
  padding: 24px 28px;
}
.ticket-right h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.ticket-meta {
  font-size: 0.85rem;
  color: var(--mid);
}
.ticket-meta i {
  color: var(--accent);
  margin-right: 4px;
}
.ticket-id {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 14px;
  letter-spacing: 0.05em;
}
.ticket-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(44, 110, 73, 0.12);
  color: #2c6e49;
  margin-top: 10px;
}
/* Trigger styling */
.kwitu-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px !important;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all .25s ease;
    cursor: pointer;
}
.kwitu-user-trigger:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.kwitu-user-trigger::after {
    border-top-color: rgba(255,255,255,0.7);
    margin-left: 4px;
    transition: transform .2s;
}
.kwitu-user-trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.kwitu-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(192,57,43,.4);
}
.kwitu-user-name {
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1;
}

/* Dropdown menu */
.kwitu-user-menu {
    min-width: 280px;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0;
    margin-top: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: dropFade .2s ease;
}
@keyframes dropFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header card inside menu */
.kwitu-user-menu-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2a0f0a 100%);
    padding: 22px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.kwitu-user-menu-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C0392B' fill-opacity='0.08'%3E%3Cpath d='M20 20l5-5v10l-5-5zm0 0l-5-5v10l5-5z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.kwitu-user-menu-header > * { position: relative; z-index: 1; }

.kwitu-user-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(192,57,43,.5);
}
.kwitu-user-menu-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
}
.kwitu-user-menu-email {
    font-size: .78rem;
    color: rgba(255,255,255,0.65);
}

/* Menu body */
.kwitu-user-menu-body {
    padding: 8px 0;
    background: #fff;
}
.kwitu-menu-section-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mid);
    padding: 10px 20px 6px;
    opacity: .7;
}
.kwitu-menu-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 20px !important;
    color: var(--dark) !important;
    font-size: .9rem;
    font-weight: 500;
    transition: all .15s ease;
    border-left: 3px solid transparent;
}
.kwitu-menu-item:hover,
.kwitu-menu-item:focus {
    background: var(--light) !important;
    border-left-color: var(--primary);
    color: var(--primary) !important;
    padding-left: 22px !important;
}
.kwitu-menu-item .menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: .95rem;
    flex-shrink: 0;
    transition: all .15s ease;
}
.kwitu-menu-item:hover .menu-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.kwitu-menu-item .menu-arrow {
    margin-left: auto;
    font-size: .8rem;
    color: var(--mid);
    opacity: 0;
    transition: all .15s ease;
}
.kwitu-menu-item:hover .menu-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--primary);
}

.kwitu-menu-divider {
    margin: 6px 0;
    border-top: 1px solid var(--border);
    opacity: .5;
}

/* Logout item */
.kwitu-menu-item.logout {
    color: var(--primary) !important;
}
.kwitu-menu-item.logout .menu-icon {
    background: rgba(192,57,43,.08);
    color: var(--primary);
}
.kwitu-menu-item.logout:hover {
    background: rgba(192,57,43,.06) !important;
    border-left-color: var(--primary);
}
.kwitu-menu-item.logout:hover .menu-icon {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 991px) {
    .kwitu-user-menu { min-width: 260px; }
}