@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&display=swap');

:root {
  --bg-light: #e9eef9;
  --bg-dark: #1e254d;
  --bg-soft: #dfe7f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-dark: rgba(255, 255, 255, 0.08);
  --text-dark: #1d2450;
  --text-light: #edf2ff;
  --muted-dark: #506090;
  --muted-light: rgba(237, 242, 255, 0.74);
  --line-dark: rgba(29, 36, 80, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);
  --cyan: #57c8ed;
  --cyan-strong: #00a6e8;
  --pink: #f48bb8;
  --pink-soft: #ffd6e8;
  --green: #2fbf98;
  --yellow: #ffbf47;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(87, 200, 237, 0.16), transparent 26%),
    radial-gradient(circle at right center, rgba(244, 139, 184, 0.12), transparent 30%),
    #cfd9f0;
  color: var(--text-dark);
}

a {
  color: inherit;
}

.presentation {
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.slide {
  position: relative;
  width: min(100%, 1600px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 24px;
  padding: 54px 62px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.theme-light {
  background:
    radial-gradient(circle at top right, rgba(87, 200, 237, 0.11), transparent 28%),
    radial-gradient(circle at bottom left, rgba(244, 139, 184, 0.08), transparent 20%),
    var(--bg-light);
  color: var(--text-dark);
}

.theme-light::before {
  width: 420px;
  height: 420px;
  right: -220px;
  top: -210px;
  background: radial-gradient(circle, rgba(87, 200, 237, 0.18), transparent 70%);
}

.theme-light::after {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(244, 139, 184, 0.16), transparent 68%);
}

.theme-dark {
  background:
    radial-gradient(circle at top right, rgba(87, 200, 237, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(244, 139, 184, 0.08), transparent 24%),
    var(--bg-dark);
  color: var(--text-light);
}

.theme-dark::before {
  width: 360px;
  height: 360px;
  right: -140px;
  top: -130px;
  background: radial-gradient(circle, rgba(87, 200, 237, 0.16), transparent 72%);
}

.theme-dark::after {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 72%);
}

.slide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  background: var(--text-dark);
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-dark .brand-mark {
  background: rgba(255, 255, 255, 0.96);
  color: var(--bg-dark);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  background: var(--pink-soft);
  color: var(--text-dark);
}

.theme-dark .chip {
  background: rgba(244, 139, 184, 0.95);
}

.eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-strong);
}

.theme-dark .eyebrow {
  color: var(--cyan);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  height: 100%;
}

.hero-copy h1,
.section-title {
  margin: 0;
  font-size: clamp(48px, 5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(34px, 3.6vw, 58px);
}

.underline {
  width: 180px;
  height: 6px;
  border-radius: 999px;
  margin: 28px 0 24px;
  background: currentColor;
  opacity: 0.9;
}

.hero-copy p,
.lead,
.body-text {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.lead {
  font-size: 23px;
}

.body-text {
  font-size: 19px;
  line-height: 1.5;
}

.theme-dark .body-text,
.theme-dark .lead,
.theme-dark .small-text,
.theme-dark .list,
.theme-dark .caption {
  color: var(--muted-light);
}

.small-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-dark);
}

.caption {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted-dark);
}

.hero-media,
.media-card,
.image-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-media {
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(0, 166, 232, 0.1), rgba(29, 36, 80, 0.08)),
    url('./assets/samar-pvh.jpg') center/cover no-repeat;
}

.hero-media::after,
.media-card::after,
.image-block::after {
  content: attr(data-label);
  position: absolute;
  top: 24px;
  right: 22px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(244, 139, 184, 0.95);
  color: var(--text-dark);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 28, 59, 0.02), rgba(22, 28, 59, 0.12));
}

.accent-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: grid;
  grid-template-columns: 0.35fr 0.33fr 0.32fr;
}

.accent-footer span:nth-child(1) {
  background: #ea5d97;
  border-top-right-radius: 22px;
}

.accent-footer span:nth-child(2) {
  background: var(--cyan);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.accent-footer span:nth-child(3) {
  background: var(--bg-dark);
  border-top-left-radius: 22px;
}

.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.stat-card,
.quote-card,
.timeline-card,
.reference-card,
.table-card {
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.panel,
.stat-card,
.quote-card,
.timeline-card,
.reference-card,
.table-card {
  background: var(--surface);
  border: 1px solid rgba(29, 36, 80, 0.08);
}

.theme-dark .panel,
.theme-dark .stat-card,
.theme-dark .quote-card,
.theme-dark .timeline-card,
.theme-dark .reference-card,
.theme-dark .table-card {
  background: var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel h3,
.stat-card h3,
.timeline-card h3,
.table-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.1;
}

.panel p,
.quote-card p,
.timeline-card p,
.table-card p,
.reference-card p {
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 17px;
  line-height: 1.35;
  color: var(--muted-dark);
}

.theme-dark .stat-label {
  color: var(--muted-light);
}

.list {
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
  line-height: 1.5;
}

.list li + li {
  margin-top: 8px;
}

.quote-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: start;
}

.portrait {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(87, 200, 237, 0.5), rgba(244, 139, 184, 0.35)),
    url('https://images.unsplash.com/photo-1612277795421-9bc7706a4a41?auto=format&fit=crop&w=500&q=80') center/cover no-repeat;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 2px dashed rgba(87, 200, 237, 0.55);
  background: linear-gradient(135deg, rgba(87, 200, 237, 0.12), rgba(244, 139, 184, 0.08));
  color: var(--muted-dark);
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
}

