/* ============================================================
   Sakha Mandiri Utama — Company Profile
   Design system: Trust & Authority (navy + blue CTA)
   ============================================================ */

:root {
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-accent-strong: #075985;
  --color-accent-soft: #E0F2FE;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-foreground: #020617;
  --color-muted: #E8ECF1;
  --color-border: #E2E8F0;
  --color-text-soft: #475569;

  --font-heading: "Lexend", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --space-1: 4px;  --space-2: 8px;   --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px;  --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);

  --container: 1152px;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); }

a { color: var(--color-accent); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--color-primary);
  color: #CBD5E1;
  font-size: 14.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 6px;
}
.topbar__group { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.topbar__item svg { width: 15px; height: 15px; flex: none; color: #7DD3FC; }
.topbar a { color: #E2E8F0; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
  color: var(--color-primary);
  line-height: 1.05;
}
.brand__tag {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .34em;
  color: var(--color-accent);
}

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .18s ease, background-color .18s ease;
}
.nav__link:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.nav__link.is-active { color: var(--color-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-strong); box-shadow: 0 8px 20px rgba(3, 105, 161, .3); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent-soft); }

.nav__cta { margin-left: var(--space-3); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--color-primary);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(102deg, rgba(2, 6, 23, .96) 8%, rgba(15, 23, 42, .88) 46%, rgba(3, 105, 161, .55) 100%),
    url("../assets/img/hero-bg.webp");
  background-size: cover;
  background-position: center 68%;
}
.hero__inner {
  position: relative;
  padding-block: clamp(88px, 12vw, 150px) clamp(120px, 14vw, 170px);
  max-width: 720px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(125, 211, 252, .14);
  border: 1px solid rgba(125, 211, 252, .38);
  color: #BAE6FD;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero__eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: var(--space-5);
}
.hero h1 .accent { color: #7DD3FC; }
.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: #CBD5E1;
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-7); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #E2E8F0;
  font-size: 15.5px;
  font-weight: 600;
}
.hero__badges svg { width: 18px; height: 18px; color: #38BDF8; flex: none; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 5; margin-top: -64px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}
.stat { text-align: center; padding-inline: var(--space-3); }
.stat + .stat { border-left: 1px solid var(--color-border); }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}
.stat__label {
  margin-top: var(--space-2);
  font-size: 15px;
  color: var(--color-text-soft);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-9); }
.section--alt { background: var(--color-surface); }
.section__head { max-width: 680px; margin-bottom: var(--space-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section__desc { font-size: 18px; color: var(--color-text-soft); margin-bottom: 0; }

/* ---------- Clients strip ---------- */
.clients { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.clients__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  flex-wrap: wrap;
  padding-block: var(--space-5);
  text-align: center;
}
.clients__label {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.clients__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .1em;
  color: var(--color-primary);
}
.clients__logo svg { width: 30px; height: 30px; color: var(--color-accent); }
.clients__note { font-size: 15px; color: var(--color-text-soft); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about__media-card {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: min(240px, 62%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}
.about__media-card img { height: 170px; width: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.about h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about__text { color: var(--color-text-soft); font-size: 17.5px; }
.about__points { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.about__points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.about__points svg { width: 22px; height: 22px; flex: none; color: var(--color-accent); margin-top: 3px; }
.about__points strong { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); }
.about__points p { margin: 2px 0 0; color: var(--color-text-soft); font-size: 16px; }

/* ---------- Category cards ---------- */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(3, 105, 161, .35);
}
.cat-card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.cat-card__icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 19.5px; font-weight: 600; margin: 0; }
.cat-card p { color: var(--color-text-soft); font-size: 15.5px; margin: 0; }
.cat-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-accent);
}
.cat-card__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.g-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease;
}
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.g-item.is-hidden { display: none; }
.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.g-item:hover img { transform: scale(1.045); }
.g-item figure { margin: 0; }
.g-item figcaption { padding: var(--space-3) var(--space-4) var(--space-4); }
.g-item__brand {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2px;
}
.g-item__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--color-primary);
  line-height: 1.35;
}
.gallery-note { text-align: center; color: var(--color-text-soft); font-size: 15px; margin-top: var(--space-6); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(2, 6, 23, .82);
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(880px, 92vw); }
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  margin-top: var(--space-4);
  text-align: center;
  color: #E2E8F0;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(15, 23, 42, .6);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: rgba(3, 105, 161, .8); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Brands ---------- */
.brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.brand-chip {
  padding: 12px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--color-secondary);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.brand-chip:hover { border-color: var(--color-accent); color: var(--color-accent); box-shadow: var(--shadow-sm); }
.brands__note {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 14px;
  margin-top: var(--space-5);
  margin-bottom: 0;
}

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #7DD3FC;
  margin-bottom: var(--space-4);
}
.why-card__icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 18.5px; font-weight: 600; }
.why-card p { color: var(--color-text-soft); font-size: 15.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(105deg, rgba(2, 6, 23, .97) 15%, rgba(3, 105, 161, .88) 100%),
    url("../assets/img/hero-bg.webp") center / cover;
  color: #fff;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-8);
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: var(--space-3); }
.cta-band p { color: #CBD5E1; font-size: 18px; max-width: 52ch; margin: 0; }
.cta-band__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8);
  align-items: start;
}
.contact-cards { display: grid; gap: var(--space-4); }
.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--color-text-soft); font-size: 16px; }

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.form h3 { font-size: 21px; margin-bottom: var(--space-2); }
.form > p { color: var(--color-text-soft); font-size: 15.5px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__group { margin-bottom: var(--space-4); }
.form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.form .req { color: #DC2626; }
.form input, .form textarea {
  width: 100%;
  padding: 13px 16px;
  min-height: 48px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  font: inherit;
  font-size: 16px;
  color: var(--color-foreground);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .18);
}
.form__hint { font-size: 14px; color: var(--color-text-soft); margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.footer { background: var(--color-primary); color: #94A3B8; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-7);
  padding-block: var(--space-8) var(--space-6);
}
.footer__brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); text-decoration: none; }
.footer__brand img { width: 44px; height: 44px; }
.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1.05;
}
.footer__brand-name span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .32em;
  color: #7DD3FC;
}
.footer p { font-size: 15.5px; }
.footer h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer a { color: #CBD5E1; text-decoration: none; }
.footer a:hover { color: #7DD3FC; text-decoration: underline; }
.footer__contact li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15.5px; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: #38BDF8; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, .2);
  padding-block: var(--space-5);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 14.5px;
}

/* ---------- Reveal animation ----------
   Disembunyikan HANYA saat JS aktif (html.js). Bila JS gagal dimuat atau
   diblokir, konten tetap terlihat penuh alih-alih blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1120px) and (min-width: 861px) {
  .nav__link { padding: 10px 9px; font-size: 14px; }
  .nav__cta { padding: 11px 18px; font-size: 14px; margin-left: var(--space-2); }
  .brand__name { font-size: 18px; }
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .stat + .stat { border-left: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* backdrop-filter membuat containing block utk .nav fixed — matikan di mobile */
  .header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(320px, 84vw);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + var(--space-5)) var(--space-5) var(--space-5);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .nav__link { padding: 14px 16px; font-size: 16.5px; }
  .nav__cta { margin: var(--space-4) 0 0; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 130; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90; /* di bawah header (100) agar drawer di dalam header tetap dapat diklik */
    background: rgba(2, 6, 23, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media img { height: 340px; }
  .about__media-card { left: var(--space-4); bottom: -24px; }
  .section { padding-block: var(--space-8); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: var(--space-4); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .g-item figcaption { padding: var(--space-2) var(--space-3) var(--space-3); }
  .g-item__name { font-size: 14px; }
  .cats__grid, .why__grid { grid-template-columns: 1fr; }
  .stats { margin-top: -48px; }
  .stats__grid { grid-template-columns: 1fr 1fr; padding: var(--space-5); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__actions .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .topbar__group--right { display: none; }
}
