@import url("base.css");

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--leaf-dark);
  color: var(--paper);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}

.brand img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.9rem;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-ghost {
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn-ghost:hover { background: rgba(246,241,228,0.08); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(180deg, #E3C077, var(--gold));
  color: var(--leaf-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 18px -8px rgba(192,151,63,0.7);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 22px -8px rgba(192,151,63,0.8); }
.btn-gold:active { transform: translateY(0); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--leaf-dark);
  color: var(--paper);
  padding: 88px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(192,151,63,0.16), transparent 38%),
    radial-gradient(circle at 92% 80%, rgba(161,91,63,0.18), transparent 42%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  color: var(--paper);
  margin-bottom: 0.35em;
}

.hero .eyebrow { color: var(--gold-soft); }

.hero-lede {
  font-size: 1.08rem;
  color: rgba(246,241,228,0.82);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 44px;
}

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold-soft);
  display: block;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(246,241,228,0.65);
}

/* ---------- Signature element: commission ledger tag stack ---------- */
.ledger-stack {
  position: relative;
  height: 380px;
}

.ledger-tag {
  position: absolute;
  width: 300px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  font-family: var(--font-mono);
}

.ledger-tag .tag-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.ledger-tag .tag-type {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
  display: block;
}

.ledger-tag .tag-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}

.ledger-tag .tag-row span:last-child { color: var(--leaf); font-weight: 600; }

.ledger-tag--1 { top: 0; left: 20px; transform: rotate(-4deg); z-index: 3; animation: float1 7s ease-in-out infinite; }
.ledger-tag--2 { top: 90px; left: 130px; transform: rotate(3deg); z-index: 2; opacity: 0.94; animation: float2 8s ease-in-out infinite; }
.ledger-tag--3 { top: 190px; left: 40px; transform: rotate(-2deg); z-index: 1; opacity: 0.88; animation: float3 9s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-8px); } }
@keyframes float2 { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-6px); } }
@keyframes float3 { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-5px); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: #5B5546; }

/* About / how it works */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(16,35,28,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -18px rgba(16,35,28,0.3);
}

.about-card .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.about-card h3 { font-size: 1.15rem; margin-top: 10px; }
.about-card p { color: #5B5546; font-size: 0.94rem; margin-bottom: 0; }

/* Services */
.services-section { background: var(--paper-dim); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 1px 2px rgba(16,35,28,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -18px rgba(16,35,28,0.3);
}

.service-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: #5B5546;
  margin-bottom: 0;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3E7A69, var(--leaf-dark));
  box-shadow: 0 4px 10px -3px rgba(29,61,52,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

/* Products strip */
.products-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.product-chip {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

/* CTA band */
.cta-band {
  background: var(--leaf-dark);
  color: var(--paper);
  text-align: center;
}

.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(246,241,228,0.78); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246,241,228,0.6);
  padding: 48px 0 28px;
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: rgba(246,241,228,0.6);
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.footer-bottom {
  border-top: 1px solid rgba(246,241,228,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .ledger-stack { height: 300px; margin-top: 20px; }
  .about-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  section { padding: 64px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }

  /* Mobile nav: hamburger button + slide-down panel replacing the hidden
     inline links, so navigation and sign-in/register stay reachable
     without needing to scroll all the way to the footer. */
  .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(246,241,228,0.25);
    border-radius: 8px;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .nav-menu-btn svg { width: 20px; height: 20px; }
  .site-header .container { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--leaf-dark, #1D3D34);
    border-radius: 0 0 14px 14px;
    padding: 14px 24px 20px;
    box-shadow: 0 16px 30px -12px rgba(8,20,14,0.5);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 10px 4px; color: rgba(246,241,228,0.9); text-decoration: none; }
  .nav-links-mobile-only { display: none; border-top: 1px solid rgba(246,241,228,0.15); margin-top: 6px; padding-top: 6px; }
  .nav-links.open .nav-links-mobile-only { display: block; }
}
@media (min-width: 641px) {
  .nav-menu-btn { display: none; }
  .nav-links-mobile-only { display: none; }
}
