/*
Theme Name: StarTrack
Theme URI: https://wordpress.dev/
Author: skyyware
Description: A restrained WordPress theme for the fictional Stuttgart agency StarTrack.
Version: 0.1.0
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.3
Text Domain: startrack
*/

@font-face {
  font-display: swap;
  font-family: "D-DIN";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/D-DIN.woff2") format("woff2");
}

:root {
  --st-black: #050505;
  --st-ink: #0b0c0d;
  --st-panel: rgba(255, 255, 255, 0.045);
  --st-line: rgba(255, 255, 255, 0.16);
  --st-line-strong: rgba(255, 255, 255, 0.34);
  --st-white: #f4f5f6;
  --st-muted: #b2b7bc;
  --st-blue: #9fb7c9;
  --st-amber: #d8d0bd;
  --st-accent: #d7dce0;
  --st-font-body: "D-DIN", "DIN_Regular", "Roboto", Arial, Verdana, Geneva, sans-serif;
  --st-font-display: "D-DIN", "DIN_Regular", "Roboto", Arial, Verdana, Geneva, sans-serif;
  --st-max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--st-black);
  color: var(--st-white);
  font-family: var(--st-font-body);
  letter-spacing: 0;
}

a {
  color: inherit;
  font-family: var(--st-font-display);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.st-site {
  min-height: 100vh;
  overflow-x: clip;
}

.st-header {
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0));
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 24px clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.st-brand {
  align-items: center;
  display: flex;
  font-family: var(--st-font-display);
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.st-brand__mark {
  aspect-ratio: 1;
  border: 1px solid var(--st-white);
  display: inline-grid;
  place-items: center;
  width: 28px;
}

.st-brand__mark::before {
  background: var(--st-white);
  content: "";
  height: 2px;
  transform: rotate(-28deg);
  width: 16px;
}

.st-nav {
  display: flex;
  gap: 24px;
}

.st-nav a,
.st-language-switcher,
.st-header__cta {
  font-family: var(--st-font-display);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-header__tools {
  align-items: center;
  display: flex;
  gap: 18px;
}

.st-language-switcher {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  min-height: 38px;
  position: relative;
  z-index: 30;
}

.st-language-switcher summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  list-style: none;
  min-height: 38px;
  padding: 0 12px;
}

.st-language-switcher summary::-webkit-details-marker {
  display: none;
}

.st-language-switcher summary::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(244, 245, 246, 0.72);
  content: "";
  margin-left: 2px;
}

.st-language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.st-language-switcher__label {
  color: rgba(244, 245, 246, 0.64);
  font-size: 10px;
}

.st-language-switcher__current {
  color: var(--st-white);
  min-width: 20px;
}

.st-language-switcher__menu {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  position: absolute;
  right: -1px;
  top: calc(100% + 8px);
  z-index: 40;
}

.st-language-switcher a {
  align-items: center;
  color: rgba(244, 245, 246, 0.76);
  display: grid;
  gap: 14px;
  grid-template-columns: 38px 1fr;
  justify-content: start;
  min-height: 34px;
  padding: 0 10px;
}

.st-language-switcher a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--st-white);
}

.st-language-switcher a span {
  color: var(--st-white);
}

.st-language-switcher a strong {
  font-size: 12px;
  font-weight: 750;
}

.st-header__cta {
  border: 1px solid rgba(255, 255, 255, 0.58);
  padding: 11px 16px;
}

.st-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.36) 50%, rgba(5, 5, 5, 0.72)),
    linear-gradient(0deg, rgba(5, 5, 5, 1), rgba(5, 5, 5, 0) 38%),
    var(--st-hero-image);
  background-position: center;
  background-size: cover;
  min-height: 100svh;
  padding: 148px clamp(20px, 5vw, 64px) 48px;
  position: relative;
}

.st-hero__inner,
.st-section__inner,
.st-footer__inner {
  margin: 0 auto;
  max-width: var(--st-max);
}

.st-hero__content {
  display: grid;
  min-height: calc(100vh - 196px);
  place-items: end start;
}

.st-kicker {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.st-hero h1 {
  font-family: var(--st-font-display);
  font-size: clamp(38px, 5.85vw, 78px);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  max-width: 760px;
  text-transform: uppercase;
}

.st-hero__copy {
  color: #dce1e5;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.44;
  margin: 26px 0 0;
  max-width: 640px;
}

.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.st-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.46);
  display: inline-flex;
  font-family: var(--st-font-display);
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.12em;
  min-height: 48px;
  padding: 0 20px;
  text-transform: uppercase;
}

.st-button--solid {
  background: var(--st-white);
  border-color: var(--st-white);
  color: var(--st-black);
}

.st-metrics {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.st-metric {
  padding: 0;
}

.st-metric strong {
  display: block;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.st-metric span {
  color: #aeb4ba;
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  margin-top: 14px;
  text-transform: uppercase;
}

.st-section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 64px);
}

.st-section--border {
  border-top: 1px solid var(--st-line);
}

.st-section__head {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.48fr);
  margin-bottom: 48px;
}

.st-section h2 {
  font-family: var(--st-font-display);
  font-size: clamp(30px, 3.85vw, 54px);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  max-width: 820px;
  text-transform: uppercase;
}

.st-section__lead {
  color: #c7ccd1;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

.st-grid {
  background: rgba(106, 142, 162, 0.34);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.st-card {
  background:
    linear-gradient(135deg, rgba(19, 53, 76, 0.82), rgba(9, 12, 14, 0.96)),
    #0a0d0f;
  border: 0;
  min-height: 236px;
  padding: 24px;
  position: relative;
}

.st-card::before {
  background: var(--st-blue);
  content: "";
  height: 3px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 0;
}

.st-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(47, 52, 41, 0.86), rgba(10, 12, 11, 0.96)),
    #0a0d0f;
}

