/**
 * Campion International — Component Styles
 * Header, Footer, Nav, Mobile Drawer, Overlays
 * Selectors match header.php / footer.php class names exactly.
 */

/* ─── GLOBAL RESETS ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── BODY LOCK (when overlay / menu open) ──────── */
body.overlay-open,
body.menu-open { overflow: hidden; }

/* ─────────────────────────────────────────────────
   SITE HEADER  (.campion-header)
   ───────────────────────────────────────────────── */
.campion-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.35s;
}

.campion-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(126, 207, 203, 0.2);
}

.campion-header.header-hidden {
  transform: translateY(-100%);
}

/* Push page content below fixed header */
body { padding-top: 72px; }
@media (max-width: 640px) { body { padding-top: 60px; } }

/* ─── HEADER INNER ──────────────────────────────── */
.campion-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

/* ─── LOGO ──────────────────────────────────────── */
.campion-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.campion-logo-text {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--campion-teal, #7ECFCB);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.campion-logo-text .logo-c {
  color: var(--campion-teal-dark, #5AB8B4);
}

.campion-logo-text .logo-sub {
  display: block;
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--campion-gray, #666);
  margin-top: 1px;
}

/* ─── PRIMARY NAV ───────────────────────────────── */
.campion-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campion-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.campion-nav-item {
  position: relative;
}

.campion-nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--campion-charcoal, #4A4A4A);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.campion-nav-link:hover,
.campion-nav-item:hover .campion-nav-link {
  color: var(--campion-teal, #7ECFCB);
  background: var(--campion-teal-pale, #EBF8F7);
}

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.2s;
}

.campion-nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* ─── DROPDOWN ──────────────────────────────────── */
.campion-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(126, 207, 203, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 1100;
}

.campion-nav-item:hover .campion-dropdown,
.campion-nav-item:focus-within .campion-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s;
}

.dropdown-item:hover {
  background: var(--campion-teal-pale, #EBF8F7);
}

.di-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--campion-teal-pale, #EBF8F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.di-content strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--campion-charcoal, #4A4A4A);
  line-height: 1.3;
}

.di-content small {
  display: block;
  font-size: 0.75rem;
  color: var(--campion-gray, #666);
  margin-top: 1px;
}

/* ─── HEADER ACTIONS ────────────────────────────── */
.campion-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── MOBILE TOGGLE ─────────────────────────────── */
.campion-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px;
  color: var(--campion-charcoal, #4A4A4A);
  transition: background 0.2s;
  flex-shrink: 0;
}

.campion-mobile-toggle:hover {
  background: var(--campion-teal-pale, #EBF8F7);
}

.campion-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.campion-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.campion-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.campion-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────
   MOBILE NAV DRAWER  (.campion-mobile-nav)
   ───────────────────────────────────────────────── */
.campion-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 90vw;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.campion-mobile-nav.open {
  transform: translateX(0);
}

.campion-mobile-nav-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 5rem 0 1.5rem;
}

.mobile-nav-section {
  border-bottom: 1px solid rgba(126, 207, 203, 0.12);
  padding: 0.5rem 0 0.75rem;
}

.mobile-nav-label {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--campion-gray, #666);
  margin: 0;
}

.mobile-nav-section a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--campion-charcoal, #4A4A4A);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.mobile-nav-section a:hover {
  background: var(--campion-teal-pale, #EBF8F7);
  color: var(--campion-teal, #7ECFCB);
}

.mobile-nav-actions {
  padding: 1.25rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Backdrop when mobile nav open */
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1199;
}

/* ─────────────────────────────────────────────────
   AUTH OVERLAY  (.campion-overlay)
   ───────────────────────────────────────────────── */
.campion-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.campion-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.campion-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 63, 0.72);
  backdrop-filter: blur(4px);
}

.campion-overlay-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  animation: overlayIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  padding: 2rem 2rem 2.5rem;
}

@keyframes overlayIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.campion-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--campion-gray, #666);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.campion-overlay-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #222;
}

.campion-overlay-logo {
  text-align: center;
  margin-bottom: 1rem;
}

/* ─── AUTH STEPS ────────────────────────────────── */
.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
}

.auth-back-btn {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--campion-gray, #666);
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  display: inline-block;
}

