/* =================================================================
   DSNG Sustainability Report 2025 — Interactive PWA
   Design system: elegant, nature-inspired, dependency-free
   ================================================================= */

:root {
  /* Palette — forest / emerald / earth */
  --green-900: #07120e;
  --green-800: #0b3a2c;
  --green-700: #0e5c46;
  --green-600: #137a5c;
  --green-500: #1f9d6b;
  --green-400: #34b87f;
  --green-300: #7bc8a4;
  --green-100: #cfe8da;
  --gold: #c9a24b;
  --sand: #f4efe6;

  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #112019;
  --ink-soft: #4b5b53;
  --line: #e1e8e1;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(7, 18, 14, .06);
  --shadow: 0 10px 30px rgba(7, 18, 14, .10);
  --shadow-lg: 0 24px 60px rgba(7, 18, 14, .18);

  --sidebar-w: 280px;
  --header-h: 64px;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0a1410;
  --surface: #0f1e18;
  --surface-2: #13241d;
  --ink: #eaf3ee;
  --ink-soft: #9fb4aa;
  --line: #1d322a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  color: #eafff6;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-logo {
  height: 38px; width: auto; max-width: 100%;
  object-fit: contain;
}

.nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }

.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #d7eee4;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  position: relative;
  border: 1px solid transparent;
}
.nav-item svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(31,157,107,.35), rgba(31,157,107,.1));
  color: #fff;
  border-color: rgba(52, 184, 127, .4);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; background: var(--gold); border-radius: 0 4px 4px 0;
}

.sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem; color: var(--green-300);
}

/* ---------- Main ---------- */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  height: var(--header-h);
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-title {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.12; padding-left: 14px; margin-left: 2px;
  border-left: 1px solid var(--line);
}
.header-title .ht-line1 {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; color: var(--ink);
  letter-spacing: .2px;
}
.header-title .ht-line2 {
  font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green-600); font-weight: 700;
}
[data-theme="dark"] .header-title .ht-line2 { color: var(--green-400); }

.topbar .crumb { font-size: .82rem; color: var(--ink-soft); flex: 1; text-align: right; }
.topbar .crumb b { color: var(--ink); font-family: var(--serif); }

.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  border-radius: 11px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .15s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  font-size: .8rem; font-weight: 600;
}
.lang-toggle button { border: 0; background: var(--surface); color: var(--ink-soft); padding: 9px 12px; cursor: pointer; }
.lang-toggle button.on { background: var(--green-600); color: #fff; }

#hamburger { display: none; }

/* ---------- Content / sections ---------- */
.content { padding: 34px clamp(18px, 4vw, 54px) 80px; max-width: 1160px; }
.section { display: none; animation: fade .5s var(--ease); }
.section.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-head { margin-bottom: 26px; }
.section-head .eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-600); font-weight: 700; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head .lead { color: var(--ink-soft); max-width: 720px; margin-top: 10px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600) 60%, var(--green-500));
  color: #eafff6; padding: clamp(34px, 6vw, 70px);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background:
    radial-gradient(420px 420px at 88% -10%, rgba(201,162,75,.5), transparent 60%),
    radial-gradient(520px 520px at 10% 120%, rgba(123,200,164,.45), transparent 60%);
}
.hero .leaf-deco {
  position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .12; z-index: -1;
  transform: rotate(-12deg);
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .5px;
  margin-bottom: 18px; backdrop-filter: blur(6px);
}
.hero .tag svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 8px; }
.hero .sub { font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--green-100); font-style: italic; font-family: var(--serif); }
.hero .company { margin-top: 18px; font-weight: 600; letter-spacing: .3px; }
.hero .company small { display:block; color: var(--green-100); font-weight: 400; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  font-size: .95rem;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: #1c1405; box-shadow: 0 10px 24px rgba(201,162,75,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,162,75,.5); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* hero highlights grid */
.hi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-top: 30px;
}
.hi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.hi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hi-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 14px; }
[data-theme="dark"] .hi-card .ic { background: var(--surface-2); color: var(--green-400); }
.hi-card .ic svg { width: 24px; height: 24px; }
.hi-card .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--green-700); }
[data-theme="dark"] .hi-card .num { color: var(--green-400); }
.hi-card .lbl { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Generic blocks ---------- */
.block { margin: 30px 0; }
.block > h3 { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.block > h3::before { content: ''; width: 6px; height: 22px; background: var(--green-500); border-radius: 4px; }

.prose p { color: var(--ink-soft); font-size: 1.04rem; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--green-500); }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-300); }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-400)); color: #fff; margin-bottom: 14px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h4 { font-size: 1.12rem; margin-bottom: 7px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* stats grid */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold)); }
.stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--green-700); }
[data-theme="dark"] .stat .num { color: var(--green-400); }
.stat .lbl { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* charts */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); }
.chart-card .cap { color: var(--ink-soft); font-size: .85rem; margin-top: 10px; }
.chart-wrap { width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.legend .li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.donut-flex { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.donut-flex .chart-wrap { width: 200px; flex: none; }

/* SDG */
.sdg-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.sdg {
  width: 84px; height: 84px; border-radius: 14px; color: #fff; font-weight: 700;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8px; box-shadow: var(--shadow-sm); transition: transform .2s;
  font-size: .62rem; line-height: 1.1;
}
.sdg:hover { transform: scale(1.06); }
.sdg b { font-size: 1.4rem; font-family: var(--serif); }

/* accordion */
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px;
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-q { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; }
.acc-q .chev { transition: transform .3s; color: var(--green-600); display: inline-flex; }
.acc-q .chev svg { width: 18px; height: 18px; }
.acc-item.open .acc-q .chev { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-a p { padding: 0 20px 18px; color: var(--ink-soft); }

/* badges */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s;
}
.cert:hover { transform: translateY(-4px); border-color: var(--gold); }
.cert .seal { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: #fff; font-size: .8rem;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); box-shadow: var(--shadow-sm); }
.cert b { display: block; font-size: 1rem; }
.cert span { font-size: .78rem; color: var(--ink-soft); }

/* table */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; min-width: 560px; }
table.data th { background: var(--green-700); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; }
table.data td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); }
table.data tr:nth-child(even) td { background: var(--surface-2); }
table.data td:first-child { color: var(--ink); font-weight: 600; }

/* timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--green-500), var(--green-300)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green-500); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--green-500); }
.tl-item .yr { font-family: var(--serif); font-weight: 700; color: var(--green-700); font-size: 1.15rem; }
[data-theme="dark"] .tl-item .yr { color: var(--green-400); }
.tl-item p { color: var(--ink-soft); }

/* quote */
.quote { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #eafff6;
  border-radius: var(--radius); padding: 34px; position: relative; box-shadow: var(--shadow); }
.quote .mark { font-family: var(--serif); font-size: 5rem; line-height: .6; opacity: .35; }
.quote p { font-size: 1.25rem; font-style: italic; font-family: var(--serif); margin: 4px 0 14px; }
.quote .by { color: var(--green-100); font-size: .9rem; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gal {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 16px; color: #fff; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .25s;
}
.gal:hover { transform: scale(1.02); }
.gal::after { content:''; position:absolute; inset:0; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index:0; }
.gal span { position: relative; z-index: 1; font-weight: 600; }
.gal.g1 { background: linear-gradient(135deg,#0e5c46,#1f9d6b); }
.gal.g2 { background: linear-gradient(135deg,#137a5c,#34b87f); }
.gal.g3 { background: linear-gradient(135deg,#0b3a2c,#137a5c); }
.gal.g4 { background: linear-gradient(135deg,#1f9d6b,#7bc8a4); }
.gal.g5 { background: linear-gradient(135deg,#c9a24b,#137a5c); }
.gal.g6 { background: linear-gradient(135deg,#0e5c46,#c9a24b); }

/* video */
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); }
.video-frame { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-600)); display: grid; place-items: center; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.video-frame .ph { text-align: center; color: #eafff6; padding: 20px; }
.video-frame .ph .play { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); }
.video-frame .ph .play svg { width: 30px; height: 30px; }

/* download cta */
.dl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.dl .ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.18);
  display: grid; place-items: center; flex: none; }
.dl .ic svg { width: 28px; height: 28px; }
.dl .txt { flex: 1; min-width: 200px; }
.dl .txt b { font-family: var(--serif); font-size: 1.1rem; }
.dl .txt p { color: var(--green-100); font-size: .9rem; }

/* note banner */
.note-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; color: var(--ink-soft);
  margin-bottom: 24px;
}
.note-banner svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }

/* footer */
.foot { padding: 26px clamp(18px,4vw,54px); border-top: 1px solid var(--line); color: var(--ink-soft);
  font-size: .82rem; display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* overlay for mobile drawer */
.overlay { position: fixed; inset: 0; background: rgba(7,18,14,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* scroll-to-top */
#toTop { position: fixed; right: 22px; bottom: 22px; z-index: 45; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; box-shadow: var(--shadow); }
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  #hamburger { display: grid; }
}

@media (max-width: 720px) {
  /* On small screens the breadcrumb competes with the two-line title — hide it */
  .topbar .crumb { display: none; }
}

@media (max-width: 560px) {
  .lang-toggle button { padding: 9px 10px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .hero { padding: 28px 22px; }
  .header-title .ht-line1 { font-size: .94rem; }
  .header-title .ht-line2 { font-size: .64rem; letter-spacing: 1.8px; }
}

/* install banner */
#installBar {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--green-700); color: #fff; padding: 12px 18px; font-size: .9rem;
}
#installBar.show { display: flex; }
#installBar .btn { padding: 8px 14px; }
