/* =========================================================================
   GEO SOLUTIONS — COMPONENTS v4.0
   Generated: May 2026
   Depends on: tokens.css, base.css

   New in v4.0:
     - Primary button gets 11-layer Altrum shadow
     - Card hover state gets accent glow
     - Glass card component (NEW)
     - Eyebrow with mono numerals (NEW)
     - Plus-icon corner decoration (NEW)
     - Pill button variations
     - Stat / metric callout
   ========================================================================= */

/* =========================================================================
   1. BUTTONS
   ========================================================================= */

/* --- 1.1. Primary CTA — green pill with 11-layer shadow */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.4rem;
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.6px;
  line-height: 1;
  border: none;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-button);
  transition: opacity var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}

.btn-primary:hover {
  opacity: 0.85;
  color: var(--color-text-on-accent);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* --- 1.2. Secondary — outlined ghost button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.3rem;
  background-color: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: -0.5px;
  line-height: 1;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-default);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- 1.3. Tertiary — text link with arrow (Altrum button-arrow) */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn-arrow:hover {
  color: var(--color-accent);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- 1.4. Filled grey pill — Altrum button-arrow rounded variant */
.btn-pill-grey {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 22px 13px 20px;
  background-color: #ebebeb;
  color: #070707;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-pill-lg);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.btn-pill-grey:hover {
  opacity: 0.85;
  color: #070707;
}

/* --- 1.5. Sizes */
.btn-sm {
  padding: 0.65rem 1rem;
  font-size: var(--text-body-sm);
}

.btn-lg {
  padding: 1.1rem 1.75rem;
  font-size: var(--text-body-lg);
}

/* =========================================================================
   2. CARDS
   ========================================================================= */

/* --- 2.1. Card primary — main pattern */
.card {
  background-color: var(--color-bg-surface-1);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-medium) var(--ease-default);
  position: relative;
}

.card:hover {
  background-color: var(--color-bg-surface-2);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover-glow);
}

/* --- 2.2. Card emphasis — for pricing, featured */
.card-emphasis {
  background-color: var(--color-bg-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

/* --- 2.3. Card elevated — modal-like */
.card-elevated {
  background-color: var(--color-bg-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-elevation-2);
}

/* --- 2.4. Card flat — no border, no hover */
.card-flat {
  background-color: var(--color-bg-surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* --- 2.5. Glass card — backdrop-filter signature */
.card-glass {
  background-color: var(--color-glass-medium);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-glass--heavy {
  background-color: var(--color-glass-heavy);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

/* --- 2.6. Card with featured image (Altrum work-card pattern) */
.card-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-feature);
  background-color: var(--color-bg-surface-1);
}

.card-feature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.card-feature__content {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  z-index: var(--z-elevated);
}

/* =========================================================================
   3. EYEBROWS — section labels with mono numerals
   ========================================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.eyebrow__num {
  color: var(--color-text-quaternary);
  font-weight: var(--weight-regular);
}

.eyebrow__num::before {
  content: "(";
}

.eyebrow__num::after {
  content: ")";
}

.eyebrow__label {
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
}

/* Edition variant — Geo Solutions LTD signature */
.eyebrow--edition .eyebrow__num::before {
  content: "Geo Solutions LTD";
}

.eyebrow--edition .eyebrow__num::after {
  content: "";
}

/* =========================================================================
   4. PLUS ICON CORNERS — decorative grid markers
   ========================================================================= */

.plus-corner {
  display: inline-block;
  width: 13px;
  height: 13px;
  position: relative;
  opacity: 0.4;
}

.plus-corner::before,
.plus-corner::after {
  content: "";
  position: absolute;
  background-color: var(--color-text-primary);
}

.plus-corner::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.plus-corner::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

/* Container that holds plus icons at all 4 corners */
.with-plus-corners {
  position: relative;
}

.with-plus-corners > .plus-corner:nth-of-type(1) {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
}

.with-plus-corners > .plus-corner:nth-of-type(2) {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

.with-plus-corners > .plus-corner:nth-of-type(3) {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
}

.with-plus-corners > .plus-corner:nth-of-type(4) {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
}

/* =========================================================================
   5. METRICS / STAT CALLOUTS
   ========================================================================= */

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.metric__value {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-mega);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-accent);
}

.metric__value--neutral {
  color: var(--color-text-primary);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
}

/* Inline metric grid — 3-column standard */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-12);
}

@media (max-width: 767px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

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

/* =========================================================================
   6. PILLS / BADGES / TAGS
   ========================================================================= */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  background-color: var(--color-bg-surface-1);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.pill--accent {
  background-color: var(--color-accent-muted);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pill--ghost {
  background-color: transparent;
  border-color: var(--color-border-medium);
}

.pill__dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: var(--radius-circle);
  display: inline-block;
}

/* =========================================================================
   7. DIVIDERS
   ========================================================================= */

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-subtle);
  border: none;
}

