/* ============================================
   PT DSITU JAYA BERSAMA — Website Styles
   Dark premium · hijau agro · oranye/emas aksen
   
   Structure:
   1. Design Tokens & Reset
   2. Typography (fluid)
   3. Layout: Header, Hero, Sections, Grid
   4. Components: Cards, Buttons, Forms, Nav
   5. Page-specific: Footer, Contact, Org, Testimonials
   6. Utilities: Animations, Floating buttons
   7. Responsive (consolidated)
   8. Print
   ============================================ */

/* ── 1. DESIGN TOKENS & RESET ─────────────────────── */

:root {
  /* Colors — Dark theme (default) */
  --navy-950: #06131c;
  --navy-900: #081b29;
  --navy-800: #0e2d45;
  --blue-700: #145da0;
  --green-700: #2f8f46;
  --green-500: #67b846;
  --green-400: #8ed46e;
  --orange-600: #b9631a;
  --gold-300: #d6ad63;
  --ink: #10202b;
  --text: #f6f8f7;
  --muted: #b8c4c8;
  --line: rgba(255, 255, 255, .16);
  --paper: #f4f7f3;
  --paper-2: #e7eee9;

  /* Layout */
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 20px 48px rgba(0, 0, 0, .22);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);

  /* Spacing scale */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Fluid typography */
  --fs-h1: clamp(1.8rem, 4.5vw, 3.3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
  --fs-h3: clamp(1rem, 1.5vw, 1.12rem);
  --fs-body: clamp(.95rem, 1.2vw, 1.08rem);
  --fs-small: .82rem;
}

/* Light mode tokens */
.light-mode {
  --navy-950: #ffffff;
  --navy-900: #f8faf9;
  --navy-800: #e8efe9;
  --ink: #10202b;
  --text: #10202b;
  --muted: #52626a;
  --line: rgba(0, 0, 0, .12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-950);
  letter-spacing: 0;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
p { margin: 0 0 var(--space-sm); }

/* ── 2. ACCESSIBILITY ─────────────────────────────── */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--green-700);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--green-400);
  outline-offset: 2px;
}

/* Focus visible — keyboard users only */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate { opacity: 1 !important; transform: none !important; }
}

/* ── 3. HEADER ────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 19, 28, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 72px;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  width: 84px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.brand strong {
  display: block;
  font-size: .9rem;
  line-height: 1.15;
  white-space: nowrap;
}

.brand > span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
}

/* ── 4. NAVIGATION ────────────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: #dce6e5;
  font-size: .9rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(103, 184, 70, .16);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 5. HERO ──────────────────────────────────────── */

.hero {
  min-height: 80vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(6, 19, 28, .97) 0%, rgba(6, 19, 28, .84) 48%, rgba(6, 19, 28, .42) 100%),
    url("../img/hero-cp-revisi.webp");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--navy-950));
  pointer-events: none;
}

.hero-inner,
.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
  color: #d3e9c8;
  font-weight: 700;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--green-500);
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-h1);
  line-height: 1.08;
  font-weight: 800;
}

.hero .lead,
.page-hero .lead {
  max-width: 720px;
  color: #d6e0df;
  font-size: var(--fs-body);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-md);
}

/* ── 6. BUTTONS ───────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
}
.btn-primary:hover {
  background: #3aa454;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 143, 70, .3);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

/* ── 7. METRICS ───────────────────────────────────── */

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
  margin-top: var(--space-lg);
}

.metric {
  border-top: 2px solid var(--green-500);
  padding-top: 10px;
}
.metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
.metric span {
  color: var(--muted);
  font-size: .9rem;
}

/* ── 8. SECTIONS ──────────────────────────────────── */

.section {
  background: var(--navy-950);
}
.section.alt {
  background: var(--navy-900);
}
.section.light {
  color: var(--ink);
  background: var(--paper);
}
.section.light .section-title p,
.section.light .muted {
  color: #52626a;
}
.section.light .eyebrow {
  color: var(--green-700);
}
.section.light .eyebrow::before {
  background: var(--green-700);
}

