/* Power Up Lubricants (Thailand) Co., Ltd. — Static site styles
   Brand: industrial orange + deep charcoal, echoes the original youevents/orange theme
*/

:root {
  --brand: #f29400;        /* primary orange */
  --brand-dark: #c47700;
  --brand-soft: #fff4e0;
  --dark: #1c1c1c;         /* near-black, top bar + footer */
  --dark-2: #2a2a2a;
  --text: #222;
  --text-light: #666;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --border: #e3e3e3;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.18);
  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "Trebuchet MS", "Segoe UI", "Noto Sans TC", "Sarabun", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Helvetica Neue", "Noto Sans TC", sans-serif;
  color: var(--dark);
  margin: 0 0 .6em;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; color: var(--brand-dark); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 3px solid var(--brand);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand); }
.topbar .contact-info span { margin-right: 18px; white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--dark);
}
.site-header .brand .brand-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: .5px;
  color: var(--dark);
}
.site-header .brand .brand-title span { color: var(--brand); }
.site-header .brand .brand-sub {
  font-size: .85rem;
  color: var(--text-light);
  letter-spacing: .3px;
}
.site-header .header-logo {
  background: var(--dark);
  padding: 8px 16px;
  border-radius: 4px;
}
.site-header .header-logo img {
  height: 48px;
  display: block;
}

/* ===== Navigation ===== */
.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav li { position: relative; }
.nav > .container > ul > li > a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.nav > .container > ul > li > a:hover,
.nav > .container > ul > li.active > a {
  background: var(--brand);
  color: #fff;
}
.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-2);
  min-width: 240px;
  flex-direction: column;
  box-shadow: var(--shadow-hover);
}
.nav li:hover > ul { display: flex; }
.nav li ul li a {
  padding: 10px 16px;
  color: #ddd;
  font-size: 13px;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav li ul li a:hover {
  background: var(--brand);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(rgba(28,28,28,0.55), rgba(28,28,28,0.65)),
    url('images/bg_about.jpg') center/cover no-repeat;
  color: #fff;
  padding: 70px 0 60px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--brand); }
.hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  opacity: .9;
}
.hero .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ===== Section ===== */
.section {
  padding: 60px 0;
}
.section.alt { background: var(--bg-soft); }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--brand);
}
.section-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-light);
}

