/* Adviti — adviti.co. Fonts are self-hosted; see fonts/OFL-*.txt for their licences. */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/work-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/noto-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #13303f;
  --navy-deep: #0d2430;
  --ink: #1a2a35;
  --muted: #46555f;
  --teal: #37a99e;
  --teal-text: #1f7a71;
  --ochre: #d3a150;
  --blue: #2f6887;
  --blue-light: #3d82a8;
  --mist: #f4f8f8;
  --line: #dfe6ea;
  --chip: #eef1f3;
  --on-dark: #c9d8e1;
  --nav-text: #dbe7ee;
  --footer-text: #a9bcc8;
  --heading-font: "Work Sans", sans-serif;
  --h2-size: clamp(30px, 2.5vw + 21px, 40px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 600;
}

p {
  margin: 0;
}

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

.site-header :focus-visible,
.dark :focus-visible {
  outline-color: var(--ochre);
}

/* Shared layout */

.dark {
  background: var(--navy);
  color: #ffffff;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--teal-text);
}

.dark .eyebrow {
  color: var(--ochre);
}

h2 {
  margin: 0 0 40px;
  font-size: var(--h2-size);
  color: var(--navy);
}

.dark h2 {
  color: #ffffff;
}

/* Header */

.site-header {
  background: var(--navy);
  color: #ffffff;
}

.header-bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--nav-text);
}

/* Hero */

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1 1 520px;
  min-width: 0;
}

/* On narrow screens the mark wraps below the button. */
.hero-mark {
  flex: 0 0 auto;
  width: 340px;
  max-width: 100%;
  height: auto;
}

.hero-text::before,
.contact .section-inner::before {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin-bottom: 32px;
  background: var(--ochre);
}

h1 {
  margin: 0 0 28px;
  max-width: 900px;
  font-size: clamp(36px, 5.5vw + 16px, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 6px;
  background: var(--ochre);
  color: var(--navy);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px;
}

.product {
  min-width: 0;
  padding: 40px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--mist);
}

.product-outline {
  border-color: var(--line);
  background: #ffffff;
}

.product-logo {
  margin: 0 0 24px;
}

/* The stacked lockups must be at least 240 px wide; below that the inline ones take over (see index.html). */
.product-logo picture {
  display: block;
  width: 280px;
  max-width: 100%;
}

.product-logo img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.product .badge {
  margin-bottom: 16px;
}

.badge-dark {
  background: var(--navy);
  color: #ffffff;
  letter-spacing: 0.04em;
}

.product-tagline {
  margin-bottom: 12px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
}

.product-text {
  color: var(--muted);
  font-size: 18px;
}

/* How we build */

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.principle {
  flex: 1 1 280px;
  min-width: 0;
  padding-top: 24px;
  border-top: 4px solid var(--teal);
}

.principle-ochre {
  border-top-color: var(--ochre);
}

.principle-blue {
  border-top-color: var(--blue-light);
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #ffffff;
}

.principle p {
  color: var(--on-dark);
}

/* Advisory */

.h2-tight {
  margin-bottom: 20px;
}

.lead {
  max-width: 760px;
  margin-bottom: 56px;
  font-size: 20px;
  color: var(--muted);
}

.subheading {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--navy);
}

.intro {
  margin-bottom: 28px;
  color: var(--muted);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.service {
  flex: 1 1 280px;
  min-width: 0;
  padding: 28px;
  border-radius: 12px;
  background: var(--mist);
}

.service h4 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--navy);
}

.service p {
  color: var(--muted);
}

/* Contact */

.contact h2 {
  margin-bottom: 16px;
}

.contact-text {
  margin-bottom: 32px;
  font-size: 20px;
  color: var(--on-dark);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.contact-email a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: var(--h2-size);
  color: var(--ochre);
  text-decoration: none;
}

.linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline: -4px;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--footer-text);
}

/* Phones: keep the stacked lockups at 240 px or wider, and tighten wrapped headings. */

@media (max-width: 480px) {
  .product {
    padding: 32px 24px;
  }

  .hero-mark {
    width: 200px;
  }
}

@media (max-width: 600px) {
  h2 {
    line-height: 1.25;
  }
}
