/* =========================================================
   NOBLE ASIA — styles.css
   Design system:
   - Font: League Spartan
   - Desktop: H 40/500, Sub 20/400, Body 13/400
   - Mobile:  H 36/500, Sub 20/400, Body 13/400
   - Primary: #2B2C39 (ink), #C3B091 (gold), #656746 (olive)
   - Secondary pairs listed as CSS vars
   Mobile-first.
========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Primary */
  --c-ink:     #2B2C39;
  --c-gold:    #C3B091;
  --c-olive:   #656746;

  /* Secondaries (fore / background pair) */
  --c-sage:    #9DAF88;  --c-sage-bg:   #EEF4EA;
  --c-blue:    #5B7C99;  --c-blue-bg:   #E2E9ED;
  --c-wine:    #722E37;  --c-wine-bg:   #EDE2E4;
  --c-rust:    #BE5101;  --c-rust-bg:   #F4D3CB;
  --c-sun:     #D6B84F;  --c-sun-bg:   #F7EDDA;

  /* Theme tokens (mappable by palette tweak) */
  --bg:        #FFFFFF;
  --bg-soft:   #F7F6F2;
  --fg:        var(--c-ink);
  --muted:     #6B6C75;
  --accent:    var(--c-gold);
  --accent-ink:#1f2028;
  --line:      rgba(43,44,57,.12);

  /* Typography scale */
  --fs-body:   13px;
  --fs-sub:    20px;
  --fs-h3:     22px;
  --fs-h2:     28px;
  --fs-h1:     36px;        /* mobile default */
  --lh-tight:  1.15;
  --lh-body:   1.65;

  /* Layout */
  --maxw:      1200px;
  --pad-x:     20px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(43,44,57,.06);
  --shadow-md: 0 10px 30px rgba(43,44,57,.10);

  /* Motion */
  --ease:      cubic-bezier(.2,.7,.2,1);
}

