/* Timberline Agency — static site styles
   Palette is sampled from the logo. Headings: Archivo (variable width). Body: Public Sans. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #002868;
  --red: #bf0a30;
  --orange: #ed7622;
  --yellow: #ffd700;
  --slate: #213851;
  --concrete: #e7e9ed;
  --rule: #c4c9d2;
  --ink: #17202e;
  --muted: #475467;
  --paper: #ffffff;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--navy); padding: .6rem 1rem; font-weight: 700; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.5vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.4rem; font-stretch: 85%; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lede { font-size: 1.25rem; line-height: 1.55; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: .75rem;
}
.brand-mark { display: block; line-height: 0; }
.brand-mark img { width: 58px; height: 58px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(1rem, 3vw, 2rem); }
.nav a {
  font-family: var(--display); font-stretch: 88%; font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink); }
.nav a.nav__cta,
.nav a.nav__cta[aria-current="page"] {
  background: var(--navy); color: #fff; padding: .55rem 1.1rem; border: 0;
}
.nav a.nav__cta:hover { background: var(--red); color: #fff; }
.stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 33.34%, var(--orange) 0 66.67%, var(--yellow) 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 1.05rem;
  padding: .85rem 1.5rem; text-decoration: none; border: 2px solid transparent; line-height: 1.2;
}
.btn--solid { background: var(--yellow); color: var(--navy); }
.btn--solid:hover { background: #fff; color: var(--navy); }
.btn--line { border-color: #fff; color: #fff; }
.btn--line:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,40,104,.94) 0%, rgba(0,40,104,.82) 42%, rgba(0,40,104,.25) 100%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 9rem); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: #fff; max-width: 34rem; font-size: 1.3rem; line-height: 1.5; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem); }
.page-head h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: .3em; }
.page-head p { color: #fff; font-size: 1.25rem; line-height: 1.5; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--concrete); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: var(--yellow); }

.split { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (min-width: 52rem) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ruled list of services */
.services { display: grid; gap: 0 clamp(2rem, 6vw, 5rem); margin: 0; padding: 0; }
@media (min-width: 52rem) { .services { grid-template-columns: 1fr 1fr; } }
.service { border-top: 3px solid var(--navy); padding: 1.1rem 0 1.6rem; margin: 0; }
.service h3 { margin-bottom: .45em; }
.service p { margin: 0; }

/* territory */
.map { margin-top: 2rem; border: 2px solid var(--navy); background: #fff; }

/* brand logo strip (home) */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem clamp(2rem, 5vw, 3.5rem); margin: 2.25rem 0 2rem; padding: 0; list-style: none; }
.logos img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.logos .logos__tall img { height: 84px; }

