/* Valeron Chemicals — Apexindo-inspired corporate design */
:root {
  --orange: #e07b1a;
  --orange-dark: #c96a10;
  --orange-light: #f5a623;
  --orange-pale: #fff4e8;
  --navy: #1a2d4a;
  --navy-dark: #0f1c2e;
  --text: #2c3e50;
  --text-muted: #6b7c93;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #e8ecf1;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --shadow: 0 8px 40px rgba(26, 45, 74, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 45, 74, 0.12);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1320px;
  --header-h: 80px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.site-header.scrolled .brand-text strong,
.site-header.scrolled .nav-list a { color: var(--navy); }
.site-header.scrolled .menu-toggle span { background: var(--navy); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
  color: #fff;
}

.brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.06em; color: #fff;
  transition: color 0.4s;
}

.brand-text small {
  font-size: 0.65rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.site-header.scrolled .brand-text small { color: var(--text-muted); }

.main-nav {
  display: flex; align-items: center; gap: 2.5rem;
}

.nav-list {
  display: flex; gap: 2rem;
}

.nav-list a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-list a::after {
  content: ""; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--orange); transition: width 0.3s;
}

.nav-list a:hover { color: #fff; }
.nav-list a:hover::after { width: 100%; }
.site-header.scrolled .nav-list a:hover { color: var(--orange); }

.lang-switch {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
}

.site-header.scrolled .lang-switch { color: var(--text-muted); }

.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  color: inherit; padding: 0.2rem 0.3rem;
  transition: color 0.3s;
}

.lang-btn.active { color: var(--orange); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: var(--ease);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 28, 46, 0.45) 0%,
    rgba(15, 28, 46, 0.55) 50%,
    rgba(15, 28, 46, 0.7) 100%
  );
}

.hero-body {
  position: relative; z-index: 2;
  text-align: center; padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-cta {
  display: inline-flex; align-items: center;
  padding: 0.9rem 2.2rem;
  background: var(--orange);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: background 0.3s, transform 0.3s;
  letter-spacing: 0.02em;
}

.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ── */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-label {
  font-size: 0.8rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 1rem; max-width: 720px;
}

.section-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 680px; line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── Business Cards ── */
.business { background: var(--bg); }

.business-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.biz-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: block;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.biz-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
}

.biz-card:hover img { transform: scale(1.05); }

.biz-card--tall { min-height: 420px; }

.biz-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,28,46,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 2.25rem;
  color: #fff;
}

.biz-card-overlay--gradient {
  background: linear-gradient(160deg, rgba(224,123,26,0.15) 0%, rgba(15,28,46,0.88) 60%);
}

.biz-card-tag {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--orange-light); margin-bottom: 0.5rem;
}

.biz-card-overlay h3 {
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.6rem; line-height: 1.2;
}

.biz-card-overlay p {
  font-size: 0.875rem; color: rgba(255,255,255,0.75);
  line-height: 1.65; margin-bottom: 1rem;
  max-width: 90%;
}

.biz-card-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--orange-light);
}

/* ── Stats ── */
.stats {
  position: relative;
  padding: clamp(5rem, 10vw, 7rem) 0;
  overflow: hidden;
}

.stats-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

.stats-shade {
  position: absolute; inset: 0;
  background: rgba(15, 28, 46, 0.82);
}

.stats-inner { position: relative; z-index: 1; }

.stats-label {
  text-align: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--orange-light);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-item p {
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
  margin-top: 0.75rem; line-height: 1.5;
  max-width: 180px; margin-inline: auto;
}

.stats-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; color: #fff;
  line-height: 1;
}

.stats-num sup {
  font-size: 0.45em;
  color: var(--orange-light);
  vertical-align: super;
  margin: 0 0.1em;
}

/* ── Showcase Tabs ── */
.showcase { background: var(--bg-alt); }

.showcase-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.showcase-tabs {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.showcase-tab {
  padding: 1.1rem 1.5rem;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  text-align: left; cursor: pointer;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #fff;
  transition: all 0.35s var(--ease);
  line-height: 1.4;
}

.showcase-tab:hover { filter: brightness(1.05); }

.showcase-tab.active {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.showcase-panel {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-visual {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.showcase-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s;
}

.showcase-visual-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(transparent, rgba(15,28,46,0.85));
  color: #fff;
}

.showcase-rig-type {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--orange-light);
}

.showcase-visual-caption h3 {
  font-size: 1.25rem; font-weight: 700; margin-top: 0.3rem;
}

.showcase-content {
  padding: 2rem 2.25rem;
}

.showcase-content p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.25rem;
}

