/* =============================================
   POCSTOCK AI DATA — GLOBAL STYLES
   Design tokens, reset, typography, nav, footer
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --poc-black: #0e0e0e;
  --poc-white: #ffffff;
  --poc-offwhite: #f7f6f3;
  --poc-warm-gray: #e8e5df;
  --poc-mid-gray: #9a958d;
  --poc-dark-gray: #4a4641;
  --poc-accent: #e85d26;
  --poc-accent-hover: #d14d1a;
  --poc-teal: #1a8c7e;
  --poc-gold: #c49a2a;
  --poc-plum: #6b3a6b;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
  --section-pad: 100px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--poc-offwhite);
  color: var(--poc-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--poc-warm-gray);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-spacer { width: 24px; }

.nav-menu > li { position: relative; }

.nav-menu > li > a,
.nav-menu > li > button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--poc-dark-gray);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu > li > a:hover,
.nav-menu > li > button:hover {
  background: var(--poc-offwhite);
  color: var(--poc-black);
}

.nav-menu > li > button::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.5;
}

.nav-menu > li > button.nav-active {
  color: var(--poc-accent);
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--poc-white);
  border: 1px solid var(--poc-warm-gray);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.dropdown--single {
  min-width: 280px;
  grid-template-columns: 1fr;
}

.dropdown--wide {
  min-width: 520px;
  grid-template-columns: 1fr 1fr 1fr;
}

/* Mega menu — 3 columns */
.dropdown--mega {
  min-width: 680px;
  grid-template-columns: 1fr 1fr 1.2fr;
  padding: 0;
  overflow: hidden;
}

.dropdown--mega .mega-col {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown--mega .mega-col:not(:last-child) {
  border-right: 1px solid var(--poc-warm-gray);
}

.dropdown--mega .mega-heading {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--poc-mid-gray);
  padding: 6px 12px 10px;
}

.dropdown--mega .mega-col a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--poc-dark-gray);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.dropdown--mega .mega-col a:hover {
  background: var(--poc-offwhite);
  color: var(--poc-accent);
}

.dropdown--mega .mega-col a.active {
  color: var(--poc-accent);
  background: rgba(232,93,38,0.06);
}

/* Feature column */
.mega-feature {
  background: var(--poc-offwhite);
  padding: 0 !important;
  gap: 0 !important;
}

.mega-feature .mega-feature-img {
  height: 120px;
  overflow: hidden;
}

.mega-feature .mega-feature-body {
  padding: 16px 20px 20px;
}

.mega-feature .mega-feature-blurb {
  font-size: 12px;
  color: var(--poc-dark-gray);
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 500;
}

.mega-feature .mega-feature-cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--poc-accent) !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.mega-feature .mega-feature-cta:hover {
  gap: 8px;
  background: transparent !important;
}

/* External link arrow in dropdowns */
.dropdown .ext-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.dropdown .ext-arrow {
  opacity: 0.35;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.dropdown .ext-link:hover .ext-arrow {
  opacity: 1;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--poc-dark-gray);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--poc-offwhite);
  color: var(--poc-accent);
}

.dropdown a.active {
  color: var(--poc-accent);
  background: rgba(232,93,38,0.06);
}

.dropdown .featured-link {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--poc-warm-gray);
  font-weight: 700;
  color: var(--poc-accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-ghost { color: var(--poc-dark-gray); }
.btn-ghost:hover { background: var(--poc-offwhite); }
.btn-primary { background: var(--poc-accent); color: white; }
.btn-primary:hover { background: var(--poc-accent-hover); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--poc-dark-gray);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--poc-black);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Centered brand top */
.footer-brand-center {
  text-align: center;
  padding-bottom: 32px;
}

.footer-brand-center img {
  height: 28px; width: auto;
  margin: 0 auto 12px;
  display: block;
}

.footer-brand-center p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

/* Legacy brand (keep for compat) */
.footer-brand .footer-logo { margin-bottom: 12px; }
.footer-brand .footer-logo img { height: 28px; width: auto; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 24px; }

/* =============================================
   ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }

  /* Mobile nav */
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--poc-white);
    border-bottom: 1px solid var(--poc-warm-gray);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a,
  .nav-menu > li > button { width: 100%; text-align: left; padding: 12px 8px; }
  .nav-spacer { display: none; }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 16px;
    min-width: auto !important;
    grid-template-columns: 1fr !important;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-menu > li:hover .dropdown,
  .nav-menu > li:focus-within .dropdown {
    display: grid;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
}
