/* MonoDesk Shared Styles - Nav, Footer, Typography, Tokens */

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #212121;
  overscroll-behavior-y: none;
}

body {
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
  font-family: "Geist", system-ui, sans-serif;
  background: #212121;
  line-height: 1.5;
  color: var(--type-light);
  overscroll-behavior-y: none;
}

a {
  color: inherit;
}

/* ===================================
   DESIGN TOKENS
   =================================== */

:root {
  /* Colors */
  --brand-white: #ffffff;
  --brand-orange: #ff5b26;
  --brand-highlighter: #d1ff6e;
  --brand-blue: #1c64f5;
  --brand-grey: #94959a;
  --brand-almost-black: #272727;
  --brand-fun-green: #026232;
  --surface-tint: #eef2f5;
  --surface-white: #343434;
  --background: #dadee1;
  --type: #161616;
  --type-light: #e7e7e7;
  --type-60: rgba(22, 22, 22, 0.6);
  --type-40: rgba(223, 223, 223, 0.4);
  --type-light-60: rgba(223, 223, 223, 0.6);
  --type-light-40: rgba(223, 223, 223, 0.4);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 30px;

  /* wallpaper-background.svg - fixed scale matches artboard (1920×1080) so grid squares stay constant */
  --cutting-mat-bg-size: 1920px auto;

  /* Layout — horizontal page insets (marketing / for-creatives hub) */
  --layout-page-max: 1320px;
  /* Full-bleed band: side padding scales with viewport (hero strip, graph-paper bands) */
  --layout-inset-fluid: max(60px, calc((100vw - var(--layout-page-max)) / 4 + 60px));
  /* Narrow screens: match persona hero / stacked bands */
  --layout-inset-fluid-sm: 24px;
  /* Centered column cap (same idea as .section) */
  --layout-max-centered: 1200px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-white);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  color: var(--type-light-60);
  font-size: 16px;
  line-height: 1.6;
}

/* ===================================
   HEADER
   =================================== */

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: fixed;
  top: 10px;
  left: 60px;
  right: 60px;
  width: auto;
  max-width: calc(100vw - 120px);
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.menu .logo {
  order: 0;
  height: 29.794px;
  width: auto;
  display: block;
  transition:
    opacity 0.5s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  overflow: visible;
}

.menu .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.menu .logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  order: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: #ffffff;
}

.header-nav-link.active {
  color: #ffffff;
}

/* Header Dropdown - horizontal sub-bar */
.header-nav-dropdown {
  position: relative;
}

.header-nav-dropdown > .header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.header-nav-dropdown .nav-chevron {
  transition: transform 0.2s ease;
}

.header-nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* The menu container - includes an invisible hover bridge */
.header-dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  padding-top: 24px;
  z-index: 10001;
}

.header-nav-dropdown:hover .header-dropdown-menu {
  display: block;
}

.header-dropdown-menu-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  white-space: nowrap;
}

.header-dropdown-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Nav dropdowns (vertical menu) ── */
.header-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 20px 0 8px;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.header-nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
}

.header-nav-dropdown:hover .header-nav-dropdown-menu,
.header-nav-dropdown:focus-within .header-nav-dropdown-menu {
  display: block;
}

.header-nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.header-nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-coming-soon {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
  cursor: default;
}

.nav-coming-soon em {
  font-style: normal;
  font-size: 11px;
  color: rgba(209, 255, 110, 0.5);
  margin-left: 6px;
}

/* ── Mega menu (two-column dropdown) ── */
.header-nav-dropdown-menu.mega-menu {
  display: none;
  min-width: auto;
  width: auto;
  padding: 16px 0 12px;
  top: calc(100% + 30px);
  background: #e8e8ee;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.header-nav-dropdown-menu.mega-menu::before {
  height: 30px;
  top: -30px;
}

.header-nav-dropdown:hover .header-nav-dropdown-menu.mega-menu,
.header-nav-dropdown:focus-within .header-nav-dropdown-menu.mega-menu {
  display: flex;
  gap: 0;
}

.mega-menu-col {
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.mega-menu-col + .mega-menu-col {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.header-nav-dropdown-menu.mega-menu a {
  color: #333;
  font-size: 14px;
}

.header-nav-dropdown-menu.mega-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.mega-menu-heading {
  display: block;
  padding: 4px 20px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.mega-menu-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 14px;
  color: #333;
  cursor: default;
}

.mega-menu-soon::after {
  content: "soon";
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: #d1ff6e;
  color: #026232;
  line-height: 1.4;
}

/* Mobile sub-section headings */
.mobile-nav-sub-heading {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 0 2px;
}

.mobile-nav-sub-heading:first-child {
  padding-top: 0;
}

.mobile-nav-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 0;
  cursor: default;
}

.mobile-nav-soon::after {
  content: "soon";
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  background: #d1ff6e;
  color: #026232;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
  margin-left: auto;
}

.header-actions .header-cta {
  min-width: auto;
  padding: 8px 18px;
}

.header-login-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-login-link:hover {
  color: #ffffff;
}

/* CTA Button */
a:has(.hero-cta-button) {
  text-decoration: none;
  color: inherit;
}

.hero-cta-button {
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: #d1ff6e;
  color: #026232;
  border: none;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  height: 40px;
  min-width: 197px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #026232;
  transition: left 0.4s ease;
  z-index: -1;
  border-radius: 100px;
}

.hero-cta-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #d1ff6e;
  transform: scale(1.02);
}

.hero-cta-button:hover::before {
  left: 0;
}

