/* --- Design Tokens / Variables --- */
:root {
  --ink: #0b1220;
  --navy: #0f2f4a;
  --blue: #1b6ea8;
  --cyan: #27b7d7;
  --soft: #f4f8fb;
  --line: #dbe6ee;
  --muted: #64748b;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(15, 47, 74, .12);
}

/* --- Base & Reset Rules --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout Utility --- */
.container {
  width: min(1320px, 92%);
  margin: auto;
}

/* --- Navigation & Header --- */
.topbar {
  background: #061827;
  color: #c9d9e6;
  font-size: 14px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: -.02em;
}

.brand.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #00457c;
  font-family: Barlow, sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: +0.01em;
}

.brand.logo::before {
  content: "";
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-image: url(../wp-content/themes/locus/resource/img/locus-icon-dark.svg); /* Adjusted path relative to CSS folder */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-weight: 700;
}

.navlinks a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 999px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(11, 18, 32, 0.7), rgba(15, 47, 74, 0.85)), url('../images/homepage.png') no-repeat center center; /* Adjusted path relative to CSS folder */
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 96px 0 86px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 8px 14px;
  border-radius: 999px;
  color: #d9f5fb;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.02;
  margin: 22px 0 20px;
  letter-spacing: -.04em;
}

.hero p {
  font-size: 20px;
  color: #d9e8f2;
  max-width: 720px;
  margin: 0 0 30px;
}

.hero-panel {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.metric {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.metric:first-of-type {
  border-top: 0;
}

.metric strong {
  font-size: 34px;
  color: #fff;
  line-height: 1;
}

.metric span {
  color: #cfe2ee;
}

/* --- Buttons & Actions --- */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--cyan);
  color: #052033;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn.alt {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .45);
}

/* --- Structural Sections --- */
section {
  padding: 78px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head .label {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
}

.section-head h2 {
  font-size: 42px;
  line-height: 1.12;
  color: var(--navy);
  margin: 10px 0 14px;
  letter-spacing: -.03em;
}

.section-head p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* --- Cards & Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 47, 74, .06);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 110, 168, .35);
  box-shadow: 0 24px 48px rgba(15, 47, 74, .12);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  margin-bottom: 20px;
  position: relative;
  display: grid;
  place-items: center;
}

.card .icon::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .28);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* --- Split & Proof Components --- */
.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
  align-items: start;
}

.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.proof-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 250px;
  padding: 22px;
}

.proof-item strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 6px;
}

.proof-item span {
  color: var(--muted);
}

/* --- Process Steps --- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 22px 76px;
  position: relative;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* --- Call to Action (CTA) --- */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 30px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
}

.cta p {
  margin: 0;
  color: #d8e8f2;
  font-size: 18px;
}

.cta .actions {
  justify-content: flex-end;
}

/* --- Footer & Contact --- */
footer {
  background: #061827;
  color: #c8d7e3;
  padding: 48px 0 28px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 30px;
}

footer h3 {
  color: #fff;
  margin: 0 0 12px;
}

footer p,
footer a {
  color: #c8d7e3;
  margin: 0 0 8px;
  display: block;
}

footer .footer-grid > div:first-child p {
  font-size: 16px;
  line-height: 1.7;
  color: #c8d7e3;
}

.contact p {
  margin-bottom: 20px;
}

footer .fine {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  color: #91a6b7;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta,
  footer .footer-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }

  .navlinks {
    display: none;
  }

  .cta .actions {
    justify-content: flex-start;
  }

  .proof {
    grid-template-columns: 1fr;
  }
}

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