/* Sterling & Pine - company site. Layout: a dark pine hero, then each brand in its own coloured panel (the brands keep
   their own identity), then contact. Brand colours from the D4 lockup: pine #2b6a4f, silver #c9d1d6 / #8e9aa3,
   dark ground #121a17, ink #17201c. Type: DM Serif Display (wordmark face), DM Sans, IBM Plex Mono for labels. */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #121a17;      /* dark pine ground */
  --ground-2: #18231f;
  --paper: #f5f7f5;
  --card: #ffffff;
  --ink: #17201c;
  --muted: #55625b;
  --silver: #8e9aa3;
  --silver-hi: #c9d1d6;
  --pine: #2b6a4f;
  --pine-hi: #3f8f6c;
  --line: #dde3df;
  --display: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pine-hi); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }
.eyebrow { margin: 0 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; margin: 0; }

/* header + hero share the dark ground */
.top { background: var(--ground); border-bottom: 1px solid rgba(201, 209, 214, .08); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo img { height: 52px; width: auto; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--silver-hi); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: #fff; }
@media (max-width: 520px) { .logo img { height: 40px; } .top nav { gap: 14px; } }

.hero { background: radial-gradient(ellipse 80% 70% at 85% 10%, rgba(43, 106, 79, .35), transparent 60%), var(--ground); color: #e9eef0; padding-block: 72px 84px; }
.hero-grid { display: grid; gap: 0; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; max-width: 17ch; color: #fff; }
.hero .lede { margin: 26px 0 0; max-width: 60ch; font-size: 19px; color: #b9c4c0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 52px 0 0; border-top: 1px solid rgba(201, 209, 214, .18); }
.facts div { padding: 18px 20px 0 0; min-width: 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid rgba(201, 209, 214, .18); }
.facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 24px; line-height: 1.25; color: #fff; }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(201, 209, 214, .12); }
  .facts div { padding: 14px 0; }
}

/* portfolio */
.portfolio { padding-block: 84px 40px; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head .eyebrow, .contact .eyebrow { color: var(--pine); }
.section-head h2, .contact h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
.section-head p:last-child { margin: 14px 0 0; color: var(--muted); }
.brand { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 26px; }
.brand-mark { display: grid; place-items: center; padding: 40px 32px; min-height: 260px; }
.brand-body { padding: 36px 40px 32px; min-width: 0; }
.sector { margin: 0 0 6px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand h3 { font-size: 34px; line-height: 1.15; }
.brand-body > p:not(.sector):not(.brand-foot) { margin: 12px 0 0; color: #33403a; }
.brand ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.brand li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.brand li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--pine); }
.brand-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.brand-foot a { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--pine); }
.status.early { color: #8a6a12; }
@media (max-width: 820px) {
  .brand { grid-template-columns: 1fr; }
  .brand-mark { min-height: 180px; padding: 32px 24px; }
  .brand-body { padding: 28px 24px 24px; }
}

/* each brand on its own ground, in its own colours */
.brand-atc .brand-mark { background: #0b1220; }
.brand-atc .brand-mark img { width: min(100%, 360px); }
.brand-posrep .brand-mark { background: radial-gradient(ellipse at 30% 20%, rgba(210, 168, 101, .16), transparent 60%), #0d1c2a; }
.posrep-logo { display: inline-flex; align-items: center; gap: 16px; color: #ede6d6; }
.posrep-logo b { font: 600 34px/1 var(--body); letter-spacing: .22em; }
.brand-torqly .brand-mark { background: #f4f5f0; border-right: 1px solid var(--line); }
.torqly-logo { font: 700 52px/1 "Unbounded", var(--body); letter-spacing: -.03em; color: #111; }
.torqly-logo::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 5px; border-radius: 50%; background: #b8f23a; }
@media (max-width: 820px) { .brand-torqly .brand-mark { border-right: 0; border-bottom: 1px solid var(--line); } }

/* contact */
.contact { padding-block: 56px 96px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.contact-info > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); max-width: 44ch; }
.addr { margin: 28px 0 0; display: grid; gap: 16px; }
.addr dt { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.addr dd { margin: 4px 0 0; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 16px/1.4 var(--body); color: var(--ink); background: #fbfcfb; border: 1px solid #c9d1cc; border-radius: 10px; padding: 11px 12px; }
textarea { resize: vertical; min-height: 120px; }
button { justify-self: start; border: 0; border-radius: 10px; background: var(--pine); color: #fff; font: 600 16px var(--body); padding: 13px 22px; cursor: pointer; }
button:hover { background: #245a43; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } .contact-form { padding: 22px; } }

/* footer */
.foot { background: var(--ground); color: #9fabb1; padding-block: 34px; font-size: 14px; }
.foot-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.foot-row img { grid-row: span 2; }
.foot p { margin: 0; }
.foot .fine { font-size: 12.5px; color: #7d8a90; }
.foot a { color: var(--silver-hi); }

/* the thank-you / problem page from contact.php */
.notice { max-width: 640px; margin: 0 auto; padding: 96px 24px; }
.notice h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.notice p { color: var(--muted); }
