/* ════════════════════════════════════════════════════════════
   JJ PLANT LTD — SHARED STYLESHEET
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --steel:        #1c2026;
  --steel-mid:    #262d36;
  --steel-light:  #313a45;
  --steel-border: #3d4855;
  --yellow:       #f5c200;
  --yellow-dark:  #d9aa00;
  --white:        #ffffff;
  --off-white:    #f4f5f6;
  --text-body:    #2c333c;
  --text-muted:   #6b7685;
  --border:       #dde1e6;
  --red:          #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--steel);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-top {
  background: var(--steel-mid);
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #a0abb8;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.header-contact-item:hover { color: var(--yellow); }

.header-contact-item strong {
  color: var(--yellow);
  font-weight: 600;
}

.header-contact-item svg {
  width: 13px;
  height: 13px;
  fill: var(--yellow);
  flex-shrink: 0;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.logo-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0abb8;
  line-height: 1.3;
  border-left: 2px solid var(--steel-border);
  padding-left: 0.75rem;
}

/* ── NAV ──────────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav > li { list-style: none; position: relative; }

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.1rem;
  height: 64px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8d0db;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.main-nav > li > a svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  flex-shrink: 0;
}

/* dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--steel-mid);
  border: 1px solid var(--steel-border);
  border-top: 2px solid var(--yellow);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 300;
}

.main-nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li { list-style: none; }

.dropdown li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #b0bbc8;
  text-decoration: none;
  border-bottom: 1px solid var(--steel-border);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--steel-light); color: var(--yellow); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--steel);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.018) 4px,
    rgba(255,255,255,0.018) 5px
  );
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 0.75; }

.breadcrumb-sep {
  color: var(--steel-border);
  font-size: 0.7rem;
}

.breadcrumb span {
  color: #6b7685;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}

.page-hero h1 span { color: var(--yellow); }

.page-hero-sub {
  color: #8a95a3;
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.6rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ── CONTENT WRAPPER ─────────────────────────────────────── */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.content-wrap.full-width {
  grid-template-columns: 1fr;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.sidebar-card-dark {
  background: var(--steel);
  border-color: var(--steel-border);
}

.sidebar-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-body);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--yellow);
}

.sidebar-card-dark h3 { color: var(--white); }

.sidebar-nav li { list-style: none; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  transition: color 0.15s;
}

.sidebar-nav li a:hover { color: var(--steel); }
.sidebar-nav li a.active { color: var(--steel); font-weight: 600; }

.sidebar-nav li a svg {
  width: 12px;
  height: 12px;
  fill: var(--yellow);
  flex-shrink: 0;
}

.sidebar-nav li:last-child a { border-bottom: none; }

.contact-card {
  background: var(--yellow);
  padding: 1.5rem;
}

.contact-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: #4a3d00;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.contact-card a.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-card a.phone-link svg {
  width: 15px;
  height: 15px;
  fill: var(--steel);
  flex-shrink: 0;
}

.accred-card img {
  max-width: 120px;
}

/* ── TYPOGRAPHY / SECTIONS ───────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-title span { color: var(--yellow-dark); }

/* ── GRID CARDS (category listings) ─────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.9);
  transition: filter 0.3s;
}

.category-card:hover img {
  filter: brightness(1) saturate(1);
}

.category-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--yellow);
  padding: 0.5rem 1rem;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s;
}

.card-link:hover { background: var(--yellow-dark); }

.card-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ── PRODUCT LISTING TABLE ───────────────────────────────── */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-row {
  background: var(--white);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.product-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.product-row img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.3s;
}

.product-row:hover img {
  filter: brightness(1) saturate(1);
}

.product-row-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-row-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 0.4rem;
}

.product-row-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ── DATA TABLE ──────────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.spec-table th {
  background: var(--steel);
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.65rem 1rem;
  text-align: left;
}

.spec-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  background: var(--white);
}

.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: var(--off-white); }

.spec-table td:first-child {
  font-weight: 600;
  color: var(--steel);
}

/* ── WHY US CHECKLIST ────────────────────────────────────── */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
}

.why-tick {
  width: 20px;
  height: 20px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-tick svg {
  width: 11px;
  height: 11px;
  fill: var(--steel);
}

.why-item p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

.why-item strong { color: var(--steel); font-weight: 600; }

/* ── TESTIMONIAL ─────────────────────────────────────────── */
.testimonial {
  border-left: 4px solid var(--yellow);
  background: var(--white);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--yellow);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.4;
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-strip {
  background: var(--yellow);
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-strip h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.cta-strip p {
  color: #4a3d00;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--steel);
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  transition: background 0.2s;
}

.btn:hover { background: var(--steel-light); }

.btn-yellow {
  background: var(--yellow);
  color: var(--steel);
}

.btn-yellow:hover { background: var(--yellow-dark); }

/* ── CONTACT FORM ────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  color: var(--text-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--steel);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group.full { grid-column: 1 / -1; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--steel);
  border-top: 3px solid var(--yellow);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: #8a95a3;
  line-height: 1.7;
  text-decoration: none;
  font-weight: 300;
}

.footer-col a:hover { color: var(--yellow); }

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.4rem; }

.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a svg {
  width: 10px;
  height: 10px;
  fill: var(--yellow);
  flex-shrink: 0;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-top: 1px solid var(--steel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #505a68;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  color: #505a68;
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--yellow); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-row {
    grid-template-columns: 1fr;
  }
  .product-row img { width: 100%; height: 200px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; width: 100%; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-main { padding: 0 1.25rem; }
  .header-top { padding: 0.4rem 1.25rem; }
  .content-wrap { padding: 2rem 1.25rem; }
  .page-hero { padding: 2rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem 1rem; }
  .footer-bottom { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .header-top { display: none; }
  .logo-tagline { display: none; }
}

/* ── FADE IN ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.13s; }
.fade-up:nth-child(3) { animation-delay: 0.21s; }
.fade-up:nth-child(4) { animation-delay: 0.29s; }