.section-title {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}
.section-title h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h2);
  line-height: 1.15;
}
.section-title p {
  color: var(--muted);
}

/* ── 9. GRID ──────────────────────────────────────── */

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ── 10. CARDS ────────────────────────────────────── */

.service-card,
.value-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.value-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.section.light .service-card,
.section.light .value-card,
.section.light .project-card,
.section.light .contact-card {
  border-color: #d2ded7;
  background: #fff;
  box-shadow: 0 14px 28px rgba(16, 32, 43, .08);
}

.service-card img,
.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-sm);
}
.card-body h3,
.value-card h3,
.contact-card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.card-body p,
.value-card p,
.project-card p,
.contact-card p {
  color: var(--muted);
}
.section.light .card-body p,
.section.light .value-card p,
.section.light .project-card p,
.section.light .contact-card p {
  color: #52626a;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: #9ed483;
  font-weight: 700;
  min-height: 44px;
  transition: color var(--transition), gap var(--transition);
}
.text-link:hover {
  color: var(--green-400);
  gap: 8px;
}
.section.light .text-link {
  color: var(--green-700);
}

.value-icon {
  margin-bottom: 14px;
  color: var(--green-500);
}

.value-card,
.contact-card {
  padding: var(--space-md);
}

/* ── 11. BAND / CTA ───────────────────────────────── */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 93, 160, .22), rgba(47, 143, 70, .18), rgba(185, 99, 26, .16));
}

.band .section-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.band h2 {
  margin: 0 0 8px;
  font-size: var(--fs-h2);
}

.band p {
  color: #dce6e5;
}

/* ── 12. PAGE HERO ────────────────────────────────── */

.page-hero {
  background:
    linear-gradient(90deg, rgba(6, 19, 28, .98), rgba(6, 19, 28, .74)),
    linear-gradient(135deg, var(--navy-800), var(--green-700));
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ── 13. SPLIT LAYOUT ─────────────────────────────── */

.split-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: var(--space-lg);
  align-items: center;
}

.media-panel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-panel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* ── 14. LIST ─────────────────────────────────────── */

.list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ── 15. DIVISION NAV ─────────────────────────────── */

.division-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}

.pill {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: #dce6e5;
  font-size: .9rem;
  min-height: 44px;
  align-items: center;
  transition: all var(--transition);
}
.pill:hover {
  border-color: var(--green-500);
  background: rgba(103, 184, 70, .1);
}
.pill.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

/* ── 16. CONTACT HERO ─────────────────────────────── */

.contact-hero {
  background-image:
    linear-gradient(90deg, rgba(6, 19, 28, .98), rgba(6, 19, 28, .72)),
    url("../img/hero-cp-revisi.webp");
  background-size: cover;
  background-position: center;
}

/* ── 17. CONTACT GRID ─────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: rgba(103, 184, 70, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-500);
}

.contact-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.contact-item p {
  color: var(--muted);
  margin: 0;
}

/* ── 18. ORG CHART ────────────────────────────────── */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--space-lg) 0;
}

.org-level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.org-box {
  padding: 12px 20px;
  border: 2px solid var(--green-500);
  border-radius: 8px;
  background: rgba(103, 184, 70, .08);
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  min-width: 140px;
}

.org-box.top {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

.org-connector {
  width: 2px;
  height: 24px;
  background: var(--green-500);
}

/* ── 19. FOOTER ───────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: #041017;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--space-md);
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: #fff;
}

/* ── 20. WHATSAPP FLOATING ────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  transition: all var(--transition);
  min-height: 48px;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}
.wa-float span {
  display: none;
}

/* ── 21. THEME TOGGLE ─────────────────────────────── */

.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--navy-900);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.theme-toggle:hover {
  border-color: var(--green-500);
  transform: scale(1.1);
}

/* ── 22. ANIMATIONS ───────────────────────────────── */

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate.delay-1 { transition-delay: .15s; }
.animate.delay-2 { transition-delay: .3s; }
.animate.delay-3 { transition-delay: .45s; }
.animate.delay-4 { transition-delay: .6s; }

