/* ==========================================================================
   CV Kreasindo Gema Nusantara — Design System
   Rich corporate blue → soft teal, noble gold accent, serif headings.
   ========================================================================== */

:root {
  /* brand */
  --navy-900: #071227;
  --navy-800: #0f172a;
  --navy-700: #16233d;
  --blue-800: #123a72;
  --blue-700: #1b4f9c;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --teal-700: #0f766e;
  --teal-600: #0e7490;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --gold: #c5a880;
  --gold-light: #e3cfae;
  --gold-pale: #f5ecdd;
  --gold-dark: #a2835a;

  /* neutrals */
  --ivory: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --body: #3e4a63;
  --muted: #6b7a93;
  --line: #e4e9f2;
  --line-soft: #eef2f8;

  /* effects */
  --grad-hero: linear-gradient(150deg, #06101f 0%, #0d2a55 38%, #0d4b5c 72%, #0e6b63 100%);
  --grad-gold: linear-gradient(135deg, #e6d3b3 0%, #c5a880 52%, #a2835a 100%);
  --grad-teal: linear-gradient(135deg, #14b8a6 0%, #0e7490 100%);
  --grad-blue: linear-gradient(135deg, #2563eb 0%, #0e7490 100%);
  --grad-ink: linear-gradient(140deg, #0f172a 0%, #16233d 100%);
  --shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, 0.28);
  --shadow-md: 0 20px 45px -28px rgba(15, 23, 42, 0.42);
  --shadow-lg: 0 40px 90px -50px rgba(6, 16, 31, 0.6);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Merriweather', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23C5A880'/%3E%3Cstop offset='.5' stop-color='%23E3CFAE'/%3E%3Cstop offset='1' stop-color='%2314B8A6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 12c36-8 72-10 108-6 27 3 54 4 106-2-30 9-66 13-101 11-35-2-70 0-113 5z' fill='url(%23g)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  background: var(--ivory);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--teal-600);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.24;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
p {
  margin: 0 0 1rem;
}
strong {
  color: var(--ink);
}

ul {
  padding-left: 1.15rem;
}
li {
  margin-bottom: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 900px;
}
.section {
  padding: clamp(56px, 7vw, 104px) 0;
  position: relative;
}
.section-tight {
  padding: clamp(40px, 5vw, 64px) 0;
}
.section-ivory {
  background: var(--ivory);
}
.section-paper {
  background: var(--paper);
}
.section-ink {
  background: var(--grad-ink);
  color: #cbd5e1;
}
.section-ink h2,
.section-ink h3 {
  color: #fff;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}
.section-head.center .kicker::before {
  display: none;
}
.lead {
  font-size: 1.06rem;
  color: var(--body);
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}

.brush {
  display: inline-block;
  position: relative;
  z-index: 1;
}
.brush::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.34em;
  height: 0.5em;
  background-image: var(--brush);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}
.brush-gold::after {
  filter: saturate(1.1);
}
.underline-grad {
  background: linear-gradient(90deg, var(--gold), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn .ico {
  flex: none;
}
.btn-gold {
  background: var(--grad-gold);
  color: #2c210a;
  box-shadow: 0 16px 32px -18px rgba(197, 168, 128, 0.9);
}
.btn-gold:hover {
  color: #2c210a;
  box-shadow: 0 20px 38px -18px rgba(197, 168, 128, 1);
}
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover {
  color: #fff;
  background: var(--navy-700);
}
.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 16px 34px -20px rgba(37, 99, 235, 0.9);
}
.btn-blue:hover {
  color: #fff;
}
.btn-teal {
  background: var(--grad-teal);
  color: #04211d;
}
.btn-teal:hover {
  color: #04211d;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  color: var(--navy-800);
  border-color: var(--gold);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}
.btn-lg {
  padding: 17px 34px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b42318;
}
.btn-danger:hover {
  color: #b42318;
  background: #fee2e2;
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid rgba(197, 168, 128, 0.35);
}
.chip-teal {
  background: #e6fbf7;
  color: var(--teal-700);
  border-color: rgba(20, 184, 166, 0.3);
}
.chip-blue {
  background: #eff5ff;
  color: var(--blue-700);
  border-color: rgba(37, 99, 235, 0.22);
}
.chip-slate {
  background: #eef2f8;
  color: var(--muted);
  border-color: var(--line);
}
.chip-gold {
  background: var(--grad-gold);
  color: #2c210a;
  border-color: transparent;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pill-tab.is-active,
.pill-tab:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

/* ---------- cards ---------- */
.card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 28px;
}
.card-paper {
  background: var(--paper);
  border-color: var(--line-soft);
}
.card-ink {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  backdrop-filter: blur(16px);
}
.card-ink h3,
.card-ink h4 {
  color: #fff;
}
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.5);
}

/* ---------- header / nav ---------- */
.topbar {
  background: var(--navy-900);
  color: #93a4bd;
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar a {
  color: #d7e1ee;
}
.topbar a:hover {
  color: var(--gold-light);
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar-socials {
  display: flex;
  gap: 6px;
}
.topbar-socials a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.topbar-socials a:hover {
  background: var(--gold);
  color: #2c210a;
}

.sitenav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 18, 39, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.sitenav.is-scrolled {
  background: rgba(6, 15, 32, 0.97);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: #fff;
}
.brand:hover {
  color: #fff;
}
.brand-logo {
  height: 54px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}
.brand svg.brand-logo {
  max-width: none;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}
.brand svg.brand-logo text,
.foot-brand svg.foot-logo text {
  font-family: 'Archivo Black', 'Arial Black', Impact, sans-serif;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #fff;
}
.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cdd8e6;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #dbe4f0;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 12vw, 170px);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 68%);
}
.hero::after {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.42), transparent 68%);
}
.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eaf2fb;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.25);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  margin-bottom: 18px;
}
.hero p.lead {
  color: #c3d0e2;
  font-size: 1.06rem;
  max-width: 58ch;
}
.hero .btn-row {
  margin-top: 30px;
}
.hero-trust {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hero-trust .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero-trust .lbl {
  font-size: 0.78rem;
  color: #a9b8cd;
  letter-spacing: 0.04em;
}

.hero-anim {
  position: relative;
}
.hero-anim-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(150%);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(197, 168, 128, 0.55), rgba(14, 116, 144, 0.18) 60%, transparent 72%);
  border-radius: 58% 42% 47% 53% / 46% 52% 48% 54%;
  filter: blur(2px);
  z-index: -1;
  animation: morph 16s ease-in-out infinite;
}
@keyframes morph {
  0%,
  100% {
    border-radius: 58% 42% 47% 53% / 46% 52% 48% 54%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 42% 58% 62% 38% / 52% 40% 60% 48%;
    transform: rotate(12deg);
  }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 3;
}
.hero-wave svg {
  width: 100%;
  height: clamp(60px, 8vw, 120px);
  display: block;
}

