/* ==========================================================================
   PT Daya Anugerah Sukses (DAS Chemical) — Public Stylesheet
   Industrial chemical trading / distribution aesthetic.
   ========================================================================== */

:root {
  /* Brand palette — DAS Chemical
     Names kept (--brick/--navy/--blue) so the whole stylesheet and all views
     keep working; only the colour values differ from the base theme. */
  --brick:        #C2761B;   /* accent — amber  */
  --brick-dark:   #9c5d12;
  --brick-soft:   #dd9236;
  --navy:         #0E3B3E;   /* primary — deep teal */
  --navy-2:       #14514f;
  --blue:         #1D8C86;   /* secondary — teal */
  --blue-soft:    #5cb7ae;
  --ink:          #1a1f29;
  --slate:        #4b5566;
  --muted:        #7a8597;
  --line:         #e4e7ec;
  --paper:        #ffffff;
  --bg:           #f6f5f2;
  --bg-2:         #efede8;
  --cream:        #faf8f4;

  /* Typography */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --maxw: 1180px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(22,36,63,.06), 0 1px 3px rgba(22,36,63,.08);
  --shadow:    0 6px 22px rgba(22,36,63,.10);
  --shadow-lg: 0 18px 50px rgba(22,36,63,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brick-dark); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper); }
