/* ============================================================
   AEGIS — Reusable Components
   ============================================================ */

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(195,150,110,.25);
}
.btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 14px rgba(195,150,110,.35);
}

.btn--outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: rgba(195,150,110,.12);
  color: var(--gold-light);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: var(--cream); }

.btn--ghost {
  color: var(--gold);
  padding: 8px 0;
}
.btn--ghost:hover { color: var(--gold-light); }

.btn--ghost::after {
  content: '\2192';
  transition: transform var(--t-fast) var(--ease);
}
.btn--ghost:hover::after { transform: translateX(4px); }

/* --- Cards --- */

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

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

.card--flat {
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.06);
}
.card--flat:hover {
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.card--navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

/* --- Accent Bar --- */

.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 24px;
}

.accent-bar--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Stat Badge --- */

.stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--r-md);
}

/* --- Metric Card --- */

.metric-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.metric-card:hover::before { opacity: 1; }

.metric-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.metric-card__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Service Card --- */

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(16,38,104,.9) 0%, rgba(26,53,128,.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast) var(--ease);
}

.service-card__link::after { content: '\2192'; }
.service-card__link:hover { gap: 10px; }

/* --- Numbered Item (Advantage / Process) --- */

.numbered-item {
  display: flex;
  gap: 20px;
}

.numbered-item__num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.numbered-item__title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.numbered-item__desc {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section--navy .numbered-item__desc,
.section--gradient .numbered-item__desc { color: var(--text-on-dark-s); }

/* --- Process Step (horizontal timeline) --- */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: .45;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 38, 104, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(195,150,110,.15);
  transition: box-shadow var(--t-base) var(--ease);
}
.process-step:hover .process-step__num {
  box-shadow: 0 0 0 6px rgba(195,150,110,.25);
}

.process-step__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Result Card --- */

.result-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--t-base) var(--ease);
  border-left: 3px solid transparent;
}

.result-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-left-color: var(--gold);
}

.result-card__stat {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(195,150,110,.85) 0%, rgba(176,125,85,.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--r-md);
  margin-bottom: 14px;
}

.result-card__title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.result-card__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Partner Card --- */

.partner-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.partner-card__photo {
  width: 140px;
  height: 140px;
  border-radius: var(--r-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.partner-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.partner-card__role {
  font-size: .875rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.partner-card__cred {
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.partner-card__contact {
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.partner-card__contact a {
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
.partner-card__contact a:hover { color: var(--gold-dark); }

.partner-card__quote {
  font-style: italic;
  font-size: .9375rem;
  color: var(--text-secondary);
  font-family: 'Playfair Display', serif;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-top: 4px;
}

/* --- CTA Banner --- */

.cta-banner {
  background: linear-gradient(145deg, var(--navy-deeper) 0%, var(--navy) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-on-dark);
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-on-dark-s);
  margin-bottom: 32px;
  font-size: 1.0625rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Quote Block --- */

.quote-block {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--text-primary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.section--navy .quote-block,
.section--gradient .quote-block {
  color: var(--gold-light);
}

/* --- Divider --- */

.divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 32px 0;
}

.section--navy .divider { background: rgba(255,255,255,.1); }

/* --- Grid Helpers --- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Capability List --- */

.cap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.cap-list li {
  position: relative;
  padding-left: 20px;
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Scroll Reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
