/* CRG Atlas LLC — Corporate Site Stylesheet (redesign 2026-05-09)
   Stripe-inspired hero gradient + neumorphic capability cards + Inter typeface.
   Palette:
     Hero gradient: #7c3aed (violet) → #3b82f6 (blue) → #f472b6 (pink)
     Page bg:       #fafaf9
     Card bg:       #ffffff
     Body text:     #0f172a  (slate-900)
     Secondary:     #475569  (slate-600)
     Accent:        #7c3aed  (violet, drawn from hero)
   Breakpoints: 375px, 640px, 768px, 1280px
*/

/* ─── Google Fonts ──────────────────────────────────────────────────────────── */
/* Inter loaded via <link> in HTML head for render-blocking avoidance.          */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #fafaf9;
  color: #0f172a;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

h1 {
  font-size: clamp(2.375rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin-bottom: 1.1em;
  max-width: 68ch;
}

a {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover, a:focus {
  color: #5b21b6;
}

strong { font-weight: 600; }

/* Tabular numerals for lists */
.contact-value,
.footer-copy {
  font-variant-numeric: tabular-nums;
}

/* ─── Layout Utilities ─────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ─── Site Header / Nav ────────────────────────────────────────────────────── */

.site-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* JS adds this class on scroll; see script.js */
.site-header.is-scrolled {
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-logo .logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.site-logo .logo-tagline {
  font-size: 0.6875rem;
  color: #7c3aed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}

.site-logo:hover .logo-name {
  color: #7c3aed;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #7c3aed;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */

.hero {
  /* Diagonal multi-stop gradient: violet → blue → pink */
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #4f46e5 28%,
    #3b82f6 55%,
    #ec4899 85%,
    #f472b6 100%
  );
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric abstract element — large faint circle, top-right */
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Second, smaller circle — bottom-left */
.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.375rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(15, 23, 42, 0.18);
}

.hero .hero-sub {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  max-width: 52ch;
  margin-top: 1.25rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Thin angled rule above the H1 — geometric accent, not a divider */
.hero-rule {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* ─── About Section ────────────────────────────────────────────────────────── */

.about-body p:last-child {
  margin-bottom: 0;
}

/* ─── Section Headings (shared) ────────────────────────────────────────────── */

.section-heading {
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.section-rule {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  margin-bottom: 2rem;
}

/* ─── Capabilities / Neumorphic Cards ──────────────────────────────────────── */

/* Capabilities section background — calm off-white, no gradient */
.section--caps {
  background-color: #f1f5f9;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

/* Neumorphic card — light surface, soft outer shadow + inner highlight */
.cap-card {
  background-color: #eef0f4;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  /* Neumorphic: dark shadow bottom-right, light highlight top-left */
  box-shadow:
    6px 6px 16px rgba(163, 177, 198, 0.55),
    -4px -4px 12px rgba(255, 255, 255, 0.82);
  transition: box-shadow 0.22s ease, transform 0.18s ease;
  position: relative;
}

/* Hover / focus: card appears to press in (inset shadow) */
.cap-card:hover,
.cap-card:focus-within {
  box-shadow:
    inset 3px 3px 8px rgba(163, 177, 198, 0.5),
    inset -2px -2px 6px rgba(255, 255, 255, 0.75);
  transform: translateY(1px);
}

/* Icon mark — small monochrome SVG, top of card */
.cap-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 1.1rem;
  color: #7c3aed;
}

.cap-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.cap-card p {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0;
  max-width: none;
  line-height: 1.65;
}

/* ─── Contact Section ──────────────────────────────────────────────────────── */

.contact-block {
  max-width: 480px;
}

.contact-block p {
  margin-bottom: 0.4rem;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-value a {
  color: #7c3aed;
  font-weight: 500;
}

.contact-value a:hover,
.contact-value a:focus {
  color: #5b21b6;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background-color: #0f172a;
  color: #64748b;
  padding: 2rem 0;
  font-size: 0.8125rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin-bottom: 0;
  max-width: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #a78bfa;
}

/* ─── Legal Pages (Privacy, Terms) ────────────────────────────────────────── */

.legal-hero {
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #4f46e5 40%,
    #3b82f6 100%
  );
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.legal-hero h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.legal-hero .legal-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.legal-content {
  max-width: 720px;
  padding: 3rem 0 4.5rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  max-width: none;
  color: #334155;
}

.legal-content ul {
  margin-left: 1.4rem;
  margin-bottom: 1.1em;
}

.legal-content li {
  margin-bottom: 0.4em;
  color: #334155;
}

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

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 0.75rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.375rem;
  }

  .capabilities-grid {
    gap: 1rem;
  }
}
