/* ================================================================
   NTARA WP — Additions on top of the compiled Tailwind CSS.
   Only for WordPress-specific elements not in the original React app.
================================================================ */

/* ── Section spacing — direct CSS, bypasses compiled Tailwind limits ─────
   These override the Tailwind py-* classes on each section with exact values.
   Content sections: 80px / 96px (md). Contact: 64px / 80px (smaller — it's
   centred text with no heavy content above it).
──────────────────────────────────────────────────────────────────────────── */
section#about,
section#services,
section#indonesia,
section#process,
section#living {
  padding-top:    5rem;   /* 80px */
  padding-bottom: 5rem;   /* 80px */
}
section#contact {
  padding-top:    4rem;   /* 64px */
  padding-bottom: 4rem;   /* 64px */
}
@media (min-width: 768px) {
  section#about,
  section#services,
  section#indonesia,
  section#process,
  section#living {
    padding-top:    6rem;   /* 96px */
    padding-bottom: 6rem;   /* 96px */
  }
  section#contact {
    padding-top:    5rem;   /* 80px */
    padding-bottom: 5rem;   /* 80px */
  }
}

/* Ticker animation (replaces motion/react) */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ntara-ticker-track {
  animation: ticker-scroll 30s linear infinite;
  display: flex;
  align-items: center;
}

/* Header transparent → glass on scroll (replaces React useState) */
.site-header-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228,228,231,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header-wrap.scrolled {
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Nav underline hover */
.ntara-nav-link {
  position: relative;
}
.ntara-nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #C8102E;
  transition: width 0.3s ease;
}
.ntara-nav-link:hover::after { width: 100%; }

/* Mobile menu */
.ntara-mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: white;
  border-top: 1px solid #F4F4F5;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  flex-direction: column; gap: 24px;
  z-index: 99;
}
.ntara-mobile-menu.open { display: flex; }

/* About photo hover grayscale removal */
.ntara-about-img img {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.7s ease, opacity 0.7s ease;
}
.ntara-about-img:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Service card hover bg */
.ntara-service-card {
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.ntara-service-card:hover {
  background-color: rgba(200,16,46,0.02);
  border-top-color: #C8102E !important;
}
.ntara-service-card:hover h3 {
  color: #C8102E;
}

/* Why Indonesia number hover */
.ntara-why-item .why-num {
  transition: color 0.5s ease;
}
.ntara-why-item:hover .why-num {
  color: #C8102E !important;
}

/* Process step hover */
.ntara-process-step {
  transition: background-color 0.5s ease;
}
.ntara-process-step:hover { background-color: white; }
.ntara-process-step .step-ghost-num {
  transition: color 0.5s ease;
}
.ntara-process-step:hover .step-ghost-num {
  color: rgba(200,16,46,0.1) !important;
}

/* Living card hover */
.ntara-living-card {
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.ntara-living-card:hover {
  border-color: #C8102E !important;
  box-shadow: 0 20px 40px -8px rgba(0,0,0,0.1);
}

/* Body padding for fixed nav */
body { padding-top: 0; }
.ntara-hero-section { padding-top: 80px; }

/* Blog / Insights styles */
.ntara-post-card {
  border: 1px solid #F4F4F5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ntara-post-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.ntara-post-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: #C8102E;
  background: rgba(200,16,46,0.06);
  padding: 4px 10px;
}
.ntara-post-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #A1A1AA;
}
.ntara-post-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700;
  color: #18181B; line-height: 1.2;
  margin-bottom: 12px;
}
.ntara-post-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 700;
  color: #18181B; line-height: 1.2;
  margin-bottom: 12px;
}
.ntara-post-h2 a, .ntara-post-h3 a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.ntara-post-h2 a:hover, .ntara-post-h3 a:hover { color: #C8102E; }
.ntara-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: #C8102E; text-decoration: none;
  transition: gap 0.2s;
}
.ntara-read-more:hover { gap: 12px; }
.ntara-read-more svg { width: 12px; height: 12px; }

