/* Globomantics storefront. Colors and font come from the official Globomantics asset bundle. */

@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #1B526D;
  --teal: #51B5B1;
  --green: #528C81;
  --orange: #F05A28;
  --magenta: #E80A89;
  --grey: #9C9C9C;
  --light: #F2F2F2;
  --ink: #212121;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.45;
}

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { background: var(--blue); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { display: block; height: 40px; width: auto; }
.main-nav { display: flex; gap: 36px; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 17px; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav a.active, .main-nav a:hover { border-bottom-color: var(--teal); }

/* Status band: always visible right under the header */
.status-band { background: var(--light); border-bottom: 1px solid #E0E0E0; }
.status-row { display: flex; gap: 56px; align-items: center; height: 64px; }
.status-item { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.status-item .label { color: #555555; }
.status-item .value { font-weight: 700; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--teal); }
.dot.warn { background: var(--orange); }
.dot.bad { background: var(--magenta); }
.dot.off { background: var(--grey); }

/* Hero strip */
.hero {
  background: linear-gradient(90deg, rgba(27, 82, 109, 0.92) 0%, rgba(27, 82, 109, 0.55) 45%, rgba(27, 82, 109, 0) 75%),
              url("../img/hero-robotics.webp") center / cover no-repeat;
  color: var(--white);
}
.hero .wrap { height: 190px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 8px; font-size: 34px; font-weight: 700; }
.hero p { margin: 0; font-size: 18px; max-width: 820px; }

/* Orders */
.orders { flex: 1; width: 100%; padding-top: 22px; padding-bottom: 28px; }
.orders h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; color: var(--blue); }
.order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.order-card { border: 1px solid #E0E0E0; border-radius: 6px; overflow: hidden; background: var(--white); }
.order-card img { display: block; width: 100%; height: 150px; object-fit: cover; }
.order-body { padding: 14px 16px 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.order-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.order-meta { margin: 2px 0; font-size: 15px; color: #444444; }

.badge { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; color: var(--white); white-space: nowrap; }
.status-ordered { background: var(--grey); }
.status-packed { background: var(--orange); }
.status-shipped { background: var(--blue); }
.status-delivered { background: var(--green); }

/* Order tracking (feature flag) */
.tracker { list-style: none; display: flex; margin: 12px 0 0; padding: 0; }
.tracker li { flex: 1; position: relative; padding-top: 16px; font-size: 12px; text-align: center; color: var(--grey); font-weight: 600; }
.tracker li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: #DDDDDD; }
.tracker li::after { content: ""; position: absolute; top: 0; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #DDDDDD; }
.tracker li.done { color: var(--blue); }
.tracker li.done::before, .tracker li.done::after { background: var(--teal); }

.notice { padding: 18px 22px; border-radius: 6px; font-size: 18px; font-weight: 600; }
.notice.warn { background: #FDE9E1; color: #8A2E0E; border-left: 6px solid var(--orange); }
.notice.bad { background: #FCE4F1; color: #7A0548; border-left: 6px solid var(--magenta); }

/* Footer */
.site-footer { background: var(--blue); color: var(--white); }
.site-footer p { margin: 0; padding: 18px 0; font-size: 14px; }

@media (max-width: 1100px) {
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .status-row { gap: 28px; }
}