/* ── 23. TESTIMONIALS ─────────────────────────────── */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 3rem;
  color: var(--green-500);
  opacity: .3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  margin: 0 0 var(--space-sm);
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
}



.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}

.testimonial-author .info strong {
  display: block;
  font-size: .9rem;
}
.testimonial-author .info span {
  color: var(--muted);
  font-size: .78rem;
}

/* ── 24. CONTACT FORM ─────────────────────────────── */

.contact-form {
  display: grid;
  gap: var(--space-sm);
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  min-height: 48px;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(103, 184, 70, .2);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: .9rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(103, 184, 70, .15);
  color: var(--green-400);
  border: 1px solid rgba(103, 184, 70, .3);
}
.form-status.error {
  display: block;
  background: rgba(200, 50, 50, .15);
  color: #f87171;
  border: 1px solid rgba(200, 50, 50, .3);
}

/* ── 25. BREADCRUMB ───────────────────────────────── */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 18px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.breadcrumb a {
  color: var(--green-500);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .sep {
  opacity: .4;
}

/* ── 26. BACK TO TOP ──────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--navy-900);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--green-500);
  transform: translateY(-3px);
}

/* ── 27. SPLIT FORM ───────────────────────────────── */

.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── 28. STATS ROW ────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stat-item {
  text-align: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--green-500);
  font-weight: 800;
}
.stat-item span {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ── 29. MAP ──────────────────────────────────────── */

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ══════════════════════════════════════════════════════
   30. LIGHT MODE OVERRIDES (consolidated)
   ══════════════════════════════════════════════════════ */

.light-mode .site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(0, 0, 0, .1);
}
.light-mode .main-nav a { color: #1a2a22; }
.light-mode .main-nav a:hover,
.light-mode .main-nav a.active {
  background: rgba(47, 143, 70, .12);
  color: var(--green-700);
}
.light-mode .hero {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 48%, rgba(255, 255, 255, .5) 100%),
    url("../img/hero-cp-revisi.webp");
}
.light-mode .hero h1,
.light-mode .page-hero h1 { color: var(--ink); }
.light-mode .hero .eyebrow,
.light-mode .page-hero .eyebrow { color: var(--green-700); }
.light-mode .hero .lead,
.light-mode .page-hero .lead { color: #3a4a42; }
.light-mode .hero::after { background: linear-gradient(180deg, transparent, #fff); }
.light-mode .contact-hero {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .8)),
    url("../img/hero-cp-revisi.webp");
}
.light-mode .nav-toggle span { background: var(--ink); }
.light-mode .main-nav.open {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: rgba(0, 0, 0, .1);
}
.light-mode .section.light { background: var(--navy-900); }
.light-mode .value-card,
.light-mode .service-card,
.light-mode .project-card,
.light-mode .contact-card {
  border-color: rgba(0, 0, 0, .08);
}
.light-mode .site-footer {
  background: var(--navy-900);
  border-top-color: rgba(0, 0, 0, .08);
}
.light-mode .org-box { border-color: var(--green-700); color: var(--ink); }
.light-mode .pill { color: var(--ink); border-color: rgba(0, 0, 0, .15); }
.light-mode .pill:hover { border-color: var(--green-500); }
.light-mode .footer-links a { color: var(--muted); }
.light-mode .band { background: var(--navy-800); }
.light-mode .band h2,
.light-mode .band p { color: var(--ink); }
.light-mode .testimonial-card {
  background: #fff;
  border-color: rgba(0, 0, 0, .08);
}
.light-mode .form-group input,
.light-mode .form-group textarea,
.light-mode .form-group select {
  background: #fff;
  border-color: rgba(0, 0, 0, .12);
  color: var(--ink);
}
.light-mode .breadcrumb a:hover { color: var(--green-700); }
.light-mode .back-to-top {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.light-mode .theme-toggle {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* ══════════════════════════════════════════════════════
   31. RESPONSIVE — consolidated breakpoints
   
   1024px  → tablet landscape / small desktop
    768px  → tablet portrait
    480px  → small mobile
   ══════════════════════════════════════════════════════ */

/* ── 1024px: tablet landscape ────────────────────── */
@media (max-width: 1024px) {
  .nav-wrap {
    padding: 0 var(--space-sm);
  }
  .hero-inner,
  .section-inner {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}

/* ── 980px: nav collapse + grid adjustments ──────── */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-md);
    border-bottom: 1px solid var(--line);
    background: rgba(6, 19, 28, .98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    min-height: 48px;
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
  }

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

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .media-panel img {
    height: 400px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .footer-links {
    justify-content: flex-start;
  }

  .band .section-inner {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .wa-float span {
    display: none;
  }
}

/* ── 768px: tablet portrait ──────────────────────── */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .contact-grid,
  .split-form {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero {
    min-height: 70vh;
  }

  .section-title h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .map-container iframe {
    height: 320px;
  }

  .org-box {
    min-width: 120px;
    padding: 10px 14px;
    font-size: .82rem;
  }
}

/* ── 480px: small mobile ─────────────────────────── */
@media (max-width: 480px) {
  .brand strong {
    font-size: .78rem;
  }
  .brand > span {
    display: none;
  }
  .brand img {
    width: 64px;
    height: 34px;
  }

  .nav-wrap {
    min-height: 60px;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-inner,
  .section-inner {
    padding: var(--space-md) var(--space-sm);
  }

  .page-hero .section-inner {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

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

  .service-card img,
  .project-card img {
    height: 180px;
  }

  .media-panel img {
    height: 280px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-container iframe {
    height: 250px;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .division-nav {
    gap: 8px;
  }
  .pill {
    padding: 8px 12px;
    font-size: .82rem;
  }

  .wa-float {
    bottom: 16px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
  }

  .back-to-top {
    bottom: 76px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .theme-toggle {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  .contact-actions {
    flex-direction: column;
  }
  .contact-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════
   32. PRINT
   ══════════════════════════════════════════════════════ */

@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .site-header {
    position: static !important;
    border-bottom: 2px solid #000;
  }
  .skip-link, .nav-toggle, .main-nav, .theme-toggle,
  .back-to-top, .wa-float, .contact-actions, .btn,
  .hero-actions, .division-nav, .map-container,
  .contact-form form {
    display: none !important;
  }
  .page-hero {
    padding: 24px 0 !important;
    min-height: auto !important;
  }
  .section { padding: 16px 0 !important; }
  .grid { display: block !important; }
  article, .service-card, .project-card, .contact-card {
    page-break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    padding: 12px;
  }
  img { max-width: 300px !important; height: auto !important; }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
    color: #666;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
  .site-footer {
    border-top: 2px solid #000;
    padding-top: 12px;
  }
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; }
}

/* --- Story Generator UI Refinements --- */
.share-page { padding: var(--space-lg) 0; }
.share-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.template-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.template-btn {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: all .2s;
}
.template-btn.active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.story-preview {
  width: 360px;
  height: 640px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  background: #000;
  margin: 0 auto;
}
.story-preview canvas { width: 100%; height: 100%; }
.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--navy-900);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field textarea {
  padding: 12px;
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 8px; font-weight: 600; cursor: pointer;
  transition: .2s; border: none;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-500); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--green-500); }
@media (max-width: 900px) {
  .share-grid { grid-template-columns: 1fr; }
  .story-preview { width: 280px; height: 497px; }
}

/* --- Video Container --- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 320px;
  padding: var(--space-lg);
  background:
    linear-gradient(135deg, rgba(47, 143, 70, .18), rgba(20, 93, 160, .18)),
    url("../img/cp-umum-logo-resmi.webp") center/contain no-repeat;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 28, .82);
}

.video-placeholder > div {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.video-placeholder h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.video-placeholder p {
  color: #dce6e5;
}
