/* -------------------------
   Base + Layout
-------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Northern Timber palette: warmer, less crushed-black, natural forest green */

  /* Backgrounds */
  --bg: #12140f;
  --bg-elevated: #1c1f18;
  --bg-soft: #0c0e0a;

  /* Text */
  --text-main: #f0efe8;
  --text-muted: #aca597;

  /* Borders */
  --border-soft: #2d3026;

  /* Accents */
  --accent: #4f8c52;
  --accent-soft: #7cae70;
  --accent-softest: #263420;
  --accent-contrast: #f8f7f0;
  --accent-subtle: #b98a52;

  /* Radius + shadows */
  --radius-lg: 1.3rem;
  --radius-md: 0.9rem;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  position: relative;
}

h1, h2, h3,
.feature-card h2,
.note-title,
.hero-copy h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  margin: 0 0 0.75rem;
}

/* -------------------------
   Containers & Sections
-------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  background: radial-gradient(circle at top, var(--bg-elevated) 0%, var(--bg) 55%, var(--bg-soft) 100%);
  padding-top: 64px;
}

.section {
  padding: 4.5rem 0;
}

.section.muted {
  background: radial-gradient(circle at top, #171911 0%, var(--bg-soft) 100%);
}

.section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 0 0 0.6rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* -------------------------
   Header & Nav
-------------------------- */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(12, 14, 10, 0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 48, 38, 0.8) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-right: 0.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 40px;
  line-height: 1;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-contrast);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 999px;
}

/* -------------------------
   Hero (Video Background)
-------------------------- */

.video-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #f9fafb;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 4.5rem 0 0 3rem;
  z-index: 2;
}

.hero-copy {
  max-width: 24rem;
  background: rgba(0, 0, 0, 0.10);
  padding: 1.4rem 1.6rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
}

.hero-copy p {
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-logo-mark {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 5;
  opacity: 0.22;
  pointer-events: none;
}

.hero-logo-mark img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* -------------------------
   Feature Bands (Services)
-------------------------- */

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.feature-band.right .feature-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.feature-band.right .feature-inner .feature-media {
  order: 2;
}

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

.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--band-bg, var(--bg)) 97%);
}

.feature-band.right .feature-media::after {
  background: linear-gradient(270deg, transparent 55%, var(--band-bg, var(--bg-elevated)) 97%);
}

.feature-band {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.feature-band:nth-of-type(odd) {
  background: var(--bg);
  --band-bg: var(--bg);
}

.feature-band:nth-of-type(even) {
  background: var(--bg-elevated);
  --band-bg: var(--bg-elevated);
}

.feature-card {
  position: relative;
  z-index: 1;
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--accent-contrast);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-card h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.feature-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-subtle);
  margin-bottom: 1rem;
}

/* -------------------------
   Page intro with background photo
-------------------------- */

.section.intro-photo {
  position: relative;
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}

.section.intro-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 14, 10, 0.72) 55%, var(--bg) 100%);
  z-index: 0;
}

.section.intro-photo .container {
  position: relative;
  z-index: 1;
}

/* -------------------------
   Quick-nav pill list (replaces boxed checklist card)
-------------------------- */

.card.quick-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.quick-nav h3 {
  margin-bottom: 1rem;
}

.quick-nav .checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.quick-nav .checklist li {
  margin: 0;
  padding: 0;
  font-size: inherit;
}

.quick-nav .checklist li::before {
  content: none;
}

.quick-nav .checklist a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-main);
  font-size: 0.88rem;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

@media (max-width: 900px) {
  .quick-nav .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .quick-nav .checklist {
    grid-template-columns: 1fr;
  }
}

.quick-nav .checklist a:hover {
  border-color: var(--accent-subtle);
  color: var(--accent-subtle);
  background: rgba(185, 138, 82, 0.08);
  text-decoration: none;
}

/* -------------------------
   Grids
-------------------------- */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 600px) {
  .grid.three { grid-template-columns: 1fr; }
}

/* -------------------------
   Cards
-------------------------- */

