/*
Theme Name: Terra Path
Theme URI: http://10.94.18.85/Teb/terrapath-site
Author: Terra Path
Description: Channel showcase + swag shop theme for the Terra Path YouTube channel. Palette drawn from the channel logo: forest green ring, earth-brown footprint, silver disc.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: terrapath
*/

:root {
  --tp-green-950: #1c3018;
  --tp-green-900: #24401f;
  --tp-green: #2e5027;       /* logo ring */
  --tp-green-600: #39633d;   /* logo inner ring */
  --tp-green-100: #dbe5d6;
  --tp-brown: #5b411f;       /* footprint */
  --tp-brown-600: #6f5326;
  --tp-brown-100: #ece4d4;
  --tp-stone: #babdba;       /* logo disc */
  --tp-stone-100: #e9ede8;   /* light disc edge */
  --tp-paper: #f4f5f2;
  --tp-ink: #22281f;
  --tp-white: #ffffff;
  --tp-yt: #ff0033;
  --tp-radius: 14px;
  --tp-shadow: 0 10px 30px rgba(28, 48, 24, 0.14);
  --tp-font-display: "Archivo", system-ui, sans-serif;
  --tp-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tp-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tp-ink);
  background: var(--tp-paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--tp-green); }
h1, h2, h3, h4 {
  font-family: var(--tp-font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--tp-green-900);
  margin: 0 0 0.5em;
}