.showcase-list li {
  font-size: 0.875rem; color: var(--text);
  padding: 0.45rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.showcase-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); transform: translateY(-50%);
}

.showcase-list li:last-child { border-bottom: none; }

/* ── Catalogs ── */
.catalogs { background: var(--bg); }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.catalog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.catalog-cover {
  height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; text-align: center;
}

.catalog-cover span {
  font-size: 2rem; font-weight: 800;
  letter-spacing: 0.15em;
}

.catalog-cover small {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.3em; opacity: 0.8;
  margin-top: 0.25rem;
}

.catalog-cover--drilling {
  background: linear-gradient(135deg, #1a2d4a 0%, #2d4a6e 50%, #e07b1a 100%);
}

.catalog-cover--production {
  background: linear-gradient(135deg, #e07b1a 0%, #c96a10 50%, #1a2d4a 100%);
}

.catalog-body {
  padding: 2rem 2.25rem;
}

.catalog-body h4 {
  font-size: 0.75rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}

.catalog-body h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 1.5rem;
  line-height: 1.4;
}

.catalog-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--navy); color: #fff;
  font-size: 0.85rem; font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.3s;
}

.catalog-btn:hover { background: var(--orange); }

/* ── Profile Banner ── */
.profile-banner {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
}

.profile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}

.profile-shade {
  position: absolute; inset: 0;
  background: rgba(15, 28, 46, 0.72);
}

.profile-body {
  position: relative; z-index: 1;
  max-width: 680px;
  padding-block: 5rem;
}

.profile-body h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #fff;
  margin-bottom: 1.25rem; line-height: 1.2;
}

.profile-body p {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  line-height: 1.8; margin-bottom: 2rem;
}

.profile-btn {
  display: inline-flex; padding: 0.85rem 2rem;
  background: var(--orange); color: #fff;
  font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: background 0.3s, transform 0.3s;
}

.profile-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ── Cases ── */
.cases { background: var(--bg-alt); }

.cases-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 2rem;
  margin-bottom: 3rem;
}

.cases-more {
  font-size: 0.875rem; font-weight: 600;
  color: var(--orange); white-space: nowrap;
  transition: color 0.3s;
}

.cases-more:hover { color: var(--orange-dark); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-img {
  height: 220px;
  background-size: cover; background-position: center;
}

.case-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.case-body time {
  font-size: 0.75rem; font-weight: 600;
  color: var(--orange); letter-spacing: 0.04em;
}

.case-body h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── Contact ── */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem; align-items: start;
}

.contact-list {
  margin-top: 2rem;
  display: grid; gap: 1.25rem;
}

.contact-list li strong {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.2rem;
}

.contact-list li span,
.contact-list li a {
  font-size: 0.95rem; color: var(--navy); font-weight: 500;
}

.contact-list li a:hover { color: var(--orange); }

.contact-form {
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--text);
}

.field input,
.field textarea {
  width: 100%; padding: 0.8rem 1rem;
  font-family: var(--font); font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--orange);
}

.submit-btn {
  width: 100%; padding: 0.9rem;
  background: var(--orange); color: #fff;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: background 0.3s;
}

.submit-btn:hover { background: var(--orange-dark); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text small { color: rgba(255,255,255,0.5); }

.footer-brand address {
  margin-top: 1.5rem;
  font-size: 0.85rem; line-height: 1.8;
}

.footer-brand address p { margin-bottom: 0.35rem; }
.footer-brand address strong { color: rgba(255,255,255,0.9); }
.footer-brand a { color: rgba(255,255,255,0.65); }
.footer-brand a:hover { color: var(--orange-light); }

.footer-col h5 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 1.25rem;
}

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--orange-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 0.8rem;
}

.footer-certs {
  display: flex; gap: 0.75rem;
}

.footer-certs span {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .business-grid { grid-template-columns: 1fr; }
  .biz-card, .biz-card--tall { min-height: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; flex-wrap: wrap; }
  .catalog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 1.5rem; gap: 0;
    transform: translateY(-120%); opacity: 0;
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open { transform: translateY(0); opacity: 1; }

  .nav-list {
    flex-direction: column; width: 100%; gap: 0;
  }

  .nav-list a {
    display: block; padding: 0.85rem 0;
    color: var(--navy) !important;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions { margin-top: 1rem; }
  .lang-switch { color: var(--text-muted); }
  .menu-toggle { display: flex; }

  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .cases-header { flex-direction: column; align-items: flex-start; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .profile-bg { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
