/* ============================================
   AKAR CIPTA DIGITAL — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,300;1,9..144,600&display=swap');

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

:root {
  --ink:        #111820;
  --ink-mid:    #2C3A47;
  --ink-soft:   #5A6A78;
  --moss:       #1D4A3A;
  --moss-light: #2A6352;
  --leaf:       #4CAF82;
  --leaf-dim:   #3A9268;
  --sand:       #F5F2EC;
  --white:      #FFFFFF;
  --border:     #DDE3E0;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --pad-x: clamp(1.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; }

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(17,24,32,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76,175,130,0.12);
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo span {
  color: var(--leaf);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--leaf); }

.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--leaf);
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  transition: background 0.2s !important;
}

.nav-wa:hover {
  background: var(--leaf-dim) !important;
  color: var(--white) !important;
}

.nav-wa svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 8rem var(--pad-x) 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s;
}

.hero-bg.loaded { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,24,32,0.92) 0%,
    rgba(17,24,32,0.75) 50%,
    rgba(29,74,58,0.6) 100%
  );
}

/* Decorative grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76,175,130,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,175,130,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76,175,130,0.12);
  border: 1px solid rgba(76,175,130,0.25);
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--leaf);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--leaf);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--leaf-dim);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

/* ============================================
   SECTION SHARED
   ============================================ */
section {
  padding: 6rem var(--pad-x);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf-dim);
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 540px;
}

/* ============================================
   SERVICES — ZIGZAG
   ============================================ */
.services {
  background: var(--sand);
  padding: 6rem var(--pad-x);
}

.services-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.service-block {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: 1px solid var(--border);
}

.service-block.reverse .service-visual { order: 2; }
.service-block.reverse .service-content { order: 1; }

.service-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4/3;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* Placeholder visual when no image */
.service-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--moss) 0%, var(--ink) 100%);
  min-height: 280px;
}

.service-placeholder svg {
  width: 72px;
  height: 72px;
  stroke: rgba(76,175,130,0.3);
  fill: none;
  stroke-width: 1;
}

.service-tag {
  display: inline-block;
  background: rgba(76,175,130,0.12);
  color: var(--leaf-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.service-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.service-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.service-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--moss-light);
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 2px solid var(--leaf);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-service:hover {
  color: var(--leaf-dim);
  border-color: var(--leaf-dim);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
  background: var(--white);
}

.portfolio-header {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.porto-card {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.porto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,175,130,0.4);
}

.porto-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--moss) 0%, var(--ink-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.porto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.porto-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.porto-thumb-placeholder svg {
  width: 48px; height: 48px;
  stroke: rgba(76,175,130,0.25);
  fill: none;
  stroke-width: 1;
}

.porto-body {
  padding: 1.5rem;
}

.porto-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-dim);
  margin-bottom: 0.5rem;
  display: block;
}

.porto-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.porto-body p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.porto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.porto-tag {
  background: rgba(29,74,58,0.08);
  color: var(--moss-light);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--moss);
  padding: 6rem var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76,175,130,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,175,130,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--moss);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}

.btn-wa:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

.btn-wa svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.875rem 1.5rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  padding: 3rem var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.footer-logo span { color: var(--leaf); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--leaf); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--ink);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(76,175,130,0.12);
  }

  .hero { padding: 7rem 1.5rem 4rem; min-height: auto; }

  .service-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .service-block.reverse .service-visual { order: 0; }
  .service-block.reverse .service-content { order: 0; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .portfolio-header { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; text-align: center; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