.st-card:nth-child(2)::before {
  background: #d8d0bd;
}

.st-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(28, 43, 39, 0.86), rgba(10, 12, 11, 0.96)),
    #0a0d0f;
}

.st-card:nth-child(3)::before {
  background: #9db8a8;
}

.st-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(48, 38, 52, 0.8), rgba(10, 11, 13, 0.96)),
    #0a0d0f;
}

.st-card:nth-child(4)::before {
  background: #c4adc8;
}

.st-card__index {
  color: var(--st-accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 34px;
}

.st-card h3 {
  font-family: var(--st-font-display);
  font-size: 20px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.st-card p,
.st-copy p {
  color: var(--st-muted);
  line-height: 1.6;
  margin: 0;
}

.st-mission {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
}

.st-mission__image {
  background: var(--st-ink);
  min-height: 540px;
  overflow: hidden;
}

.st-mission__image img {
  height: 100%;
  filter: contrast(1.03);
  object-fit: cover;
  width: 100%;
}

.st-copy {
  background: #080808;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 70px);
}

.st-copy h2 {
  font-family: var(--st-font-display);
  font-size: clamp(30px, 3.8vw, 50px);
}

.st-copy h2 + p {
  margin-top: 28px;
}

.st-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.st-list li {
  display: grid;
  gap: 16px;
  grid-template-columns: 132px 1fr;
  padding: 20px 0;
}

.st-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.st-list strong {
  color: var(--st-white);
  font-family: var(--st-font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-list span {
  color: var(--st-muted);
  line-height: 1.5;
}

.st-band {
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.34)),
    var(--st-signal-image);
  background-position: center;
  background-size: cover;
  border-block: 1px solid var(--st-line);
  padding: clamp(82px, 11vw, 144px) clamp(20px, 5vw, 64px);
}

.st-band__content {
  margin: 0 auto;
  max-width: var(--st-max);
}

.st-band h2 {
  font-family: var(--st-font-display);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  max-width: 900px;
  text-transform: uppercase;
}

.st-band p {
  color: #d7dce0;
  font-size: 19px;
  line-height: 1.5;
  max-width: 660px;
}

.st-contact {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.62fr);
}

.st-contact .st-section__lead {
  margin-top: 28px;
}

.st-lead-console {
  background: #080808;
  border: 1px solid var(--st-line-strong);
  padding: clamp(24px, 4vw, 40px);
}

.st-form-status {
  border: 1px solid rgba(116, 183, 255, 0.45);
  color: #dbeafe;
  margin: 0 0 20px;
  padding: 14px 16px;
}

.st-form-status--warning {
  border-color: rgba(231, 199, 123, 0.5);
  color: #f6e7bb;
}

.st-lead-form {
  display: grid;
  gap: 18px;
}

.st-lead-form label {
  display: grid;
  gap: 8px;
}

.st-lead-form span {
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-lead-form input,
.st-lead-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--st-line);
  color: var(--st-white);
  font: inherit;
  padding: 15px 14px;
  width: 100%;
}

.st-lead-form input:focus,
.st-lead-form textarea:focus {
  border-color: var(--st-white);
  outline: 0;
}

.st-lead-form button {
  background: var(--st-white);
  border: 0;
  color: var(--st-black);
  cursor: pointer;
  font-family: var(--st-font-display);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  min-height: 52px;
  text-transform: uppercase;
}

.st-honeypot {
  display: none;
}

.st-footer {
  border-top: 1px solid var(--st-line);
  color: var(--st-muted);
  padding: 30px clamp(20px, 5vw, 64px);
}

.st-footer__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.st-footer strong,
.st-footer span {
  color: var(--st-white);
  font-family: var(--st-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[dir="rtl"] .st-language-switcher__menu {
  left: -1px;
  right: auto;
}

html[dir="rtl"] .st-section__head,
html[dir="rtl"] .st-contact,
html[dir="rtl"] .st-mission,
html[dir="rtl"] .st-list li {
  direction: rtl;
}

.st-lang-zh,
.st-lang-ar {
  --st-font-body: "D-DIN", "DIN_Regular", "Roboto", Arial, "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  --st-font-display: "D-DIN", "DIN_Regular", "Roboto", Arial, "Noto Sans SC", "Noto Sans Arabic", sans-serif;
}

@media (max-width: 860px) {
  .st-header {
    align-items: flex-start;
    gap: 16px;
    position: absolute;
  }

  .st-nav {
    display: none;
  }

  .st-header__cta {
    display: none;
  }

  .st-header__tools {
    margin-left: auto;
  }

  .st-language-switcher {
    min-height: 34px;
  }

  .st-language-switcher__label {
    display: none;
  }

  .st-language-switcher summary {
    min-height: 34px;
    padding: 0 10px;
  }

  .st-language-switcher__menu {
    max-width: calc(100vw - 40px);
    min-width: 190px;
  }

  .st-language-switcher a {
    min-height: 34px;
  }

  .st-hero {
    min-height: 760px;
  }

  .st-hero__content {
    min-height: 580px;
  }

  .st-metrics,
  .st-grid,
  .st-mission,
  .st-contact,
  .st-section__head {
    grid-template-columns: 1fr;
  }

  .st-metric {
    padding: 0;
  }

  .st-card {
    min-height: 220px;
  }

  .st-mission__image {
    min-height: 360px;
  }

  .st-list li {
    grid-template-columns: 1fr;
  }

  .st-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
