/*
Theme Name: StackLabs Onepage
Author: Codex
Description: Single-screen home lab landing page for StackLabs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: stacklabs-onepage
*/

:root {
  --text: #f5fbff;
  --muted: #a5b8bf;
  --cyan: #58e6ff;
  --green: #85ffb8;
  --amber: #ffc66d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #070a0d;
}

body {
  min-height: 100svh;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center start;
  width: 100vw;
  height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(24px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(2, 5, 8, 0.92) 0%, rgba(2, 5, 8, 0.74) 38%, rgba(2, 5, 8, 0.22) 72%, rgba(2, 5, 8, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 5, 8, 0.68), rgba(2, 5, 8, 0.06) 38%, rgba(2, 5, 8, 0.48)),
    url("assets/hero-bg-first.jpg") center right / cover no-repeat;
}

.brand-panel {
  width: min(72vw, 920px);
  max-width: calc(100vw - 2 * clamp(24px, 7vw, 96px));
}

.brand-logo {
  display: block;
  width: min(100%, 880px);
  max-height: 42svh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 22px rgba(88, 230, 255, 0.18));
}

.signal-line {
  width: min(440px, 78vw);
  height: 1px;
  margin-top: clamp(18px, 3vh, 32px);
  background: linear-gradient(90deg, rgba(88, 230, 255, 0), rgba(88, 230, 255, 0.84), rgba(133, 255, 184, 0.42), rgba(88, 230, 255, 0));
  box-shadow: 0 0 18px rgba(88, 230, 255, 0.34);
}

.services-lead {
  width: min(680px, 100%);
  margin: clamp(16px, 2.8vh, 26px) 0 0;
  color: rgba(245, 251, 255, 0.9);
  font-size: clamp(15px, 1.65vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(760px, 100%);
  margin: clamp(12px, 2vh, 18px) 0 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(88, 230, 255, 0.28);
  background: rgba(3, 9, 13, 0.48);
  color: rgba(245, 251, 255, 0.84);
  box-shadow: 0 0 16px rgba(88, 230, 255, 0.08), inset 0 0 12px rgba(133, 255, 184, 0.04);
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.2;
  white-space: nowrap;
}

.services-list li:nth-child(2n) {
  border-color: rgba(133, 255, 184, 0.26);
}

.site-footer {
  position: absolute;
  left: clamp(14px, 2.8vw, 36px);
  right: clamp(14px, 2.8vw, 36px);
  bottom: clamp(12px, 2.4vw, 28px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: rgba(245, 251, 255, 0.78);
  font-size: clamp(10px, 1.05vw, 13px);
  line-height: 1.35;
  letter-spacing: 0;
  pointer-events: none;
}

.footer-copy {
  max-width: 58vw;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 38vw;
  color: rgba(245, 251, 255, 0.88);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  white-space: nowrap;
}

.footer-contact:hover {
  color: #58e6ff;
}

.footer-mail-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(88, 230, 255, 0.4));
}

@media (max-width: 1100px) {
  .site-shell {
    padding: clamp(22px, 6vw, 64px);
    background:
      linear-gradient(90deg, rgba(2, 5, 8, 0.9) 0%, rgba(2, 5, 8, 0.72) 44%, rgba(2, 5, 8, 0.18) 100%),
      linear-gradient(0deg, rgba(2, 5, 8, 0.68), rgba(2, 5, 8, 0.08) 40%, rgba(2, 5, 8, 0.48)),
      url("assets/hero-bg-first.jpg") 64% center / cover no-repeat;
  }

  .brand-panel {
    width: min(76vw, 760px);
    max-width: calc(100vw - 2 * clamp(22px, 6vw, 64px));
  }
}

@media (max-width: 760px) {
  .site-shell {
    place-items: center;
    padding: clamp(18px, 6vw, 28px);
    background:
      linear-gradient(90deg, rgba(2, 5, 8, 0.88), rgba(2, 5, 8, 0.56)),
      linear-gradient(0deg, rgba(2, 5, 8, 0.86), rgba(2, 5, 8, 0.16) 48%, rgba(2, 5, 8, 0.58)),
      url("assets/hero-bg-first.jpg") 66% center / cover no-repeat;
  }

  .brand-panel {
    width: 100%;
    max-width: 560px;
  }

  .brand-logo {
    width: 100%;
    max-height: 28svh;
  }

  .signal-line {
    width: min(78vw, 340px);
    margin-inline: auto;
  }

  .services-lead {
    width: 100%;
    margin-top: 14px;
    text-align: center;
    font-size: clamp(13px, 3.4vw, 17px);
  }

  .services-list {
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
  }

  .services-list li {
    min-height: 26px;
    padding: 5px 8px;
    font-size: clamp(9px, 2.45vw, 11px);
  }

  .site-footer {
    align-items: flex-end;
    font-size: clamp(9px, 2.2vw, 11px);
    gap: 10px;
  }

  .footer-copy {
    max-width: 52vw;
  }

  .footer-contact {
    max-width: 42vw;
    gap: 6px;
  }

  .footer-mail-icon {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}

@media (max-width: 420px) {
  .site-shell {
    padding: 18px;
  }

  .brand-logo {
    max-height: 24svh;
  }

  .services-lead {
    font-size: 12px;
  }

  .services-list {
    gap: 5px;
  }

  .services-list li {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .site-footer {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 9px;
    gap: 8px;
  }

  .footer-copy {
    max-width: 50vw;
  }

  .footer-contact {
    max-width: 44vw;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .site-shell {
    place-items: center start;
    padding: 18px 8vw;
  }

  .brand-panel {
    width: min(58vw, 560px);
  }

  .brand-logo {
    max-height: 58svh;
  }

  .signal-line {
    margin-top: 12px;
  }

  .services-lead {
    margin-top: 10px;
    font-size: 12px;
  }

  .services-list {
    gap: 5px;
    margin-top: 8px;
  }

  .services-list li {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 9px;
  }
}
