/* TRIT Mines public site. Light, editorial, print-adjacent. */

:root {
  --paper: #faf8f4;
  --ink: #1c2420;
  --green: #3d7a5f;
  --green-deep: #274d3c;
  --rule: #ddd6ca;
  --muted: #6b7268;
}

* { box-sizing: border-box; margin: 0; }
body.site {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.s-wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3, .s-lede { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
a { color: var(--green-deep); }

/* header */
.s-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.s-head-in { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.s-logo img { height: 34px; display: block; }
.s-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex-wrap: wrap; min-width: 0; }
.s-nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
.s-nav a.on { border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.s-nav a:hover { color: var(--green-deep); }
.s-portal {
  border: 1.5px solid var(--green-deep); padding: 7px 18px; color: var(--green-deep) !important;
}
.s-portal:hover { background: var(--green-deep); color: #fff !important; }

/* hero , photographic band, washed back into paper so the type stays print-legible */
.s-hero {
  position: relative; overflow: hidden;
  min-height: 64vh; display: flex; align-items: center;
  padding: 104px 0 92px; border-bottom: 1px solid var(--rule);
}
.s-hero-media { position: absolute; inset: 0; }
.s-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-hero-media::before,
.s-hero-media::after { content: ""; position: absolute; inset: 0; }
.s-hero-media::before {
  background: linear-gradient(180deg,
    rgba(250, 248, 244, .55) 0%,
    rgba(250, 248, 244, .45) 45%,
    rgba(250, 248, 244, .95) 100%);
}
.s-hero-media::after {
  background: linear-gradient(90deg,
    rgba(250, 248, 244, .45) 0%,
    rgba(250, 248, 244, 0) 65%,
    rgba(250, 248, 244, .25) 100%);
}
.s-hero-body { position: relative; z-index: 1; width: 100%; }
.s-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
/* over the photo the muted grey loses contrast, so the hero kicker goes deep green */
.s-hero .s-kicker { color: var(--green-deep); }
.s-hero .s-lede { color: #2f3833; }
@media (max-width: 700px) {
  .s-hero { min-height: 0; padding: 72px 0 64px; }
  .s-hero-media::after { background: linear-gradient(90deg, rgba(250, 248, 244, .5) 0%, rgba(250, 248, 244, .2) 100%); }
  /* the hard line break overflows a phone; let the headline wrap on its own */
  .s-hero h1 br { display: none; }
  .s-hero h1 { font-size: clamp(32px, 8.5vw, 62px); }
}
.s-hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; margin-bottom: 22px; }
.s-lede { font-size: 20px; line-height: 1.55; color: #3a423d; max-width: 640px; }
.s-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.s-btn {
  display: inline-block; background: var(--green-deep); color: #fff; text-decoration: none;
  padding: 12px 26px; font-size: 15px; border: 1.5px solid var(--green-deep); cursor: pointer;
  font-family: inherit;
}
.s-btn:hover { background: var(--green); border-color: var(--green); }
.s-btn-line { background: transparent; color: var(--green-deep); }
.s-btn-line:hover { background: var(--green-deep); color: #fff; }

/* sections */
.s-sec { padding: 64px 0; }
.s-sec h2 { font-size: 28px; margin-bottom: 16px; }
.s-sec p + p { margin-top: 14px; }
.s-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 780px) { .s-cols { grid-template-columns: 1fr; gap: 32px; } }

.s-pillars { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.s-pillars a { background: var(--paper); padding: 18px 20px; text-decoration: none; color: var(--ink); display: block; }
.s-pillars a:hover { background: #f1eee6; }
.s-pillars strong { display: block; font-size: 17px; }
.s-pillars span { color: var(--muted); font-size: 14px; }

/* newsletter band */
.s-band { background: var(--green-deep); color: #f4f1e9; padding: 52px 0; }
.s-news { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.s-band h2 { font-size: 26px; margin-bottom: 6px; font-family: Georgia, serif; }
.s-band p { color: #cfd8cf; }
.s-news-form { display: flex; gap: 0; max-width: 100%; }
.s-news-form input {
  padding: 12px 16px; border: 1px solid #4c6d5c; background: #f4f1e9;
  flex: 1 1 260px; min-width: 0;
  font-size: 15px; color: var(--ink);
}
.s-news-form button {
  padding: 12px 22px; background: var(--green); border: 1px solid var(--green); color: #fff;
  font-size: 15px; cursor: pointer;
}
.s-news-form button:hover { background: #4c9273; }
.s-ok { color: inherit; font-weight: 600; }

/* page head */
.s-page-head { padding: 56px 0 8px; }
.s-page-head h1 { font-size: 42px; margin-bottom: 12px; }
.s-vert-intro { max-width: 720px; margin-top: 16px; font-size: 17px; line-height: 1.6; color: #3a423d; }

/* prose + lists */
.s-prose { max-width: 720px; }
.s-prose h2 { margin-top: 36px; }
.s-miles { list-style: none; padding: 0; margin-top: 8px; }
.s-miles li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.s-miles strong { display: inline-block; min-width: 110px; color: var(--green-deep); }

/* grids and cards */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.s-card { border: 1px solid var(--rule); background: #fff; padding: 24px; }
.s-card h3 { font-size: 19px; margin-bottom: 8px; }
.s-role { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.s-card p { font-size: 15px; color: #3a423d; }
.s-tag {
  display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green-deep); border: 1px solid var(--green); padding: 2px 10px; margin-bottom: 12px;
}

/* sites, grouped by commodity */
.s-group { margin-top: 46px; }
.s-group:first-child { margin-top: 6px; }
.s-group-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--green-deep); padding-bottom: 10px; margin-bottom: 22px;
}
.s-group-head h2 { font-size: 24px; margin: 0; }
.s-group-head span { font-size: 14px; color: var(--muted); }
.s-card .s-where { font-size: 13px; letter-spacing: .4px; color: var(--green-deep); margin-bottom: 8px; }

/* verticals, alternating photo / copy rows */
.s-vert {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--rule);
}
.s-vert:last-child { border-bottom: 0; }
.s-vert-media { margin: 0; border: 1px solid var(--rule); background: #fff; }
.s-vert-media img { display: block; width: 100%; height: 280px; object-fit: cover; }
.s-vert:nth-child(even) .s-vert-media { order: 2; }
.s-num { display: block; font-family: Georgia, serif; font-size: 30px; color: var(--green); margin-bottom: 4px; }
.s-vert h3 { font-size: 22px; margin-bottom: 6px; }
.s-vert p { max-width: 640px; }
@media (max-width: 780px) {
  .s-vert { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
  .s-vert:nth-child(even) .s-vert-media { order: 0; }
  .s-vert-media img { height: 210px; }
}

/* forms */
.s-form { margin-top: 26px; max-width: 480px; }
.s-form label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
.s-form input, .s-form select, .s-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: #fff;
  font: inherit; font-size: 15px; color: var(--ink);
}
.s-form button { margin-top: 18px; }

@media (max-width: 700px) {
  .s-head-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .s-nav { justify-content: flex-start; gap: 16px; row-gap: 10px; }
  .s-nav a { font-size: 14px; }
}

/* footer */
.s-foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 44px 0 0; }
.s-foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-bottom: 28px; }
@media (max-width: 700px) { .s-foot-in { grid-template-columns: 1fr; } }
.s-foot-logo { height: 26px; margin-bottom: 12px; }
.s-foot p { color: var(--muted); font-size: 14px; max-width: 420px; }
.s-foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.s-foot-links a { text-decoration: none; font-size: 14px; }
.s-foot-line { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: var(--muted); }
