/* ==========================================================================
   PROTALENT ADVISORY — COMPONENTS & SPECIALIZED MODULES
   Clean, Minimal, Modern Layouts
   ========================================================================== */

/* Subpage Hero Banner */
.subpage-hero {
  position: relative;
  padding: calc(var(--header-height) + 2.4rem) 0 3.4rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.subpage-hero-content {
  max-width: 960px;
}

.subpage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subpage-breadcrumb a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumb a:hover {
  color: #B8860B;
}

.subpage-breadcrumb-separator {
  color: #CBD5E1;
}

.subpage-breadcrumb-current {
  color: #B8860B;
}

.subpage-hero-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1.1rem;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subpage-hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 740px;
}

/* Service Filter Tabs */
.service-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem 0;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab-btn:hover {
  color: var(--text-pure);
  border-color: #CBD5E1;
  background: var(--bg-subtle);
}

.filter-tab-btn.active {
  color: #FFFFFF;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

/* Modal Dialog (Schedule Advisory) */
.advisory-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.advisory-modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.advisory-modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisory-modal-backdrop.is-active .advisory-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-pure);
  border-color: #CBD5E1;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Service Detail Rich Popup Modal */
.service-detail-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}

.advisory-modal-backdrop.is-active .service-detail-card {
  transform: translateY(0);
}

.service-detail-banner {
  position: relative;
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  background: #0f172a;
  overflow: hidden;
}

.service-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.service-detail-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-detail-close-btn:hover {
  background: #FFFFFF;
  transform: scale(1.08);
  color: #000;
}

.service-detail-close-btn svg {
  width: 20px;
  height: 20px;
}

.service-detail-body {
  padding: 1.75rem 2rem 2rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.service-detail-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(184, 134, 11, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(184, 134, 11, 0.2);
}

.service-detail-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.service-detail-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-detail-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
}

.service-detail-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  margin-bottom: 0.9rem;
}

.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .service-detail-list {
    grid-template-columns: 1fr 1fr;
  }
}

.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.service-detail-item-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-detail-item-icon svg {
  width: 12px;
  height: 12px;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.service-detail-actions .btn {
  flex: 1 1 200px;
  justify-content: center;
  text-align: center;
}

/* Strategic Framework Timeline */
.timeline-section {
  position: relative;
}

.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding-left: 2.5rem;
  border-left: 2px solid var(--border-light);
}

.timeline-step {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-2.5rem - 7px);
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid #FFFFFF;
}

.timeline-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: #D1D5DB;
}

.faq-question-btn {
  width: 100%;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-pure);
  cursor: pointer;
  background: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold-bright);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 1.6rem 1.4rem 1.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   COMPONENT MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  .subpage-hero {
    padding: calc(var(--header-height) + 1.25rem) 0 2.2rem 0;
  }
  .subpage-hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.25;
  }
  .subpage-hero-lead {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .timeline-track {
    padding-left: 1.8rem;
    margin-top: 2rem;
  }
  .timeline-marker {
    left: calc(-1.8rem - 7px);
  }
  .faq-accordion {
    margin-top: 2rem;
  }
  .faq-question-btn {
    padding: 1.1rem 1.25rem;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0 1.25rem 1.2rem 1.25rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .service-filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }
  .service-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.95rem;
    font-size: 0.78rem;
  }
}