/* Palette tweaks (applied on <html data-palette="...">) */
html[data-palette="warm"]    { --accent: var(--c-rust);  --bg-soft:#F4D3CB; }
html[data-palette="cool"]    { --accent: var(--c-blue);  --bg-soft:#E2E9ED; }
html[data-palette="dark"]    { --accent: var(--c-sun);   --bg-soft:#1f2028; --bg:#14151c; --fg:#F7F6F2; --muted:#9da0ad; --line:rgba(255,255,255,.12); }
html[data-palette="dark"] body { background: var(--bg); color: var(--fg); }
html[data-palette="dark"] .site-header.scrolled { background: rgba(20,21,28,.9); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'League Spartan', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Utilities */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.center { text-align: center; margin-top: 28px; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.eyebrow.light { color: rgba(255,255,255,.78); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: inherit; line-height: var(--lh-tight); margin: 0 0 .4em; font-weight: 500; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 16px; font-weight: 500; }
p  { margin: 0 0 1em; }
.section-title { font-size: var(--fs-h1); text-align: center; }
.section-sub   { font-size: var(--fs-sub); text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn + .btn { margin-left: 10px; }
.btn:hover  { transform: translateY(-1px); }
.btn-primary       { background: var(--c-gold); color: var(--c-ink); }
.btn-primary:hover { background: #b5a080; }
.btn-outline       { border-color: var(--c-ink); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-ghost         { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover   { background: rgba(255,255,255,.14); }
.btn-light         { background: #fff; color: var(--c-ink); }
.btn-light:hover   { background: var(--c-gold); }
.btn-ghost-light       { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; }

.primary-nav { display: none; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 28px;
}
.nav-list a {
  font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-ink);
  position: relative; padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--c-ink);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--c-gold); color: var(--c-ink) !important;
  padding: 10px 18px !important; border-radius: 999px;
}
.nav-cta::after { display: none; }

.nav-toggle {
  width: 44px; height: 44px; background: transparent; border: 0;
  display: inline-flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--c-ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
/* =========================================================
   MOBILE NAV — full-height drawer (<900px)
========================================================== */
@media (max-width: 899px) {
  /* 1. UBAH HEADER JADI FIXED & BERI GANJALAN BODY */
  .site-header {
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
  }
  body {
    padding-top: 76px; /* Ganjalan setinggi header tablet */
  }
  /* Matikan efek blur header saat menu terbuka agar layout tidak error */
  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* 2. KODE DRAWER MENU MENU */
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; 
    width: min(420px, 100vw);
    background: #fff;
    padding: 0;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
    display: flex;
    flex-direction: column;
    z-index: 70;
    box-shadow: -24px 0 56px rgba(17,24,39,.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 76px;
    border-bottom: 1px solid rgba(17,24,39,.06);
    flex: 0 0 auto;
  }
  .drawer-head .drawer-brand {
    font-family: 'League Spartan', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .16em;
    color: var(--c-ink);
    text-decoration: none;
  }
  .drawer-close {
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink);
    cursor: pointer;
    padding: 0;
  }
  .drawer-close svg { width: 24px; height: 24px; }

  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(17,24,39,.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 65;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    margin: 0;
    list-style: none;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    width: 100%;
    padding: 22px 4px;
    font-size: 15px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--c-ink);
    border-bottom: 1px solid rgba(17,24,39,.06);
    transition: color .2s ease, padding-left .2s ease;
  }
  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--c-gold);
    padding-left: 8px;
  }
  .nav-list a::after { display: none; }
  .nav-list li:last-child a { border-bottom: 0; }
  .nav-list li:has(> .nav-cta) { border-bottom: 0; }
  .nav-list li:has(> .nav-cta) a { border-bottom: 0; padding: 16px 24px; }

  .nav-cta,
  a.nav-cta {
    margin: 16px 24px 28px;
    background: var(--c-ink);
    color: #fff !important;
    border-radius: 999px;
    padding: 16px 24px !important;
    text-align: center;
    border-bottom: 0 !important;
    letter-spacing: .18em !important;
    font-size: 13px !important;
    width: auto;
  }
  .nav-cta:hover { background: var(--c-gold); color: #fff !important; padding-left: 24px !important; }

  body.nav-open { overflow: hidden; }

  .nav-toggle {
    position: relative;
    z-index: 80;
    transition: opacity .3s ease;
  }
  body.nav-open .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

/* 3. SESUAIKAN GANJALAN UNTUK LAYAR HP KECIL (<=767px) */
@media (max-width: 767px) {
  body {
    padding-top: 68px; /* Ganjalan setinggi header HP */
  }
}

/* Desktop nav */
@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle  { display: none; }
  .drawer-head { display: none; }
  .nav-backdrop { display: none; }
}

/* ---------- Placeholder imagery ---------- */
.placeholder-img {
  position: relative; overflow: hidden; background: #eae7de;
  aspect-ratio: 4 / 3;
}
.placeholder-img .ph-fill, .placeholder-img .ph-stripes {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.placeholder-img::after {
  content: attr(data-placeholder);
  position: absolute; left: 12px; bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.42); color: #fff;
  padding: 4px 8px; border-radius: 4px;
}

/* Portfolio slider slides: clean image only, no overlay label */
.np-slide.placeholder-img::after { content: none; display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  width: 100%; height: 100%; aspect-ratio: auto;
}
.hero-img::after { display: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,21,28,.35) 0%, rgba(20,21,28,.65) 100%);
}
.hero-inner {
  padding: 90px 20px;
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500; letter-spacing: -.01em;
  margin: 0 0 28px;
}
.hero-sub {
  font-size: var(--fs-sub);
  max-width: 600px; margin: 0 auto 28px;
  color: rgba(255,255,255,.88);
}
.hero-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Hero variants */
.hero[data-hero-variant="split"] { min-height: 0; color: var(--fg); }
.hero[data-hero-variant="split"]::before { display: none; }
.hero[data-hero-variant="split"] .hero-media { position: relative; inset: auto; z-index: 0; height: 56vh; }
.hero[data-hero-variant="split"] .hero-inner { text-align: left; padding: 56px 20px; }
.hero[data-hero-variant="split"] .eyebrow { color: var(--muted); }
.hero[data-hero-variant="split"] .hero-sub { color: var(--muted); margin-left: 0; }
.hero[data-hero-variant="split"] .hero-actions { justify-content: flex-start; }
.hero[data-hero-variant="split"] .btn-ghost { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }

.hero[data-hero-variant="minimal"] { background: var(--bg-soft); color: var(--fg); min-height: 0; }
.hero[data-hero-variant="minimal"]::before { display: none; }
.hero[data-hero-variant="minimal"] .hero-media { display: none; }
.hero[data-hero-variant="minimal"] .hero-inner { padding: 120px 20px 80px; }
.hero[data-hero-variant="minimal"] .eyebrow { color: var(--muted); }
.hero[data-hero-variant="minimal"] .hero-sub { color: var(--muted); }
.hero[data-hero-variant="minimal"] .btn-ghost { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg); }
.portfolio-group { margin-bottom: 64px; }
.portfolio-group:last-of-type { margin-bottom: 20px; }
.group-title {
  text-align: center; font-size: 22px; font-weight: 500;
  letter-spacing: .02em; margin: 0 0 22px; color: var(--c-ink);
}

/* -- Portfolio cards (premium, image-led) -- */
.portfolio .np-grid {
  display: grid !important;
  gap: 28px;
  grid-template-columns: 1fr;                 /* mobile: 1 col */
}
@media (min-width: 640px)  {                  /* tablet: 2 col */
  .portfolio .np-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px; }
}
@media (min-width: 960px)  {                  /* desktop: 3 col */
  .portfolio .np-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 36px; }
}