/* Page hero (dark bg for inner pages) */
.ntara-page-hero {
  background: #18181B;
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.ntara-page-hero .batik-pattern {
  position: absolute; inset: 0; opacity: 0.3;
}
.ntara-page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px,5vw,64px); font-weight: 700;
  color: white; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.ntara-page-hero h1 em { color: #C8102E; font-style: italic; font-weight: 400; }
.ntara-page-hero .hero-sub {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.6); max-width: 560px;
  line-height: 1.7;
}

/* Sidebar */
.ntara-sidebar-widget {
  border: 1px solid #F4F4F5;
  background: white;
  padding: 28px; margin-bottom: 24px;
}
.ntara-sidebar-widget h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: #A1A1AA; margin-bottom: 20px;
}
.ntara-rp-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #F4F4F5;
}
.ntara-rp-item:last-child { border-bottom: none; padding-bottom: 0; }
.ntara-rp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: #A1A1AA; white-space: nowrap; margin-top: 2px;
}
.ntara-rp-item a {
  font-size: 13px; font-weight: 500; color: #52525B;
  text-decoration: none; transition: color 0.2s; line-height: 1.4;
}
.ntara-rp-item a:hover { color: #C8102E; }

/* Post content body */
.ntara-post-content {
  font-size: 17px; line-height: 1.8; color: #3F3F46;
}
.ntara-post-content p { margin-bottom: 24px; }
.ntara-post-content h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  color: #18181B; margin: 40px 0 16px;
}
.ntara-post-content h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  color: #18181B; margin: 32px 0 12px;
}
.ntara-post-content ul, .ntara-post-content ol { margin: 0 0 24px 24px; }
.ntara-post-content li { margin-bottom: 8px; }
.ntara-post-content blockquote {
  border-left: 3px solid #C8102E;
  padding: 16px 24px; margin: 32px 0;
  background: rgba(200,16,46,0.03);
}
.ntara-post-content blockquote p { font-style: italic; color: #71717A; margin: 0; }
.ntara-post-content a { color: #C8102E; }
.ntara-post-content img { max-width: 100%; margin: 24px 0; }

/* 404 */
.ntara-404 {
  background: #18181B; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 0; position: relative; overflow: hidden;
}
.ntara-404-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(120px,20vw,200px); font-weight: 700;
  color: rgba(200,16,46,0.1); line-height: 1; margin-bottom: -40px;
}
.ntara-404 h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700;
  color: white; margin-bottom: 16px;
}
.ntara-404 p { font-weight: 300; color: rgba(255,255,255,0.5); margin-bottom: 32px; }

/* No posts */
.ntara-no-posts {
  text-align: center; padding: 80px 40px;
  border: 1px solid #F4F4F5;
}
.ntara-no-posts h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700;
  color: #18181B; margin-bottom: 12px;
}
.ntara-no-posts p { font-size: 14px; font-weight: 300; color: #71717A; }

/* Pagination */
.ntara-pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.ntara-pagination a, .ntara-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  border: 1px solid #E4E4E7; color: #71717A;
  transition: all 0.2s;
}
.ntara-pagination a:hover { border-color: #C8102E; color: #C8102E; }
.ntara-pagination span.current {
  background: #C8102E; border-color: #C8102E; color: white;
}

/* Insights layout grid */
.ntara-insights-wrap { padding: 72px 0 104px; background: white; }
.ntara-insights-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 64px; align-items: start;
}
.ntara-sidebar-sticky { position: sticky; top: 100px; }

@media (max-width: 1024px) {
  .ntara-insights-grid { grid-template-columns: 1fr; }
  .ntara-sidebar-sticky { position: static; }
}
@media (max-width: 768px) {
  .site-header-wrap { padding: 16px 0; }
  .ntara-hero-section { padding-top: 100px; }
}
