:root {
  --navy: #0b3b3d;
  --navy-deep: #082f31;
  --gold: #f6a70a;
  --gold-soft: #ffb52c;
  --cream: #f7f1e5;
  --paper: #fbfaf6;
  --muted: #6f7771;
  --line: rgba(11,59,61,.16);
  --white: #fffdf7;
  --max: 1180px;
  --font-display: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(3.1rem, 6.2vw, 5.8rem); font-weight: 700; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  min-height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,246,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 25px;
  font-size: .9rem;
  color: #365759;
}

.nav__links a {
  padding: 4px 2px;
  transition: color .15s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--gold); }

.nav__toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  min-height: 52px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid var(--gold);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(246,167,10,.28);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: .86rem;
}

.text-link {
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid rgba(247,241,229,.6);
  padding-bottom: 3px;
  transition: border-color .15s ease, color .15s ease;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  padding: 80px 8vw;
}

.hero__brand-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .52;
}

.hero__brand-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .5;
}

.hero__content,
.hero__signal {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.eyebrow--light { color: var(--gold); }

.hero h1 {
  max-width: 850px;
  color: var(--cream);
}

.hero h1 span { color: var(--gold); }

.hero__lead {
  max-width: 640px;
  margin: 28px 0 32px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(247,241,229,.82);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.hero__signal {
  display: flex;
  justify-content: center;
}

.signal {
  width: min(360px, 100%);
  padding: 34px;
  border: 1px solid rgba(246,167,10,.5);
  background: rgba(8,47,49,.82);
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.signal small {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .66rem;
  font-weight: 700;
  margin-bottom: 7px;
  font-family: var(--font-display);
}

.signal strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.signal > span {
  display: block;
  color: var(--gold);
  font-size: 2.2rem;
  margin: 17px 0;
}

/* ---------- Section shell ---------- */
.section { padding: 110px 7vw; }

.section--dark {
  background: var(--navy);
  color: var(--cream);
}

.section--cream { background: var(--cream); }
.section--problem { background: var(--paper); }

.section__head {
  max-width: 780px;
  margin: 0 auto 60px;
}

.section__head h2 { margin-bottom: 22px; }

.section__note {
  max-width: 620px;
  color: #5c6c68;
  font-size: 1.05rem;
}

.section--case-studies .section__head { margin-bottom: 32px; }

/* ---------- What We Do ---------- */
.service-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(247,241,229,.18);
  border-left: 1px solid rgba(247,241,229,.18);
}

.service {
  position: relative;
  min-height: 250px;
  padding: 44px 42px;
  border-right: 1px solid rgba(247,241,229,.18);
  border-bottom: 1px solid rgba(247,241,229,.18);
  transition: background .2s ease;
}

.service:hover { background: rgba(247,241,229,.04); }

.card-num {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
}

.service h3 {
  color: var(--cream);
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.service p { color: rgba(247,241,229,.72); max-width: 460px; }

/* ---------- Card grids shared: Who We Serve / Why Clarix ---------- */
.audience-grid,
.why-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.audience-card,
.why-item {
  background: var(--paper);
  padding: 2.2rem;
  transition: box-shadow .2s ease, transform .2s ease;
}

.audience-card:hover,
.why-item:hover {
  box-shadow: 0 12px 30px rgba(11,59,61,.08);
  transform: translateY(-2px);
}

.audience-card h3,
.why-item h3 {
  margin-bottom: .75rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.audience-card p,
.why-item p { color: #5b6c68; margin-bottom: 0; }

/* ---------- Problem section ---------- */
.split {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.problem-copy .lead {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: var(--font-display);
}

.problem-copy p:not(.lead) { color: #596966; }

.problem-list {
  max-width: var(--max);
  margin: 65px auto 0;
  border-top: 1px solid var(--line);
}

.problem-list div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  color: #506461;
}

.problem-list span { color: var(--gold); font-weight: 700; }

/* ---------- How We Work ---------- */
.engagements {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.engagement {
  padding: 2.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: box-shadow .2s ease, transform .2s ease;
}

.engagement:hover {
  box-shadow: 0 12px 30px rgba(11,59,61,.08);
  transform: translateY(-2px);
}

.engagement h3 { margin-bottom: .6rem; font-size: 1.25rem; }
.engagement p { color: #5b6c68; margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta {
  padding: 115px 7vw;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
}

.cta > div {
  max-width: 760px;
  margin: auto;
}

.cta .eyebrow { color: var(--navy); }
.cta h2 { margin-bottom: 22px; }
.cta p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  color: rgba(11,59,61,.8);
}

.cta .btn {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.cta .btn:hover,
.cta .btn:focus-visible {
  background: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(11,59,61,.3);
}

/* ---------- Footer ---------- */
.footer {
  padding: 45px 7vw;
  background: var(--navy-deep);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.footer__brand strong,
.footer__brand span { display: block; }

.footer__brand span {
  margin-top: 3px;
  color: rgba(247,241,229,.55);
  font-size: .82rem;
}

.footer__contact {
  display: flex;
  gap: 24px;
  font-size: .88rem;
  flex-wrap: wrap;
}

.footer__contact a { transition: color .15s ease; }
.footer__contact a:hover,
.footer__contact a:focus-visible { color: var(--gold); }

.footer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(247,241,229,.42);
  font-size: .78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__toggle.is-open + .nav__links {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 24px 5vw;
    background: var(--paper);
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 7vw;
  }

  .hero__signal { justify-content: flex-start; margin-top: 45px; }

  .audience-grid,
  .why-grid,
  .engagements { grid-template-columns: 1fr; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer > p { grid-column: auto; }
}

@media (max-width: 620px) {
  .nav { padding: 0 5vw; }

  .section,
  .cta { padding: 70px 6vw; }

  .hero { padding: 60px 6vw; }

  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }

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

  .service,
  .audience-card,
  .why-item,
  .engagement { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link, .service, .audience-card, .why-item, .engagement, .nav__links a, .footer__contact a {
    transition: none;
  }
}
