/* ==========================================================================
   Lejwe Industrial & Mining Supplies — Main Stylesheet
   Converted from the original Next.js/Tailwind build into plain CSS.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --background: oklch(0.975 0.005 85);
  --foreground: oklch(0.15 0.01 45);
  --card: oklch(0.99 0.003 85);
  --card-foreground: oklch(0.15 0.01 45);
  --primary: oklch(0.65 0.18 65);
  --primary-foreground: oklch(0.15 0.01 45);
  --secondary: oklch(0.94 0.008 85);
  --secondary-foreground: oklch(0.25 0.01 45);
  --muted-foreground: oklch(0.45 0.01 45);
  --border: oklch(0.88 0.015 85);
  --radius: 0.75rem;

  /* Fallback hex values (for very old browsers without oklch support) */
  --background-fallback: #f9f6f0;
  --foreground-fallback: #201a14;
  --primary-fallback: #c8843a;
  --border-fallback: #e3ddce;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1280px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--background-fallback);
  background: var(--background);
  color: var(--foreground-fallback);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}
.italic { font-style: italic; }
.text-primary { color: var(--primary-fallback); color: var(--primary); }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-fallback);
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
@media (min-width: 768px) { .site-header { padding: 1rem 3rem; } }
.site-header.is-scrolled {
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo .mark {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  background: var(--primary-fallback);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.site-logo .name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.primary-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .primary-nav { display: flex; } }
.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.primary-nav a:hover { color: var(--foreground); }
.btn-nav-cta {
  border-radius: 9999px;
  background: var(--foreground);
  color: var(--background);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-nav-cta:hover { opacity: 0.9; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 0.5rem;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 22px; height: 2px; background: var(--foreground); border-radius: 1px; }
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--background);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-family: var(--font-serif); font-size: 1.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}
.hero-inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.hero-tag {
  display: inline-block;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: color-mix(in oklch, var(--primary) 5%, transparent);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: 2.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 5.5rem; } }
.hero p.subtitle {
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .hero p.subtitle { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  background: var(--foreground);
  color: var(--background);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.link-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.link-secondary:hover { color: var(--primary); }
.link-secondary svg { width: 1rem; height: 1rem; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.scroll-indicator .line {
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 30%, transparent), transparent);
}

/* ---- Scroll video ---- */
.scroll-video-wrap { position: relative; height: 300vh; }
.scroll-video-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
}
.scroll-video-sticky video {
  height: 100%; width: 100%; object-fit: cover;
  will-change: transform;
}
.scroll-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklch, var(--background) 40%, transparent) 0%,
    transparent 50%,
    var(--background) 100%);
  pointer-events: none;
}
.scroll-video-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.scroll-video-caption h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
  text-align: center;
  font-size: 2.25rem;
  padding: 0 1.5rem;
  text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
@media (min-width: 768px) { .scroll-video-caption h2 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .scroll-video-caption h2 { font-size: 4.5rem; } }

/* ---- Mission ---- */
.mission {
  background: color-mix(in oklch, var(--secondary) 50%, transparent);
  padding: 8rem 1.5rem;
}
@media (min-width: 768px) { .mission { padding: 8rem 3rem; } }
.mission-heading { text-align: center; margin-bottom: 5rem; }
.mission-heading h2 {
  max-width: 56rem; margin: 0 auto;
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  font-size: 2.25rem;
}
@media (min-width: 768px) { .mission-heading h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .mission-heading h2 { font-size: 3.75rem; } }
.mission-lead {
  max-width: 48rem; margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.value-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
  background: var(--card);
  padding: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.value-card:hover {
  border-color: color-mix(in oklch, var(--primary) 30%, transparent);
  box-shadow: 0 10px 30px color-mix(in oklch, var(--primary) 5%, transparent);
}
.value-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
.value-card:hover .icon { background: var(--primary); color: var(--primary-foreground); }
.value-card .icon svg { width: 1.5rem; height: 1.5rem; }
.value-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.75rem; }
.value-card p { color: var(--muted-foreground); }

/* ---- Products / vision quotes ---- */
.quote-block { padding: 8rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .quote-block { padding: 8rem 3rem; } }
.quote-block .inner { max-width: 64rem; margin: 0 auto; }
.quote-rule { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.quote-rule .line { width: 3rem; height: 1px; background: var(--primary); }
.quote-rule span { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
blockquote.quote-light {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1.3;
}
@media (min-width: 768px) { blockquote.quote-light { font-size: 2.25rem; } }
@media (min-width: 1024px) { blockquote.quote-light { font-size: 3rem; } }

.products-pin-section { position: relative; overflow: hidden; background: var(--background); }
.products-pin-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; }
@media (min-width: 768px) { .products-pin-inner { padding: 1.5rem 3rem; } }
.products-pin-inner .products-heading { margin-bottom: 3rem; }
.products-pin-inner .products-heading h2 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 2.25rem;
}
@media (min-width: 768px) { .products-pin-inner .products-heading h2 { font-size: 3rem; } }