.auth-back-btn:hover {
  color: var(--campion-teal, #7ECFCB);
}

/* Role picker */
.role-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-option {
  border: 2px solid rgba(126, 207, 203, 0.25);
  border-radius: 12px;
  padding: 1.2rem 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.2s;
  background: #fff;
}

.role-option:hover {
  border-color: var(--campion-teal, #7ECFCB);
  background: var(--campion-teal-pale, #EBF8F7);
  transform: scale(1.03);
}

.role-option.selected {
  border-color: var(--campion-teal, #7ECFCB);
  background: var(--campion-teal-pale, #EBF8F7);
}

.role-option .role-icon {
  font-size: 1.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.role-option .role-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--campion-charcoal, #4A4A4A);
  line-height: 1.3;
}

.role-option .role-desc {
  display: block;
  font-size: 0.73rem;
  color: var(--campion-gray, #666);
  margin-top: 2px;
}

/* ─── OVERLAY FORMS ─────────────────────────────── */
.campion-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.campion-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.campion-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.campion-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--campion-charcoal, #4A4A4A);
  letter-spacing: 0.02em;
}

.campion-input,
.campion-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-primary, 'Inter', sans-serif);
  color: var(--campion-charcoal, #4A4A4A);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campion-input:focus,
.campion-select:focus {
  border-color: var(--campion-teal, #7ECFCB);
  box-shadow: 0 0 0 3px rgba(126, 207, 203, 0.18);
}

/* Google sign-in button */
.overlay-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--campion-charcoal, #4A4A4A);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-primary, 'Inter', sans-serif);
  margin-bottom: 0.5rem;
}

.overlay-google-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.14);
}

.overlay-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Divider */
.overlay-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--campion-gray, #666);
  position: relative;
  margin: 0.75rem 0;
}

.overlay-divider::before,
.overlay-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.overlay-divider::before { left: 0; }
.overlay-divider::after  { right: 0; }

/* ─── PROFILE OVERLAY STEPS ─────────────────────── */
/* Profile steps are toggled via JS style.display */
#profile-form-step,
#profile-download-step {
  padding: 0.25rem 0;
}

/* ─────────────────────────────────────────────────
   SITE FOOTER  (.campion-footer)
   ───────────────────────────────────────────────── */
.campion-footer {
  background: var(--campion-dark-bg, #2C3E3F);
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
}

/* CTA Band */
.campion-footer-cta {
  background: linear-gradient(135deg, var(--campion-teal, #7ECFCB) 0%, var(--campion-teal-dark, #5AB8B4) 100%);
  padding: 3.5rem 2rem;
}

.footer-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta-text h3 {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}

.footer-cta-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Footer Main */
.campion-footer-main {
  padding: 4rem 2rem 2.5rem;
}

.campion-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.footer-brand-col {}

.footer-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo-text {
  color: #fff;
}

.footer-logo-text .logo-sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
  max-width: 280px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--campion-teal, #7ECFCB);
  color: #fff;
}

/* Footer contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact a,
.footer-contact span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--campion-teal-light, #B8E8E6);
}

/* Links columns */
.footer-links-col {}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 1rem;
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-col ul li {
  margin-bottom: 0.55rem;
}

.footer-links-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-col ul li a:hover {
  color: var(--campion-teal-light, #B8E8E6);
}

/* Footer bottom */
.campion-footer-bottom {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom-inner a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-bottom-inner a:hover {
  color: var(--campion-teal-light, #B8E8E6);
}

/* Badges */
.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.badge-teal {
  border-color: rgba(126, 207, 203, 0.25);
  color: var(--campion-teal-light, #B8E8E6);
}

/* ─── WHATSAPP FLOAT ─────────────────────────────── */
.campion-whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.campion-whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.5);
}

.campion-whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .campion-nav { display: none; }
  .campion-mobile-toggle { display: flex; }
  .campion-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .campion-footer-grid .footer-brand-col { grid-column: span 2; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .campion-header-inner { height: 60px; }
  .campion-footer-grid { grid-template-columns: 1fr; }
  .campion-footer-grid .footer-brand-col { grid-column: span 1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .campion-form-row { grid-template-columns: 1fr; }
  .role-selector-grid { grid-template-columns: 1fr 1fr; }
  .campion-overlay-panel { border-radius: 16px; padding: 1.5rem 1.25rem 2rem; }
}
