/* Software Cowboy – site styles. Arial family only; no web fonts, no scripts. */

:root {
  --bg: #f9f7f5;
  --surface: #ffffff;
  --text: #111820;
  --muted: #5f6876;
  --accent: #b45309;
  --accent-hover: #8a3f06;
  --accent-soft: #d97706;
  --border: #e6e1da;
  --dark: #111820;
  --dark-text: #f3f1ee;
  --dark-muted: #c9ced6;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Arial Black", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(56px, 8vw, 104px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font);
}

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

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; text-wrap: balance; }
h1 { font: 900 clamp(40px, 6vw, 64px)/1.05 var(--font-display); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section__lead { max-width: 68ch; color: var(--muted); font-size: 19px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6em; }

/* Skip link */
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 10;
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(249, 247, 245, 0.94);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(249, 247, 245, 0.8); backdrop-filter: blur(8px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 194px; height: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; padding-block: 8px; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { position: relative; display: grid; min-height: clamp(520px, 78vh, 760px); color: #fff; overflow: hidden; }
.hero picture, .hero__content { grid-area: 1 / 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after {
  content: ""; grid-area: 1 / 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(17, 24, 32, 0.82) 0%, rgba(17, 24, 32, 0.55) 45%, rgba(17, 24, 32, 0.05) 80%);
}
.hero__content { position: relative; z-index: 1; align-self: end; padding-block: var(--space); }
.hero h1 { color: #fff; }
.lead { max-width: 54ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #f3f1ee; }

/* Intro */
.intro { padding-block: var(--space); max-width: 860px; }
.intro h2 { font-size: clamp(28px, 3.6vw, 42px); }
.intro p { color: var(--muted); font-size: 19px; }

/* Bands */
.band { padding-block: var(--space); background: var(--surface); border-block: 1px solid var(--border); }
.band--dark { background: var(--dark); color: var(--dark-text); border: 0; }
.band--dark .section__lead { color: var(--dark-muted); }

/* Split (text + image) */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.split__text p { color: var(--muted); font-size: 19px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__img { order: -1; }
}

/* Motto */
.motto {
  display: grid; margin-top: var(--space);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.motto__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.motto__body { padding: clamp(32px, 4vw, 48px); align-self: center; }
.motto h3 { font-size: clamp(24px, 2.6vw, 30px); }
.motto__body p:last-child { color: var(--muted); }
@media (min-width: 900px) { .motto { grid-template-columns: 5fr 6fr; } }

/* Practices */
.practices {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.practices li { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.practices p { color: var(--muted); }
@media (min-width: 760px) { .practices { grid-template-columns: 1fr 1fr; } }

/* Security cards */
.cards { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #1b2430; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 24px 24px 28px; }
.card h3 { color: #fff; }
.card p { color: var(--dark-muted); font-size: 17px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding-block: 56px; border-top: 1px solid #222c38; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer img { width: 194px; height: auto; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { color: var(--dark-text); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fbbf77; text-decoration: underline; }
.legal { font-size: 14px; line-height: 1.6; margin: 0; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-nav { justify-content: flex-start; padding-left: 24px; }
  .legal { text-align: right; }
}

/* Small screens */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header__inner { gap: 10px; }
  .brand img { width: 124px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; white-space: nowrap; }
  .hero::after { background: linear-gradient(0deg, rgba(17, 24, 32, 0.9) 0%, rgba(17, 24, 32, 0.6) 55%, rgba(17, 24, 32, 0.15) 100%); }
}
