/* STG Industrial Services and Trading — Under construction */

:root {
  --green: #306030;
  --green-600: #3b7a3b;
  --green-soft: #e9f1e7;
  --navy: #14112e;
  --navy-800: #1d1a3d;
  --steel: #5b6070;
  --rule: #e3e5ea;
  --paper: #ffffff;
  --signal: #9ccc65;

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;

  --pad: clamp(1.5rem, 4.5vw, 4.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, p, dl, dd, address { margin: 0; }
address { font-style: normal; }
[lang="ar"] { font-family: var(--font-ar); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Content panel ---------- */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--pad) clamp(1.25rem, 3vh, 2rem);
  background: var(--paper);
}

.panel__head { display: flex; align-items: center; }

.logo {
  height: clamp(4.25rem, 8.5vh, 5.5rem);
  width: auto;
}

.panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
  padding-block: clamp(2rem, 6vh, 3.5rem);
}

/* Status chip */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.4rem;
}

.chip__gear {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: spin 6s linear infinite;
}

.chip__ar {
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Headline */

.headline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.headline em {
  font-style: normal;
  color: var(--green);
  white-space: nowrap;
}

.headline-ar {
  margin-top: 0.9rem;
  width: fit-content;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
}

.lead {
  margin-top: 1.1rem;
  max-width: 33rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--steel);
}

/* Work-in-progress bar */

.wip {
  max-width: 26rem;
  margin-top: 1.75rem;
}

.wip__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.wip__meta span:first-child { color: var(--green); }

.wip__track {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: var(--rule);
}

.wip__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: repeating-linear-gradient(-45deg, var(--green) 0 8px, var(--navy) 8px 16px);
  animation: sweep 2.6s var(--ease) infinite;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--navy); }
.btn--solid:hover svg { transform: translateX(3px); }

.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }

/* Footer facts */

.panel__foot {
  max-width: 44rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.facts {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.5rem;
}

.facts dt {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.facts dd a {
  display: inline-block;
  padding-block: 0.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.facts dd a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--steel);
}

/* ---------- Visual panel ---------- */

.visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.5rem, 3.5vw, 3rem);
  overflow: hidden;
  color: var(--navy);
  background: var(--paper);
}

.visual > * { position: relative; z-index: 1; }

.visual__gear {
  position: absolute !important;
  z-index: 0 !important;
  top: -12%;
  right: -20%;
  width: 34rem;
  max-width: none;
  fill: none;
  stroke: rgba(48, 96, 48, 0.28);
  stroke-width: 0.6;
  animation: spin 80s linear infinite;
}
.visual__gear-ring { stroke-dasharray: 2 4; stroke: rgba(20, 17, 46, 0.22); }

.visual__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.visual__place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.visual__place svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}

.visual__clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.visual__clock-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.visual__clock time {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.visual__mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--green);
  user-select: none;
}

/* Office card */

.office {
  padding: 1.35rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--signal);
  box-shadow: 0 28px 56px -30px rgba(20, 17, 46, 0.6);
}

.office__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.office__addr {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
}

.office__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.office__link:hover { color: var(--signal); }
.office__link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.2s var(--ease);
}
.office__link:hover svg { transform: translate(2px, -2px); }

.office__ar {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Email chooser ---------- */

.mail-menu {
  position: fixed;
  z-index: 50;
  width: 16rem;
  padding: 0.375rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  box-shadow: 0 24px 48px -20px rgba(20, 17, 46, 0.45);
  animation: menu-in 0.18s var(--ease);
}
.mail-menu[hidden] { display: none; }

.mail-menu__addr {
  padding: 0.55rem 0.75rem 0.6rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  overflow-wrap: anywhere;
}

.mail-menu__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.mail-menu__item:hover,
.mail-menu__item:focus-visible {
  background: var(--green-soft);
  color: var(--green);
  outline-offset: -2px;
}
.mail-menu__item svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Motion ---------- */

.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 80ms + 80ms);
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .wip__bar { transform: none; width: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .visual { min-height: 32rem; gap: 2rem; }
  .visual__gear { width: 26rem; top: -10%; right: -30%; }
}

@media (max-width: 560px) {
  .logo { height: auto; width: min(100%, 16rem); }
  .panel__body { padding-block: 2.25rem; }
  .chip { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .headline { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .actions .btn { flex: 1 1 9rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .visual { min-height: 28rem; }
  .visual__mark { font-size: 6.5rem; }
}