.divider--strong {
  background-color: var(--color-border-strong);
}

.divider--dotted {
  height: 0;
  border-top: 1px dotted var(--color-border-dotted);
  background: none;
}

.divider--vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
}

/* Spacer divider — for vertical rhythm */
.divider-xs  { height: var(--divider-xs); }
.divider-sm  { height: var(--divider-sm); }
.divider-md  { height: var(--divider-md); }
.divider-lg  { height: var(--divider-lg); }
.divider-xl  { height: var(--divider-xl); }
.divider-xxl { height: var(--divider-xxl); }
.divider-3xl { height: var(--divider-3xl); }

/* =========================================================================
   8. FORM EXTENSIONS — beyond base.css
   ========================================================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

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

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-help {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-caption);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

.form-success {
  background-color: var(--color-bg-surface-2);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

/* =========================================================================
   9. UTILITY CLASSES
   ========================================================================= */

/* --- 9.1. Text utilities */
.text-mono     { font-family: var(--font-mono); letter-spacing: var(--tracking-wide); }
.text-accent   { color: var(--color-accent); }
.text-primary  { color: var(--color-text-primary); }
.text-muted    { color: var(--color-text-secondary); }
.text-subtle   { color: var(--color-text-tertiary); }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }

/* --- 9.2. Display utilities */
.hidden        { display: none !important; }
.block         { display: block; }
.inline-block  { display: inline-block; }
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.grid          { display: grid; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* --- 9.3. Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* =========================================================================
   END OF components.css v4.0
   ========================================================================= */

/* =========================================================================
   LIGHT DIVIDER — full-bleed horizontal flare banner (v34)
   Re-usable decorative banner that slots between sections without altering
   inter-section rhythm. Used on /, /about, and any other page that needs
   a green-streak visual divider.
   ─────────────────────────────────────────────────────────────────────────
   Behaviour:
     • Section carries NO padding-top/bottom — preserves existing spacing.
     • Image is full-bleed (extends edge-to-edge of viewport regardless of
       any parent .container max-width).
     • Image height is native (height: auto) — source 6.37:1 (1920×301),
       so banner ≈ 226px on 1440 desktop and ≈ 121px on 768 mobile.
   ========================================================================= */

.light-divider {
  /* full-bleed regardless of any wrapping container's max-width */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* zero vertical padding — preserves existing inter-section spacing */
  padding: 0;
  /* solid black behind the image so any sub-pixel transparency is masked */
  background: var(--color-bg-base);
  overflow: hidden;
  display: block;
}

.light-divider picture,
.light-divider img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================================
   SCROLL REVEAL — rubbery line-by-line entrance (v47, sitewide)
   Universal across all pages. JS auto-tags elements with .reveal at load
   time; IntersectionObserver flips to .is-revealed when in view.

   Easing: cubic-bezier(0.34, 1.36, 0.64, 1) is "ease-out-back" — overshoots
   slightly before settling, giving the rubbery / pull-up feel.
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 900ms cubic-bezier(0.34, 1.36, 0.64, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

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

/* Reduced-motion users: everything visible immediately, no transforms */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
