/* ============================================================
   AFRICA BUILD BRIEFING — Construction Field Advisor
   Page-Specific Styles (inherits base from style.css)
   ============================================================ */

/* === ADVISOR PAGE BODY === */
.advisor-page {
  background: var(--primary-dark);
}

/* === ADVISOR HERO === */
.advisor-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.advisor-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(199, 91, 46, 0.06) 0%, transparent 50%),
    var(--primary-dark);
}

.advisor-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,26,0) 0%, rgba(10,15,26,0.6) 100%);
}

.advisor-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.advisor-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-accent);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
}

.advisor-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.advisor-hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 243, 239, 0.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.advisor-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.advisor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.advisor-btn-primary {
  background: var(--warm-accent);
  color: var(--primary-dark);
}

.advisor-btn-primary:hover {
  background: #e0b68a;
  transform: translateY(-1px);
}

.advisor-btn-outline {
  background: transparent;
  color: var(--warm-accent);
  border: 1px solid rgba(212, 165, 116, 0.4);
}

.advisor-btn-outline:hover {
  border-color: var(--warm-accent);
  background: rgba(212, 165, 116, 0.08);
}

.advisor-btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
}

/* === HOW IT WORKS — Steps === */
.advisor-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .advisor-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.advisor-step {
  text-align: left;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(212, 165, 116, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* === EXPERTISE GRID === */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 1023px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

.expertise-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.75rem;
  transition: all 0.3s var(--ease-smooth);
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 165, 116, 0.2);
  transform: translateY(-2px);
}

.expertise-icon {
  color: var(--warm-accent);
  margin-bottom: 1.25rem;
}

.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.expertise-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.55);
}

/* === PRICING === */
.pricing-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.toggle-label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-label.active {
  color: var(--text-dark);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.toggle-switch.yearly {
  background: var(--warm-accent);
  border-color: var(--warm-accent);
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.yearly .toggle-knob {
  transform: translateX(24px);
}

.toggle-badge {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  color: #2D8B5E;
  background: rgba(45, 139, 94, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: var(--warm-accent);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.15);
}

.pricing-popular-badge {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  background: var(--warm-accent);
  color: var(--primary-dark);
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0;
}

.pricing-card-header {
  margin-bottom: 2rem;
}

.pricing-plan-name {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  transition: all 0.3s;
}

.pricing-period {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-minutes {
  font-size: 0.95rem;
  color: var(--warm-accent);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.95rem;
  color: #444;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm-accent);
}

.pricing-cta {
  width: 100%;
}

/* Top-Up Banner */
.topup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--primary-dark);
  border: 1px solid rgba(212, 165, 116, 0.15);
}

@media (max-width: 767px) {
  .topup-banner {
    flex-direction: column;
    text-align: center;
  }
}

.topup-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.topup-content p {
  font-size: 0.95rem;
  color: rgba(245, 243, 239, 0.6);
}

.topup-content strong {
  color: var(--warm-accent);
}

/* === ADVISOR GATE (Login) === */
.advisor-gate {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gate-icon {
  color: var(--warm-accent);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.gate-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.gate-desc {
  font-size: 1rem;
  color: rgba(245, 243, 239, 0.55);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.gate-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(212, 165, 116, 0.3);
  overflow: hidden;
}

.gate-form:focus-within {
  border-color: var(--warm-accent);
}

.gate-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.gate-input::placeholder {
  color: rgba(245, 243, 239, 0.3);
}

.gate-btn {
  white-space: nowrap;
  border: none;
}

.gate-feedback {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 1.4em;
}

.gate-feedback.error {
  color: #D94F4F;
}

.gate-feedback.success {
  color: #2D8B5E;
}

.gate-hint {
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 1.5rem;
}

.gate-hint a {
  color: var(--warm-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .gate-form {
    flex-direction: column;
  }
  .gate-btn {
    width: 100%;
  }
}

/* === ADVISOR SESSION === */
.advisor-session {
  max-width: 700px;
  margin: 0 auto;
}

/* Usage Dashboard */
.usage-dashboard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.usage-plan-name {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-accent);
}

.usage-plan-email {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 243, 239, 0.45);
  margin-top: 0.2rem;
}

/* Usage Bar */
.usage-bar-wrap {
  margin-bottom: 1.5rem;
}

.usage-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.usage-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warm-accent), #D4A574);
  border-radius: 4px;
  transition: width 0.5s var(--ease-smooth);
}

.usage-bar-fill.warning-75 {
  background: linear-gradient(90deg, #D4A574, #E8A849);
}

.usage-bar-fill.warning-90 {
  background: linear-gradient(90deg, #E8A849, #E07635);
}

.usage-bar-fill.warning-95 {
  background: linear-gradient(90deg, #E07635, #D94F4F);
}

/* Usage Stats */
.usage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.usage-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.usage-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

.usage-stat-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.4);
  margin-top: 0.35rem;
}

/* === WARNING BANNERS === */
.usage-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid;
}

.usage-warning a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.usage-warning-75 {
  background: rgba(232, 168, 73, 0.1);
  border-color: #E8A849;
  color: #E8A849;
}

.usage-warning-90 {
  background: rgba(224, 118, 53, 0.1);
  border-color: #E07635;
  color: #E07635;
}

.usage-warning-95 {
  background: rgba(217, 79, 79, 0.1);
  border-color: #D94F4F;
  color: #D94F4F;
}

/* === SESSION CONTROLS === */
.session-controls {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 2rem;
  text-align: center;
}

.session-timer-wrap {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.session-timer, .session-remaining {
  text-align: center;
}

.timer-display, .remaining-display {
  display: block;
  font-family: 'DM Sans', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  line-height: 1;
}

.remaining-display {
  color: var(--warm-accent);
}

.timer-label, .remaining-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.4);
  margin-top: 0.5rem;
}

/* Start Session Button */
.session-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--warm-accent);
  border: none;
  padding: 1.25rem 3rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  margin-bottom: 1.5rem;
}

.session-start-btn:hover {
  background: #e0b68a;
  transform: translateY(-1px);
}

.session-start-btn.active {
  background: var(--secondary-accent);
  color: #fff;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 91, 46, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(199, 91, 46, 0.15); }
}

.session-start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.session-disclaimer {
  font-size: 0.8rem;
  color: rgba(245, 243, 239, 0.3);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .advisor-hero {
    min-height: 70vh;
    padding: 7rem 1.5rem 3rem;
  }

  .advisor-hero-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .session-timer-wrap {
    gap: 1.5rem;
  }

  .timer-display, .remaining-display {
    font-size: 2rem;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .session-start-btn {
    width: 100%;
    justify-content: center;
  }
}
