/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

img,
svg {
  max-width: 100%;
}

/* ─── TOKENS ─── */
:root {
  --bg: #fafaf8;
  --bg2: #f2f2ee;
  --bg3: #eaeae5;
  --text: #1a1a17;
  --muted: #5c5c54;
  --muted2: #9a9990;
  --accent: #5e9a1e;
  --accent-dim: rgba(94, 154, 30, 0.10);
  --gold: #F6D548;
  --gold-dim: rgba(154, 122, 0, 0.10);
  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(0, 0, 0, 0.18);
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(250, 250, 248, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity .2s;
}

.nav-logo:hover {
  opacity: .75;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}

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

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(124, 181, 64, .3);
  padding: 7px 18px !important;
  border-radius: 3px;
}

.nav-cta:hover {
  background: var(--accent-dim) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
}

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}

.btn:hover {
  opacity: .84;
  transform: translateY(-2px);
}

.btn svg {
  transition: transform .2s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: .45;
  transform: none;
  cursor: not-allowed;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
}

.ft-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s;
}

.ft-logo:hover {
  opacity: .65;
}

.ft-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.ft-copy {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: .03em;
}

.ft-links {
  display: flex;
  gap: 24px;
}

.ft-links a {
  font-size: 11px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .18s;
}

.ft-links a:hover {
  color: var(--muted);
}

/* ─── NAV DROPDOWN ─── */
.nav-item-work {
  position: relative;
}

.nav-item-work::after {
  content: '';
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -12px;
  height: 12px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(250, 250, 248, .98);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 0;
  list-style: none;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 201;
}

.nav-item-work:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: color .18s, background .18s;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: var(--bg2);
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

/* ─── MOBILE ─── */
@media (max-width: 820px) {
  #nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  footer {
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    text-align: center;
  }

  .ft-links {
    justify-content: center;
  }

  .nav-dropdown {
    position: static;
    display: flex;
    flex-direction: column;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 4px 0 0 14px;
    min-width: unset;
    gap: 10px;
  }

  .nav-dropdown a {
    padding: 0;
    font-size: 12px;
    color: var(--muted2);
  }

  .nav-dropdown a:hover {
    background: none;
    color: var(--text);
  }
}
