/* ============================================================
   PT. Son Duct Sejahtera — Global Stylesheet
   Mobile-first, responsive, fast-loading
   ============================================================ */

:root {
  /* Brand colors taken from the SonDuct logo: navy + red */
  --navy: #14497e;
  --navy-dark: #0c2f53;
  --blue: #1d6fb8;
  --blue-light: #e8f1f9;
  --accent: #c1272d;
  --accent-dark: #9e1f24;
  --text: #243242;
  --text-light: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e3e8ee;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.10);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

section { padding: 64px 0; }

.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; margin-bottom: 8px;
}
.section-head p { color: var(--text-light); margin-top: 12px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.brand .brand-name { font-weight: 800; color: var(--navy); font-size: 1.02rem; line-height: 1.2; }
.brand .brand-tag { display: block; font-size: .72rem; color: var(--text-light); font-weight: 500; letter-spacing: .4px; }
.brand:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--navy); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px;
}
.main-nav a:hover { background: var(--blue-light); text-decoration: none; }
.main-nav a.active { color: var(--blue); }
.main-nav a.nav-cta {
  background: var(--accent); color: #fff; margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; margin-left: 10px; font-size: .8rem;
}
.lang-switch a { padding: 4px 10px; color: var(--text-light); font-weight: 700; }
.lang-switch a.on { background: var(--navy); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 110px 0 120px;
  background:
    linear-gradient(110deg, rgba(8,30,54,.93) 35%, rgba(12,47,83,.62)),
    url('../assets/img/rdmp-ducting-hall.jpg') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 700px; }
.hero .hero-sub { max-width: 640px; margin: 18px 0 30px; font-size: 1.12rem; color: #d7e3ef; }
.hero .eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; font-size: .85rem; display: block; margin-bottom: 14px;
}

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; transition: .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 10px; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(110deg, var(--navy-dark), var(--navy) 70%, #143a63);
  color: #fff; padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d8e8; max-width: 700px; margin-top: 10px; }
.breadcrumb { font-size: .85rem; color: #9fb6cc; margin-bottom: 14px; }
.breadcrumb a { color: #cfe0f1; }

/* ---------- Stats ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 40px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-num { font-size: 2.3rem; font-weight: 800; color: #ffd34d; }
.stat-label { font-size: .92rem; color: #c9d8e8; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-light); font-size: .95rem; }
.card .card-link { padding: 0 22px 20px; font-weight: 700; font-size: .92rem; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

/* ---------- Feature list ---------- */
.check-list { list-style: none; margin-top: 14px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-dark); font-weight: 800;
}

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img { height: 230px; width: 100%; object-fit: cover; transition: .35s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(7,29,52,.88));
  color: #fff; font-size: .85rem; font-weight: 600; padding: 26px 14px 12px;
}

/* ---------- Client strip ---------- */
.client-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.client-strip span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: .88rem; color: var(--navy);
}

/* ---------- Projects timeline ---------- */
.year-block { margin-bottom: 36px; }
.year-block h3 {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-size: 1.35rem;
}
.year-block h3::after { content: ""; flex: 1; height: 2px; background: var(--border); }
.project-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.project-list li {
  background: var(--bg-soft); border-left: 4px solid var(--blue);
  border-radius: 6px; padding: 12px 16px; font-size: .95rem;
}
.project-list li strong { color: var(--navy); display: block; }
.project-list li span { color: var(--text-light); font-size: .86rem; }

/* ---------- Tables ---------- */
table.machine-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.machine-table th, .machine-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.machine-table th { background: var(--navy); color: #fff; font-size: .9rem; letter-spacing: .5px; }
.machine-table td:last-child, .machine-table th:last-child { text-align: center; }
.machine-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--navy-dark), var(--navy));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c9d8e8; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 30px;
}
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
  background: var(--navy); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem;
}
.contact-item h4 { margin-bottom: 2px; }
.contact-item p, .contact-item a { color: var(--text-light); font-size: .95rem; }

form.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; font-size: .95rem; margin-top: 6px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
.map-embed { width: 100%; height: 380px; border: 0; border-radius: var(--radius); margin-top: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9d9; padding: 56px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; letter-spacing: .5px; }
.site-footer a { color: #b9c9d9; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  text-align: center; font-size: .83rem; color: #7e93a8;
}

/* ---------- Floating call button (mobile) ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: var(--accent); color: #fff; font-weight: 800;
  padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow);
  display: none; align-items: center; gap: 8px;
}
.float-call:hover { text-decoration: none; background: var(--accent-dark); color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--border); padding: 10px 16px 18px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .main-nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 8px; }
  .lang-switch { margin: 14px 0 0; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .hero { padding: 70px 0 80px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 150px; }
  .project-list { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .hero .btn { display: block; text-align: center; max-width: 320px; }
  .hero .btn + .btn { margin-top: 12px; }
  .float-call { display: inline-flex; }
  .brand .brand-tag { display: none; }
  .card img { height: 180px; }
}

@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-num { font-size: 1.8rem; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
