/* ============================================================
   WinLi Technology Sdn. Bhd. — static recreation
   Rebuilt from the live WordPress "athropod" theme
   ============================================================ */

:root {
  --orange-light: #f9a03a;
  --orange:       #f37f12;
  --orange-dark:  #c8500a;
  --orange-edge:  #8f3703;
  --hover:        #ff975f;
  --text:         #bfbfbf;
  --panel:        #141414;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--text);
  background-color: #000;
  background-image:
    radial-gradient(ellipse 900px 620px at 50% 300px, #4a4a4a 0%, #262626 38%, #101010 62%, #000 82%);
  background-repeat: no-repeat;
  background-position: center 0;
  background-attachment: fixed;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--hover); }

p, ul, ol { margin-top: 0; line-height: 180%; }

h1, h2, h3 { margin: 0; padding: 0; font-weight: normal; }

/* ---------- layout shell ---------- */

#wrapper {
  width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- header / logo ---------- */

#header {
  width: 940px;
  height: 92px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
}

#logo { float: left; padding-left: 10px; }

#logo a {
  display: block;
  width: 260px;
  height: 92px;
  text-indent: -9999px;
  overflow: hidden;
  background: url("../images/winli-logo.svg") 0 4px no-repeat;
  background-size: 232px auto;
}

/* ---------- main navigation ---------- */

#menu {
  width: 960px;
  height: 46px;
  margin: 0 auto;
  padding: 5px 10px;
  background: linear-gradient(to bottom, #fbb040 0%, #f2861a 45%, #e26a0c 55%, #c4500a 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45),
              0 2px 6px rgba(0, 0, 0, .65);
}

#menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 36px;
}

#menu li { float: left; margin: 0; padding: 0; }

#menu a {
  display: block;
  height: 36px;
  line-height: 36px;
  padding: 0 22px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
  border: 1px solid transparent;
  border-radius: 3px;
}

#menu a:hover { color: #fff5e8; background: rgba(0, 0, 0, .18); }

#menu li.current a {
  background: linear-gradient(to bottom, #e2680a 0%, #f0872a 100%);
  border: 1px solid #f8c179;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  color: #fff;
}

/* ---------- page body ---------- */

#page {
  width: 940px;
  margin: 0 auto;
  padding: 28px 10px 0;
  overflow: hidden;
}

#sidebar {
  float: left;
  width: 280px;
  margin: 0;
  padding: 0;
}

#content {
  float: right;
  width: 620px;
  padding-bottom: 30px;
}

/* ---------- sidebar widgets ---------- */

.widget { margin-bottom: 34px; }

.widgettitle {
  height: 38px;
  line-height: 38px;
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  background: linear-gradient(to bottom, #fbb040 0%, #f2861a 45%, #e26a0c 55%, #c4500a 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

.widget ul { margin: 0; padding: 0 0 0 24px; list-style: none; }

.widget li { margin: 0; padding: 0; }

.widget li a {
  display: block;
  padding: 9px 0 9px 12px;
  border-bottom: 1px dotted #4a4a4a;
  line-height: 140%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='9'><path d='M0 0 L6 4.5 L0 9 Z' fill='%23a8a8a8'/></svg>") 0 13px no-repeat;
}

.widget li a:hover { color: var(--hover); }

.widget li a .desc {
  display: block;
  font-size: 11px;
  color: #7d7d7d;
  line-height: 150%;
  padding-top: 3px;
}

/* ---------- content typography ---------- */

#content h1.pagetitle {
  font-size: 26px;
  color: #fff;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dotted #4a4a4a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

#content h2 {
  font-size: 17px;
  font-weight: bold;
  color: var(--orange-light);
  margin: 26px 0 10px;
}

#content p { margin: 0 0 14px; }

.dashlist { margin: 0 0 20px; padding: 0; list-style: none; }

.dashlist li {
  padding: 5px 0 5px 22px;
  border-bottom: 1px dotted #333;
  line-height: 165%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='2'><rect width='10' height='2' fill='%23f2861a'/></svg>") 0 14px no-repeat;
}

/* ---------- rotator (home page) ---------- */

#rotator {
  position: relative;
  width: 620px;
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

#rotator .frame {
  position: relative;
  width: 620px;
  height: 320px;
  overflow: hidden;
  background: #0d0d0d;
}

#rotator .frame img {
  position: absolute;
  inset: 0;
  width: 620px;
  height: 320px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

#rotator .frame img.active { opacity: 1; }

#rotator .caption {
  padding: 14px 16px;
  background: #1c1c1c;
  color: #efefef;
  font-size: 12px;
  border-top: 1px solid #000;
}

#rotator .dots {
  position: absolute;
  right: 12px;
  top: 292px;
  z-index: 5;
}

#rotator .dots span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

#rotator .dots span.on { background: var(--orange); }

/* placeholder shown when a photo file is not present */
.imgfallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #6a6a6a;
  font-size: 11px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #161616 0 12px, #1b1b1b 12px 24px);
  border: 1px solid #2a2a2a;
}

.missing .imgfallback { display: flex; }
.missing img { visibility: hidden; }

/* ---------- product grid (brick and electronics) ---------- */

.catgroup { margin: 0 0 28px; }

.catgroup h2 { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.grid figure {
  margin: 0;
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 6px;
  text-align: center;
}

.grid .thumb {
  position: relative;
  width: 100%;
  height: 96px;
  background: #0e0e0e;
  overflow: hidden;
}

.grid .thumb img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  display: block;
}

.grid figcaption {
  font-size: 10px;
  line-height: 130%;
  color: #9a9a9a;
  padding: 6px 2px 2px;
  min-height: 30px;
}

/* ---------- news ---------- */

.newsitem {
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px dotted #3a3a3a;
}

.newsitem h2 { margin: 0 0 10px; }

.newsitem .video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
}

.newsitem .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- contact ---------- */

.contactbox {
  background: #131313;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 26px;
  line-height: 185%;
}

.contactbox strong { color: #fff; font-size: 13px; }

.contactbox a { color: var(--orange-light); }

form.cform { max-width: 460px; }

form.cform p { margin: 0 0 14px; }

form.cform label {
  display: block;
  margin-bottom: 5px;
  color: #d8d8d8;
}

form.cform label .req { color: var(--orange-light); font-size: 11px; }

form.cform input[type="text"],
form.cform input[type="email"],
form.cform input[type="url"],
form.cform textarea {
  width: 100%;
  padding: 7px 8px;
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  color: #e8e8e8;
  font: 12px Arial, Helvetica, sans-serif;
}

form.cform textarea { height: 130px; resize: vertical; }

form.cform button {
  padding: 9px 26px;
  border: 1px solid #f8c179;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fbb040 0%, #f2861a 45%, #e26a0c 55%, #c4500a 100%);
}

form.cform button:hover { filter: brightness(1.1); }

.formnote { font-size: 11px; color: #6f6f6f; }

/* ---------- footer ---------- */

#footer {
  width: 940px;
  margin: 0 auto;
  padding: 22px 10px 50px;
  clear: both;
  font-size: 11px;
  color: #7d7d7d;
  border-top: 1px dotted #2e2e2e;
}

#footer a { color: #7d7d7d; }

/* ---------- small screens ---------- */

@media (max-width: 1000px) {
  #wrapper, #header, #menu, #page, #footer { width: 100%; max-width: 960px; }
  #menu { height: auto; }
  #menu ul { height: auto; overflow: hidden; }
  #sidebar, #content { float: none; width: 100%; }
  #content { margin-top: 26px; }
  #rotator, #rotator .frame, #rotator .frame img { width: 100%; }
}
