/*
Theme Name: Nexus Petrochem Link
Theme URI: https://nexuspetrochemlink.com
Author: Nexus Petrochem Link FZC
Author URI: https://nexuspetrochemlink.com
Description: Custom corporate theme for Nexus Petrochem Link, with hero slider and product grid.
Version: 1.0
Text Domain: nexus-petrochem-link
*/

:root {
  --primary-green: #1b5e20;
  --primary-gold: #ffd700;
  --secondary-green: #2e7d32;
  --light-green: #4caf50;
  --dark-bg: #020617;
  --light-bg: #f5f7fa;
  --text-dark: #0f172a;
  --text-light: #ffffff;
  --muted: #64748b;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.3);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 540px;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(10,14,39,0.10);
  border: 1px solid rgba(10,14,39,0.03);
}

/* Hero layout */
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  }
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.3rem 0.65rem;
  border-radius:999px;
  background:rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,184,0.4);
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.12em;
  margin-bottom:1.25rem;
}

.hero-heading {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 3rem;
  }
}

/* Hero slider */
.hero-slider-wrapper {
  position: relative;
  min-height: 260px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 25px 70px rgba(15,23,42,0.7);
  background: radial-gradient(circle at top, #1b5e20, #020617);
}

.hero-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.05);
  transition:opacity 0.9s ease, transform 0.9s ease;
  background-size:cover;
  background-position:center;
}

.hero-slide.is-active {
  opacity:1;
  transform:scale(1.0);
}

.hero-dots {
  position:absolute;
  bottom: 0.75rem;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:0.4rem;
  z-index:3;
}

.hero-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(15,23,42,0.7);
  border:1px solid rgba(148,163,184,0.8);
  cursor:pointer;
  transition:all 0.2s ease;
}

.hero-dot.is-active {
  width:16px;
  background:#22c55e;
  border-color:#bbf7d0;
}

/* Product grid */
.product-grid {
  display:grid;
  gap:1.25rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

.product-card h3 {
  font-size:1.02rem;
  margin-bottom:0.35rem;
}

.product-card p {
  font-size:0.9rem;
  color: var(--muted);
  margin-bottom:0.3rem;
}

.product-chip {
  display:inline-flex;
  padding:0.15rem 0.55rem;
  border-radius:999px;
  background:#e2f3ea;
  color:#166534;
  font-size:0.75rem;
  margin-top:0.35rem;
}

/* Footer tweaks */
.site-footer a {
  color:#e5e7eb;
}

.site-footer a:hover {
  color: var(--primary-gold);
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1.25rem;
  }
}