/* ---------- carousel ---------- */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.slide {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--grad-blue);
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Badge sits on top of the illustration. It must NOT reuse .slide-media: that
   class is the 16:9 framed box for the image, so reusing it drew a gradient
   rectangle over the picture on the homepage slideshow. */
.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  line-height: 1;
}
.slide-badge .chip {
  box-shadow: 0 10px 22px -12px rgba(6, 16, 31, 0.75);
  backdrop-filter: blur(6px);
}
.slide-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}
.slide-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.slide-body h3 {
  margin: 0;
  font-size: 1.1rem;
}
.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.slide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.slide-body p {
  margin: 0;
  font-size: 0.92rem;
}
.carousel-nav {
  display: flex;
  gap: 10px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.carousel-dots {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: #d5dde9;
  cursor: pointer;
}
.carousel-dots button.is-active {
  background: var(--gold);
}

/* ---------- pillars ---------- */
.pillar-card {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-gold);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--grad-ink);
  color: var(--gold-light);
  margin-bottom: 20px;
  box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.8);
}
.pillar-card h3 {
  margin-bottom: 6px;
}
.pillar-card .pillar-sub {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.pillar-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 9px;
}
.pillar-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  margin: 0;
}
.pillar-list .ico {
  color: var(--teal-500);
  flex: none;
  margin-top: 4px;
}
.pillar-card .pillar-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
}

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.stat {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.stat .n {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.1;
}
.stat .l {
  font-size: 0.82rem;
  color: #a9b8cd;
}

/* ---------- portfolio ---------- */
.folio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.folio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.folio-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--grad-ink);
  overflow: hidden;
}
.folio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.folio-card:hover .folio-media img {
  transform: scale(1.05);
}
.folio-media .pattern {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(197, 168, 128, 0.75);
}
.folio-media .folio-num {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.16);
  line-height: 1;
}
.folio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.folio-body h3 {
  font-size: 1.06rem;
  margin: 0;
}
.folio-body p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- article / media ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.article-media {
  aspect-ratio: 16 / 9;
  background: var(--grad-teal);
  overflow: hidden;
  position: relative;
}
.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-media .pattern {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
}
.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-body h3 {
  font-size: 1.08rem;
  margin: 0;
}
.article-body .meta {
  font-size: 0.79rem;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.article-body p {
  margin: 0;
  font-size: 0.92rem;
}
.article-body .read {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grad-ink);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 14px 12px;
  background: linear-gradient(to top, rgba(7, 18, 39, 0.9), transparent);
  color: #fff;
  font-size: 0.82rem;
}

