/* ============================================================
   DTS Coating – Detail Pages Shared Stylesheet
   Used by product/*.html and industries/*.html
   ============================================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: #1a1a2e;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- CSS Variables ---------- */
:root {
  --orange: #e8541e;
  --orange-dark: #c94415;
  --blue: #1e40af;
  --dark: #0d1117;
  --mid: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --header-h: 72px;
}

/* ---------- Header (same as main) ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13,17,23,.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.header__nav { display: flex; gap: 24px; margin-left: auto; }
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
  padding: 4px 0;
  transition: color .2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link--active { color: #fff; border-color: var(--orange); }
.header__actions { margin-left: 24px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Mobile toggle */
.header__mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem; margin-left: auto;
}
.mobile-nav { display: none; }

/* ---------- Page Hero Banner ---------- */
.page-hero {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--dark);
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}
.page-hero__content { position: relative; text-align: center; padding: 0 24px; }
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.breadcrumb {
  margin-top: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ---------- Product Detail Page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
}
.product-detail__image-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.product-detail__image {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3/4;
  background: #f3f4f6;
}
.product-detail__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.product-detail__divider {
  border: none; border-top: 2px solid var(--border);
  margin: 20px 0;
}
.product-detail__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 32px;
}

/* Checkbox Groups */
.check-group { margin-bottom: 32px; }
.check-group__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list li label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: .95rem; color: var(--mid); line-height: 1.5;
  width: 100%;
}
.check-list li input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
  margin-top: 2px;
}
.check-list li input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.check-list li input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 8px; height: 12px;
  border: 2.5px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.check-list li label:hover input[type="checkbox"] { border-color: var(--orange); }

/* Enquire Button */
.enquire-btn {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 16px;
}
.enquire-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,84,30,.3);
}

/* ---------- Enquiry Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 9000;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 16px;
  max-width: 560px; width: 100%;
  padding: 40px; position: relative;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--muted);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: #f3f4f6; }
.modal__title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--dark); margin-bottom: 8px;
}
.modal__subtitle { font-size: .95rem; color: var(--muted); margin-bottom: 28px; }

/* Form fields in modal */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; color: var(--dark);
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,84,30,.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--orange); color: #fff;
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: var(--radius);
  cursor: pointer; letter-spacing: .04em;
  transition: background .2s;
}
.form-submit:hover { background: var(--orange-dark); }
.form-success-msg {
  text-align: center; padding: 24px;
  color: #16a34a; font-weight: 600; font-size: 1.05rem;
  display: none;
}
.form-success-msg .success-icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ---------- Industry Detail Page ---------- */
.industry-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  margin-top: var(--header-h);
}
.industry-hero-placeholder {
  width: 100%;
  height: 420px;
  margin-top: var(--header-h);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 2rem;
}
.industry-content { padding: 56px 0 80px; }
.industry-content__title {
  font-size: 2rem; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 20px;
}
.industry-content__divider {
  border: none; border-top: 3px solid var(--orange);
  width: 60px; margin-bottom: 28px;
}
.industry-content__body p {
  font-size: 1.025rem;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 20px;
}
.industry-cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.industry-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ---------- Footer (simplified) ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 24px;
  font-size: .875rem;
  margin-top: 0;
}
.footer a { color: var(--orange); }
.footer__logo { height: 40px; margin: 0 auto 16px; object-fit: contain; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--muted);
  padding: 12px 0 0;
  transition: color .2s;
}
.back-link:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-detail__image-wrap { position: static; }
  .product-detail__image { max-height: 320px; aspect-ratio: auto; }
  .header__nav, .header__actions { display: none; }
  .header__mobile-toggle { display: flex; }
}
@media (max-width: 600px) {
  .page-hero { height: 200px; }
  .industry-hero { height: 260px; }
}
