/*
 * Nye Built — website styles.
 *
 * Colours, type and layout follow the Nye Built brand guide and its website
 * header mock: cream nav bar, spruce hero with a rust button, rust band under
 * a black rule. Gold is trim only (pinlines, stars) and never text on cream.
 */
:root {
  --spruce: #3F6673;     /* primary: hero, cards' headings */
  --rust: #A9472A;       /* accent: buttons, the band, links */
  --rust-deep: #8A3820;  /* rust hover */
  --gold: #C9973E;       /* trim only */
  --cream: #EFE6D2;      /* ground */
  --paper: #F6F0E2;      /* cards */
  --sand: #E4D8BE;       /* hover */
  --line: #D9CFB8;       /* hairlines */
  --black: #1E1B18;      /* text, outlines, rules */
  --muted: #5E574F;      /* secondary text, 5.9:1 on cream */
  --display: 'Big Shoulders Display', 'Barlow Condensed', Impact, sans-serif;
  --script: 'Yellowtail', cursive;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--black);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
h1, h2, h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.02; margin: 0 0 .6rem;
}
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; color: var(--spruce); }
p { margin: 0 0 1rem; }
a { color: var(--rust); }
a:hover { color: var(--rust-deep); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }

.row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }

/* ---- header ---- */
header.top {
  background: var(--cream); border-bottom: 4px solid var(--black);
  position: sticky; top: 0; z-index: 20;
}
header.top .inner {
  max-width: 1160px; margin: 0 auto; padding: .55rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; line-height: 0; }
nav.main { margin-left: auto; display: flex; gap: .4rem; }
nav.main a {
  padding: .55rem .6rem; color: var(--black); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .1em; border-radius: 4px;
}
nav.main a:hover { background: var(--sand); color: var(--black); }
nav.main a.shop { color: var(--rust); }
nav.main .wide-only { display: none; }
@media (min-width: 860px) { nav.main .wide-only { display: inline-block; } }
@media (max-width: 420px) {
  .brand svg { width: 96px; height: auto; } /* 96 px is the badge's screen minimum */
  nav.main a { font-size: 1.05rem; padding: .5rem .45rem; }
}

/* ---- hero ---- */
.hero { background: var(--spruce); color: var(--cream); padding: 2.5rem 1rem 2.75rem; }
.hero .inner {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 2.5rem;
}
.hero .script { font-family: var(--script); font-size: 2.75rem; line-height: 1; margin: 0 0 .5rem; }
.hero h1 { font-size: 2.75rem; line-height: .95; letter-spacing: .02em; max-width: 15ch; margin-bottom: 1rem; }
.hero .lede { font-size: 1.1rem; }
.hero .lede a { color: var(--cream); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero .lede a:hover { text-decoration: underline; }
.hero .row { margin-top: 1.5rem; }
.hero-badge { display: none; flex-shrink: 0; height: auto; }
@media (min-width: 860px) {
  .hero { padding: 3.25rem 1rem 3.5rem; }
  .hero h1 { font-size: 4.25rem; }
  .hero-badge { display: block; }
}
.band { height: 18px; background: var(--rust); border-top: 4px solid var(--black); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .65rem 1.4rem; border: 2px solid var(--black); border-radius: 4px;
  font-family: var(--display); font-weight: 900; font-size: 1.15rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  background: var(--paper); color: var(--black);
}
.btn:hover { background: var(--sand); color: var(--black); }
.btn.primary { background: var(--rust); color: var(--cream); }
.btn.primary:hover { background: var(--rust-deep); color: var(--cream); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.ghost:hover { background: rgba(239, 230, 210, .12); color: var(--cream); }

/* ---- sections ---- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem;
  flex-wrap: wrap; padding-top: 1rem; border-top: 2px solid var(--black); margin-bottom: 1.25rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.card {
  background: var(--paper); border: 2px solid var(--black); border-radius: 6px; padding: 1.35rem;
}
.card p:last-child { margin-bottom: 0; }

.services { display: grid; gap: 1rem; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A short rust band across the top of each card, like the band in the badge. */
.services .card { position: relative; padding-top: 2rem; }
.services .card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: var(--rust); border-bottom: 2px solid var(--black); border-radius: 4px 4px 0 0;
}

.ncw {
  display: grid; gap: 1.5rem; align-items: center; background: var(--paper);
  border: 2px solid var(--black); border-radius: 6px; padding: 1.5rem;
}
.ncw-mark { line-height: 0; justify-self: start; }
.ncw-mark svg { max-width: 100%; height: auto; }
.ncw h2 { margin-bottom: .5rem; }
@media (min-width: 760px) { .ncw { grid-template-columns: auto 1fr; gap: 2.5rem; padding: 2rem; } }

.contact { max-width: 34rem; }
.contact .big { margin-bottom: 1rem; }
.label {
  font-family: var(--display); font-weight: 700; font-size: 1rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: .2rem;
}
.big { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: .03em; line-height: 1.2; overflow-wrap: anywhere; }
.big a { color: var(--black); text-decoration: none; }
.big a:hover { color: var(--rust); text-decoration: underline; }

/* ---- footer ---- */
footer.site { margin-top: 3.5rem; }
footer.site .body { background: var(--black); color: var(--cream); padding: 2rem 1rem; }
footer.site .inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { footer.site .inner { grid-template-columns: 2fr 1fr; align-items: start; } }
footer.site .legal { font-size: .85rem; color: #D8CFBB; }
footer.site .legal svg { margin-bottom: .9rem; }
footer.site .legal p { margin: 0 0 .4rem; }
footer.site .links { display: flex; flex-direction: column; gap: .4rem; }
footer.site .links a {
  color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 700;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em;
}
footer.site .links a:hover { text-decoration: underline; }
