/* ============================================================
   ECTO-BAT — Components
   ============================================================ */

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-sm);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .04em;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(215,122,47,.3);
}

.btn-primary:hover {
  background: var(--orange-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(215,122,47,.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

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

.btn-sm {
  padding: .5rem 1.25rem;
  font-size: var(--t-xs);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover svg { transform: translateX(3px); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: all var(--t-mid) var(--ease);
}

.card:hover {
  border-color: rgba(215,122,47,.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-dark {
  background: var(--navy-mid);
  border-color: var(--rule-light);
}

.card-dark:hover {
  border-color: rgba(215,122,47,.3);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card__icon-struct { background: rgba(43,92,138,.15); }
.card__icon-elec   { background: rgba(215,122,47,.15); }
.card__icon-cvc    { background: rgba(47,122,110,.15); }

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--t-h4);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}

.card-dark .card__title { color: var(--white); }

.card__body {
  font-size: var(--t-small);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--orange);
  margin-top: var(--space-md);
  transition: gap var(--t-fast);
}

.card__link:hover { gap: .6rem; }

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  position: relative;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.service-card__stripe {
  height: 5px;
}

.service-card__stripe-struct { background: linear-gradient(90deg, var(--struct), #4A7EAE); }
.service-card__stripe-elec   { background: linear-gradient(90deg, var(--orange), #E8A060); }
.service-card__stripe-cvc    { background: linear-gradient(90deg, var(--cvc), #3A9989); }

.service-card__body {
  padding: var(--space-lg);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--rule);
  line-height: 1;
  margin-bottom: var(--space-sm);
  user-select: none;
}

.service-card__title {
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .75rem;
}

.service-card__desc {
  font-size: var(--t-small);
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__missions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.mission-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 100px;
  background: var(--smoke);
  color: var(--steel);
  font-weight: 500;
}

/* ── STAT / KPI BLOCK ───────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: var(--space-lg);
}

.stat-block__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-block__label {
  font-size: var(--t-small);
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* ── DISCIPLINE PILL ────────────────────────────────────── */
.discipline-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-lg);
  border: 1px solid;
  transition: all var(--t-fast);
}

.discipline-pill:hover { transform: translateX(4px); }

.dp-struct { border-color: rgba(43,92,138,.2); background: rgba(43,92,138,.04); }
.dp-elec   { border-color: rgba(215,122,47,.2); background: rgba(215,122,47,.04); }
.dp-cvc    { border-color: rgba(47,122,110,.2); background: rgba(47,122,110,.04); }

.dp__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dp-struct .dp__dot { background: var(--struct); }
.dp-elec   .dp__dot { background: var(--orange); }
.dp-cvc    .dp__dot { background: var(--cvc); }

.dp__name {
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--navy);
}

.dp__desc {
  font-size: var(--t-xs);
  color: var(--steel-lt);
}

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header .label {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

/* ── PROCESS STEPS ──────────────────────────────────────── */
.step {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step__content h4 {
  margin-bottom: .375rem;
  font-size: var(--t-h4);
}

.step__content p {
  font-size: var(--t-small);
  color: var(--steel);
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,122,47,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__text h2 {
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-banner__text p {
  color: rgba(255,255,255,.6);
  max-width: 480px;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── QUOTE ──────────────────────────────────────────────── */
.blockquote {
  border-left: 3px solid var(--orange);
  padding: var(--space-md) var(--space-lg);
  background: var(--smoke);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-block: var(--space-lg);
}

.blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.6;
}

/* ── FORM ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--black);
  font-size: var(--t-small);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(215,122,47,.12);
}

.form-control::placeholder { color: var(--steel-lt); }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6A75' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  display: block;
  font-size: var(--t-xs);
  color: var(--steel-lt);
  margin-top: .375rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner__text p { max-width: 100%; }
}

/* ── ARTICLE CARD ───────────────────────────────────────── */
.article-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(215,122,47,.2);
}

.article-card__header {
  padding: var(--space-lg) var(--space-lg) 0;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.article-card__date {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--steel-lt);
  letter-spacing: .04em;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .625rem;
}

.article-card__excerpt {
  font-size: var(--t-small);
  color: var(--steel);
  line-height: 1.65;
  padding: 0 var(--space-lg) var(--space-lg);
  flex: 1;
}

.article-card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card__read {
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  color: var(--steel-lt);
}

/* ── ALERT ──────────────────────────────────────────────── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-md);
  font-size: var(--t-small);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.alert-success {
  background: rgba(47,122,110,.08);
  border: 1px solid rgba(47,122,110,.2);
  color: #1d5c52;
}

.alert-error {
  background: rgba(200,60,60,.08);
  border: 1px solid rgba(200,60,60,.2);
  color: #7d2020;
}
