/* SINERGI KUARI SDN BHD static website styles.
   Edit colours, spacing and image frame styling here. */
:root {
  --black: #080808;
  --charcoal: #151515;
  --panel: #202020;
  --line: #343434;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --paper: #ffffff;
  --ink: #161616;
  --accent: #f4a51c;
  --accent-dark: #c87800;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f4f4f4;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 800; flex-shrink: 0; }
.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #111;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
}
.brand > span:last-child { display: block; color: var(--muted); font-weight: 600; }
.brand strong { display: block; color: var(--text); font-size: clamp(20px, 2.2vw, 30px); line-height: 1; letter-spacing: 0; }
.brand > span:last-child > span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--accent); color: #111; }

.hero {
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(8,8,8,0.96), rgba(30,30,30,0.88)),
    repeating-linear-gradient(45deg, rgba(244,165,28,0.08) 0 2px, transparent 2px 16px);
  padding: 70px 20px 55px;
}
.hero-grid, .section-inner, .footer-inner { max-width: var(--max); margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 44px; align-items: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-weight: 800; letter-spacing: 0; font-size: 13px; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
.lead { color: #dedede; font-size: 18px; max-width: 720px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ffc04a; }
.btn-outline { border-color: var(--accent); color: var(--text); }
.btn-outline:hover { background: var(--accent); color: #111; }

.hero-image, .product-image-frame, .project-image-frame, .video-frame {
  background: #151515;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}
.hero-image img, .product-card img, .project-card img, .gallery-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.placeholder {
  width: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #d9d9d9;
  border: 1px dashed #565656;
  border-radius: 6px;
  padding: 22px;
  background: linear-gradient(135deg, #1d1d1d, #111);
}
.placeholder strong { color: var(--accent); display: block; margin-bottom: 6px; }
.is-missing img { display: none; }
.is-missing .placeholder { display: grid; }
.placeholder { display: none; }

.section { padding: 70px 20px; }
.section-dark { background: var(--charcoal); color: var(--text); }
.section-white { background: var(--paper); }
.section-muted { background: #ececec; }
.contact-location-section { background: #101010; color: var(--text); }
.contact-location-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.contact-section-image {
  background: #151515;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.contact-location-section .card {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-dark .section-head p { color: var(--muted); }
.grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  padding: 24px;
}
.section-dark .card { background: var(--panel); border-color: var(--line); color: var(--text); }
.card ul { margin: 10px 0 0; padding-left: 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag { background: #ededed; border: 1px solid #d5d5d5; padding: 7px 10px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.section-dark .tag { background: #111; border-color: #3d3d3d; color: var(--text); }

.product-section, .project-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
  padding: 30px;
  background: var(--paper);
  border: 1px solid #dedede;
  border-radius: 8px;
  margin-bottom: 26px;
}
.product-section:nth-child(even), .project-section:nth-child(even) { background: #fafafa; }
.product-section ul { padding-left: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-card { background: #151515; border-radius: 8px; padding: 12px; }
.product-image-frame .gallery-grid, .project-image-frame .gallery-grid, .video-grid { width: 100%; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-strip {
  background: var(--accent);
  color: #111;
  padding: 32px 20px;
}
.contact-strip .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.site-footer { background: #080808; color: var(--text); padding: 42px 20px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer-inner p, .footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}
.field-full { grid-column: 1 / -1; }
.map-links { display: grid; gap: 12px; }
.map-box { border: 1px solid #d6d6d6; border-radius: 8px; padding: 18px; background: #fff; }
.map-embed {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
  display: block;
  margin-top: 14px;
}

.floating-whatsapp, .back-to-top {
  position: fixed;
  right: 18px;
  z-index: 60;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.floating-whatsapp { bottom: 22px; background: #25d366; color: #071b0e; width: 58px; height: 58px; }
.back-to-top {
  bottom: 92px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--accent);
  color: #111;
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.video-frame video { width: 100%; border-radius: 4px; }
.optional-video:empty { display: none; }

@media (max-width: 900px) {
  .hero-grid, .product-section, .project-section, .grid-2, .grid-3, .footer-inner { grid-template-columns: 1fr; }
  .contact-location-layout { grid-template-columns: 1fr; }
  .contact-strip .section-inner { align-items: flex-start; flex-direction: column; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #080808;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 12px; }
}

@media (max-width: 620px) {
  .hero { padding-top: 46px; }
  .section { padding: 48px 16px; }
  .nav-wrap { padding: 12px 16px; }
  .brand { max-width: 250px; }
  .brand-mark { width: 48px; height: 48px; font-size: 18px; }
  .brand strong { font-size: 18px; }
  .form-grid, .gallery-grid, .video-grid { grid-template-columns: 1fr; }
  .product-section, .project-section { padding: 18px; }
}
