/* ============================================================
   Gralix Group Landing — dark hero, fragmented backdrop
   navy #222552 / orange #EA5D2B
   Fonts: Raleway (headings) · Open Sans (body) · Poppins (nav/buttons)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@400;500;600&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #222552;
  --orange:      #EA5D2B;
  --orange-hover:#f06d3d;
  --orange-press:#d44e20;

  --bg-0:        #0a0b16;   /* page base, matches the collage's black canvas */
  --bg-1:        #12132a;   /* navy glow */
  --card-glass:  rgba(20, 22, 48, .55);
  --card-line:   rgba(255, 255, 255, .10);
  --card-line-h: rgba(234, 93, 43, .55);

  --heading:     #f4f5ff;
  --text:        #c7cae0;
  --muted:       #9498b8;
  --muted-2:     #7e82a4;
  --line:        rgba(255, 255, 255, .08);
  --maxw:        1240px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 720px at 82% 38%, rgba(34, 37, 82, .55), transparent 60%),
    linear-gradient(160deg, #0c0d1c 0%, var(--bg-0) 55%, #070811 100%);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ---------- page backdrop: floating fragmented office ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/hero-fragments.png") no-repeat;
  background-position: right -5vw center;
  background-size: clamp(700px, 64vw, 1180px) auto;
  opacity: .50;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 44%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 4%, #000 44%, #000 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: "Raleway", sans-serif; }

/* ---------- hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 16px;
}

.hero-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-logo {
  display: block;
  margin: 0 auto 20px;
  height: 58px;
  width: auto;
}

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.hero-header h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--heading);
  margin-bottom: 12px;
}

.hero-header h1 span {
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
}

.hero-header p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- 3-card grid ---------- */
.hero-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

/* ---------- card ---------- */
.column-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(440px, 56vh, 560px);
  padding: 40px 34px;
  border-radius: 10px;
  border: 1px solid var(--card-line);
  background: var(--card-glass);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

/* photo background + readability scrim (one ::before per card) */
.column-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.column-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 22, .58) 0%,
    rgba(10, 11, 22, .40) 34%,
    rgba(12, 13, 30, .90) 100%);
  transition: background .3s ease;
}

.column-card:nth-child(1)::before { background-image: url("assets/card-actuarial.jpg"); }
.column-card:nth-child(2)::before { background-image: url("assets/card-tech.jpg"); }
.column-card:nth-child(3)::before { background-image: url("assets/card-capital.jpg"); }

.column-card:hover,
.column-card:focus-visible {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  transform: translateY(-5px);
  border-color: var(--card-line-h);
  outline: none;
}
.column-card:hover::before,
.column-card:focus-visible::before { transform: scale(1.07); }
.column-card:hover::after,
.column-card:focus-visible::after {
  background: linear-gradient(
    180deg,
    rgba(34, 37, 82, .50) 0%,
    rgba(10, 11, 22, .42) 34%,
    rgba(12, 13, 30, .92) 100%);
}

.column-card:focus-visible { outline: 3px solid var(--orange-hover); outline-offset: 3px; }

/* card index */
.card-index {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .55);
}

/* icon circle */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 16px;
  transition: background .3s ease, border-color .3s ease;
}

.card-icon svg { width: 26px; height: 26px; color: #fff; transition: color .3s ease; }

.column-card:hover .card-icon,
.column-card:focus-visible .card-icon { background: var(--orange); border-color: var(--orange); }

/* card body */
.column-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--heading);
  margin-bottom: 10px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  transition: color .3s ease;
}

.column-card:hover h3,
.column-card:focus-visible h3 { color: var(--orange-hover); }

.column-card p {
  font-size: .86rem;
  line-height: 1.62;
  color: #d4d7ea;
  margin-bottom: 18px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* division CTA button */
.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  transition: background .3s ease;
}

.card-cta svg { width: 14px; height: 14px; transition: transform .3s ease; }

.column-card:hover .card-cta,
.column-card:focus-visible .card-cta { background: var(--orange-press); }

.column-card:hover .card-cta svg,
.column-card:focus-visible .card-cta svg { transform: translateX(4px); }

/* ---------- footer credit ---------- */
.site-credit {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  html, body { overflow: auto; height: auto; }
  .hero-section { justify-content: flex-start; padding-top: 36px; }
  .hero-columns { grid-template-columns: 1fr; }
  body::before { background-position: right -30vw top 20%; opacity: .35; }
}

@media (max-width: 768px) {
  .hero-header h1 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .column-card:hover, .column-card:focus-visible { transform: none; }
  .column-card::before { transform: none !important; }
  .card-cta svg { transform: none !important; }
}
