/* Draftworks marketing — Vectorworks-quiet header craft, Draftworks colours */

.site-wrap {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box !important;
}
@media (min-width: 768px) {
  .site-wrap {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Stitch gutter utilities — same column, never full-bleed on ultrawide */
.px-gutter-mobile,
.mx-gutter-mobile {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
@media (min-width: 768px) {
  .px-gutter-mobile,
  .mx-gutter-mobile {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* —— Header (taller, softer hairline, quiet graphite + ember CTA) —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-sizing: border-box;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 0.35rem;
  overflow: visible !important;
  background: rgba(14, 17, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Soft hairline — not a heavy HUD rule */
  border-bottom: 1px solid rgba(242, 245, 247, 0.08);
  box-shadow: none;
}

.site-header-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-sizing: border-box;
  min-height: 4.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  overflow: visible !important;
}
@media (min-width: 768px) {
  .site-header-inner {
    min-height: 5.25rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
  color: #F2F5F7;
  flex: 0 1 auto;
  overflow: visible;
  margin: 0;
  padding: 0;
}

/* Tile wraps the mark; radius lives on the tile, not on the bitmap.
   Asset already has ~18% inset so strokes never meet the crop or the corner arc. */
.site-brand-mark-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(242, 245, 247, 0.1);
  background: #111417;
  overflow: hidden; /* only clips empty padded graphite, not strokes */
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .site-brand-mark-tile {
    width: 48px;
    height: 48px;
    border-radius: 9px;
  }
}

.site-brand-mark {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-brand-word {
  font-family: Geist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #F2F5F7;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
@media (min-width: 768px) {
  .site-brand-word {
    font-size: 1.375rem;
  }
}
@media (min-width: 1100px) {
  .site-brand-word {
    font-size: 1.5rem;
  }
}

/* Raedia / Vectorworks restraint: quiet attribution, not a second title */
.site-brand-by {
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: #6B7680;
  margin-left: 0.55rem;
  white-space: nowrap;
  opacity: 0.95;
}
@media (min-width: 768px) {
  .site-brand-by {
    font-size: 0.75rem;
  }
}
@media (max-width: 640px) {
  .site-brand-by {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  min-width: 0;
}
@media (min-width: 768px) {
  .site-nav {
    gap: 0.5rem;
  }
}

.site-nav-link {
  font-family: Geist, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #8B96A1;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background: transparent;
  transition: color 0.15s ease;
}
.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
  color: #F2F5F7;
  background: transparent;
}
@media (max-width: 480px) {
  .site-nav-link[data-nav="home"] {
    display: none;
  }
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  min-width: 44px;
  padding: 0 1.15rem;
  margin-left: 0.35rem;
  border-radius: 9999px;
  background: #E85A3C;
  color: #0E1114 !important;
  font-family: Geist, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.site-nav-cta:hover {
  background: #F06E52;
}

/* Main offset for fixed header */
.site-main-pad {
  padding-top: calc(4.5rem + 0.85rem + 0.35rem + env(safe-area-inset-top, 0px)) !important;
}
@media (min-width: 768px) {
  .site-main-pad {
    padding-top: calc(5.25rem + 0.85rem + 0.35rem + env(safe-area-inset-top, 0px)) !important;
  }
}

/* Hero CTAs: don't stretch absurdly on wide desktops */
@media (min-width: 768px) {
  .site-cta-stack {
    flex-direction: row !important;
    max-width: 32rem;
  }
  .site-cta-stack > a {
    width: auto !important;
    flex: 1 1 0;
    min-width: 10rem;
  }
}

/* Bottom icon bar: mobile only */
.site-bottom-nav {
  display: block;
}
@media (min-width: 768px) {
  .site-bottom-nav {
    display: none !important;
  }
  main {
    padding-bottom: 0 !important;
  }
}

/* Hero lockup image (home only) — still usable large */
.site-hero-mark {
  height: 72px;
  width: auto;
  max-width: min(360px, 88vw);
  object-fit: contain;
  border-radius: 6px;
}
@media (min-width: 768px) {
  .site-hero-mark {
    height: 88px;
    max-width: 420px;
  }
}
