/* ==========================================================================
   Eastern Power Trade Co. Ltd. (EPT) — eptjo.com
   Design system: dark, professional, industrial/energy B2B
   ========================================================================== */

:root {
  --bg: #0a0e14;
  --bg-alt: #0f151f;
  --bg-card: #141b26;
  --bg-card-hover: #182030;
  --border: #232c3a;
  --border-light: #2e3a4c;
  --text: #e8ecf2;
  --text-muted: #9aa7b8;
  --text-dim: #6b7688;
  --accent: #7263f0;
  --accent-strong: #5336dc;
  --accent-soft: rgba(114, 99, 240, 0.12);
  --gold: #e0ac33;
  --gold-light: #f3c765;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-muted); margin: 0 0 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 24px rgba(83, 54, 220, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(224, 172, 51, 0.28);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 44px; height: 44px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-gold-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: #060809;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,9,0.55) 0%, rgba(6,8,9,0.75) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,8,9,0.9) 0%, rgba(6,8,9,0.35) 55%, rgba(6,8,9,0.75) 100%);
}
.hero-content { position: relative; max-width: 720px; }
.hero-content p.lead { font-size: 1.15rem; color: #c7cedb; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-stat {
  background: rgba(20, 27, 38, 0.7);
  padding: 22px 20px;
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.7rem; color: var(--gold-light); font-weight: 800; }
.hero-stat span { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: #060809;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.28; }
.page-hero .hero-content { max-width: 780px; }
.breadcrumbs {
  position: relative;
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold-light); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--border-light); transform: translateY(-4px); background: var(--bg-card-hover); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-muted); font-size: 0.95rem;
}
.card-list li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-media .badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  box-shadow: var(--shadow);
}
.split-media .badge strong { display: block; font-size: 1.8rem; color: var(--gold-light); }
.split-media .badge span { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 640px) { .split-media .badge { position: static; margin-top: 16px; display: inline-block; } }

/* ---------- Projects ---------- */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0) 30%, rgba(10,14,20,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
}
.project-card .overlay .tag {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin-bottom: 6px;
}
.project-card .overlay h3 { margin: 0; }

/* ---------- Team ---------- */
.team-lead {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 780px) { .team-lead { grid-template-columns: 1fr; } }
.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.team-photo img { width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; object-position: center 40%; display: block; }
.credential-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.credential-list li {
  padding-left: 22px; position: relative; color: var(--text-muted); font-size: 0.94rem;
}
.credential-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 9, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list .icon svg { width: 20px; height: 20px; }
.contact-info-list strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: var(--text-muted); font-size: 0.92rem; }
.contact-info-list a:hover { color: var(--gold-light); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) contrast(0.9); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 13px 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #14102f, #0a0e14 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: center;
  padding: 28px 0; color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.03em;
}
.trust-strip span { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 38px; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.footer-social a:hover { color: #fff; border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #1a1206; padding: 10px 16px; border-radius: 6px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .hero { padding: 96px 0 56px; }
  .page-hero { padding: 116px 0 48px; }
  .section-head { margin-bottom: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hero-stat { padding: 18px 14px; }
  .hero-stat strong { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-band { padding: 52px 0; }
  .card { padding: 26px; }
  .form-card { padding: 24px; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .brand-text small { display: none; }
}

@media (max-width: 400px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-wrap { height: 72px; }
  .nav-links { inset: 72px 0 0 0; }
  .brand img { height: 36px; }
}
