/*
Theme Name: Nitai GearTips
Theme URI: https://nitai-labs.serseus.com
Author: Nitai Labs
Description: A clean outdoor education homepage inspired by the GearTips front-page structure.
Version: 1.0.0
Requires at least: 6.0
Text Domain: nitai-geartips
*/

:root {
  --nl-ink: #26322d;
  --nl-muted: #64716a;
  --nl-paper: #f7f4ec;
  --nl-stone: #e8e0d2;
  --nl-forest: #3f5e4a;
  --nl-moss: #718763;
  --nl-clay: #c56b4b;
  --nl-night: #1f2c27;
  --nl-white: #ffffff;
  --nl-radius: 8px;
  --nl-shadow: 0 20px 55px rgba(24, 36, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nl-ink);
  background: var(--nl-paper);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.admin-bar .nl-header {
  top: 32px;
}

body::before {
  content: "";
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260'%3E%3Cg transform='rotate(-24 260 130)'%3E%3Ctext x='260' y='136' text-anchor='middle' font-family='Arial, sans-serif' font-size='34' font-weight='800' fill='%2326322d' fill-opacity='0.105' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1'%3ENitai Test Server%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 520px 260px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.nl-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(197, 107, 75, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 52%, rgba(63, 94, 74, 0.13), transparent 30rem),
    var(--nl-paper);
}

.nl-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nl-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(24, 36, 31, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nl-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nl-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--nl-white);
  font-weight: 800;
  letter-spacing: 0;
}

.nl-wordmark {
  color: var(--nl-white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.nl-brand span {
  display: inline-flex;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  text-transform: uppercase;
}

.nl-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.nl-menu a {
  transition: color 160ms ease;
}

.nl-menu a:hover {
  color: #f5b48e;
}

.nl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--nl-clay);
  color: var(--nl-white);
  font-weight: 800;
}

.nl-hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 160px 0 64px;
  color: var(--nl-white);
  background:
    linear-gradient(90deg, rgba(17, 28, 24, 0.82), rgba(17, 28, 24, 0.42) 56%, rgba(17, 28, 24, 0.25)),
    url("assets/hiker-2.webp") center / cover no-repeat;
}

.nl-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--nl-paper));
  pointer-events: none;
}

.nl-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
}

.nl-kicker {
  margin: 0 0 18px;
  color: #f2bb91;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.nl-hero h1,
.nl-section-title,
.nl-feature h2,
.nl-club h2 {
  font-family: "Averia Serif Libre", Georgia, serif;
  letter-spacing: 0;
}

.nl-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
}

.nl-hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.nl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.nl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.nl-button-primary {
  background: var(--nl-clay);
  color: var(--nl-white);
}

.nl-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--nl-white);
}

.nl-hero-card {
  border-radius: var(--nl-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--nl-shadow);
}

.nl-hero-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.nl-hero-card div {
  padding: 22px;
  background: rgba(31, 44, 39, 0.9);
}

.nl-hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.nl-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.nl-section {
  padding: 92px 0;
}

.nl-section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.nl-section-title {
  margin: 0;
  color: var(--nl-forest);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.nl-section-copy {
  margin: 20px 0 0;
  color: var(--nl-muted);
  font-size: 19px;
}

.nl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nl-card {
  overflow: hidden;
  border-radius: var(--nl-radius);
  background: var(--nl-white);
  box-shadow: 0 18px 45px rgba(38, 50, 45, 0.11);
}

.nl-card img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
}

.nl-card-body {
  padding: 26px;
}

.nl-card h3 {
  margin: 0 0 10px;
  color: var(--nl-forest);
  font-size: 22px;
  line-height: 1.2;
}

.nl-card p {
  margin: 0;
  color: var(--nl-muted);
}

.nl-feature {
  padding: 96px 0;
  background: var(--nl-forest);
  color: var(--nl-white);
}

.nl-feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.nl-feature-media {
  position: relative;
  min-height: 520px;
}

.nl-feature-media img {
  position: absolute;
  border-radius: var(--nl-radius);
  box-shadow: var(--nl-shadow);
  object-fit: cover;
}

.nl-feature-media img:first-child {
  top: 0;
  left: 0;
  width: 72%;
  height: 380px;
}

.nl-feature-media img:last-child {
  right: 0;
  bottom: 0;
  width: 58%;
  height: 300px;
  background: var(--nl-white);
  object-fit: contain;
  padding: 22px;
}

.nl-feature h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.nl-feature p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.nl-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.nl-stat {
  padding: 22px;
  border-radius: var(--nl-radius);
  background: rgba(255, 255, 255, 0.1);
}

.nl-stat strong {
  display: block;
  color: #f2bb91;
  font-size: 26px;
  line-height: 1;
}

.nl-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.nl-club {
  padding: 100px 0;
  background: #f0e8da;
}

.nl-club-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.nl-club h2 {
  margin: 0;
  color: var(--nl-clay);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
}

.nl-club p {
  color: var(--nl-muted);
  font-size: 19px;
}

.nl-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.nl-mini {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--nl-radius);
  background: var(--nl-white);
  box-shadow: 0 12px 34px rgba(38, 50, 45, 0.08);
}

.nl-mini strong {
  display: block;
  margin-bottom: 8px;
  color: var(--nl-forest);
  font-size: 18px;
}

.nl-mini span {
  color: var(--nl-muted);
  font-size: 15px;
}

.nl-news {
  background: var(--nl-paper);
}

.nl-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.nl-news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border-radius: var(--nl-radius);
  background: var(--nl-white);
  box-shadow: 0 16px 45px rgba(38, 50, 45, 0.1);
}

.nl-news-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.nl-news-card div {
  padding: 24px;
}

.nl-date {
  display: block;
  margin-bottom: 12px;
  color: var(--nl-clay);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.nl-news-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.nl-news-card p {
  margin: 0;
  color: var(--nl-muted);
  font-size: 15px;
}

.nl-footer {
  padding: 64px 0 30px;
  background: var(--nl-night);
  color: rgba(255, 255, 255, 0.76);
}

.nl-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
}

.nl-footer .nl-wordmark {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 30px;
}

.nl-footer p {
  max-width: 680px;
  margin: 0;
}

.nl-footer-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.nl-footer-links a {
  color: rgba(255, 255, 255, 0.86);
}

.nl-copyright {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 900px) {
  body.admin-bar .nl-header {
    top: 46px;
  }

  .nl-nav {
    min-height: 74px;
  }

  .nl-menu {
    display: none;
  }

  .nl-wordmark {
    font-size: 22px;
  }

  .nl-brand span {
    display: none;
  }

  .nl-hero {
    min-height: 88vh;
    padding-top: 128px;
  }

  .nl-hero-grid,
  .nl-feature-grid,
  .nl-club-grid,
  .nl-footer-grid {
    grid-template-columns: 1fr;
  }

  .nl-hero-card {
    display: none;
  }

  .nl-card-grid,
  .nl-news-grid,
  .nl-stat-row,
  .nl-mini-grid {
    grid-template-columns: 1fr;
  }

  .nl-feature-media {
    min-height: 400px;
  }

  .nl-news-card {
    grid-template-columns: 1fr;
  }

  .nl-news-card img {
    height: 220px;
  }

  .nl-footer-links {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .nl-container {
    width: min(100% - 26px, 1160px);
  }

  .nl-hero h1 {
    font-size: 44px;
  }

  .nl-section,
  .nl-feature,
  .nl-club {
    padding: 68px 0;
  }
}