.theme-dark .placeholder {
  color: var(--muted-light);
  border-color: rgba(87, 200, 237, 0.5);
}

.chart-bar-group {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 150px 1fr 88px;
  gap: 16px;
  align-items: center;
  font-size: 17px;
}

.bar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(29, 36, 80, 0.08);
}

.theme-dark .bar {
  background: rgba(255, 255, 255, 0.1);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-strong));
}

.bar.warning span {
  background: linear-gradient(90deg, #f69ebd, #ffbf47);
}

.map-card,
.image-block {
  min-height: 295px;
}

.map-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(87, 200, 237, 0.12), rgba(29, 36, 80, 0.02)),
    var(--surface);
  border: 1px solid rgba(29, 36, 80, 0.08);
}

.theme-dark .map-card {
  background:
    linear-gradient(135deg, rgba(87, 200, 237, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.region-map {
  position: relative;
  height: 100%;
  min-height: 240px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 40%, rgba(87, 200, 237, 0.5), transparent 18%),
    radial-gradient(circle at 50% 70%, rgba(87, 200, 237, 0.25), transparent 16%),
    radial-gradient(circle at 70% 34%, rgba(87, 200, 237, 0.22), transparent 14%),
    linear-gradient(135deg, rgba(29, 36, 80, 0.85), rgba(0, 166, 232, 0.48));
}

.region-map .dot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.region-map .dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pink);
  margin-right: 10px;
}

.region-map .pvh {
  top: 32%;
  left: 28%;
}

.region-map .jipa {
  top: 54%;
  left: 46%;
}

.region-map .cacoal {
  top: 72%;
  left: 58%;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.table-card th,
.table-card td {
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
}

.theme-dark .table-card th,
.theme-dark .table-card td {
  border-bottom-color: var(--line-light);
}

.table-card tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card {
  min-height: 260px;
}

.timeline-year {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(87, 200, 237, 0.16);
  color: var(--cyan-strong);
  font-size: 15px;
  font-weight: 700;
}

.theme-dark .timeline-year {
  background: rgba(87, 200, 237, 0.18);
  color: var(--cyan);
}

.values-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 18px;
}

.value-card {
  min-height: 205px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(29, 36, 80, 0.08);
}

.theme-dark .value-card {
  background: var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.value-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.icon-card {
  min-height: 182px;
  padding: 20px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(29, 36, 80, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-dark .icon-card {
  background: var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.icon-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 200, 237, 0.16);
  color: var(--cyan-strong);
  font-size: 22px;
}

.theme-dark .icon-card .icon {
  color: var(--cyan);
}

.image-block {
  background: linear-gradient(180deg, rgba(0, 166, 232, 0.08), rgba(29, 36, 80, 0.1)), center/cover no-repeat;
}

.image-pvh {
  background-image:
    linear-gradient(180deg, rgba(0, 166, 232, 0.08), rgba(29, 36, 80, 0.1)),
    url('./assets/samar-cacoal.jpg');
}

.image-generic {
  background-image:
    linear-gradient(180deg, rgba(0, 166, 232, 0.08), rgba(29, 36, 80, 0.1)),
    url('https://images.unsplash.com/photo-1580281657527-47fbecd2ed4d?auto=format&fit=crop&w=1200&q=80');
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kpi {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(29, 36, 80, 0.08);
}

.theme-dark .kpi {
  background: var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.kpi strong {
  display: block;
  margin-bottom: 10px;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reference-card {
  min-height: 150px;
}

.reference-card a {
  color: var(--cyan-strong);
  text-decoration: none;
}

.theme-dark .reference-card a {
  color: var(--cyan);
}

.page-no {
  position: absolute;
  right: 36px;
  bottom: 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
}

@media (max-width: 1100px) {
  .presentation {
    padding: 12px 8px 28px;
  }

  .slide {
    aspect-ratio: auto;
    min-height: 100vh;
    border-radius: 24px;
    padding: 28px 22px 46px;
  }

  .hero,
  .cols-2,
  .cols-3,
  .split,
  .timeline,
  .values-grid,
  .stats,
  .kpi-strip,
  .references,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .map-card,
  .image-block {
    min-height: 320px;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-no {
    right: 22px;
    bottom: 20px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .presentation {
    padding: 0;
    width: 100%;
  }

  .slide {
    margin: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
}
