/* =========================================================
   style.css — Custom styles, animations, and design tokens
========================================================= */

:root {
  --forest: #173B2B;
  --forest-deep: #0F2A1E;
  --leaf: #3F7A5C;
  --gold: #C89B3C;
  --cream: #F7F4EC;
  --charcoal: #20241F;
  --stone: #8C8A7D;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Nav (fixed visibility: permanent scrim + solid state) ---------- */
#site-header {
  background: linear-gradient(to bottom, rgba(15,42,30,0.6) 0%, rgba(15,42,30,0.15) 80%, rgba(15,42,30,0) 100%);
}
#site-header #nav-brand,
#site-header .nav-link,
#site-header #menu-toggle {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
#site-header #nav-cta {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}
#site-header #nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}

#site-header[data-state="solid"] {
  background: rgba(247, 244, 236, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#site-header[data-state="solid"] #nav-brand,
#site-header[data-state="solid"] .nav-link,
#site-header[data-state="solid"] #menu-toggle {
  color: var(--charcoal);
  text-shadow: none;
}
#site-header[data-state="solid"] #nav-cta {
  border-color: var(--forest);
  color: var(--forest);
}
#site-header[data-state="solid"] #nav-cta:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Hero ---------- */
.scroll-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

[data-reveal="hero"] { opacity: 0; transform: translateY(16px); animation: heroIn 1s ease .2s forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Scroll reveal (single, restrained) ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Values ---------- */
.value-item { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; }
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(200,155,60,0.4);
}

/* ---------- Services: bento cards ---------- */
.bento-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}
.bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,42,30,0.92) 0%, rgba(15,42,30,0.35) 55%, rgba(15,42,30,0.05) 100%);
  transition: background .3s ease;
}
.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(15,42,30,0.96) 0%, rgba(15,42,30,0.5) 55%, rgba(15,42,30,0.1) 100%);
}
.bento-card img { transition: transform .5s ease; }
.bento-card:hover { transform: translateY(-2px); }
.bento-content { position: relative; z-index: 1; padding: 1.75rem; }
.bento-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; font-size: .85rem; font-weight: 600;
  color: var(--gold);
}

/* ---------- Products (horizontal field) ---------- */
.product-scroll { scrollbar-width: thin; }
.product-card {
  min-width: 260px; max-width: 260px;
  scroll-snap-align: start;
  border: 1px solid rgba(23,59,43,0.1);
  background: #fff;
}
.product-card img { width: 100%; height: 170px; object-fit: cover; }
.product-card-body { padding: 1.1rem; }
.product-card-body p { font-size: .85rem; color: rgba(32,36,31,0.65); margin-top: .35rem; line-height: 1.5; }

/* ---------- Objectives ---------- */
.objective-item { display: flex; gap: 1.25rem; align-items: flex-start; border-top: 1px solid rgba(23,59,43,0.12); padding-top: 1.25rem; }
.objective-num { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.objective-item p { color: rgba(32,36,31,0.8); line-height: 1.6; }

/* ---------- Video gallery ---------- */
.video-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a0a;
  display: block;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-thumb:hover img { transform: scale(1.06); }
.video-thumb .play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
}
.video-thumb .play-badge span {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
}
#video-link-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .8rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
#video-link-list a:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* ---------- Contact tiles ---------- */
.contact-tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem;
  border: 1px solid rgba(23,59,43,0.12);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-tile-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); margin-top: .5rem; }
.contact-tile-value { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--charcoal); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}