/* =========================================================
   Kerangka section umum (dipakai Section 02–09)
   ========================================================= */
.sec {
  position: relative; z-index: 3;
  container-type: inline-size;
  --arch-w: 134cqw; --arch-x: -17cqw; --arch-y: -12cqw;
  --seam: 22cqw;                                   /* panjang area peleburan antar-section */
}
/* Warna dasar section di lapisan tersendiri yang transparan di bagian atas,
   sehingga taman section sebelumnya larut ke section ini tanpa garis potong. */
.sec::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #FAF5EB, #F8F1E4);
  -webkit-mask-image: linear-gradient(transparent 0, #000 var(--seam)); mask-image: linear-gradient(transparent 0, #000 var(--seam));
}
.sec + .sec { margin-top: calc(var(--seam) * -1); }  /* tumpang-tindih dengan taman section sebelumnya */
/* overflow terlihat: bunga & lentera atas boleh menjuntai melewati sambungan (kolom .invite tetap memotong sisi kiri/kanan) */
.sec-frame { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sec-frame > * { position: absolute; }
.sec-bg { inset: 0;
  background:
    url('../assets/img/lattice.svg') center top / 12cqw auto repeat,
    linear-gradient(#FBF6EC, #F6EEDF);
  opacity: .75;
  /* kisi hanya di sudut atas (di luar lengkung), seperti desain */
  -webkit-mask-image: linear-gradient(transparent 0, #000 22cqw, #000 80cqw, transparent 130cqw); mask-image: linear-gradient(transparent 0, #000 22cqw, #000 80cqw, transparent 130cqw);
}
/* bagian dalam lengkung: krem lembut dengan awan */
.sec-bg::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 9% at 22% 62%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(38% 8% at 80% 48%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(70% 26% at 50% 22%, #FFFDF7, #FBF3E6 70%);
  -webkit-mask: url('../assets/img/arch-mask.png') var(--arch-x) var(--arch-y) / var(--arch-w) auto no-repeat;
  mask: url('../assets/img/arch-mask.png') var(--arch-x) var(--arch-y) / var(--arch-w) auto no-repeat;
}
.sec-arch { left: var(--arch-x); top: var(--arch-y); width: var(--arch-w); height: auto; filter: drop-shadow(0 6px 14px rgba(150, 110, 50, .16));
  -webkit-mask-image: linear-gradient(transparent 0, #000 18cqw); mask-image: linear-gradient(transparent 0, #000 18cqw); }
.sec-floral { height: auto; }
.sec-floral--tl { width: 58cqw; left: -9cqw; top: -7cqw; transform-origin: 0 0; }
.sec-floral--tr { width: 54cqw; right: -9cqw; top: -7cqw; transform-origin: 100% 0; }

.sec-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 9cqw; }
.sec-icon { width: 13cqw; height: 11.5cqw; color: var(--c-gold); }


/* lentera & tanaman rambat di bingkai section */
.sec .lantern--l { left: 9.5cqw; top: 0; width: 7cqw; --chain: 26cqw; }
.sec .lantern--r { right: 8cqw; top: 0; width: 6.4cqw; --chain: 17cqw; animation-delay: -3s; }
.sec-vine { height: auto; }
.sec-vine--l { width: 18cqw; left: -5cqw; top: 150cqw; }
.sec-vine--r { width: 16cqw; right: -5cqw; top: 175cqw; }

/* ---------- Kepala section ---------- */
.sec-title {
  margin-top: 1.6cqw;
  font-family: var(--f-head); font-weight: 600; font-size: 5.5cqw; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-olive); padding-left: .2em;
}
.sec-subtitle { margin-top: .4cqw; font-family: var(--f-italic); font-style: italic; font-weight: 500; font-size: 6.2cqw; color: var(--c-olive); }
.sec-body > .divider { margin-top: 3cqw; }
.sec-intro { margin-top: 3.4cqw; max-width: 76cqw; font-size: 3.95cqw; line-height: 1.5; color: var(--c-text); }
.divider--sm { width: 30cqw; }
.divider--xs { width: 24cqw; }

.sub-heading { display: flex; align-items: center; justify-content: center; gap: 2.4cqw; margin-top: 8cqw;
  font-family: var(--f-italic); font-style: italic; font-weight: 600; font-size: 6.4cqw; line-height: 1.1; color: var(--c-olive); white-space: nowrap; }
.sub-heading > svg { width: 6.4cqw; height: 6.4cqw; color: var(--c-gold); flex: none; }
.sub-heading--lined::before, .sub-heading--lined::after { content: ''; width: 12cqw; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold)); }
.sub-heading--lined::after { transform: scaleX(-1); }

.btn--sm { margin-top: 5cqw; font-size: 4.2cqw; padding: 2.5cqw 6.5cqw 2.7cqw; }
.btn-ghost { margin-top: 5cqw; padding: 2.2cqw 6cqw; border-radius: 999px; border: 1px solid rgba(197, 161, 91, .8); background: rgba(255, 252, 244, .8);
  font-family: var(--f-body); font-size: 3.9cqw; color: var(--c-olive); }

/* ---------- Bentuk kartu ber-outline emas (digambar JS: components/shapes.js) ---------- */
[data-shape] { position: relative; isolation: isolate; }
.shape-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }
.shape-svg .s-fill { fill: url(#card-fill); filter: drop-shadow(0 8px 14px rgba(140, 105, 50, .14)); }
.shape-svg .s-out { fill: none; stroke: #C5A15B; stroke-width: 1.3; }
.shape-svg .s-in { fill: none; stroke: rgba(197, 161, 91, .55); stroke-width: .8; }

.cartouche { width: 84cqw; padding: 6cqw 8cqw 6.4cqw; text-align: center; }
.cartouche__orn { position: absolute; top: 50%; width: 6cqw; height: 9cqw; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30' fill='none' stroke='%23C5A15B' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M18 15c-5 0-8-4-8-8 0 3-2 5-4 5M18 15c-5 0-8 4-8 8 0-3-2-5-4-5'/%3E%3Cpath d='M2 15h6'/%3E%3Ccircle cx='10' cy='15' r='1.8' fill='%23C5A15B'/%3E%3C/svg%3E") center / contain no-repeat; }
.cartouche__orn.l { left: -3.4cqw; }
.cartouche__orn.r { right: -3.4cqw; transform: translateY(-50%) scaleX(-1); }

/* ---------- Taman di dasar section (diisi JS: components/frame.js) ---------- */
.sec-garden { position: relative; height: var(--g-h, 80cqw); margin-top: var(--g-mt, -4cqw); overflow: hidden; pointer-events: none; z-index: 1; 
  /* tepi atas taman ikut memudar (tanpa garis awal gambar) */
  -webkit-mask-image: linear-gradient(transparent 0, #000 var(--g-in, 30cqw)); mask-image: linear-gradient(transparent 0, #000 var(--g-in, 30cqw)); }
.sec-garden > * { position: absolute; }
.sec-garden__img { left: 0; width: 100cqw; height: auto; top: var(--g-top, -96cqw); transform-origin: 50% 60%;
  -webkit-mask-image: linear-gradient(transparent var(--g-fade-a, 52%), #000 var(--g-fade-b, 66%)); mask-image: linear-gradient(transparent var(--g-fade-a, 52%), #000 var(--g-fade-b, 66%));
  filter: saturate(.8) sepia(.06) brightness(1.05); }
.sec-garden .sec-floral--bl { width: 60cqw; left: -12cqw; bottom: calc(var(--seam) * .45); transform-origin: 0 100%; z-index: 2; }
.sec-garden .sec-floral--br { width: 56cqw; right: -14cqw; bottom: calc(var(--seam) * .55); transform-origin: 100% 100%; z-index: 2; }
/* kolam/taman memudar ke ivory di bagian bawah (bertemu section berikutnya) */
.sec-garden::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--seam) + 18cqw); z-index: 1;
  background: linear-gradient(180deg, rgba(250, 245, 235, 0) 0%, rgba(250, 245, 235, .55) 45%, #FAF5EB 100%); }
.sec-garden__img { z-index: 0; }
.sec-garden--finale::after { display: none; }
.sec-garden--finale .sec-floral--bl { bottom: -9cqw; }
.sec-garden--finale .sec-floral--br { bottom: -5cqw; }
.sec-garden--pool     { --g-h: 100cqw; --g-top: -96cqw; }
.sec-garden--mosque   { --g-h: 118cqw; --g-top: -46cqw; --g-fade-a: 26%; --g-fade-b: 44%; }
.sec-garden--fountain { --g-h: 112cqw; --g-top: -78cqw; --g-fade-a: 44%; --g-fade-b: 58%; }
.sec-garden--reflect  { --g-h: 108cqw; --g-top: -88cqw; --g-fade-a: 48%; --g-fade-b: 62%; }
.sec-garden--steps    { --g-h: 96cqw; --g-top: -102cqw; }
.sec-garden--gift     { --g-h: 116cqw; --g-top: -86cqw; --g-fade-a: 50%; --g-fade-b: 64%; }
.sec-garden--finale   { --g-in: 24cqw; --g-h: 150cqw; --g-top: -30cqw; --g-fade-a: 14%; --g-fade-b: 30%; --g-mt: -10cqw; }
