/* =========================================================
   WEBSDOCS PREMIUM HEADER
   Plain CSS version without root variables
========================================================= */

/* ========================= BASE HEADER ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  overflow: visible;
}

/* ========================= LIGHT HEADER SUPPORT COLORS ========================= */
.header-top {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-header.is-scrolled .header-top {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1520px;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  position: relative;
}

/* ========================= LOGO ========================= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  min-width: 0;
}

.logo-image {
  width: 49px;
  height: 49px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 14px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* ========================= BRAND TEXT ========================= */
.brand-name {
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

/* ========================= BRAND ========================= */
.brand-webs {
  color: #72CEFD;
  font-size: 25px;
  font-weight: 700;
}

.brand-docs {
  color: #6f8092; /* darker, calm, works on light and dark */
  font-size: 23px;
  font-weight: 750;
}

.brand-tagline {
  color: #5f6b76;
  font-size: 11.5px;
  letter-spacing: 0.2px;
}



/* ========================= PRIMARY NAV ========================= */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-item.is-open .nav-link {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.nav-item.is-open .nav-link {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
   color: #475569;
  transition: transform 180ms ease;
}

.nav-item.is-open .nav-arrow {
  transform: rotate(180deg);
}

/* ========================= ACTIONS ========================= */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-action,
.header-cta {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.header-action-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.header-action-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  background: #ffffff;
  color: #0f172a;
}

.header-cta {
  background: #b7df52;
  color: #16210f;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 26px rgba(183, 223, 82, 0.22);
}

.header-cta:hover {
  transform: translateY(-1px);
  background: #addb42;
  color: #11180d;
}

/* ========================= PANELS WRAPPER ========================= */
.mega-panels {
  position: fixed;
  left: 0;
  top: 94px;
  width: 100%;
  pointer-events: none;
  z-index: 1190;
}

.mega-panel {
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(1240px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 240ms ease;
  pointer-events: none;
  overflow: auto;
}

.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-panel-inner {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  max-width: 100%;
}

.mega-main {
  display: grid;
  min-height: 100%;
}

.mega-layout-wide {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.mega-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.mega-groups-two {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.mega-group {
  padding: 34px 28px 30px;
  min-width: 0;
}

.mega-group + .mega-group {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.mega-groups-two .mega-group:nth-child(2) {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.mega-label {
  display: block;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

/* ========================= ROWS ========================= */
.mega-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 14px;
  margin: 0 -14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mega-row + .mega-row {
  margin-top: 4px;
}

.mega-row:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.mega-row-featured {
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.mega-row-featured:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.mega-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex: 0 0 auto;
}

.mega-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mega-copy strong {
  display: block;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mega-copy small {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

/* ========================= PROMO AREA ========================= */
.mega-promo {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(255, 255, 255, 1) 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-promo-static {
  gap: 16px;
}

.mega-promo-card {
  min-height: 270px;
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(183, 223, 82, 0.18) 0%,
    rgba(255, 255, 255, 0.98) 38%,
    rgba(248, 250, 252, 0.98) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: inherit;
}

.promo-tag {
  display: inline-flex;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(183, 223, 82, 0.24);
  color: #23310b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-items: center;
}

.mega-promo-card strong,
.mega-slide strong {
  font-size: 1.24rem;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.mega-promo-card > span:last-child,
.mega-slide > span:last-child {
  color: #1e293b;
  font-size: 0.96rem;
  line-height: 1.6;
}

.mega-promo-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.mega-promo-link:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* ========================= SLIDER CARDS ========================= */
.mega-slider {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
}

.mega-slide {
  position: absolute;
  inset: 0;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  background-color: #f8fafc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mega-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.24) 34%,
    rgba(255, 255, 255, 0.94) 100%
  );
}

.mega-slide > * {
  position: relative;
  z-index: 1;
}

.mega-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* ========================= COMPACT PANELS ========================= */
.mega-panel-compact {
  width: min(760px, calc(100vw - 32px));
}

.mega-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mega-compact-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-compact .mega-group,
.mega-compact-two .mega-group {
  padding: 28px 24px 24px;
}

.mega-compact-two .mega-group + .mega-group {
  border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.mega-panel-compact .mega-row {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 13px 14px;
}

.mega-panel-compact .mega-copy strong {
  font-size: 0.98rem;
}

.mega-panel-compact .mega-copy small {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ========================= HOVER / FOCUS ACCESSIBILITY ========================= */
.nav-link:focus-visible,
.header-action:focus-visible,
.header-cta:focus-visible,
.mega-row:focus-visible,
.mega-promo-card:focus-visible,
.mega-promo-link:focus-visible,
.mega-slide:focus-visible,
.panel-toggle:focus-visible {
  outline: 3px solid rgba(183, 223, 82, 0.55);
  outline-offset: 2px;
}

/* ========================= SCROLLED STATE ========================= */
.site-header.is-scrolled .header-inner {
  min-height: 78px;
}

/* ========================= REDUCED MOTION ========================= */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-arrow,
  .header-action,
  .header-cta,
  .mega-panel,
  .mega-row,
  .mega-promo-link,
  .mega-slide {
    transition: none !important;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  margin-top: 88px;
  background:
    linear-gradient(
      180deg,
      #0b1322 0%,
      #111c31 48%,
      #16253d 100%
    );
  color: #d7e2ee;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(183, 223, 82, 0) 0%,
    rgba(183, 223, 82, 0.35) 50%,
    rgba(183, 223, 82, 0) 100%
  );
  opacity: 0.9;
}

.footer-shell {
  max-width: 1560px;
  width: min(1560px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-top: 38px;
  padding-bottom: 22px;
}

/* ========================= TOP ========================= */
.footer-top {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

/* ========================= BRAND CARD ========================= */
.footer-brand-card {
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 44px rgba(0,0,0,0.18);
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.footer-logo-image {
  width: 49px;
  height: 49px;
  object-fit: contain;
  display: block;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  letter-spacing: -0.035em;
  text-rendering: optimizeLegibility;
}

.footer-brand-webs {
  color: #72CEFD;
  font-size: 1.66rem;
  font-weight: 630;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-brand-docs {
  color: #6f8092;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 450;
}

.footer-brand-text {
  margin: 20px 0 0;
  color: #dbe4ee;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 58ch;
}

/* ========================= CTA ========================= */
.footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.footer-btn-primary {
  background: #b7df52;
  color: #111827;
  box-shadow: 0 12px 28px rgba(183, 223, 82, 0.24);
}

.footer-btn-primary:hover {
  transform: translateY(-1px);
  background: #c5e864;
}

.footer-btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.footer-btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}

/* ========================= CONTACT / SOCIAL ========================= */
.footer-contact-row {
  margin-top: 18px;
}

.footer-email-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 180ms ease;
}

.footer-email-link:hover {
  color: #b7df52;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe4ee;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}

.social-btn.linkedin:hover { color: #0A66C2; }
.social-btn.youtube:hover { color: #FF0000; }
.social-btn.github:hover { color: #ffffff; }
.social-btn.x:hover { color: #ffffff; }

/* ========================= LINKS AREA ========================= */
.footer-links-area {
  min-width: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 28px 26px;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-col li {
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-col a:hover {
  color: #b7df52;
  transform: translateX(3px);
}

/* ========================= DIVIDER ========================= */
.footer-divider {
  height: 1px;
  margin: 34px 0 18px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.04) 100%
  );
}

/* ========================= BOTTOM ========================= */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding-top: 2px;
}

.footer-bottom-left {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-bottom-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 180ms ease;
}

.footer-bottom-links a:hover {
  color: #b7df52;
}
