/* ===================================================
   DURSHAN RUBBER — style.css
   Industrial dark theme: safety orange + deep charcoal
   =================================================== */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #090a0f;
  --bg-2:         #0f1017;
  --bg-3:         #181920;
  --border:       #222430;
  --foreground:   #f5f5f7;
  --muted:        #8b8d9a;
  --primary:      #f97316;
  --primary-dark: #ea6c0c;
  --primary-fg:   #ffffff;
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --container:    1200px;
  --radius:       0px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-sans); }

/* ── Utility ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary { color: var(--primary); }

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  text-transform: uppercase;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-3); border-color: var(--muted); }

.btn-lg { font-size: 1rem; padding: 1rem 2rem; height: 3.5rem; }
.btn-sm { font-size: 0.8rem; padding: 0.5rem 1.25rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Scroll Reveal Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-icon {
  width: 2rem; height: 2rem;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { color: #fff; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--foreground); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--foreground);
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.25rem 0;
}
.mobile-link:hover { color: var(--foreground); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(9,10,15,0.8) 60%, transparent 100%),
              linear-gradient(to right, var(--bg) 0%, rgba(9,10,15,0.85) 50%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-inner { max-width: 48rem; }

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.location-badge svg { color: var(--primary); }

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Capabilities ── */
.capabilities {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}
.capability-card { display: flex; flex-direction: column; }
.cap-icon {
  width: 3rem; height: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.capability-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}
.capability-card p { color: var(--muted); line-height: 1.7; }

/* ── Products ── */
.products { padding: 8rem 0; }

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.product-card:hover { border-color: rgba(249,115,22,0.5); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
  transition: background 0.5s;
}
.product-card:hover .product-overlay { background: transparent; }
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-index {
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.product-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}
.product-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foreground);
  transition: color 0.2s;
  margin-top: auto;
}
.product-link:hover { color: var(--primary); }
.product-link svg { transition: transform 0.2s; }
.product-link:hover svg { transform: translateX(3px); }

/* ── Stats Banner ── */
.stats-banner {
  position: relative;
  padding: 6rem 0;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}
.stats-texture {
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

/* ── Contact ── */
.contact { padding: 8rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-details { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-item strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.form-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }

label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

input, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  height: 3rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}
input.invalid, textarea.invalid { border-color: #ef4444; }
textarea { height: auto; min-height: 8rem; resize: none; }

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 1rem;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #22c55e;
}
.form-success.visible { display: flex; }
.form-success strong { font-size: 1.2rem; color: var(--foreground); }
.form-success p { color: var(--muted); font-size: 0.9rem; }

/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .navbar .btn-sm { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding-top: 6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-header { flex-direction: column; align-items: flex-start; }
  .products-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: center; }
  .footer-copy { text-align: center; }
}
