/* ============================================================
   WEDDING-16 | main.css
   "NUSANTARA" — Traditional Indonesian heritage invitation
   Ornamental bordered panels, symmetric, ceremonial.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --maroon-900: #3c0d11;
  --maroon-700: #5c161c;
  --maroon-500: #7a2029;

  --gold-700: #96721c;
  --gold-500: #c9971f;
  --gold-300: #e8c468;
  --gold-100: #f5e3b8;

  --cream: #f7ecd4;
  --cream-2: #efe0bd;

  --ink: #2b1810;
  --ink-soft: #5c4632;
  --ink-faint: #8a7659;

  --border-gold: rgba(201, 151, 31, 0.5);
  --border-gold-strong: rgba(201, 151, 31, 0.85);

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.05rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: 2.1rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.6rem;
  --text-5xl: 4.6rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 400ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul,
ol {
  list-style: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--maroon-900);
}

.italic {
  font-style: italic;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Ornamental section panel ── */
.panel-section {
  padding-block: var(--space-16);
  text-align: center;
}
.panel-frame {
  position: relative;
  border: 2px solid var(--border-gold);
  padding: var(--space-12) var(--space-8);
  background: rgba(255, 252, 242, 0.4);
}
.panel-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold-500);
}
.corner.tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.corner.tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}
.corner.bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}
.corner.br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.eyebrow-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--space-6);
}
.eyebrow-gold::before,
.eyebrow-gold::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-500);
}

.panel-title {
  font-size: clamp(1.7rem, 4vw, var(--text-3xl));
  margin-bottom: var(--space-5);
}
.panel-desc {
  max-width: 480px;
  margin-inline: auto;
  font-size: var(--text-base);
  color: var(--ink-soft);
}

/* ── Buttons ── */
.btn-gold,
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 30px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(150, 114, 28, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(150, 114, 28, 0.45);
}
.btn-outline-gold {
  border: 1px solid var(--border-gold-strong);
  color: var(--maroon-900);
}
.btn-outline-gold:hover {
  background: rgba(201, 151, 31, 0.1);
  transform: translateY(-2px);
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-6);
  text-align: left;
}
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-gold);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition: border-color var(--duration);
  resize: vertical;
}
.form-control::placeholder {
  color: var(--ink-faint);
}
.form-control:focus {
  border-color: var(--gold-500);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.radio-label input {
  display: none;
}
.radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.radio-custom::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration) var(--ease-out);
}
.radio-label input:checked ~ .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: var(--space-5);
  }
  .panel-frame {
    padding: var(--space-8) var(--space-5);
  }
  .panel-section {
    padding-block: var(--space-12);
  }
}
