/* =========================================
   CLEARSHOT DESIGN SYSTEM
   Shared styles for standalone HTML pages
   ========================================= */

/* --- Variables --- */
:root {
  --forest:  #152925;
  --cream:   #F4F1EB;
  --citrine: #D4E157;
  --sand:    #E6E0D4;
  --moss:    #3D5A4C;
  --dark:    #1A1A1A;

  --font-headline: "Instrument Serif", Georgia, serif;
  --font-body:     "DM Sans", Arial, sans-serif;
  --font-mono:     "JetBrains Mono", monospace;

  --nav-h:          64px;
  --section-pad:    clamp(64px, 8vw, 100px);
  --container-pad:  clamp(16px, 4vw, 48px);
  --container-max:  1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; padding: 0; margin: 0; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Section --- */
.section { padding: var(--section-pad) 0; }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--forest);
  z-index: 200;
  border-bottom: 1px solid rgba(244,241,235,0.08);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-wordmark img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(244,241,235,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--citrine);
  color: var(--forest) !important;
  font-weight: 600;
  font-size: 13px;
  border: none;
  transition: opacity 0.2s;
}
.nav-links .nav-cta:hover { opacity: 0.9; color: var(--forest) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--forest);
  padding: 12px var(--container-pad) 20px;
  border-bottom: 1px solid rgba(244,241,235,0.08);
  z-index: 199;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: rgba(244,241,235,0.8);
  border-bottom: 1px solid rgba(244,241,235,0.06);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--citrine); }
.mobile-menu.open { display: block; }

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-citrine { background: var(--citrine); color: var(--forest); }

/* =========================================
   CORNER BRACKETS
   ========================================= */
.corner-bracket {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
}
.corner-bracket.tl {
  top: 36px; left: 36px;
  border-top: 1px solid rgba(212,225,87,0.35);
  border-left: 1px solid rgba(212,225,87,0.35);
}
.corner-bracket.br {
  bottom: 36px; right: 36px;
  border-bottom: 1px solid rgba(212,225,87,0.35);
  border-right: 1px solid rgba(212,225,87,0.35);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--forest);
  color: rgba(244,241,235,0.65);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p {
  color: rgba(244,241,235,0.5);
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(244,241,235,0.5);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--citrine); }

.footer-details {
  padding: 24px 0;
  border-top: 1px solid rgba(244,241,235,0.1);
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(244,241,235,0.4);
  line-height: 1.8;
}
.footer-details p + p { margin-top: 6px; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(244,241,235,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(244,241,235,0.35);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* =========================================
   REVEAL / SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.in-view > * { opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger.in-view > *:nth-child(2)  { transition-delay: 0.10s; }
.stagger.in-view > *:nth-child(3)  { transition-delay: 0.15s; }
.stagger.in-view > *:nth-child(4)  { transition-delay: 0.20s; }
.stagger.in-view > *:nth-child(5)  { transition-delay: 0.25s; }
.stagger.in-view > *:nth-child(6)  { transition-delay: 0.30s; }
.stagger.in-view > *:nth-child(7)  { transition-delay: 0.35s; }
.stagger.in-view > *:nth-child(8)  { transition-delay: 0.40s; }
.stagger.in-view > *:nth-child(9)  { transition-delay: 0.45s; }
