/* ============================================
   DESIGN TOKENS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500&display=swap');

:root {
  --slate:        #faf8f4;
  --slate-mid:    #f0ebe2;
  --slate-light:  #e5ddd1;
  --warm:         #9e7228;
  --warm-light:   #c8a96e;
  --warm-dim:     rgba(158, 114, 40, 0.09);
  --cream:        #1e2232;
  --cream-dim:    rgba(30, 34, 50, 0.62);
  --cream-faint:  rgba(30, 34, 50, 0.12);
  --rule:         rgba(158, 114, 40, 0.18);
  --muted:        rgba(30, 34, 50, 0.45);

  --font-display: 'Barlow', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:       2px;
  --max-width:    1100px;
  --section-pad:  80px 40px;
  --nav-height:   72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--slate);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

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

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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--warm);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--warm); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::before {
  transform: rotate(-135deg) translateY(-2px);
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(30,34,50,0.1);
  list-style: none;
  min-width: 210px;
  padding: 20px 0 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.dropdown-menu li a:hover { color: var(--warm); background: var(--warm-dim); }
.dropdown-menu li a::after { display: none !important; }

/* Mobile dropdown — show inline */
@media (max-width: 768px) {
  .nav-dropdown > a::before { display: none; }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--rule);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .dropdown-menu li a { padding: 8px 0; font-size: 13px; letter-spacing: 0.08em; }
}

.nav-cta {
  margin-left: 36px;
  padding: 9px 22px 9px !important;
  background: var(--warm);
  color: var(--slate) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--warm-light) !important; transform: translateY(-1px); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ============================================
   SHARED LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.page-content { padding-top: var(--nav-height); }

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--warm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--warm); }

.section-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--cream-dim);
  max-width: 800px;
  line-height: 1.75;
  margin-bottom: 56px;
}

.divider {
  height: 1px;
  background: var(--rule);
  margin: 56px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--warm);
  color: var(--slate);
}
.btn-primary:hover {
  background: var(--warm-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--warm);
  border: 1px solid var(--warm);
}
.btn-outline:hover {
  background: var(--warm-dim);
  transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.card:hover {
  background: var(--warm-dim);
  border-color: rgba(200,169,110,0.4);
  transform: translateY(-3px);
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--warm);
  transition: width 0.4s ease;
}
.card:hover::after { width: 100%; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #131720;
  border-top: 1px solid var(--rule);
  padding: 48px 40px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: block; }
.footer-brand .nav-logo img { height: 44px; filter: brightness(0) invert(1) sepia(0.15); opacity: 0.7; }
.footer-col .square-logo { height: 18px; width: auto; filter: brightness(0) invert(1) sepia(0.15); opacity: 0.7; }
.footer-brand p { font-size: 13px; color: rgba(245,240,232,0.7); max-width: 260px; line-height: 1.65; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #f5f0e8; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(200,169,110,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(245,240,232,0.5); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root { --section-pad: 56px 24px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--slate-mid);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open a { font-size: 14px; }
  .nav-cta.open { display: block; }
}