.tp-container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.tp-header {
  background: var(--tp-green);
  background: linear-gradient(180deg, var(--tp-green-900), var(--tp-green));
  color: var(--tp-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(28, 48, 24, 0.35);
}
.tp-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.tp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tp-white);
}
.tp-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--tp-stone-100);
  background: var(--tp-stone-100);
}
.tp-brand-name {
  font-family: var(--tp-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tp-brand-name span { color: var(--tp-stone); }
.tp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tp-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.tp-nav a {
  color: var(--tp-stone-100);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.tp-nav a:hover { background: rgba(233, 237, 232, 0.14); color: var(--tp-white); }
.tp-cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tp-cart-count {
  background: var(--tp-brown-600);
  color: var(--tp-white);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.tp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--tp-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.tp-btn:hover { transform: translateY(-1px); box-shadow: var(--tp-shadow); }
.tp-btn-yt { background: var(--tp-yt); color: #fff !important; }
.tp-btn-green { background: var(--tp-green); color: #fff !important; }
.tp-btn-green:hover { background: var(--tp-green-600); }
.tp-btn-brown { background: var(--tp-brown); color: #fff !important; }
.tp-btn-brown:hover { background: var(--tp-brown-600); }
.tp-btn-ghost { border-color: var(--tp-stone-100); color: var(--tp-stone-100) !important; }
.tp-btn-ghost:hover { background: rgba(233, 237, 232, 0.12); }
.tp-btn svg { flex: none; }

/* ---------- hero ---------- */
.tp-hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(57, 99, 61, 0.55), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(91, 65, 31, 0.4), transparent 55%),
    var(--tp-green-950);
  color: var(--tp-stone-100);
  padding: 72px 0 84px;
}
.tp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.tp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tp-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-stone);
  border: 1px solid rgba(186, 189, 186, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.tp-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-yt);
  animation: tp-pulse 2s infinite;
}
@keyframes tp-pulse { 50% { opacity: 0.35; } }
.tp-hero h1 {
  color: var(--tp-white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
}
.tp-hero h1 em { font-style: normal; color: var(--tp-stone); }
.tp-hero p.tp-lede { font-size: 1.12rem; color: var(--tp-stone); max-width: 46ch; }
.tp-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.tp-hero-stats { display: flex; gap: 28px; margin-top: 34px; }
.tp-hero-stat b {
  display: block;
  font-family: var(--tp-font-display);
  font-size: 1.4rem;
  color: var(--tp-white);
}
.tp-hero-stat span { font-size: 0.85rem; color: var(--tp-stone); }

.tp-latest-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  rotate: 0.6deg;
}
.tp-latest-badge {
  display: inline-block;
  font-family: var(--tp-font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tp-white);
  background: var(--tp-brown);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.tp-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tp-green-950);
}
.tp-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tp-latest-title {
  font-family: var(--tp-font-display);
  font-weight: 700;
  color: var(--tp-ink);
  font-size: 1.02rem;
  margin: 12px 4px 4px;
}
.tp-latest-date { color: #6b7265; font-size: 0.85rem; margin: 0 4px 4px; }

/* ---------- sections ---------- */
.tp-section { padding: 74px 0; }
.tp-section-alt { background: var(--tp-white); }
.tp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.tp-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.tp-section-head p { margin: 6px 0 0; color: #5c6355; }

/* video grid */
.tp-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.tp-video-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--tp-ink);
  box-shadow: 0 3px 14px rgba(28, 48, 24, 0.08);
  border: 1px solid #e3e6e0;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.tp-video-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--tp-stone-100); }
.tp-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 48, 24, 0.5));
  opacity: 0;
  transition: opacity 0.15s;
}
.tp-video-card:hover .tp-video-thumb::after { opacity: 1; }
.tp-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(28, 48, 24, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s, transform 0.15s;
}
.tp-video-card:hover .tp-play { opacity: 1; transform: scale(1); }
.tp-play svg { margin-left: 4px; }
.tp-video-meta { padding: 14px 16px 16px; }
.tp-video-meta h3 { font-size: 1rem; margin: 0 0 4px; color: var(--tp-ink); }
.tp-video-meta time { font-size: 0.82rem; color: #6b7265; }

/* shop cards (woocommerce product loop) */
.tp-shop-strip { background: linear-gradient(180deg, var(--tp-paper), #edeee9); }
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
/* defeat Woo's float/percentage layout — the grid above owns sizing */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  background: var(--tp-white);
  border: 1px solid #e3e6e0;
  border-radius: var(--tp-radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  box-shadow: 0 3px 14px rgba(28, 48, 24, 0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
ul.products li.product img { width: 100%; display: block; }
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--tp-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 12px 14px 0;
  color: var(--tp-ink);
}
ul.products li.product .price {
  display: block;
  color: var(--tp-brown-600);
  font-weight: 700;
  padding: 4px 14px 10px;
}
ul.products li.product a { text-decoration: none; }
ul.products li.product .button, .single_add_to_cart_button, .checkout-button,
.woocommerce button.button, .wc-block-components-button {
  background: var(--tp-green) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  font-family: var(--tp-font-display);
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
ul.products li.product .button:hover, .single_add_to_cart_button:hover,
.woocommerce button.button:hover { background: var(--tp-green-600) !important; }
.woocommerce-page .tp-container { padding-top: 46px; padding-bottom: 70px; }
.woocommerce-breadcrumb { color: #6b7265; font-size: 0.85rem; margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--tp-green); }
.onsale {
  background: var(--tp-brown);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  position: absolute;
  margin: 10px;
}
.woocommerce-message, .woocommerce-info {
  border-top: 3px solid var(--tp-green);
  background: var(--tp-green-100);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
}

/* homepage coming-soon one-liner */
.tp-coming-soon {
  margin: 0;
  text-align: center;
  color: #5c6355;
  font-size: 1.02rem;
}
.tp-coming-soon span {
  display: inline-block;
  font-family: var(--tp-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tp-white);
  background: var(--tp-brown);
  border-radius: 6px;
  padding: 4px 10px;
  margin-right: 10px;
}
.tp-coming-soon a { color: var(--tp-green); font-weight: 700; }

/* under-construction trail sign */
.tp-construction {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, var(--tp-brown), var(--tp-brown-600));
  color: var(--tp-brown-100);
  border-radius: var(--tp-radius);
  border: 2px dashed rgba(236, 228, 212, 0.5);
  padding: 26px 30px;
  margin: 6px 0 34px;
  box-shadow: var(--tp-shadow);
}
.tp-construction-logo {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--tp-stone-100);
  rotate: -6deg;
}
.tp-construction h2 { color: var(--tp-white); margin: 0 0 6px; font-size: 1.45rem; }
.tp-construction p { margin: 0; }
.tp-construction a { color: var(--tp-white); font-weight: 700; }
@media (max-width: 700px) { .tp-construction { flex-direction: column; text-align: center; } }

/* about strip */
.tp-about {
  background:
    linear-gradient(90deg, rgba(28, 48, 24, 0.92) 0%, rgba(28, 48, 24, 0.75) 55%, rgba(28, 48, 24, 0.55)),
    var(--tp-about-bg, var(--tp-green-950)) center/cover;
  color: var(--tp-stone-100);
}
.tp-about h2 { color: var(--tp-white); }
.tp-about-inner { max-width: 640px; padding: 84px 0; }
.tp-about p { color: var(--tp-stone); font-size: 1.06rem; }

/* footer */
.tp-footer { background: var(--tp-green-950); color: var(--tp-stone); padding: 46px 0 30px; }
.tp-footer-inner { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.tp-footer .tp-brand-name { font-size: 1.05rem; }
.tp-footer a { color: var(--tp-stone-100); text-decoration: none; }
.tp-footer a:hover { text-decoration: underline; }
.tp-footer-links { display: flex; gap: 22px; font-size: 0.92rem; }
.tp-footer-fine { margin-top: 26px; font-size: 0.8rem; color: #7d8579; text-align: center; width: 100%; }

/* generic page content */
.tp-page { padding: 56px 0 80px; }
.tp-page-card { background: var(--tp-white); border-radius: var(--tp-radius); padding: 40px; box-shadow: 0 3px 14px rgba(28,48,24,0.07); border: 1px solid #e3e6e0; }

@media (max-width: 900px) {
  .tp-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .tp-latest-card { rotate: 0deg; }
  .tp-nav ul { flex-wrap: wrap; }
  .tp-header-inner { flex-wrap: wrap; }
  .tp-nav { margin-left: 0; width: 100%; overflow-x: auto; }
}
