/*
Theme Name: NAFIYA
Theme URI: https://nafiya.example
Author: PT Nafiya Perkasa Distribusi
Author URI: https://nafiya.example
Description: Tema WordPress NAFIYA — konversi 1:1 dari desain "Web Nafiya REV.pdf". Enam halaman (Home, About, Service, Product, Portofolio, Contact), responsive hingga mobile, mempertahankan bahasa desain aslinya: biru #235ba5, Space Grotesk/Figtree/Quicksand, garis pembagi 1.3px, dan segitiga sudut 44px.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nafiya
*/

/* ============================================================
   NAFIYA — responsive trial stylesheet (index-responsive.html)
   Design language dari Web Nafiya REV.pdf:
   - biru #235ba5/#235ba3, navy #09345b, footer #1b4d86
   - Space Grotesk (heading) / Figtree (body) / Quicksand (caption)
   - garis pembagi tipis 1.3px, segitiga sudut 44px, blok warna solid
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Figtree';
  src: url('assets/fonts/Figtree-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Figtree';
  src: url('assets/fonts/Figtree-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Quicksand';
  src: url('assets/fonts/Quicksand-Regular.ttf') format('truetype');
  font-weight: 400;
}

:root {
  --blue: #235ba5;
  --blue-2: #235ba3;
  --blue-3: #235ba4;
  --blue-dark: #1b4d86;
  --navy: #09345b;
  --blue-btn: #3f7ab8;
  --text-blue: #295b9e;
  --line-w: 1.3px;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Figtree', sans-serif;
  --caption: 'Quicksand', sans-serif;
  --maxw: 1280px;
  --pad: clamp(20px, 9vw, 115px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: #fff; color: var(--text-blue); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; }
.h-section { font-size: clamp(27px, 2.9vw, 36.7px); }

p.lead {
  font-size: 14px; line-height: 1.9; color: var(--text-blue);
  text-align: justify;
}

/* --- tombol --- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; }
.btn-hero { background: var(--blue-btn); color: #fff; font-weight: 500; font-size: clamp(17px, 1.7vw, 21.8px); padding: 4px 22px; min-height: 34px; }
.btn-hero:hover { background: #4d88c6; }
.btn-link { color: #fff; font-size: 15.4px; font-weight: 600; }
.btn-link .arrow { display: inline-block; margin-left: 10px; transform: translateY(1px); }
.btn-link:hover { text-decoration: underline; }
.btn-solid { background: var(--blue-2); color: #fff; font-size: 17px; padding: 6px 19px; min-height: 32px; }
.btn-solid:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); font-size: 15.1px; padding: 5px 17px; min-height: 28px; }
.btn-ghost:hover { background: #e8eef7; }
.btn-white { background: #fff; color: var(--blue); font-size: 17.9px; padding: 6px 23px; min-height: 34px; }
.btn-white:hover { background: #e8eef7; }

/* --- segitiga sudut khas (44px) --- */
.tri { position: absolute; width: 44px; height: 44px; }
.tri-tr { clip-path: polygon(100% 100%, 0 0, 100% 0); }
.tri-bl { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.tri-br { clip-path: polygon(100% 0, 0 100%, 100% 100%); }

/* ============ NAV ============ */
.nav {
  background: var(--blue-2);
  border-bottom: var(--line-w) solid #fff;
  position: relative; z-index: 50;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(16px, 4.5vw, 58px);
  height: 81px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { width: clamp(105px, 10vw, 126px); }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav-menu a {
  color: #fff; font-family: var(--display); font-size: 14px; padding: 4px 0;
}
.nav-menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-menu a.active { border-bottom: 1px solid #fff; padding-bottom: 6px; }
.nav-lang { color: #fff; font-family: var(--display); font-size: 12px; margin-left: clamp(10px, 6vw, 96px); cursor: pointer; }
.nav-lang::after { content: '⌄'; margin-left: 6px; font-size: 11px; }
#nav-toggle, .nav-burger { display: none; }

/* ============ HERO ============ */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  padding-top: clamp(60px, 13vw, 168px);
}
.hero-logo { width: clamp(240px, 41vw, 525px); }
.hero-actions { display: flex; align-items: center; gap: clamp(24px, 4vw, 55px); margin-top: clamp(34px, 5vw, 55px); }
/* garis & segitiga dekoratif kanan-atas */
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-decor .v1 { position: absolute; left: 77.3%; top: 0; width: var(--line-w); height: 63%; background: #fff; }
.hero-decor .h1 { position: absolute; left: 77.3%; top: 207px; right: 0; height: var(--line-w); background: #fff; }
.hero-decor .v2 { position: absolute; left: 83.4%; top: 207px; width: var(--line-w); height: 100%; background: #fff; }
.hero-decor .tri { left: 77.3%; top: 163px; background: #fff; clip-path: polygon(100% 100%, 0 0, 100% 0); transform: translateX(1px); }
.hero-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 77.3%; margin-top: clamp(48px, 8vw, 103px);
}
.hero-strip .ph { aspect-ratio: 330 / 185; overflow: hidden; }
.hero-strip .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-tail { height: clamp(60px, 12vw, 152px); }

/* pita putih bawah hero (jeda visual, meneruskan garis) */
.hero-gap { background: #fff; height: clamp(90px, 19vw, 250px); position: relative; }
.hero-gap .v { position: absolute; left: 34.5%; top: 0; bottom: 0; width: var(--line-w); background: var(--blue); }
.hero-gap .tri { left: calc(34.5% - 44px); bottom: 0; background: var(--blue); clip-path: polygon(100% 0, 0 100%, 100% 100%); }

/* ============ OUR STORY ============ */
.story { background: #fff; position: relative; }
.story-grid {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2.2fr;
  gap: clamp(28px, 4vw, 84px);
  padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(48px, 8vw, 110px);
  padding-left: clamp(20px, 32vw, 410px);
  padding-right: var(--pad);
}
.story h2 { color: var(--text-blue); }

/* ============ ABOUT ============ */
.about { border-top: var(--line-w) solid var(--blue); position: relative; }
.about-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.9fr 1.1fr;
  align-items: stretch;
}
.about-text {
  padding: clamp(28px, 5vw, 72px) clamp(24px, 5vw, 60px) clamp(36px, 6vw, 72px) var(--pad);
}
.about-text h2 { color: var(--text-blue); margin-bottom: clamp(16px, 2.5vw, 34px); }
.about-text .lead { max-width: 602px; margin-bottom: clamp(22px, 3vw, 38px); }
.about-photo { position: relative; border-left: var(--line-w) solid var(--blue); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* ============ SERVICE LIST ============ */
.services { background: var(--blue-2); color: #fff; position: relative; padding-bottom: clamp(40px, 6vw, 84px); }
.services-head {
  display: flex; justify-content: flex-end;
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(24px, 3vw, 48px);
}
.svc-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 5vw, 76px);
  padding: 0 var(--pad) 0 0;
}
.svc-photo { aspect-ratio: 602 / 304; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: clamp(20px, 3vw, 48px) clamp(20px, 3vw, 46px) 0; }
.svc-body h3 { font-size: 28px; margin-bottom: 14px; }
.svc-body p { font-size: 14px; line-height: 1.9; max-width: 360px; margin-bottom: 22px; }
.svc-production { margin-top: clamp(40px, 11vw, 166px); }
.svc-ideation .svc-body { border-left: var(--line-w) solid #fff; margin-left: var(--pad); padding-left: clamp(20px, 2vw, 26px); }

/* ============ PORTFOLIO ============ */
.portfolio { background: #fff; position: relative; padding-bottom: clamp(44px, 6vw, 90px); }
.portfolio-head {
  display: flex; justify-content: flex-end;
  padding: clamp(28px, 5vw, 94px) var(--pad) clamp(24px, 3vw, 60px);
}
.portfolio-head h2 { color: var(--blue); }
.pf-rows { max-width: 1050px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 0px); }
.pf-row { display: flex; }
.pf-card { position: relative; overflow: hidden; color: #fff; }
.pf-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pf-grad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to bottom, rgba(11,49,96,0) 8%, rgba(11,49,96,.9) 100%);
}
.pf-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 26px; display: flex; align-items: flex-end; gap: 14px; }
.pf-year { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.8vw, 35.6px); line-height: 1; }
.pf-label p { font-family: var(--caption); font-size: 10.9px; line-height: 1.4; max-width: 170px; }
.pf-2020 { flex: 456; aspect-ratio: 456 / 346; }
.pf-2021 { flex: 297; aspect-ratio: 297 / 346; }
.pf-2022 { flex: 297; aspect-ratio: 297 / 346; }
.pf-2023 { flex: 268; aspect-ratio: 268 / 242; }
.pf-2024 { flex: 267; aspect-ratio: 267 / 242; }
.pf-2025 { flex: 515; aspect-ratio: 515 / 242; }
.pf-card:hover img { transform: scale(1.04); transition: transform .4s ease; }

/* ============ CTA ============ */
.cta { background: var(--blue-3); color: #fff; position: relative; }
.cta-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
}
.cta-text { padding: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 60px) clamp(36px, 6vw, 80px) var(--pad); }
.cta-text h2 { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.28; max-width: 420px; margin-bottom: clamp(24px, 3vw, 40px); }
.cta-photo { position: relative; border-left: var(--line-w) solid #fff; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ============ FIND US ON ============ */
.findus { background: #fff; position: relative; }
.findus-grid {
  display: grid; grid-template-columns: minmax(170px, 1fr) 2.4fr; align-items: center;
  padding-top: clamp(36px, 5vw, 54px); padding-bottom: clamp(40px, 6vw, 72px);
}
.findus h2 { color: var(--blue-3); border-top: var(--line-w) solid var(--blue-3); border-bottom: var(--line-w) solid var(--blue-3); padding: clamp(20px, 4vw, 66px) 0; }
.social-cards { display: flex; justify-content: center; gap: clamp(12px, 1.5vw, 18px); flex-wrap: wrap; }
.social-card {
  width: clamp(120px, 12.7vw, 163px); aspect-ratio: 163 / 109;
  background: #fff; border-radius: 6px;
  box-shadow: 0 12px 36px rgba(13, 38, 76, .25);
  display: flex; align-items: center; justify-content: center;
}
.social-card img { width: 44%; height: 66%; object-fit: contain; }
.social-card:hover { transform: translateY(-3px); transition: transform .25s ease; }

/* ============ FOOTER ============ */
.footer { background: var(--blue-dark); color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 60px); align-items: center;
  padding-top: clamp(40px, 5vw, 58px); padding-bottom: clamp(40px, 5vw, 58px);
}
.footer-logo { width: clamp(220px, 26vw, 333px); }
.footer h4 { font-family: var(--display); font-size: 25.4px; margin-bottom: 18px; }
.f-cols { display: flex; gap: clamp(28px, 4vw, 48px); }
.f-cols ul { list-style: none; }
.f-cols li { margin-bottom: 13px; }
.f-cols a { font-family: var(--display); font-weight: 500; font-size: 15.4px; }
.f-cols a::before { content: '›'; margin-right: 10px; }
.f-cols a:hover { text-decoration: underline; }
.f-loc p { font-size: 15px; line-height: 1.7; }
.f-loc a { font-weight: 600; font-size: 15px; }
.f-loc a:hover { text-decoration: underline; }

/* ============ TABLET ≤ 1024px ============ */
@media (max-width: 1024px) {
  .story-grid { padding-left: clamp(20px, 12vw, 150px); }
  .svc-grid { column-gap: 24px; }
  .svc-production { margin-top: 60px; }
}

/* ============ MOBILE ≤ 700px ============ */
@media (max-width: 700px) {
  /* nav -> hamburger */
  .nav-inner { height: 64px; }
  .nav-burger {
    display: block; cursor: pointer; width: 26px; height: 20px; position: relative;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ''; position: absolute; left: 0; width: 26px; height: 2.6px; background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-burger span { top: 9px; }
  .nav-burger span::before { top: -8px; }
  .nav-burger span::after { top: 8px; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 18px clamp(16px, 4.5vw, 58px) 24px; gap: 16px;
    border-bottom: var(--line-w) solid #fff;
  }
  #nav-toggle:checked ~ .nav-menu { display: flex; }
  #nav-toggle:checked ~ .nav-burger span { transform: rotate(45deg); }
  #nav-toggle:checked ~ .nav-burger span::before { transform: rotate(-90deg) translateX(-8px); }
  #nav-toggle:checked ~ .nav-burger span::after { opacity: 0; }
  .nav-menu a { font-size: 16px; }
  .nav-lang { margin-left: 0; }

  /* hero */
  .hero-decor .v1 { left: auto; right: 24px; }
  .hero-decor .h1, .hero-decor .v2, .hero-decor .tri { display: none; }
  .hero-strip { width: 100%; grid-template-columns: 1fr; }
  .hero-strip .ph { aspect-ratio: 375 / 190; }
  .hero-strip .ph + .ph { display: none; }   /* mobile: satu foto utama */
  .hero-gap { height: 56px; }
  .hero-gap .v { left: 24px; }
  .hero-gap .tri { display: none; }

  /* sections -> tumpuk */
  .story-grid { grid-template-columns: 1fr; padding-left: var(--pad); gap: 16px; }
  .about-grid, .cta-grid { grid-template-columns: 1fr; }
  .about-photo { border-left: none; border-top: var(--line-w) solid var(--blue); }
  .about-photo img { max-height: 320px; }
  .cta-photo { border-left: none; border-top: var(--line-w) solid #fff; }
  .cta-photo img { max-height: 300px; }

  .services-head, .portfolio-head { justify-content: flex-start; }
  .svc-grid { grid-template-columns: 1fr; padding-right: 0; row-gap: 40px; }
  .svc-production { margin-top: 0; }
  .svc-ideation .svc-body { margin-left: 0; border-left: none; padding-left: var(--pad); }
  .svc-body { padding-left: var(--pad); padding-right: var(--pad); }

  .pf-row { flex-direction: column; }
  .pf-card { aspect-ratio: 375 / 260 !important; }
  .pf-rows { padding: 0 16px; }

  .findus-grid { grid-template-columns: 1fr; gap: 28px; }
  .findus h2 { border: none; padding: 0; }
  .social-cards { justify-content: flex-start; }
  .social-card { width: calc(50% - 8px); }

  .footer-grid { grid-template-columns: 1fr; align-items: start; gap: 30px; }
}

/* ================================================================
   Komponen halaman lain (about / service / product / portfolio / contact)
   ================================================================ */

/* --- banner judul halaman (foto 30% di atas navy) --- */
.banner { position: relative; background: var(--navy); overflow: hidden; }
.banner-photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .3; }
.banner-photos img { width: 100%; height: 100%; object-fit: cover; }
.banner h1 { position: relative; text-align: center; color: #fff; font-size: clamp(28px, 2.9vw, 36.7px); padding: clamp(44px, 7vw, 96px) 20px; font-weight: 600; }

/* --- ABOUT --- */
.ab-hero { background: var(--blue); color: #fff; }
.ab-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; }
.ab-left { display: flex; flex-direction: column; }
.ab-text { padding: clamp(32px, 6vw, 90px) clamp(24px, 5vw, 64px) clamp(32px, 5vw, 72px) var(--pad); }
.ab-text h2 { margin-bottom: 22px; font-size: clamp(24px, 2vw, 25px); }
.ab-text p { font-size: 14px; line-height: 2; text-align: justify; max-width: 470px; }
.ab-photo-wide { flex: 1; }
.ab-photo-wide img, .ab-photo-tall img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo-wide img { max-height: 400px; }
.ab-photo-tall { border-left: var(--line-w) solid #fff; }
.ab-photo-tall img { min-height: 340px; }

.vm-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
.vision { padding: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 56px) 0 var(--pad); }
.vision h2, .mission h2 { font-size: clamp(24px, 2vw, 25px); }
.vision p, .mission p { font-size: 14px; line-height: 2; text-align: justify; margin-top: 18px; }
.vision p { max-width: 470px; color: var(--text-blue); }
.vision h2 { color: var(--blue); }
.vision-photos { display: grid; grid-template-columns: 322fr 404fr; margin-top: clamp(24px, 4vw, 48px); }
.vision-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 363/327; }
.mission { background: var(--blue); color: #fff; margin-top: clamp(40px, 8vw, 130px); padding: clamp(32px, 5vw, 64px) var(--pad) clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px); }

.clients { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(48px, 7vw, 90px); }
.clients-head { display: flex; align-items: center; gap: 24px; margin-bottom: clamp(28px, 5vw, 56px); }
.clients-head h2 { color: var(--blue); white-space: nowrap; }
.clients-head::after { content: ''; flex: 1; height: var(--line-w); background: var(--blue); }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: clamp(18px, 2.8vw, 36px); row-gap: clamp(22px, 3.5vw, 44px); }
.clients-grid img { max-height: clamp(32px, 4.4vw, 56px); max-width: clamp(72px, 10vw, 130px); object-fit: contain; }
.g { filter: grayscale(1); }

/* --- SERVICE --- */
.svcp { background: var(--blue-2); color: #fff; padding-bottom: clamp(40px, 6vw, 80px); }
.svcp.alt { background: #fff; color: var(--text-blue); }
.svcp-head { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 2.1fr; align-items: center; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(28px, 4vw, 56px); gap: clamp(24px, 4vw, 64px); }
.svcp-head h2 { font-size: clamp(26px, 2.9vw, 36.7px); }
.svcp-head .panel { border: var(--line-w) solid #fff; padding: clamp(20px, 3vw, 44px) clamp(20px, 3.5vw, 52px); font-size: 14px; line-height: 2; text-align: justify; }
.svcp.alt .panel { border-color: var(--blue); }
.svcp-head.rev { grid-template-columns: 2.1fr 1fr; }
.svcp-head.rev h2 { order: 2; text-align: right; }
.svcp-head.rev .panel { order: 1; }
.mosaic { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic > div { overflow: hidden; }
.mosaic-i { grid-template-columns: 1fr 1.05fr 1.45fr; grid-template-areas: "p1 w w" "p2 p3 p3"; }
.mosaic-i .m-w { grid-area: w; } .mosaic-i .m-1 { grid-area: p1; } .mosaic-i .m-2 { grid-area: p2; } .mosaic-i .m-3 { grid-area: p3; }
.mosaic-p { grid-template-columns: 1.45fr 1.05fr 1fr; grid-template-areas: "w w p1" "p2 p3 p1"; }
.mosaic-p .m-w { grid-area: w; } .mosaic-p .m-1 { grid-area: p1; } .mosaic-p .m-2 { grid-area: p2; } .mosaic-p .m-3 { grid-area: p3; }
.mosaic > div { aspect-ratio: auto; min-height: clamp(140px, 18vw, 230px); }

/* --- PRODUCT --- */
.prod { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 76px); }
.prod.blue { background: var(--blue); color: #fff; }
.prod.white { background: #fff; color: var(--blue); }
.prod-head { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: flex-end; padding: 0 var(--pad) clamp(24px, 4vw, 44px); }
.prod-head h2 { font-size: clamp(24px, 2.3vw, 28px); }
.prod-grid { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 clamp(16px, 2vw, 24px); }
.prod-grid > div { overflow: hidden; aspect-ratio: 264/206; }
.prod-grid img { width: 100%; height: 100%; object-fit: cover; }
.grid-bigright { grid-template-areas: "a b big big" "c d big big"; }
.grid-bigleft  { grid-template-areas: "big big a b" "big big c d"; }
.grid-bigleft-w { grid-template-areas: "big big w w" "big big c d"; }
.prod-grid .p-big { grid-area: big; aspect-ratio: auto; }
.prod-grid .p-a { grid-area: a; } .prod-grid .p-b { grid-area: b; }
.prod-grid .p-c { grid-area: c; } .prod-grid .p-d { grid-area: d; }
.prod-grid .p-w { grid-area: w; aspect-ratio: auto; }
.prod-cap { max-width: 1050px; margin: clamp(20px, 3vw, 34px) auto 0; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 0 16px; }
.prod-cap h3 { font-family: var(--display); font-weight: 600; font-size: 17px; }
.btn-dl { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 12px; padding: 7px 16px; }
.prod.blue .btn-dl { background: #fff; color: var(--blue); }
.prod.white .btn-dl { background: var(--blue); color: #fff; }
.btn-dl svg { width: 15px; height: 15px; }
.btn-dl:hover { opacity: .85; }

/* --- PORTFOLIO --- */
.year-row { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 76px) var(--pad); }
.year-row.rev .yr-text { order: 2; }
.year-row.rev .yr-collage { order: 1; }
.year-row.rev { grid-template-columns: 1.6fr 1fr; }
.yr-text h2 { font-size: clamp(36px, 3.9vw, 50px); color: var(--blue); margin-bottom: 16px; }
.yr-text p { font-size: 14px; line-height: 2; text-align: justify; color: var(--text-blue); max-width: 320px; }
.yr-collage { display: grid; grid-template-columns: 1fr 1fr; }
.yr-collage > div { overflow: hidden; }
.yr-collage img { width: 100%; height: 100%; object-fit: cover; }
.yr-collage .cl { grid-row: span 2; aspect-ratio: 313/390; }
.yr-collage .cr { aspect-ratio: 311/195; }
.yr-sep { position: relative; height: var(--line-w); background: var(--blue); }
.yr-sep .tri { background: var(--blue); top: calc(-44px + var(--line-w)); }
.yr-sep.tl .tri { left: 26%; clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.yr-sep.tr .tri { right: 26%; clip-path: polygon(0 0, 0 100%, 100% 100%); }

/* --- CONTACT --- */
.contact-hero { border-bottom: var(--line-w) solid var(--blue); position: relative; }
.contact-hero h1 { max-width: var(--maxw); margin: 0 auto; color: var(--text-blue); font-weight: 600; font-size: clamp(34px, 4.3vw, 55px); line-height: 1.25; padding: clamp(48px, 8vw, 108px) var(--pad) clamp(48px, 9vw, 128px); }
.contact-hero .v { position: absolute; right: 22.4%; top: 0; bottom: 0; width: var(--line-w); background: var(--blue); }
.contact-hero .tri { right: 22.4%; bottom: 0; background: var(--blue); clip-path: polygon(100% 0, 0 100%, 100% 100%); transform: translateX(1px); }
.contact-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.18fr; }
.c-info { padding: clamp(32px, 6vw, 86px) clamp(24px, 4vw, 56px) clamp(40px, 6vw, 86px) var(--pad); border-right: var(--line-w) solid var(--blue); }
.c-info h3 { color: var(--blue); font-size: clamp(21px, 2vw, 25px); line-height: 1.35; }
.c-info .grp { margin-top: clamp(28px, 4vw, 46px); }
.c-info p { font-size: 14px; line-height: 2; color: var(--blue); margin-top: 14px; max-width: 350px; text-align: justify; }
.c-info a { color: var(--blue-2); font-size: 14px; }
.c-info a:hover { text-decoration: underline; }
.c-form { padding: clamp(32px, 6vw, 86px) var(--pad) clamp(40px, 6vw, 86px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.c-form label { font-size: 15px; color: var(--blue); display: block; margin-bottom: 9px; font-family: var(--body); }
.c-form input, .c-form textarea { width: 100%; background: #f2f2f2; border: none; height: 40px; padding: 0 22px; font-family: var(--body); font-size: 13px; color: #333; box-sizing: border-box; }
.c-form input::placeholder, .c-form textarea::placeholder { color: #b0b0b0; }
.c-form input:focus, .c-form textarea:focus { outline: 2px solid var(--blue); }
.c-form textarea { height: 154px; padding-top: 12px; resize: vertical; }
.c-send { align-self: flex-start; background: var(--blue-2); color: #fff; border: none; cursor: pointer; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 17px; padding: 9px 24px; }
.c-send:hover { background: var(--blue-dark); }
.map { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--pad) clamp(40px, 6vw, 72px); }
.map img { width: 100%; border-radius: 4px; }

/* --- mobile untuk komponen halaman lain --- */
@media (max-width: 700px) {
  .ab-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
  .ab-photo-tall { border-left: none; border-top: var(--line-w) solid #fff; }
  .ab-photo-tall img { min-height: 0; max-height: 340px; }
  .mission { margin-top: 32px; }
  .vision { padding-right: var(--pad); }
  .clients-grid { column-gap: 16px; row-gap: 20px; }
  .clients-grid img { max-height: 34px; max-width: 80px; }
  .svcp-head, .svcp-head.rev { grid-template-columns: 1fr; }
  .svcp-head.rev h2 { order: 1; text-align: left; }
  .svcp-head.rev .panel { order: 2; }
  .mosaic-i, .mosaic-p { grid-template-columns: 1fr 1fr; grid-template-areas: "w w" "p1 p3" "p2 p3"; }
  .mosaic > div { min-height: 130px; }
  .prod-grid { grid-template-columns: 1fr 1fr; grid-template-areas: none !important; }
  .prod-grid > div { grid-area: auto !important; }
  .prod-grid .p-big, .prod-grid .p-w { grid-column: span 2; }
  .prod-head { justify-content: flex-start; }
  .year-row, .year-row.rev { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
  .year-row.rev .yr-text { order: 1; }
  .year-row.rev .yr-collage { order: 2; }
  .yr-text p { max-width: none; }
  .yr-sep .tri { display: none; }
  .c-info { border-right: none; border-bottom: var(--line-w) solid var(--blue); }
  .contact-hero .v, .contact-hero .tri { display: none; }
}

/* ================================================================
   Penyesuaian wrapper Gutenberg (konten halaman dari editor blok)
   ================================================================ */

/* figure yang dibungkus blok Image tidak boleh menambah jarak */
figure.wp-block-image { margin: 0; }

/* kotak foto berdimensi tetap: figure harus mengisi penuh kontainernya */
.about-photo figure.wp-block-image,
.cta-photo figure.wp-block-image,
.svc-photo figure.wp-block-image,
.ab-photo-tall figure.wp-block-image,
.ab-photo-wide figure.wp-block-image {
  height: 100%;
}
.about-photo figure.wp-block-image img,
.cta-photo figure.wp-block-image img,
.svc-photo figure.wp-block-image img,
.ab-photo-tall figure.wp-block-image img,
.ab-photo-wide figure.wp-block-image img {
  height: 100%;
}

/* foto vision berdampingan: figure jadi item grid, img tetap cover */
.vision-photos figure.wp-block-image { height: 100%; }

/* logo hero sebagai blok Image: lebar di figure, img mengikuti */
.hero-logo { width: clamp(240px, 41vw, 525px); }
.hero-logo img { width: 100%; }

/* margin blok bawaan sudah dinetralkan oleh reset global (* { margin: 0 })
   dan theme.json (blockGap: null) — tidak perlu aturan tambahan di sini. */