/* rich text rendering */
.rich {
  font-size: 1.02rem;
  color: var(--body);
}
.rich > * + * {
  margin-top: 1.05em;
}
.rich h2,
.rich h3,
.rich h4 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.rich img,
.rich iframe,
.rich video {
  border-radius: var(--radius);
  max-width: 100%;
  box-shadow: var(--shadow-md);
}
.rich iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.rich blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  color: var(--ink);
}
.rich table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.rich th,
.rich td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.rich th {
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.rich ul,
.rich ol {
  padding-left: 1.4rem;
}
.rich a {
  text-decoration: underline;
  text-decoration-color: rgba(197, 168, 128, 0.7);
  text-underline-offset: 3px;
}
.rich figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > label,
.label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.req {
  color: #c0392b;
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='date'],
input[type='time'],
input[type='number'],
input[type='url'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}
input[type='file'] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--ivory);
  font-size: 0.88rem;
  font-family: var(--sans);
  color: var(--body);
  cursor: pointer;
}
input[type='file']:hover {
  border-color: var(--gold);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--body);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ivory);
  border: 1px solid var(--line-soft);
}
.check input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal-600);
  flex: none;
  cursor: pointer;
}
.fieldset {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fieldset + .fieldset {
  margin-top: 22px;
}
.fieldset-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fieldset-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad-gold);
  color: #2c210a;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  flex: none;
}
.exp-row {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--ivory);
  position: relative;
}
.exp-row + .exp-row {
  margin-top: 16px;
}
.exp-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.exp-row-head strong {
  font-size: 0.88rem;
}
.exp-remove {
  border: 0;
  background: #fef2f2;
  color: #b42318;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.exp-remove:hover {
  background: #fee2e2;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--body);
}

