/* ---------- Base ---------- */
:root{
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.10);

  --primary: #2563eb;
  --primary-ink: #0b2a78;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244, 246, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand{
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.nav-links{
  display: flex;
  gap: 18px;
}

.nav-links a{
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover{ color: var(--text); }

/* ---------- HERO ---------- */
.hero{
  min-height: 90vh;
  padding: 96px 0 72px;
  display: flex;
  align-items: center;
}

.hero--image{
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Background image */
.hero--image::before{
  content: "";
  position: absolute;
  inset: -80px;
  background-image: url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: translate(80px, 60px) scale(1.08);
  z-index: -2;
}

/* Dark overlay */
.hero--image::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2,6,23,0.78) 0%,
    rgba(2,6,23,0.58) 55%,
    rgba(2,6,23,0.38) 100%
  );
  z-index: -1;
}

/* Hero content (THIS controls text position) */
.hero-content{
  position: relative;
  z-index: 1;
  max-width: 820px;

  /* ← Move text left here */
  transform: translateX(-120px);
}

/* ---------- Hero Typography ---------- */
.page-header{
  margin-bottom: 14px;
}

.page-kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}

.page-title{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.9px;
}

.page-divider{
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
}

.hero-subtitle{
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-subtitle--onimage{
  color: rgba(255,255,255,0.85);
}

.hero-subtitle p{
  margin: 0 0 14px;
}

.hero-subtitle p:last-child{
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}

.btn{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.btn-primary{
  background: var(--primary);
  color: white;
}

.btn-primary:hover{ background: #1d4ed8; }

.btn-ghost-onimage{
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.30);
}

.btn-ghost-onimage:hover{
  background: rgba(255,255,255,0.12);
}

/* ---------- Pills ---------- */
.quick-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-onimage{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.pill-onimage:hover{
  background: rgba(255,255,255,0.14);
}

/* ---------- Sections ---------- */
.section{
  padding: 54px 0;
}

.section-titleblock{
  margin-bottom: 18px;
}

.section-eyebrow{
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-title{
  font-size: 1.85rem;
  letter-spacing: -0.4px;
}

.section-rule{
  width: 78px;
  height: 4px;
  background: rgba(37, 99, 235, 0.85);
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-subtitle{
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Cards ---------- */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.12);
}

/* Card image */
.card-image{
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-image img{
  transform: scale(1.03);
}

.card-body{ padding-top: 14px; }

.card-top h3{
  margin: 0;
  font-size: 1.15rem;
}

.meta{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.card-actions{
  margin-top: 14px;
}

.link{
  color: var(--primary-ink);
  font-weight: 900;
  text-decoration: none;
}

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.contact-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(255,255,255,0.55);
}

.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-content{
    transform: none;
  }

  .cards-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }

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