.np-card {
  display: block;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(17,24,39,.10);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  color: inherit;
}
.np-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(17,24,39,.16);
}

.np-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1f5f9;
}
.np-media img,
.np-media .ph-fill {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.np-card:hover .np-media img,
.np-card:hover .np-media .ph-fill { transform: scale(1.06); }

/* -- Slider (5 images per card) -- */
.np-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1f5f9;
  touch-action: pan-y;
}
.np-track {
  list-style: none; margin: 0; padding: 0;
  position: absolute; inset: 0;
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.np-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.np-slide img,
.np-slide .ph-fill {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.np-slide.placeholder-img::after { bottom: 14px; left: 14px; }

/* Prev/Next buttons */
.np-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92);
  color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(17,24,39,.18);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  z-index: 2;
}
.np-nav svg { width: 20px; height: 20px; }
.np-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.np-nav:focus-visible { opacity: 1; pointer-events: auto; }
.np-prev { left: 10px; }
.np-next { right: 10px; }
.np-card:hover .np-nav,
.np-slider:focus-within .np-nav { opacity: 1; pointer-events: auto; }

/* Mobile: always show controls, slightly smaller */
@media (max-width: 767px) {
  .np-nav { width: 36px; height: 36px; opacity: 1; pointer-events: auto; background: rgba(255,255,255,.88); }
  .np-nav svg { width: 18px; height: 18px; }
  .np-prev { left: 8px; }
  .np-next { right: 8px; }
}

/* Dots */
.np-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.np-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 0; padding: 0;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: pointer;
  transition: width .25s var(--ease), background .25s var(--ease);
}
.np-dot.is-active { background: #fff; width: 18px; border-radius: 4px; }
.np-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Dark-palette card surface tweak */
html[data-palette="dark"] .np-card { background: #1b1c25; box-shadow: 0 16px 36px rgba(0,0,0,.35); }

.np-content {
  padding: 18px 20px 22px;
}
.np-loc {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.3;
}
.np-loc svg {
  width: 16px; height: 16px;
  fill: var(--muted);
  flex-shrink: 0;
}
.np-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.003em;
  color: var(--c-ink);
  margin: 0;
}
html[data-palette="dark"] .np-title { color: #F7F6F2; }

@media (max-width: 767px) {
  .np-title { font-size: 20px; }
  .np-content { padding: 16px 18px 20px; }
}

/* ---------- Services (reference: white cards, gold line-icons, centered) ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.service-card {
  background: #fff;
  border: 1px solid rgba(17,24,39,.05);
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 168px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(17,24,39,.10);
}
.service-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-gold);
  background: transparent;
  margin: 0 0 14px;
}
.service-icon svg { width: 46px; height: 46px; }
.service-card h3 {
  font-size: 15px; font-weight: 500;
  line-height: 1.35;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: 0;
}

/* Gold CTA button (matches reference pill) */
.btn-gold {
  background: var(--c-gold);
  color: #fff;
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  padding: 14px 38px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 6px 18px rgba(195,176,145,.35);
}
.btn-gold:hover {
  background: #b29d7a;
  border-color: #b29d7a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(195,176,145,.45);
}

.services .center { margin-top: 36px; }
@media (min-width: 960px) { .services .center { margin-top: 44px; } }

/* ---------- Process ---------- */
.process { background: var(--bg); }
.process-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  position: relative;
}
.step-num {
  display: inline-block;
  font-size: 28px; font-weight: 500;
  color: var(--c-gold); letter-spacing: .02em;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 17px; margin: 0 0 6px; }
.process-step p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
/* ---------- Testimonials (soft light grey, premium) ---------- */
.testimonials {
  background: #F4F4F1;
  padding-top: 88px;
  padding-bottom: 88px;
}
@media (min-width: 960px) {
  .testimonials { padding-top: 112px; padding-bottom: 112px; }
}
.testimonials .section-title {
  color: var(--c-ink);
  text-align: center;
}
.testi-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 640px) { .testi-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.testi {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(17,24,39,.06);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 10px 28px rgba(17,24,39,.05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17,24,39,.08);
}
.testi blockquote { margin: 0 0 14px; }
.testi p {
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.7;
  margin: 0;
}
.testi figcaption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- CTA Block ---------- */
.cta-block {
  background: var(--c-olive);
  color: #fff;
  padding: 56px 0;
}
@media (min-width: 900px) { .cta-block { padding: 96px 0; } }

.cta-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

.cta-copy .eyebrow { margin-bottom: 10px; }
.cta-copy h2 {
  font-size: clamp(26px, 6.4vw, var(--fs-h1));
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.cta-copy p  {
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 20px;
}
@media (min-width: 900px) {
  .cta-copy p  { font-size: var(--fs-sub); line-height: 1.55; max-width: 48ch; margin-bottom: 22px; }
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cta-media { position: relative; }
.cta-img   { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px;
  border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--c-olive);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.play-btn svg { width: 28px; height: 28px; }
.play-btn:hover { transform: scale(1.06); background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.8);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  text-align: center;
  padding-bottom: 36px;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    text-align: left;
  }
}
.footer-wordmark {
  font-size: 22px; font-weight: 500; letter-spacing: .28em;
  color: #fff; margin: 0 0 8px;
}
.footer-tag { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; max-width: 32ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 899px) { .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; justify-content: center; } }
.footer-nav a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.footer-nav a:hover { color: var(--c-gold); }

