/*
Theme Name: 360systems Landing
Theme URI: https://www.360systems.org
Author: 360systems
Description: Minimal multilingual 360systems brand gateway.
Version: 4.0.2
Text Domain: systems360
*/

:root {
  --black: #0b0b0c;
  --ink: #141416;
  --paper: #f5f5f2;
  --white: #ffffff;
  --red: #e72820;
  --red-dark: #c91e18;
  --muted: #68686d;
  --line: rgba(20, 20, 22, 0.14);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection { color: var(--white); background: var(--red); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(245,245,242,0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 242px;
  display: block;
  text-decoration: none;
}

.brand img { width: 100%; height: auto; }

.language-select { position: relative; }

.language-select::after {
  position: absolute;
  top: 50%;
  right: 15px;
  content: "⌄";
  color: var(--ink);
  font-size: 0.8rem;
  pointer-events: none;
  transform: translateY(-58%);
}

.language-select select {
  min-width: 84px;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-select select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.landing {
  min-height: calc(100svh - 95px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 62px 0 50px;
}

.hero { width: 100%; text-align: center; }

.logo-stage {
  width: min(760px, 86vw);
  margin: 0 auto;
}

.logo-stage img { width: 100%; height: auto; }

.prompt {
  margin: 34px 0 22px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.routes {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto;
}

.route {
  min-height: 126px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  color: var(--white);
  text-align: left;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.route:hover,
.route:focus-visible { transform: translateY(-3px); }
.route:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.route-cwc { background: var(--black); }
.route-cwc:hover { background: #202023; }
.route-console { background: var(--red); }
.route-console:hover { background: var(--red-dark); }

.route-logo {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
}

.route-cwc .route-logo img { width: 48px; height: auto; }
.route-console .route-logo { overflow: hidden; background: var(--white); }
.route-console .route-logo img { width: 100%; height: 100%; object-fit: cover; }

.route-copy small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.62);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.route-copy strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
}

.route-arrow { font-size: 1.2rem; transition: transform 180ms ease; }
.route:hover .route-arrow { transform: translate(2px, -2px); }

.site-footer {
  padding: 23px 0;
  color: var(--white);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-of {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.56);
  font-size: 0.7rem;
}

.brand-of img { width: 38px; height: auto; }
.copyright { color: rgba(255,255,255,0.48); font-size: 0.7rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 680px) {
  :root { --shell: calc(100% - 24px); }
  .site-header { min-height: 76px; }
  .brand { width: 174px; }
  .language-select select { min-width: 78px; width: 78px; padding-left: 9px; }
  .language-select::after { right: 8px; }
  .landing { min-height: auto; padding: 48px 0 40px; }
  .logo-stage { width: 100%; }
  .prompt { margin: 30px 0 18px; font-size: 0.64rem; }
  .routes { grid-template-columns: 1fr; }
  .route { min-height: 110px; grid-template-columns: 58px 1fr auto; padding: 18px; }
  .route-logo { width: 58px; height: 58px; }
  .route-cwc .route-logo img { width: 42px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
