/* ==========================================================================
   Dekaibooks · Editorial / Literary Community Profile
   ========================================================================== */

:root {
  --orange: #f6931e;
  --black: #000000;
  --white: #ffffff;
  --ink: #111111;
  --paper: #fdfdfb;
  --line: #d9d6d0;
  --muted: #6b6b66;

  --font-head: "DM Serif Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0;
}

address { font-style: normal; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--black);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, .18);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: .01em;
}

.primary-nav ol {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
}
.primary-nav a {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0%;
  background: currentColor;
  transition: width .35s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: 100%; }
.primary-nav a[aria-current="page"] { color: var(--orange); }
.primary-nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 18px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 75% 60% at 50% 34%, #212121 0%, #000000 74%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 56px);
  padding: calc(var(--header-h) + 28px) var(--gutter) 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, .13) 0px,
      rgba(255, 255, 255, .13) 1.5px,
      transparent 1.5px,
      transparent 46px
    ),
    repeating-linear-gradient(
      -16deg,
      rgba(246, 147, 30, .09) 0px,
      rgba(246, 147, 30, .09) 1px,
      transparent 1px,
      transparent 64px
    );
  animation: heroLines 42s linear infinite;
  pointer-events: none;
}

/* Offsets equal whole stripe periods projected onto x/y for each layer, so the loop is seamless */
@keyframes heroLines {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 362px 64px, -106px -369px; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-main, .hero-quote {
  position: relative;
  z-index: 1;
}

.hero-main {
  text-align: center;
  padding: 0;
}
.hero-logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  margin: 0 auto 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero-title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .8s var(--ease) .25s forwards;
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .8s var(--ease) .4s forwards;
}

.hero-quote {
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  color: var(--orange);
  display: flex;
  flex-direction: column;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------- Section shell ---------------------------------- */

.section {
  padding: clamp(64px, 11vw, 128px) var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 5vw, 72px);
}

.section-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-mark {
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.section-side-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.section-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.section-kicker {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 36px;
}

.article-columns {
  columns: 1;
  max-width: 62ch;
}
.article-columns p {
  margin: 0 0 1.1em;
  font-size: 1.02rem;
  color: #262626;
}
.article-columns p:last-child { margin-bottom: 0; }

.route-line {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 40ch;
}
.route-arrow { color: var(--orange); }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

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

/* ---------------------------------- Quote section ---------------------------------- */

.section--quote {
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(40px, 8vw, 80px);
}
.big-quote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4.6vw, 3.1rem);
  line-height: 1.32;
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
}
.big-quote .accent {
  color: var(--orange);
  font-style: italic;
}

/* ---------------------------------- Visi (dark) ---------------------------------- */

.section--dark {
  max-width: none;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(72px, 12vw, 140px);
}
.visi-title {
  font-size: clamp(2.6rem, 9vw, 6.6rem);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.visi-title span:nth-child(2) { color: var(--orange); }

/* ---------------------------------- Misi ---------------------------------- */

.misi-list li {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 4vw, 40px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.misi-list li:last-child { border-bottom: 1px solid var(--line); }
.misi-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--orange);
  min-width: 2.4ch;
}
.misi-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: var(--font-head);
  transition: transform .35s var(--ease);
  display: inline-block;
}
.misi-list li:hover .misi-text,
.misi-list li:focus-within .misi-text { transform: translateX(6px); }

/* ---------------------------------- Program ---------------------------------- */

.program-row {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 5vw, 56px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.program-row:last-child { border-bottom: 1px solid var(--line); }
.program-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--orange);
  min-width: 2.4ch;
}
.program-info h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.program-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------------------------------- Lapak Baca ---------------------------------- */

.section--lapak {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lapak-days {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
}
.lapak-and { color: var(--orange); font-style: italic; }

.lapak-caption {
  max-width: 46ch;
  margin: 28px auto 0;
  font-size: 1.05rem;
  color: #262626;
}

.lapak-detail {
  columns: 1;
  max-width: 56ch;
  margin: 40px auto 0;
  text-align: left;
}

.lapak-note {
  margin-top: 32px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.lapak-note a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}

/* ---------------------------------- Galeri ---------------------------------- */

.galeri-intro {
  max-width: 56ch;
  margin: 0 0 40px;
  color: #262626;
}
.galeri-intro a {
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1.4vw, 12px);
}
.gallery-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.gallery-frame:hover img,
.gallery-frame:focus-visible img { transform: scale(1.045); }
.gallery-frame:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

.gallery-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  pointer-events: none;
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: clamp(10px, 2vw, 16px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.4;
}

/* ---------------------------------- Berita ---------------------------------- */

.berita-intro {
  max-width: 56ch;
  color: #262626;
  margin: 0 0 36px;
}