.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; justify-content: center; }
@media (min-width: 900px) { .socials { justify-content: flex-start; } }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); }
.socials svg { width: 18px; height: 18px; }

.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-contact a { color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.footer-contact a:hover { border-color: var(--c-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: 12px; color: rgba(255,255,255,.55);
  text-align: center;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; right: 18px; bottom: 18px;
  width: min(280px, calc(100vw - 36px));
  background: #fff; color: var(--c-ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 70;
  overflow: hidden;
}
.tweaks[hidden] { display: none; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--c-ink); color: #fff;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.tweaks-close {
  background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1;
}
.tweaks-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.tweaks-body label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.tweaks-body select {
  font: inherit; font-size: 13px; color: var(--c-ink);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet / Desktop type scale ---------- */
@media (min-width: 900px) {
  :root {
    --fs-h1: 40px;   /* spec: desktop header */
    --fs-h2: 32px;
    --fs-h3: 24px;
  }
  .hero-title { font-size: clamp(44px, 5.2vw, 64px); }
  section { padding: 96px 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .tweaks, .play-btn, .hero-actions, .nav-toggle { display: none !important; }
  .hero { min-height: auto; color: var(--c-ink); }
  .hero::before { display: none; }
  section { page-break-inside: avoid; padding: 20px 0; }
}

/* =========================================================
   MOBILE OVERRIDES (<=767px) — strict spec
========================================================== */
@media (max-width: 767px) {

  /* =========================================================
     Mobile App Bar — production-ready
     Structure: [ NOBLE ASIA logo ]                 [ ☰ / ✕ ]
  ========================================================== */
  .site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
  }
  .site-header.scrolled {
    background: #fff;
    border-bottom-color: rgba(17, 24, 39, .08);
    box-shadow: 0 4px 18px rgba(17, 24, 39, .04);
  }
  .site-header .nav-wrap {
    height: 68px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header .brand {
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
  }
  .site-header .brand-logo {
    height: 24px;
    width: auto;
    display: block;
  }
  .site-header .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--c-ink);
    flex: 0 0 auto;
    margin-right: -6px; /* optical alignment to edge */
    transition: background .2s ease;
  }
  .site-header .nav-toggle:hover,
  .site-header .nav-toggle:focus-visible {
    background: rgba(17, 24, 39, .05);
  }
  .site-header .nav-toggle span {
    width: 22px;
    height: 1.8px;
    background: var(--c-ink);
    border-radius: 2px;
    display: block;
  }
  /* hamburger→X already handled by base .nav-toggle[aria-expanded="true"] rules */

  /* CTA section (green) */
  .cta-block { padding: 40px 0; }
  .cta-inner { gap: 20px; }
  .cta-copy h2 {
    font-size: 26px;
    line-height: 1.35;
    max-width: 90%;
    margin: 0 0 14px;
  }
  .cta-copy p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 0 20px;
  }
  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
  }

  /* Portfolio card content padding */
  .np-content { padding: 14px 16px 16px; }
  .np-card { box-shadow: 0 8px 20px rgba(17,24,39,.08); }

  /* Footer — centered, balanced */
  .site-footer { padding-top: 40px; }
  .site-footer .footer-inner {
    padding: 0 16px 24px;
    text-align: center;
    gap: 20px;
  }
  .footer-wordmark {
    font-size: 20px;
    letter-spacing: .26em;
    margin: 0 0 8px;
  }
  .footer-tag {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 34ch;
  }
  .footer-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
  .footer-nav a { font-size: 13px; }
  .socials {
    justify-content: center;
    gap: 14px;
  }
  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
  }
  .footer-bottom {
    padding: 16px;
    margin-top: 8px;
    font-size: 11px;
  }
}