/* alert */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 22px;
  border: 1px solid;
}
.alert .ico {
  flex: none;
  margin-top: 2px;
}
.alert-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.alert-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.alert-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* ---------- tables (public) ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.table th,
table.table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.table th {
  background: var(--ivory);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
table.table tbody tr:last-child td {
  border-bottom: 0;
}
table.table tbody tr:hover {
  background: #fbfdff;
}

.empty {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.empty .ico {
  color: var(--gold);
  margin-bottom: 12px;
}
.empty h3 {
  margin-bottom: 6px;
}
.empty p {
  margin: 0 auto 0;
  max-width: 46ch;
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  background: var(--grad-hero);
  color: #d6e0ee;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.45), transparent 66%);
  filter: blur(40px);
}
.cta-band h2 {
  color: #fff;
}
.cta-band .btn-row {
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

/* ---------- footer ---------- */
.sitefoot {
  background: var(--navy-900);
  color: #93a4bd;
  padding: clamp(48px, 6vw, 76px) 0 0;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}
.sitefoot::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: -240px;
  left: -120px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.4), transparent 68%);
  filter: blur(50px);
}
.sitefoot h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.sitefoot a {
  color: #b9c6d8;
}
.sitefoot a:hover {
  color: var(--gold-light);
}
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.foot-brand img {
  height: 46px;
  width: auto;
}
.foot-brand svg.foot-logo {
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}
.foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.foot-list li {
  margin: 0;
}
.foot-list a {
  display: inline-flex;
  gap: 9px;
  align-items: flex-start;
}
.socials {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.socials a:hover {
  background: var(--grad-gold);
  color: #2c210a;
  border-color: transparent;
}
.foot-bottom {
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
/* discreet admin entry point, living in the footer only */
.foot-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 168, 128, 0.35);
  background: rgba(197, 168, 128, 0.1);
  color: #e3cfae;
  font-weight: 600;
  white-space: nowrap;
}
.foot-admin:hover {
  background: var(--grad-gold);
  border-color: transparent;
  color: #2c210a;
}

/* ---------- floating chat widget ---------- */
.chat-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  /* The dock is a fixed overlay: when the panel is closed it must not swallow
     clicks on whatever sits underneath it (footer links, buttons in the
     bottom-right). Only the launcher and an open panel accept pointer events. */
  pointer-events: none;
}
.chat-dock .chat-toggle {
  pointer-events: auto;
}
.chat-dock.is-open .chat-panel {
  pointer-events: auto;
}
.chat-panel {
  width: min(340px, calc(100vw - 40px));
  max-height: calc(100dvh - 130px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(6, 16, 31, 0.7);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}
.chat-dock.is-open .chat-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.chat-head {
  background: var(--grad-hero);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-head .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #2c210a;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  flex: none;
}
.chat-head strong {
  color: #fff;
  display: block;
  font-size: 0.95rem;
}
.chat-head span {
  font-size: 0.76rem;
  color: #b7c6da;
}
.chat-body {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}
.chat-body .field {
  gap: 5px;
}
.chat-body .field > label {
  font-size: 0.78rem;
}
.chat-body input,
.chat-body select,
.chat-body textarea {
  padding: 9px 11px;
  font-size: 0.88rem;
  border-radius: 10px;
}
.chat-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
}
.chat-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.chat-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue-700);
  text-decoration: underline;
  cursor: pointer;
}
.chat-alt {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.chat-alt .chat-opt {
  font-size: 0.82rem;
  padding: 9px 12px;
  gap: 9px;
}
.chat-alt .chat-opt .ico:last-child {
  margin-left: auto;
}
.chat-log {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}
.chat-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg .who {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 3px;
}
.chat-msg .at {
  display: block;
  font-size: 0.66rem;
  opacity: 0.65;
  margin-top: 4px;
  text-align: right;
}
.chat-msg-visitor {
  justify-self: end;
  background: var(--grad-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-admin {
  justify-self: start;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  color: var(--body);
  border-bottom-left-radius: 4px;
}
.chat-msg-admin .who {
  color: var(--teal-700);
}
.chat-msg-sistem {
  justify-self: center;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  max-width: 100%;
}
.chat-thinking {
  justify-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}
.chat-send {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.chat-send textarea {
  min-height: 40px;
  max-height: 110px;
  resize: none;
  padding: 10px 12px;
  font-size: 0.88rem;
}
.chat-send button {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: var(--grad-gold);
  color: #2c210a;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat-send button:hover {
  filter: brightness(1.04);
}
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--ivory);
}
.chat-bubble {
  background: var(--ivory);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--body);
}
.chat-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.chat-opt:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--ink);
}
.chat-opt .ico {
  color: var(--teal-600);
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-gold);
  color: #2c210a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 22px 40px -18px rgba(197, 168, 128, 0.95);
  position: relative;
}
.chat-toggle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(197, 168, 128, 0.4);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.chat-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-hero);
  color: #c9d6e6;
  padding: clamp(44px, 6vw, 82px) 0 clamp(52px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 68%);
  filter: blur(50px);
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}
.page-hero .lead {
  color: #c1cfe0;
  max-width: 62ch;
}
.crumbs {
  font-size: 0.82rem;
  color: #9fb0c8;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.crumbs a {
  color: #cfdcea;
}
.crumbs a:hover {
  color: var(--gold-light);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(6, 16, 31, 0.92);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.lightbox.is-open {
  display: grid;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  margin: auto;
  border-radius: 14px;
  box-shadow: 0 40px 80px -40px #000;
}

/* ---------- misc ---------- */
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row:last-child {
  border-bottom: 0;
}
.info-row .ico {
  color: var(--gold-dark);
  flex: none;
  margin-top: 3px;
}
.info-row .k {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.info-row .v {
  color: var(--ink);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
}
.pagination .is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.detail-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}
.detail-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 0;
  }
  .nav-link {
    padding: 10px 10px;
    font-size: 0.85rem;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 84px 20px 28px;
    background: rgba(6, 15, 32, 0.98);
    backdrop-filter: blur(18px);
    transform: translateY(-110%);
    transition: transform 0.28s ease;
    max-height: 100dvh;
    overflow-y: auto;
  }
  .nav-menu.is-open {
    transform: none;
  }
  .nav-link {
    font-size: 1rem;
    padding: 13px 14px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-cta {
    margin: 10px 0 0;
  }
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .form-grid,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .slide {
    flex-basis: 88%;
  }
  .card {
    padding: 22px;
  }
  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-logo {
    height: 45px;
  }
  .brand img.brand-logo {
    max-width: 165px;
  }
  .brand-sub {
    display: none;
  }
  .topbar-group:last-child {
    display: none;
  }
  .fieldset {
    padding: 20px;
  }
  .chat-dock {
    right: 14px;
    bottom: 14px;
  }
  /* keep the panel clear of the header (menu button) on small screens */
  .chat-panel {
    max-height: calc(100dvh - 116px);
  }
  .chat-body {
    max-height: 42vh;
  }
  .chat-toggle {
    width: 54px;
    height: 54px;
  }
}