.products-track { display: flex; gap: 1.5rem; will-change: transform; }
.product-card {
  position: relative;
  flex-shrink: 0;
  width: 20rem;
  height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
  background: color-mix(in oklch, var(--secondary) 30%, transparent);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.product-card:hover { border-color: color-mix(in oklch, var(--primary) 30%, transparent); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.product-card .bg-img {
  position: absolute; inset: 0;
}
.product-card .bg-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.product-card:hover .bg-img img { transform: scale(1.05); }
.product-card .bg-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,12,0.9), rgba(20,16,12,0.4) 60%, transparent);
}
.product-card .index-number {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.3);
  z-index: 1;
}
.product-card .content { position: relative; z-index: 10; padding: 1.5rem; }
.product-card .content h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: #fff; margin-bottom: 0.4rem; }
.product-card .content p { font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.product-card .hover-line {
  position: absolute; bottom: 0; left: 0; height: 4px; width: 0;
  background: var(--primary);
  transition: width 0.5s;
}
.product-card:hover .hover-line { width: 100%; }

.quote-dark { background: var(--foreground); }
.quote-dark blockquote {
  font-family: var(--font-serif);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--background);
  font-size: 1.5rem;
  line-height: 1.3;
}
@media (min-width: 768px) { .quote-dark blockquote { font-size: 1.875rem; } }
@media (min-width: 1024px) { .quote-dark blockquote { font-size: 2.25rem; } }
.quote-dark .quote-rule .line { background: color-mix(in oklch, var(--background) 30%, transparent); }
.quote-dark .quote-rule span { color: color-mix(in oklch, var(--background) 60%, transparent); }
.quote-dark .quote-rule { margin-top: 2rem; }

/* ---- Contact ---- */
.contact-section { background: color-mix(in oklch, var(--secondary) 30%, transparent); padding: 8rem 1.5rem; }
@media (min-width: 768px) { .contact-section { padding: 8rem 3rem; } }
.contact-intro { display: grid; gap: 3rem; align-items: end; margin-bottom: 5rem; }
@media (min-width: 1024px) { .contact-intro { grid-template-columns: 1fr 1fr; } }
.contact-intro h2 { font-family: var(--font-serif); font-weight: 300; font-size: 2.25rem; }
@media (min-width: 768px) { .contact-intro h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-intro h2 { font-size: 3.75rem; } }
.contact-intro p { font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }

.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
  background: var(--card);
  padding: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.contact-card:hover { border-color: color-mix(in oklch, var(--primary) 30%, transparent); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.contact-card .avatar {
  width: 4rem; height: 4rem; margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--primary);
}
.contact-card h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; }
.contact-card .role { font-size: 0.875rem; color: var(--primary); margin-bottom: 1rem; }
.contact-card .links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-card .links a {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: color 0.2s;
}
.contact-card .links a:hover { color: var(--foreground); }
.contact-card .links svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.contact-card .office-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}
.contact-card .office-icon svg { width: 1.5rem; height: 1.5rem; }
.contact-card .office-address { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---- Footer ---- */
.site-footer { background: var(--foreground); color: var(--background); padding: 4rem 1.5rem; }
@media (min-width: 768px) { .site-footer { padding: 4rem 3rem; } }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-logo .mark {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
}
.footer-logo .name { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; }
.footer-brand p.reg { max-width: 22rem; margin-bottom: 1.5rem; font-size: 0.875rem; line-height: 1.6; color: rgba(245,240,232,0.7); }
.footer-brand p.tagline { font-size: 0.875rem; color: rgba(245,240,232,0.5); }
.footer-col h4 { margin-bottom: 1rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(245,240,232,0.5); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col li { font-size: 0.875rem; color: rgba(245,240,232,0.7); }
.footer-col a:hover { color: var(--background); }
.footer-bottom {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 0.875rem; color: rgba(245,240,232,0.5); }
.footer-bottom-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.875rem; color: rgba(245,240,232,0.5); }
.footer-bottom-links a:hover { color: var(--background); }

/* ---- Scroll-reveal utility (JS toggles .is-visible; see main.js) ---- */
[data-animate] { opacity: 0; }
[data-animate].is-visible { opacity: 1; }
[data-animate="fade-up"] { transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
[data-animate="fade-up"].is-visible { transform: translateY(0); }
[data-animate="fade-in"] { transition: opacity 0.9s ease; }
[data-stagger-child] { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-stagger-child].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-stagger-child] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