.section--navy { background: var(--navy); color: #dfe5ef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: var(--brick); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--blue-soft); }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 65ch; }
.section--navy .lead { color: #c4cddc; }

.h-xl { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.h-md { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.text-brick { color: var(--brick) !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* diagonal-cut signature: a thin angled accent rule under headings */
.rule {
  width: 64px; height: 5px; background: var(--brick);
  margin: 18px 0 26px; transform: skewX(-24deg); border-radius: 1px;
}
.center .rule { margin-inline: auto; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid transparent; transition: all .22s var(--ease);
  letter-spacing: .01em; white-space: nowrap;
}
.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--bg-2); color: var(--navy); }
.btn--wa { background: #1f9d57; color:#fff; }
.btn--wa:hover { background:#16823f; color:#fff; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 8px 16px; font-size: .85rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: 42px; }
.brand__txt { font-family: var(--font-display); font-weight: 800; line-height: 1.05; color: var(--navy); font-size: .92rem; letter-spacing: .01em; }
.brand__txt span { display: block; color: var(--brick); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--navy); padding: 8px 13px; border-radius: var(--radius); position: relative;
}
.nav__links a:hover { color: var(--brick); background: var(--bg); }
.nav__links a.is-active { color: var(--brick); }
.nav__links a.is-active::after {
  content:""; position:absolute; left:13px; right:13px; bottom:2px; height:2px;
  background: var(--brick); transform: skewX(-24deg);
}
.nav__cta { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 7px 12px; color: var(--navy);
}
.lang-switch:hover { border-color: var(--navy); color: var(--navy); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s var(--ease); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta { display: none; }
  .nav__links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow); }
  .nav__cta { position: absolute; top: 100%; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__links a { padding: 12px 8px; border-bottom: 1px solid var(--bg-2); }
  .nav.is-open .nav__cta { display: flex; left: 24px; right: 24px; top: auto; position: static; margin-top: 12px; }
}

/* ==========================================================================
   Hero — diagonal split
   ========================================================================== */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }
.hero__content { padding: 92px 0 92px; display: flex; flex-direction: column; justify-content: center; max-width: 600px; }
.hero__content .eyebrow { color: var(--blue-soft); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero__sub { font-size: 1.16rem; color: #c4cddc; margin-bottom: 30px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media::before {
  /* diagonal brick wedge */
  content:""; position:absolute; inset:0; left:-90px;
  background: var(--brick);
  clip-path: polygon(120px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(180px 0, 100% 0, 100% 100%, 60px 100%); z-index: 2;
}
.hero__stats { display: flex; gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 26px; }
.hero__stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.15); }
.hero__stat:last-child { border: 0; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; line-height: 1; }
.hero__stat span { font-size: .82rem; color: var(--blue-soft); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 64px 0 56px; min-width: 0; }
  .hero__media { min-height: 280px; }
  .hero__media::before { left:0; clip-path: polygon(0 60px,100% 0,100% 100%,0 100%); }
  .hero__media img { clip-path: polygon(0 90px,100% 30px,100% 100%,0 100%); }
}

@media (max-width: 480px) {
  /* .hero__stats is a no-wrap flex row with fixed gaps; without letting it
     wrap, its intrinsic min-content width forces the whole hero__content
     grid cell wider than the screen, clipping the heading/paragraph/buttons
     off the right edge (the cut-off text seen on narrow Android screens). */
  .hero__stats { flex-wrap: wrap; row-gap: 18px; }
  .hero__stat { min-width: 0; padding-right: 22px; margin-right: 22px; }
}

/* ==========================================================================
   Page banner (interior pages) — diagonal motif
   ========================================================================== */
.banner { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 78px 0 70px; }
.banner::after {
  content:""; position:absolute; top:0; right:0; bottom:0; width: 42%;
  background: linear-gradient(135deg, var(--brick) 0%, var(--brick-dark) 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%); opacity: .92;
}
.banner__inner { position: relative; z-index: 2; }
.banner h1 { color: #fff; margin: 0; }
.banner .crumbs { font-size: .85rem; color: var(--blue-soft); margin-bottom: 14px; font-family: var(--font-display); letter-spacing: .04em; }
.banner .crumbs a { color: var(--blue-soft); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.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: 900px){ .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(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(162,54,32,.08); color: var(--brick); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }
.card--accent::before {
  content:""; position:absolute; top:0; left:0; width:6px; height:100%;
  background: var(--brick); transform: skewX(0); 
}

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__dot { flex-shrink:0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color:#fff; display:grid; place-items:center; font-family: var(--font-display); font-weight: 800; }
.feature h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--slate); font-size: .96rem; }

/* split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--media-first .split__media { order: -1; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 32px; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width:100%; }
.media-frame { position: relative; }
.media-frame::before { content:""; position:absolute; left:-16px; bottom:-16px; width: 60%; height: 60%; background: var(--brick); border-radius: var(--radius-lg); z-index:0; opacity:.12;}
.media-frame img { position: relative; z-index: 1; }

/* SIQIS chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  background: var(--navy); color:#fff; padding: 7px 14px; border-radius: 999px;
}
.chip b { color: var(--blue-soft); }

/* ==========================================================================
   Tables (specs + density)
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background:#fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy); color:#fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; position: sticky; top: 0; }
table.data tbody tr:nth-child(even) { background: var(--cream); }
table.data tbody tr:hover { background: rgba(46,111,183,.06); }
table.data td:first-child { font-weight: 600; color: var(--navy); }

.density { font-size: .86rem; }
.density th, .density td { padding: 8px 12px; text-align: center; border: 1px solid var(--line); }
.density thead th { background: var(--brick); color:#fff; }
.density tbody tr:nth-child(even){ background: var(--cream); }

.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--brick); padding: 4px 0 4px 14px; margin-top: 18px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--brick); color:#fff; position: relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; top:0; right:0; bottom:0; width:280px; background: rgba(0,0,0,.12); clip-path: polygon(40% 0,100% 0,100% 100%,0 100%);}
.cta-band__inner { position: relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:30px; padding: 52px 0; flex-wrap: wrap; }
.cta-band h2 { color:#fff; margin:0 0 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin:0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display:grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items:start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns:1fr; gap:36px; } }
.info-list { list-style:none; padding:0; margin: 18px 0 0; }
.info-list li { display:flex; gap:14px; padding: 14px 0; border-bottom:1px solid var(--line); }
.info-list .ic { flex-shrink:0; width:42px; height:42px; border-radius:var(--radius); background:var(--navy); color:#fff; display:grid; place-items:center; }
.info-list .ic svg { width:20px;height:20px; }
.info-list b { display:block; font-family:var(--font-display); color:var(--navy); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; }
.info-list span, .info-list a { color: var(--slate); font-size:.98rem; word-break: break-word; }

/* forms */
.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family:var(--font-display); font-weight:600; font-size:.88rem; color:var(--navy); margin-bottom:7px; }
.field input, .field textarea, .field select {
  width:100%; font-family:var(--font-body); font-size:1rem; color:var(--ink);
  padding: 12px 14px; border:1.5px solid var(--line); border-radius:var(--radius);
  background:#fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,111,183,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .field--row { grid-template-columns:1fr; } }
.hp { position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden; }

.captcha-row { display:flex; align-items:flex-end; gap:14px; }
.captcha-row .field { flex:1; margin-bottom:0; }
.captcha-box { display:flex; align-items:center; gap:8px; }
.captcha-box img { height:48px; border:1.5px solid var(--line); border-radius:var(--radius); background:#fff; }
.captcha-refresh { background:var(--bg-2); border:0; width:40px; height:40px; border-radius:var(--radius); cursor:pointer; color:var(--navy); display:grid; place-items:center; }
.captcha-refresh:hover { background:var(--line); }

/* flash messages */
.flash { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size:.96rem; border:1px solid; display:flex; gap:10px; align-items:flex-start; }
.flash--success { background:#e9f7ef; border-color:#bfe6cf; color:#176c3a; }
.flash--error { background:#fdecea; border-color:#f5c6c2; color:#a32219; }
.flash--info { background:#eaf2fb; border-color:#c3dbf5; color:#1d4e85; }

/* map */
.map-embed { border:0; width:100%; height:320px; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color:#aeb8c9; padding: 64px 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
@media (max-width:820px){ .footer-grid { grid-template-columns:1fr; gap:28px; } }
.site-footer h4 { color:#fff; font-size:.86rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px; }
.site-footer a { color:#aeb8c9; }
.site-footer a:hover { color:#fff; }
.footer-brand { display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.footer-brand img { height:44px; width:44px; }
.footer-brand .brand__txt { color:#fff; }
.footer-brand .brand__txt span { color: var(--brick-soft); }
.foot-links { list-style:none; padding:0; margin:0; }
.foot-links li { margin-bottom:10px; }
.foot-contact { list-style:none; padding:0; margin:0; font-size:.93rem; line-height:1.5; }
.foot-contact li { margin-bottom:12px; display:flex; gap:10px; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.1); padding: 20px 0; font-size:.84rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background:#1f9d57; color:#fff;
  display:grid; place-items:center; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color:#fff; }
.wa-float svg { width:30px; height:30px; }

/* utilities */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom:0 !important; }
