/* ===================================================
   JM Supply - Wholesale Distribution Website
   Colors: Steel Blue (#1e3a5f) + Orange-Red (#e8593b) + Charcoal (#1e2229) + Cyan (#26c6da)
   =================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --steel: #1e3a5f;
  --steel-dark: #142845;
  --steel-light: #2a4e7a;
  --orange: #e8593b;
  --orange-dark: #d04426;
  --orange-light: #f07158;
  --cyan: #26c6da;
  --cyan-dark: #1aa3b5;
  --charcoal: #1e2229;
  --charcoal-soft: #2a2f38;
  --gray-light: #f0f2f5;
  --gray-mid: #e2e6ec;
  --white: #ffffff;
  --text: #1a1c20;
  --text-light: #5a5e66;
  --text-muted: #8a8e96;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  --shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, #1e3a5f, #2a4e7a);
  --gradient-accent: linear-gradient(135deg, #e8593b, #f07158);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--gray-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232, 89, 59, 0.08);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.1rem;
  color: var(--steel);
  margin-bottom: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(30, 58, 95, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 198, 218, 0.1);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.logo-icon {
  font-size: 1.4rem;
  opacity: 0.8;
  transition: var(--transition);
}

.logo:hover .logo-icon { opacity: 1; transform: rotate(30deg); }

.logo-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-tag {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 0.5px;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 8px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  padding: 8px 16px;
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: rgba(38, 198, 218, 0.12);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(38, 198, 218, 0.06), transparent 60%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 89, 59, 0.05), transparent 60%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(38, 198, 218, 0.1);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-title .highlight {
  color: var(--orange);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-desc strong { color: var(--cyan); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 89, 59, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 89, 59, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: var(--steel);
}

.btn-full { width: 100%; }

/* Hero grid visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.grid-cell:hover {
  background: rgba(38, 198, 218, 0.06);
  border-color: rgba(38, 198, 218, 0.15);
}

.grid-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.grid-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
}

.hero-divider {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}

.hero-divider svg {
  width: 100%;
  height: 60px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.04);
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(38, 198, 218, 0.15);
}

.cat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--steel);
}

.cat-icon svg { width: 100%; height: 100%; }

.cat-card h3 {
  font-size: 1.15rem;
  color: var(--steel);
  margin-bottom: 8px;
}

.cat-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Stats */
.stats {
  background: var(--steel);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-content h2 {
  font-size: 2rem;
  color: var(--steel);
  margin-bottom: 16px;
}

.why-content > p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.why-check {
  font-size: 1.1rem;
  color: var(--orange);
  font-weight: 700;
  min-width: 24px;
  margin-top: 2px;
}

.why-list li strong {
  display: block;
  color: var(--steel);
  margin-bottom: 3px;
}

.why-list li p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.why-card {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-card-header {
  padding: 18px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.why-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.why-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.why-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.why-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
}

/* CTA */
.cta-box {
  background: var(--gradient);
  padding: 55px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.cta-box p {
  font-size: 1rem;
  margin-bottom: 22px;
  opacity: 0.85;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 55px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand .logo-icon { opacity: 0.5; }
.footer-brand .logo-label { font-size: 1.1rem; }
.footer-brand .logo-tag { font-size: 0.8rem; }

.footer-brand p {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--cyan); }

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Page Banner */
.page-banner {
  padding: 130px 0 55px;
  background: var(--steel);
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
}

/* Services Detail */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.svc-block {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.04);
}

.svc-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.svc-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cyan);
}

.svc-block-header h3 {
  font-size: 1.2rem;
  color: var(--steel);
}

.svc-block > p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.65;
}

.svc-block ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.svc-block li {
  position: relative;
  padding-left: 18px;
  color: var(--text-light);
  font-size: 0.88rem;
}

.svc-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 2px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.9rem;
  color: var(--steel);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-stat-card {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-stat-header {
  padding: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-stat-body {
  padding: 20px 24px;
}

.about-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.about-stat-row:last-child { border-bottom: none; }
.about-stat-row span:first-child { color: rgba(255,255,255,0.35); }
.stat-val { color: var(--white); font-weight: 500; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(30, 58, 95, 0.04);
  transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.value-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  color: var(--steel);
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-size: 1rem;
  color: var(--steel);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.2rem;
  color: var(--steel);
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-row-icon { font-size: 1.2rem; flex-shrink: 0; }

.contact-row strong {
  display: block;
  font-size: 0.82rem;
  color: var(--steel);
  margin-bottom: 3px;
}

.contact-row p, .contact-row a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.2rem;
  color: var(--steel);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--gray-light);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.1);
}

/* Legal */
.legal-text { max-width: 800px; margin: 0 auto; }

.legal-text h2 {
  font-size: 1.25rem;
  color: var(--steel);
  margin: 28px 0 10px;
}

.legal-text p {
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-text ul { padding-left: 18px; margin-bottom: 14px; }
.legal-text li {
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--steel);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; text-align: center; padding: 12px; }

  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }

  .categories-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .svc-block ul { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 20px; }
  .cta-box h2 { font-size: 1.4rem; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
