/* =====================================================================
   CONTACT PAGE — Evident Technologies
   
   Styles for contact.html, including page sections, feature grids,
   card layouts, and contact form elements.
   
   Inherits design tokens from tokens.css, gemstones.css, core.css
   ===================================================================== */

/* ── Section Containers ────────────────────────────────────────────── */

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-dark {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 8%, white) 0%,
    color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 3%, white) 100%
  );
}

.section-alt {
  background: color-mix(in srgb, var(--color-primary, #1f3a99) 6%, white);
}

/* ── Content Containment ───────────────────────────────────────────── */

.container {
  width: min(100% - 2rem, var(--site-max-width, 1200px));
  margin-inline: auto;
}

/* ── Text Utilities ────────────────────────────────────────────────── */

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

.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text-muted, #5a6080);
}

.mb-12 {
  margin-bottom: 3rem;
}

/* ── Feature Grid (3-columns on desktop, 2 on tablet, 1 on mobile) ──── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (width >= 1080px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ── Pricing Grid (Similar to features-grid, used for support tiers) ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (width >= 800px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ── Card Components ──────────────────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--border-subtle, color-mix(in srgb, #1f3a99 14%, white));
  border-radius: 1.25rem;
  background: var(--surface-card, #fff);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft, 0 18px 40px rgb(18 29 62 / 10%));
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgb(31 58 153 / 14%);
}

.card-icon {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-text, #1a2040);
  line-height: 1.3;
}

.card-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted, #5a6080);
}

.text-center .card-title,
.text-center .card-text {
  text-align: center;
}

/* ── Button Extensions ────────────────────────────────────────────── */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.btn-primary {
  color: var(--gem-sapphire-text, #d0dcff);
  background: var(--gem-sapphire, linear-gradient(135deg, #0a1a6e 0%, #1f3a99 35%, #3d64cc 60%, #3d64cc 100%));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 22%, transparent);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, #374151, #1f2937);
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}

.btn-block {
  width: 100%;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 30%, transparent);
}

.btn-secondary:hover {
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
}

/* ── Responsive Utilities ──────────────────────────────────────────── */

@media (width <= 720px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .mb-12 {
    margin-bottom: 2rem;
  }
}

/* ── Accessibility ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
}

/* ── Dark Theme Support ────────────────────────────────────────────– */

@media (prefers-color-scheme: dark) {
  .card {
    background: color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 8%, #0e1528);
    border-color: color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 22%, transparent);
  }

  .card-title {
    color: var(--gem-sapphire-text, #d0dcff);
  }

  .card-text {
    color: color-mix(in srgb, var(--gem-sapphire-text, #d0dcff) 72%, transparent);
  }

  .section-dark {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 12%, #0e1528) 0%,
      color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 6%, #0e1528) 100%
    );
  }

  .section-alt {
    background: color-mix(in srgb, var(--gem-sapphire-flat, #1f3a99) 12%, #0e1528);
  }

  .lead {
    color: color-mix(in srgb, var(--gem-sapphire-text, #d0dcff) 68%, transparent);
  }
}