.berita-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.berita-card {
  display: block;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 30px rgba(0, 0, 0, .07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.berita-card:hover,
.berita-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 22px 40px rgba(0, 0, 0, .12);
}

.berita-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.berita-card:hover .berita-thumb img { transform: scale(1.045); }

.berita-info {
  padding: clamp(18px, 3vw, 26px);
}
.berita-source {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.berita-title {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.berita-card:hover .berita-title { color: var(--orange); }

/* ---------------------------------- Lightbox ---------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .94);
  padding: clamp(56px, 10vw, 96px) clamp(56px, 10vw, 96px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-figure {
  max-width: min(90vw, 920px);
  margin: 0;
  text-align: center;
}
.lightbox-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}
.lightbox-caption {
  margin-top: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  line-height: 1.5;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.lightbox-close {
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.lightbox-prev { left: clamp(10px, 3vw, 28px); }
.lightbox-next { right: clamp(10px, 3vw, 28px); }

/* ---------------------------------- Donasi T-Shirt ---------------------------------- */

.section--donasi {
  max-width: none;
  background: var(--black);
  color: var(--white);
}
.section--donasi > .section-grid {
  max-width: 1320px;
  margin: 0 auto;
}
.section--donasi .section-label { color: rgba(255, 255, 255, .6); }

.donasi-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.donasi-figure { margin: 0; }
.donasi-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.donasi-info .section-title { margin-bottom: 16px; }
.donasi-price {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--orange);
  margin: 0 0 18px;
}
.donasi-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .6);
}
.donasi-sizes span {
  min-width: 40px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  text-align: center;
  color: var(--white);
  font-size: .85rem;
}
.donasi-contact {
  margin: 0 0 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
}
.donasi-contact strong { color: var(--white); }
.donasi-contact a:hover { color: var(--orange); }
.donasi-btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--orange);
  color: var(--black);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .3s var(--ease);
}
.donasi-btn:hover { background: var(--white); }

/* ---------------------------------- Donasi & Relawan ---------------------------------- */

.dukung-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.dukung-item {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dukung-item h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.dukung-item p {
  color: #262626;
  max-width: 42ch;
  margin: 0 0 18px;
}
.text-link {
  display: inline-block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.text-link:hover { color: var(--orange); }

/* ---------------------------------- Pengurus ---------------------------------- */

.pengurus-core li,
.pengurus-bidang li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pengurus-core li:last-child,
.pengurus-bidang li:last-child { border-bottom: 1px solid var(--line); }

.pengurus-core .pengurus-name {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}
.pengurus-role {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  align-self: center;
}
.pengurus-bidang .pengurus-name {
  font-size: 1rem;
}
.pengurus-bidang { margin-top: 4px; }

/* ---------------------------------- Lokasi ---------------------------------- */

.lokasi-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.lokasi-body address {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.5;
}
.lokasi-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
}
.lokasi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------- Katalog ---------------------------------- */

.katalog-intro {
  max-width: 60ch;
  color: #262626;
  margin: 0 0 32px;
}

.katalog-toolbar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 4px;
}
.katalog-search-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.katalog-search {
  flex: 1 1 240px;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 2px;
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.katalog-search:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.katalog-count {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.katalog-state {
  padding: 40px 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 50ch;
}

.katalog-table-wrap {
  overflow-x: auto;
}
.katalog-table {
  width: 100%;
  border-collapse: collapse;
}
.katalog-table th,
.katalog-table td {
  text-align: left;
  padding: 14px 20px 14px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: top;
}
.katalog-table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-top: none;
  padding-bottom: 10px;
  white-space: nowrap;
}
.katalog-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}
.katalog-table tbody td:first-child {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------------------------------- Kontak ---------------------------------- */

.section--kontak {
  text-align: center;
  padding-top: clamp(60px, 10vw, 110px);
}
.kontak-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: clamp(36px, 6vw, 64px);
}
.kontak-list li {
  border-top: 1px solid var(--line);
}
.kontak-list li:last-child { border-bottom: 1px solid var(--line); }
.kontak-list a {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  padding: clamp(20px, 3.4vw, 30px) 0;
  transition: color .3s var(--ease);
}
.kontak-list a:hover { color: var(--orange); }
.kontak-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  min-width: 8ch;
  text-align: right;
}
.kontak-value {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.85);
  padding: clamp(48px, 8vw, 80px) var(--gutter) 24px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
}
.footer-text p { margin: 0 0 6px; font-size: .92rem; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: lowercase;
}
.footer-tagline { color: var(--orange); font-style: italic; }
.footer-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.footer-location p { margin: 0; font-size: .92rem; }
.footer-social { display: flex; flex-direction: column; gap: 6px; }
.footer-social a { font-size: .92rem; transition: color .3s var(--ease); }
.footer-social a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: .76rem;
  color: rgba(255,255,255,.5);
}
.footer-credit a {
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-credit a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------------------------------- Floating social ---------------------------------- */

.float-social {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.float-social.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.float-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.float-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-side { flex-direction: row; align-items: center; gap: 14px; }
  .section-side-logo { width: 40px; height: 40px; }
  .dukung-columns { grid-template-columns: 1fr; }
  .donasi-body { grid-template-columns: 1fr; }
  .lokasi-body { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .berita-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav ol {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .primary-nav a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: var(--white);
  }

  .footer-inner { grid-template-columns: 1fr; }
  .kontak-list a { flex-direction: column; gap: 4px; }
  .kontak-label { text-align: center; }
}

@media (max-width: 480px) {
  .article-columns p,
  .lapak-caption,
  .dukung-item p { font-size: .95rem; }
  .lightbox { padding: 70px 14px; }
  .lightbox-nav { width: 36px; height: 36px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-logo, .hero-title, .hero-sub {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero::before { animation: none !important; }
}