@media print {
  .sitenav,
  .topbar,
  .chat-dock,
  .sitefoot {
    display: none;
  }
}

/* ---------- attendance form: steps, GPS status, selfie ---------- */
.absen-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.absen-step + .absen-step {
  margin-top: 18px;
}
.absen-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.absen-step-head strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.02rem;
}
.absen-status {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
  padding: 10px 13px;
  border-radius: 11px;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
}
.absen-status.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.absen-status.is-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.absen-status.is-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.absen-status.is-wait {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.selfie-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid var(--line);
}
.selfie-wrap video,
.selfie-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1); /* mirror, matches how the person sees themselves */
}
.selfie-wrap img[hidden] {
  display: none;
}
.absen-submit {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--line-soft);
}
.hint.up {
  color: #047857;
  font-weight: 600;
}
@media (max-width: 920px) {
  #absenCols {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ---------- live chat: AI answers + human handover ---------- */
.chat-msg-ai {
  justify-self: start;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.97), rgba(13, 42, 85, 0.97));
  color: #e8eefb;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-bottom-left-radius: 4px;
}
.chat-msg-ai .who {
  color: var(--gold-light);
}
.chat-msg-ai .chat-src {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  color: #a9b8cd;
}
.chat-handover {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.chat-handover-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(197, 168, 128, 0.6);
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}
.chat-handover-btn:hover:not([disabled]) {
  background: var(--grad-gold);
  color: #2c210a;
  transform: translateY(-1px);
}
.chat-handover-btn[disabled] {
  cursor: default;
  opacity: 0.75;
}
.chat-handover.is-handed .chat-handover-btn {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