.hero-cta-button:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-cta-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  position: relative;
  z-index: 2;
}

/* ===================================
   MOBILE HAMBURGER MENU
   =================================== */

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-btn:hover,
.hamburger-btn:focus,
.hamburger-btn:focus-visible {
  background: none;
  outline: none;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease;
}

/* Toggle icons: show hamburger by default, X when menu is open */
.hamburger-btn .hamburger-icon--close {
  display: none;
}

body.mobile-nav-open .hamburger-btn .hamburger-icon--open {
  display: none;
}

body.mobile-nav-open .hamburger-btn .hamburger-icon--close {
  display: block;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 33, 33, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 0;
  flex-direction: column;
}

.mobile-nav.is-open {
  display: flex;
}

/* Mobile nav header with close button */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-shrink: 0;
  background: rgba(33, 33, 33, 0.98);
}

.mobile-nav-logo {
  height: 28px;
}

.mobile-nav-close {
  display: none;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile nav content area */
.mobile-nav-content {
  flex: 0 1 auto;
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Main navigation links */
.mobile-nav-content > a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-nav-content > a:last-of-type {
  border-bottom: none;
}

.mobile-nav-content > a:hover {
  color: #ffffff;
}

/* "For Creatives" parent link — no bottom border since sub-nav follows */
.mobile-nav-content > a.mobile-nav-parent {
  border-bottom: none;
  padding-bottom: 8px;
  margin-top: 4px;
}

/* Sub-navigation under For Creatives */
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0 4px 16px;
  margin-left: 2px;
  margin-bottom: 4px;
}

.mobile-nav-sub a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.mobile-nav-sub a:hover {
  color: #ffffff;
}

/* CTA section at bottom - sticky */
.mobile-nav .mobile-nav-cta {
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(33, 33, 33, 0.98);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-sizing: border-box;
}

.mobile-nav .mobile-nav-cta a {
  display: flex;
  min-width: 0;
  border-bottom: none;
  font-size: 16px;
}

/* Primary CTA shrinks to fit content */
.mobile-nav .mobile-nav-cta a:has(.hero-cta-button) {
  flex: 0 1 auto;
}

/* Log in stays tight around its label */
.mobile-nav .mobile-nav-cta a.header-login-link {
  flex: 0 0 auto;
}

.mobile-nav .mobile-nav-cta .header-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  height: 48px;
  box-sizing: border-box;
  white-space: nowrap;
  white-space: nowrap;
}

.mobile-nav .mobile-nav-cta .hero-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 15px;
  height: 48px;
  width: auto;
  min-width: 0 !important;
  box-sizing: border-box;
  white-space: nowrap;
  white-space: nowrap;
}

/* Mobile nav footer (social + legal) */
.mobile-nav-footer {
  padding: 16px 24px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mobile-nav-social {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.mobile-nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
  text-decoration: none;
}

.mobile-nav-social a:hover,
.mobile-nav-social a:focus-visible {
  color: #ffffff;
}

.mobile-nav-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-nav-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.mobile-nav-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-legal-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0;
  border-bottom: none;
  font-size: 12px;
  font-weight: 400;
}

.mobile-nav-legal-link:hover,
.mobile-nav-legal-link:focus-visible {
  color: #ffffff;
}

.mobile-nav-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Body scroll lock when menu is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: #212121;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.site-footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-social a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  white-space: nowrap;
  order: 0;
}

.footer-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  order: 1;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* ===================================
   SHARED PAGE LAYOUT
   =================================== */

.page-content {
  padding-top: 80px; /* clear fixed header */
  min-height: 100vh;
}

.section {
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: var(--layout-max-centered);
  margin: 0 auto;
}

/* Opt-in layout utilities — prefer these names over retyping calc() in new CSS */
.u-inset-fluid {
  padding-left: var(--layout-inset-fluid);
  padding-right: var(--layout-inset-fluid);
  box-sizing: border-box;
}

.u-inset-fixed {
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  box-sizing: border-box;
}

.u-max-centered {
  max-width: var(--layout-max-centered);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  :root {
    --layout-inset-fluid: var(--layout-inset-fluid-sm);
  }

  .u-inset-fluid {
    padding-left: var(--layout-inset-fluid-sm);
    padding-right: var(--layout-inset-fluid-sm);
  }

  .u-inset-fixed {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  /* Menu */
  .menu {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
    gap: 12px;
  }

  .header-nav {
    display: none;
  }

  .header-dropdown-menu {
    display: none !important;
  }

  .header-login-link {
    display: none;
  }

  .header-actions {
    gap: 4px;
    order: 3;
    margin-left: 0;
  }

  .hamburger-btn {
    display: block;
    order: 2;
    padding: 4px;
    margin-left: auto;
  }

  .header-actions .header-cta {
    font-size: 0;
    padding: 0 !important;
    min-width: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions .header-cta svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 0 0 -1px;
  }

  .hero-cta-button {
    padding: 8px 12px !important;
    min-width: auto !important;
  }

  .menu .logo img {
    height: 28px !important;
  }

  /* Footer */
  .site-footer {
    height: 100px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0 1.25rem;
  }

  .footer-social {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    order: 1;
    margin-bottom: 16px;
  }

  .footer-links {
    gap: 0.75rem;
    order: 2;
  }

  .footer-copy {
    order: 3;
  }

  .footer-links a,
  .footer-copy {
    font-size: 0.6875rem;
    white-space: normal;
  }

  /* Typography */
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}
