/* Talus Digital Group — site styles
   Colors are taken from the company logo (navy, mid blue, teal). The logo is
   drawn for a light background, so the site uses a single light theme. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #0b2545;
  --muted: #4d5f75;
  --line: #d8e1ea;

  --navy: #083868;
  --navy-deep: #062a50;
  --blue: #1d5c9c;
  --teal: #38a8b8;
  --teal-text: #0b7d99; /* darker teal, readable as text on white */

  /* Navy band used by the ridges and the "Our work" section */
  --band: var(--navy);
  --band-ink: #ffffff;
  --band-muted: #b9cbde;
  --band-line: rgba(255, 255, 255, 0.16);
  --band-surface: rgba(255, 255, 255, 0.06);
  --band-accent: #74d3e2;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: var(--navy);
  text-decoration-color: var(--teal);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-text);
}

:focus-visible {
  outline: 2px solid var(--teal-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-text);
}

/* Header */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 18px;
}

.brand-name,
.site-nav a {
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  width: auto;
  height: 46px;
  flex: none;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--navy);
}

/* Hero */

.hero {
  padding-top: clamp(32px, 6vw, 72px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.125rem, 3.9vw, 3rem);
  color: var(--navy);
}

.lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

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

.btn-primary:hover {
  background: var(--navy-deep);
  color: #ffffff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--navy);
}

.ridges {
  display: block;
  width: 100%;
  height: clamp(110px, 17vw, 220px);
  margin-top: clamp(40px, 6vw, 72px);
  /* Solid strip under the bottom edge so no seam shows above the band below */
  background: linear-gradient(to top, var(--band) 4px, transparent 4px);
}

.ridge-1 {
  fill: var(--teal);
}

.ridge-2 {
  fill: var(--blue);
}

.ridge-3 {
  fill: var(--band);
}

/* Our work */

.work {
  /* Overlap by a pixel so no seam shows between the ridge and the band */
  margin-top: -1px;
  padding-block: clamp(56px, 9vw, 104px);
  background: var(--band);
  color: var(--band-ink);
}

.work .eyebrow {
  color: var(--band-accent);
}

.work-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.work-intro h2,
.contact h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

.contact h2 {
  color: var(--navy);
}

.work-intro p:last-child {
  margin-top: 16px;
  color: var(--band-muted);
}

.card {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  background: var(--band-surface);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: var(--band-accent);
  background: rgba(255, 255, 255, 0.1);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.card h3 {
  margin-top: 10px;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

.card h3 + p {
  margin-top: 10px;
  color: var(--band-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--band-accent);
  font-weight: 600;
  text-decoration-color: currentColor;
  overflow-wrap: anywhere;
}

.card-link:hover {
  color: #ffffff;
}

/* Make the whole card clickable */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

/* Contact */

.contact {
  padding-block: clamp(64px, 10vw, 120px);
}

.contact-copy {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.5rem, 5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--navy);
}

/* Medium and small screens: stack the hero, logo under the text */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-logo {
    max-width: min(340px, 78%);
  }
}

@media (max-width: 760px) {
  .work-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .brand-mark {
    height: 34px;
  }

  .brand-name {
    font-size: 0.9375rem;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 400px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    height: 30px;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
