/* ============================================================
   ALEX HICKTON CONSULTING — components.css
   Reusable UI components
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

/* Primary — green background */
.btn-primary {
  background: #203731;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
}

.btn-primary:hover {
  background: #152622;
}

/* Primary on white background (inverted — used in CTAs on green) */
.btn-primary--white {
  background: #ffffff;
  color: #203731;
  padding: 14px 28px;
  border: none;
}

.btn-primary--white:hover {
  background: #F4F6F5;
}

/* Secondary — outlined */
.btn-secondary {
  background: transparent;
  color: #203731;
  border: 1.5px solid #203731;
  padding: 13px 27px; /* 1px less to account for border */
}

.btn-secondary:hover {
  background: #203731;
  color: #ffffff;
}

/* Ghost — for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #A8C5BB;
  padding: 13px 27px;
}

.btn-ghost:hover {
  border-color: #ffffff;
}

/* Large button variant */
.btn-lg {
  font-size: 16px;
  padding: 16px 32px;
}

.btn-lg.btn-primary--white {
  padding: 16px 32px;
}

/* Full-width button (for forms) */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Service Card ─────────────────────────────────────────── */

.service-card {
  background: #F4F6F5;
  border-radius: 12px;
  padding: 32px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  border-color: #203731;
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card__number {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #203731;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.service-card__name {
  font-size: 26px;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 0;
}

.service-card__footer {
  background: transparent;
  padding: 20px 0 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .service-card__footer {
    margin-top: auto;
  }
}

.service-card__footer-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card__price {
  font-size: 28px;
  font-weight: 500;
  color: #203731;
  line-height: 1.2;
}

.service-card__price-optional {
  font-size: 14px;
  font-weight: 400;
  color: #888888;
  display: block;
}

.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: #203731;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.service-card__link:hover {
  color: #203731;
  opacity: 0.7;
}

@media (max-width: 639px) {
  .service-card {
    padding: 20px 20px 0 20px;
    display: block;
  }

  .service-card__number {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .service-card__name {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .service-card__desc {
    margin-bottom: 0;
  }

  .service-card .service-card__footer {
    padding: 14px 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .service-card__price {
    font-size: 20px;
  }
}

/* ── Tag / Label pill ─────────────────────────────────────── */

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 3px 8px;
}

.tag--green {
  background: #EAF2EF;
  color: #203731;
}

.tag--white {
  background: rgba(168, 197, 187, 0.2);
  color: #A8C5BB;
}

/* ── Section Heading Group ────────────────────────────────── */

.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  max-width: 560px;
}

.section-header--center p {
  margin: 0 auto;
}

/* ── Divider ──────────────────────────────────────────────── */

.divider {
  height: 0.5px;
  background: #E5E5E5;
  border: none;
  margin: 0;
}

/* ── LinkedIn icon SVG inline ─────────────────────────────── */

.icon-linkedin {
  display: inline-flex;
  align-items: center;
  color: #A8C5BB;
  transition: color 0.2s ease;
}

.icon-linkedin:hover {
  color: #ffffff;
}

/* ── Utility classes ──────────────────────────────────────── */

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Skip to content (accessibility) ─────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #203731;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ── Focus styles (accessibility) ────────────────────────── */

:focus-visible {
  outline: 2px solid #203731;
  outline-offset: 3px;
}

/* ── Image placeholder ────────────────────────────────────── */

.img-placeholder {
  background: #F4F6F5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8C5BB;
  font-size: 14px;
  font-weight: 400;
}

/* ── Notification / form success ──────────────────────────── */

.form-success {
  display: none;
  background: #EAF2EF;
  border: 1px solid #A8C5BB;
  border-radius: 8px;
  padding: 16px 20px;
  color: #203731;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}