/* call to action band */
.cta { position: relative; isolation: isolate; color: #fff; background: var(--navy); }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,40,104,.7); }
.cta h2 { color: #fff; }
.cta p { color: #fff; font-size: 1.2rem; }

/* ---------- About ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; max-width: 34rem; border: 2px solid var(--navy); }
.audiences li { padding: .9rem 1rem; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.2rem; color: var(--navy); border: 1px solid var(--rule); background: #fff; }
.photo { margin: 0; }
.photo img { width: 100%; }
.banner { aspect-ratio: 21 / 8; width: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- Brands ---------- */
.brand-list { margin: 0; padding: 0; }
.brand { display: grid; gap: 1.25rem 3rem; padding: 2rem 0; border-top: 3px solid var(--navy); }
@media (min-width: 46rem) { .brand { grid-template-columns: 16rem 1fr; align-items: start; } }
.brand__logos { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.brand__logos img { max-height: 84px; width: auto; max-width: min(100%, 16rem); }
.brand h2 { font-size: 1.9rem; margin-bottom: .3em; }
.brand p { margin-bottom: .6em; }
.brand__territory { font-weight: 600; color: var(--slate); }
.brand__territory span { font-family: var(--display); font-stretch: 88%; color: var(--muted); font-weight: 600; margin-right: .4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 7fr 5fr; align-items: start; } }
.details { border: 2px solid var(--navy); background: #fff; margin: 0; }
.details div { padding: 1rem 1.25rem; border-top: 1px solid var(--rule); }
.details div:first-child { border-top: 0; }
.details dt { font-family: var(--display); font-stretch: 88%; font-weight: 600; font-size: .95rem; color: var(--muted); margin-bottom: .15rem; }
.details dd { margin: 0; font-weight: 500; }
.form-note { font-size: .95rem; color: var(--muted); }

/* ---------- Data center landing page ---------- */
.facts { display: grid; margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.35); }
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { padding: 1.25rem 1.5rem 1.25rem 0; }
@media (min-width: 46rem) { .facts li + li { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.35); } }
.facts strong { display: block; font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--yellow); margin-bottom: .35rem; }
.facts span { color: #fff; }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: .9rem 0 .9rem 1.9rem; border-top: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: .8rem; height: .8rem; background: var(--orange); }

.products { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 46rem) { .products { grid-template-columns: 1fr 1fr; } }
.product { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.product img.product__logo { height: 72px; width: auto; margin-bottom: 1.25rem; }
.product img.product__shot { width: 100%; max-width: 22rem; }
.product h3 { margin-bottom: .3em; }

.case { border-left: 6px solid var(--orange); padding: .25rem 0 .25rem 1.5rem; }
.case__size { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.6rem; color: var(--navy); margin: 0; }

/* ---------- Footer: drawing title block ---------- */
.site-footer { background: var(--concrete); padding-block: 3rem 2rem; }
.titleblock { display: grid; border: 2px solid var(--navy); background: #fff; }
@media (min-width: 52rem) { .titleblock { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.titleblock > div { padding: 1.1rem 1.25rem; border-top: 1px solid var(--rule); }
.titleblock > div:first-child { border-top: 0; }
@media (min-width: 52rem) {
  .titleblock > div { border-top: 0; border-left: 1px solid var(--rule); }
  .titleblock > div:first-child { border-left: 0; }
}
.titleblock h2 { font-family: var(--display); font-stretch: 88%; font-weight: 600; font-size: .95rem; letter-spacing: 0; line-height: 1.2; color: var(--muted); margin: 0 0 .35rem; text-wrap: wrap; }
.titleblock p { margin: 0; font-size: 1rem; line-height: 1.55; }
.titleblock strong { font-family: var(--display); font-stretch: 85%; font-size: 1.3rem; color: var(--navy); line-height: 1.1; }
.titleblock ul { margin: 0; padding: 0; list-style: none; }
.titleblock a { color: var(--navy); }
.titleblock a:hover { color: var(--red); }
.fine { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); max-width: none; }

/* ---------- 404 ---------- */
.lost { padding-block: 6rem; }

@media (max-width: 40rem) {
  .hero::after { background: linear-gradient(180deg, rgba(0,40,104,.9) 0%, rgba(0,40,104,.78) 100%); }
  .banner { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s, color .15s, border-color .15s; }
}

/* ---------- Print (the Brands page doubles as the line card) ---------- */
@media print {
  @page { margin: 0.45in; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .skip, .nav, .stripe, .btn-row, .hero, .cta { display: none !important; }
  .site-header__bar { padding-block: 0 .25rem; }
  .brand-mark img { width: 40px; height: 40px; }
  .page-head { background: none; color: var(--navy); padding-block: 0 .5rem; }
  .page-head h1 { color: var(--navy); font-size: 1.9rem; }
  .page-head p { color: var(--ink); font-size: 1.05rem; }
  .section { padding-block: .5rem; }
  .brand { break-inside: avoid; padding: .55rem 0; gap: .5rem 2rem; grid-template-columns: 11rem 1fr; }
  .brand__logos { gap: .4rem; }
  .brand__logos img { max-height: 40px; max-width: 10rem; }
  .brand h2 { font-size: 1.3rem; margin-bottom: .15em; }
  .brand p { font-size: 10pt; margin-bottom: .3em; }
  .page-head h1 { margin-bottom: .1em; }
  .site-footer { background: none; padding-block: .5rem 0; }
  .titleblock { break-inside: avoid; grid-template-columns: 1.2fr 1fr 1.3fr; }
  .titleblock > div { border-top: 0; border-left: 1px solid var(--rule); padding: .6rem .8rem; }
  .titleblock > div:first-child { border-left: 0; }
  .titleblock > div:last-child { display: none; }
  .fine { margin-top: .5rem; }
  img, .stripe, .titleblock { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