.card {
  background: var(--bg-elevated) !important;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(79, 140, 82, 0.35) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.card-example-img {
  position: relative;
  margin: -1.6rem -1.8rem 1.1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.card-example-img img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3,
.card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  opacity: 0.95;
}

.card .muted {
  color: var(--text-muted);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* -------------------------
   About Highlights
-------------------------- */

.about-highlight {
  background: radial-gradient(circle at top, #201a13 0%, var(--bg-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
}

.about-highlight.soft {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* -------------------------
   Split layout
-------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2.2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------
   Team / About
-------------------------- */

.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.credential-badge-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  flex-shrink: 0;
}

.credential-badge-chip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* -------------------------
   Lists
-------------------------- */

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.checklist a {
  color: var(--text-main);
  text-decoration: none;
}

.checklist a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* -------------------------
   Buttons
-------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(172, 165, 151, 0.4);
  background: rgba(18, 20, 15, 0.85);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-color: rgba(79, 140, 82, 0.9);
  color: var(--accent-contrast);
}

.btn.ghost {
  background: rgba(28, 31, 24, 0.75);
  border-color: rgba(240, 239, 232, 0.35);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
  border-color: rgba(172, 165, 151, 0.7);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

/* -------------------------
   CTA
-------------------------- */

.section.cta {
  background: radial-gradient(circle at top left, var(--accent-softest) 0%, var(--bg-soft) 100%);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(79, 140, 82, 0.2);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.2;
}

.cta-inner p {
  margin: 0;
  max-width: 38ch;
  color: var(--accent-contrast);
  opacity: 0.85;
  line-height: 1.55;
}

.section.cta .btn {
  white-space: nowrap;
}

/* -------------------------
   Footer
-------------------------- */

.site-footer {
  background: var(--bg-soft) !important;
  border-top: 1px solid var(--border-soft) !important;
  padding: 1.2rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-meta {
  opacity: 0.9;
}

/* -------------------------
   Notes / Field Notes
-------------------------- */

.notes-hero {
  padding-top: 5.5rem;
}

.notes-grid {
  display: grid;
  gap: 1.6rem;
}

.note-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
}

.note-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.photo-credit {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  z-index: 1;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(240, 239, 232, 0.75);
  background: rgba(12, 14, 10, 0.55);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.note-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.note-card:hover .note-card-img img {
  transform: scale(1.03);
}

.note-card-body {
  padding: 1.6rem 1.8rem;
}

.note-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.note-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.note-card p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.note-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--accent);
}

.note-link:hover {
  text-decoration: underline;
}

.note-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.note-hero {
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, var(--bg-elevated) 0%, var(--bg-soft) 60%);
}

.note-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 0.5rem;
}

.note-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.15;
}

.note-lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.note-hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.9rem 0;
  opacity: 0.95;
}

.note-hero-logo {
  height: 56px;
  width: auto;
  display: block;
}

.note-hero-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.note-hero-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.note-hero-badge-img {
  width: 108px;
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.7));
}

.note-body {
  padding: 2.5rem 0 4rem;
}

.note-article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.25rem 2.4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.note-article p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
}

.note-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.note-article h2:first-child {
  margin-top: 0;
}

.note-article ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
}

.note-article li {
  margin-bottom: 0.4rem;
}

.note-article blockquote {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-style: italic;
  line-height: 1.6;
}

.note-article hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 2rem 0;
}

.note-nav {
  margin-top: 2rem;
  display: flex;
}

/* -------------------------
   Responsive
-------------------------- */

@media (max-width: 900px) {
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-inner,
  .feature-band.right .feature-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-band.right .feature-inner .feature-media {
    order: 0;
  }

  .feature-media {
    min-height: 0;
    height: 240px;
  }

  .feature-media::after,
  .feature-band.right .feature-media::after {
    background: linear-gradient(180deg, transparent 55%, var(--band-bg, var(--bg)) 97%);
  }

  .feature-band {
    padding: 2.5rem 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 10000;
  }

  .main-nav {
    display: flex !important;
    align-items: center;
  }

  .header-inner {
    position: relative;
    z-index: 9999;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(5, 5, 5, 0.97);
    width: 100%;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(43, 36, 27, 0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    z-index: 9999;
  }

  .nav-links.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }

  .video-hero {
    min-height: 70vh;
    height: 70vh;
  }

  .hero-inner {
    padding: 4.5rem 1.5rem 0 1.5rem;
    justify-content: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .cta-inner p {
    max-width: 100%;
  }

  .note-hero {
    padding-top: 5.75rem;
    padding-bottom: 1.75rem;
  }

  .note-title {
    font-size: 1.6rem;
  }

  .note-article {
    padding: 1.6rem 1.4rem;
  }

  .note-hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .note-hero-badge-img {
    width: 72px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.85rem;
  }

  .brand-tagline {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }
}