/* ===== Home featured grid ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.featured-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.featured-card .card-image {
  background: var(--bg-soft);
  padding: 24px;
  text-align: center;
  border-bottom: 4px solid var(--brand);
}
.featured-card .card-image img {
  max-height: 200px;
}
.featured-card .card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
}
.featured-card h3 span { color: var(--brand); }
.featured-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text-light);
}
.featured-card ul li { padding: 3px 0; }
.featured-card ul li a { color: var(--text); }
.featured-card ul li a:hover { color: var(--brand-dark); }
.featured-card .card-cta { margin-top: auto; }

/* ===== Intro + video row ===== */
.intro-video {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 32px;
  align-items: stretch;
}
.intro-text {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 28px;
  border-radius: var(--radius);
}
.intro-text h2 { color: var(--dark); }
.intro-text h2 span { color: var(--brand); }
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== Stats bar ===== */
.stats {
  background: var(--brand);
  color: #fff;
  padding: 36px 0;
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .num {
  font-size: 2.2rem;
  font-weight: bold;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stats .label {
  font-size: .9rem;
  letter-spacing: .3px;
  opacity: .92;
  text-transform: uppercase;
}

/* ===== Products grid (listing) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card .img-box {
  background: var(--bg-soft);
  text-align: center;
  padding: 20px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--brand);
}
.product-card .img-box img { max-height: 160px; }
.product-card .body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.product-card .body p {
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 16px;
  flex: 1;
}
.product-card .body a.read-more {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .9rem;
  align-self: flex-start;
}
.product-card .body a.read-more::after {
  content: ' →';
}

/* category sub-section heading on the products page */
.cat-heading {
  margin: 30px 0 20px;
  padding: 14px 20px;
  background: var(--dark);
  color: #fff;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
}
.cat-heading h2 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}
.cat-heading h2 span { color: var(--brand); }
.cat-heading p {
  color: #ccc;
  font-size: .88rem;
  margin: 4px 0 0;
}

/* ===== Product detail page ===== */
.product-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}
.product-detail .product-image {
  background: var(--bg-soft);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.product-detail .product-image img { max-width: 100%; }
.product-detail .product-info h1 {
  color: var(--dark);
  border-bottom: 3px solid var(--brand);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.product-detail .product-info h4 {
  color: var(--brand-dark);
  margin-top: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.product-detail .product-info ul,
.product-detail .product-info ol {
  margin-left: 0;
  padding-left: 20px;
}
.product-detail .product-info ul li,
.product-detail .product-info ol li {
  padding: 3px 0;
}
.product-detail .product-info table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  background: #fff;
  border: 1px solid var(--border);
}
.product-detail .product-info table td {
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-size: .92rem;
}
.product-detail .product-info table tr td:first-child {
  background: var(--bg-soft);
  font-weight: 600;
  width: 35%;
  color: var(--dark);
}
.product-detail .product-info img {
  margin: 6px 0;
}
.product-detail .sds {
  display: inline-block;
  padding: 10px 18px;
  background: var(--dark);
  color: #fff;
  margin: 14px 0;
  border-radius: var(--radius);
  font-size: .9rem;
}
.product-detail .sds:hover { background: var(--brand); }
.back-link {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.back-link a { color: var(--text-light); font-size: .9rem; }
.back-link a:hover { color: var(--brand-dark); }

/* ===== Page header strip ===== */
.page-head {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  color: #fff;
  padding: 36px 0;
  border-bottom: 4px solid var(--brand);
}
.page-head h1 {
  color: #fff;
  margin: 0;
  font-size: 1.8rem;
}
.page-head .crumb {
  font-size: .85rem;
  color: #bbb;
  margin-top: 6px;
}
.page-head .crumb a { color: var(--brand); }

/* ===== About page ===== */
.about-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.about-block img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-block p { color: var(--text); }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info-block {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-info-block h2 { color: var(--dark); }
.contact-info-block h2 span { color: var(--brand); }
.contact-info-block dl { margin: 0; }
.contact-info-block dt {
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 14px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.contact-info-block dd {
  margin: 4px 0 0;
  color: var(--text);
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #eee;
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ===== News ===== */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.news-card h3 { color: var(--dark); margin-bottom: 8px; }
.news-card .date {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 36px 0 18px;
  margin-top: 60px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 { color: var(--brand); font-size: 1rem; margin-bottom: 14px; }
.footer p { color: #ccc; font-size: .9rem; line-height: 1.7; margin: 0 0 6px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 3px 0; font-size: .9rem; }
.footer a { color: #ccc; }
.footer a:hover { color: var(--brand); }
.footer .copyright {
  margin-top: 18px;
  font-size: .82rem;
  color: #888;
  text-align: center;
}
.footer .copyright span { color: var(--brand); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .featured-grid { grid-template-columns: 1fr; }
  .intro-video { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail .product-image { max-width: 320px; margin: 0 auto; }
  .about-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav > .container { padding: 0; }
  .nav > .container > ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav > .container > ul.is-open { display: flex; }
  .nav > .container > ul > li { width: 100%; }
  .nav > .container > ul > li > a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav li:hover > ul { display: none; } /* disable hover on mobile */
  .nav li ul { position: static; box-shadow: none; min-width: 0; }
  .nav li ul li a { padding-left: 32px; background: rgba(0,0,0,0.4); }
  .site-header .container { flex-direction: column; gap: 14px; }
  .topbar .container { justify-content: center; text-align: center; }
  .products-grid { grid-template-columns: 1fr; }
  .stats .num { font-size: 1.6rem; }
  .container { padding: 0 16px; }
}
