/* Trail Talk TV — stylesheet
   Fonts are loaded with <link> tags in each page's <head> (faster than @import). */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #090c0b;
  color: #f4f4ee;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #f3c858; outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 24px; margin: 0 0 6px; }

.wrap { max-width: 1180px; margin: auto; padding: 0 22px; }

section { padding: 35px 0 8px; }

p.muted { color: #aebbb4; margin: 0 0 20px; }

.eyebrow {
  font-size: 12px;
  color: #f3c858;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head p.muted { margin: 0; }
.section-link { color: #f3d77e; font-weight: 700; font-size: 14px; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  background: #f3c858;
  color: #10130e;
}
.btn.white { background: #fff; }
.btn:hover { filter: brightness(.94); }

/* ---------- Nav ---------- */
.nav { background: #163b30; border-bottom: 1px solid #355448; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.brand { font-size: 21px; font-weight: 900; letter-spacing: .04em; }
.brand span { color: #f3c858; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #f3c858; }

/* ---------- Homepage hero ---------- */
.hero {
  position: relative;
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #173e32;
}
.hero img {
  display: block;
  width: 100%;
  height: auto; /* lets aspect-ratio control height (overrides the img height attribute) */
  max-height: 560px;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
  object-position: 70% center; /* keeps the yellow pack in frame */
}
.hero::after { /* darkens the left side so text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 13, .88) 0%, rgba(6, 18, 13, .55) 42%, rgba(6, 18, 13, 0) 68%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  max-width: 580px;
  padding: 0 40px 40px;
}
.hero-content h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  margin: 8px 0 12px;
}
.hero-content p { margin: 0 0 22px; color: #e3e9e4; font-size: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- What we talk about ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
}
.pillar { border-top: 3px solid #f3c858; padding-top: 12px; }
.pillar h3 { font-size: 17px; margin: 0 0 4px; }
.pillar p { margin: 0; color: #b8c4bc; font-size: 14px; }

/* ---------- Video cards (YouTube thumbnails) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-card { display: block; }
.video-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c4035;
  background: #121a16;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover; /* crops YouTube's letterbox bars */
  transition: transform .25s ease;
}
.video-thumb::after { /* play button */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(243, 200, 88, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%2310130e'/%3E%3C/svg%3E") center / 30px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.video-card:hover .video-thumb { border-color: #f3c858; }
.playlist-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-tag {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f3c858;
}
.video-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; margin-top: 2px; }
.video-grid.compact .video-tag { margin-top: 8px; }
.video-grid.compact .video-title { font-size: 14px; }

/* ---------- Trail Talk News (Shorts) ---------- */
.news-panel {
  padding: 26px;
  border: 1px solid #355448;
  border-left: 4px solid #f3c858;
  border-radius: 12px;
  background: #13261e;
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.news-head h2 { margin: 4px 0 6px; }
.news-head p { margin: 0; color: #c3cfc7; max-width: 620px; }
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 210px)); /* fixed-size vertical cards, left-aligned */
  gap: 16px;
  margin-top: 22px;
}
.short-card { display: block; }
.short-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c4035;
  background: #121a16;
}
.short-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover; /* crops the side bars off YouTube's Shorts thumbnails */
}
.short-card:hover .short-thumb { border-color: #f3c858; }

/* ---------- Homepage gear collections ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.collection-tile {
  display: block;
  overflow: hidden;
  background: #121a16;
  border: 1px solid #2c4035;
  border-radius: 14px;
}
.collection-tile:hover { border-color: #f3c858; }
.collection-tile img { display: block; width: 100%; height: 205px; object-fit: cover; }
.collection-body { padding: 16px; }
.collection-body h3 { font-size: 19px; margin: 0 0 6px; }
.collection-body p { margin: 0 0 12px; color: #b8c4bc; font-size: 13px; }
.collection-cta {
  display: inline-block;
  padding: 10px 15px;
  background: #f3c858;
  color: #10130e;
  border-radius: 7px;
  font-weight: 800;
  font-size: 12px;
}

/* ---------- Panels ---------- */
.simple-panel {
  padding: 24px;
  border: 1px solid #2b4436;
  border-radius: 12px;
  background: #101813;
  margin-top: 16px;
}
.simple-panel p { color: #b8c4bc; }
.safety .simple-panel { border-color: #ab873c; }
.safety .secondary { color: #f3d77e; text-decoration: underline; }

/* ---------- Gear catalog ---------- */
.catalog-head { padding: 40px 0 10px; }
.notice { font-size: 13px; color: #b5c3b8; }
.notice strong { color: #fff; }

.collection-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
}
.collection-tab {
  border: 1px solid #466253;
  background: #173e32;
  color: #fff;
  border-radius: 9px;
  padding: 15px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.collection-tab.active { background: #f3c858; border-color: #f3c858; color: #10130e; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 25px; }
.filter {
  border: 1px solid #405549;
  background: #17241c;
  color: #fff;
  border-radius: 100px;
  padding: 9px 15px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.filter.active { background: #f3c858; color: #141811; border-color: #f3c858; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product {
  background: #121a16;
  border: 1px solid #2c4035;
  border-radius: 12px;
  overflow: hidden;
}
.product img { /* show the whole product, no cropping */
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.product-body { display: flex; flex-direction: column; gap: 9px; padding: 13px; }
.product h3 { display: block; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.product p { color: #b8c4bc; font-size: 13px; margin: 0; min-height: 40px; }
.product .btn { width: 100%; padding: 10px; font-size: 13px; }
.product .secondary { font-size: 12px; text-align: center; color: #d3dcd4; text-decoration: underline; }
.badge {
  align-self: flex-start;
  font-size: 11px;
  padding: 3px 8px;
  background: #294638;
  border-radius: 100px;
  color: #f3d77e;
}

/* ---------- Contact page ---------- */
.contact-layout { max-width: 780px; margin: 42px auto 70px; }
.contact-layout h1 { margin-bottom: 12px; }
.contact-form { display: grid; gap: 17px; margin-top: 28px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 7px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #56645c;
  border-radius: 8px;
  background: #151b18;
  color: #f4f4ee;
  font: inherit;
}
.contact-form textarea { min-height: 155px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid #f3c858; outline-offset: 2px; }
.contact-form button { justify-self: start; cursor: pointer; border: 0; }
.contact-message { padding: 14px 18px; border-radius: 8px; margin: 18px 0; border: 1px solid #8c9869; background: #1d2920; }
.contact-message.error { border-color: #c68181; background: #311f20; }
.contact-privacy { font-size: 13px; color: #bdc5be; }
.contact-honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #2d4036;
  color: #9fb0a4;
  font-size: 12px;
  padding: 25px 0;
  margin-top: 45px;
}
.footer a { text-decoration: underline; }
.social-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; }
.social-links a { color: #f3d77e; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .video-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones/small tablets: hero text moves below the photo */
@media (max-width: 680px) {
  .hero img { aspect-ratio: 4 / 3; }
  .hero::after { display: none; }
  .hero-content { position: static; max-width: none; padding: 20px 18px 24px; }
  .hero-content p { font-size: 15px; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 650px) {
  .collection-tabs { gap: 8px; }
  .collection-tab { padding: 12px 7px; font-size: 12px; }
}

@media (max-width: 580px) {
  .collection-grid { grid-template-columns: 1fr; }
  .collection-tile img { height: 200px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 15px; }
  .nav-inner { flex-wrap: wrap; padding: 12px 0; gap: 8px; }
  .nav-links { gap: 14px; }
  .brand { font-size: 18px; }
  .hero { margin-top: 12px; }
  .actions { flex-direction: column; }
  .product-grid { gap: 10px; }
  .product-body { padding: 10px; }
  .product h3 { font-size: 14px; }
  .video-grid, .video-grid.compact { grid-template-columns: 1fr; }
  .news-panel { padding: 20px 16px; }
  .news-head .btn { width: 100%; }
  h2 { font-size: 21px; }
}
