/* ============================================================
   ILLUVIA · Components
   Komponen reusable yang dipakai di banyak halaman:
   buttons, cards, badges, form fields, page hero, breadcrumb
   ============================================================ */

/* ── 1. BUTTONS ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-blue-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn--secondary {
  background: var(--color-blue-bright);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-blue-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-blue-primary);
}

.btn--white:hover {
  background: var(--color-blue-50);
}

.btn--whatsapp {
  background: var(--color-wa-green);
  color: var(--color-white);
}

.btn--whatsapp:hover {
  background: var(--color-wa-green-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn--ghost {
  background: transparent;
  color: var(--color-blue-primary);
}

.btn--ghost:hover {
  color: var(--color-blue-hover);
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--fs-sm);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}


/* ── 2. SECTION HEADER (eyebrow + title + optional link) ─── */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--split {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .section-header--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.eyebrow {
  display: inline-block;
  color: var(--color-blue-bright);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.eyebrow--on-dark {
  color: var(--color-blue-muted);
}

.section-title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .section-title { font-size: var(--fs-5xl); }
}

.section-title--on-dark { color: var(--color-white); }
.section-title__accent  { color: var(--color-blue-primary); }
.section-title__accent--light { color: var(--color-blue-muted); }


/* ── 3. PAGE HERO (untuk halaman About, Products, dll) ──── */

.page-hero {
  position: relative;
  height: 280px;
  background: var(--color-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.page-hero__content {
  position: relative;
}

.page-hero__title {
  color: var(--color-white);
  font-size: var(--fs-4xl);
  margin-top: var(--space-2);
}

@media (min-width: 768px) {
  .page-hero__title { font-size: var(--fs-5xl); }
}


/* ── 4. BREADCRUMB ────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-blue-muted);
  margin-bottom: var(--space-5);
}

.breadcrumb a:hover { color: var(--color-white); }

.breadcrumb__sep {
  color: var(--color-blue-bright);
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb__current { color: var(--color-white); }


/* ── 5. CARDS ────────────────────────────────────────────── */

/* Generic card base */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Feature card (icon + title + desc) */
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-blue-pale);
  color: var(--color-blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.feature-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-relaxed);
}

/* Feature row (on dark bg) — for Why Us section */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  transition: background var(--transition);
}

.feature-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-row__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-blue-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-row__title {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}

.feature-row__desc {
  color: rgba(191, 219, 254, 0.6);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: var(--lh-relaxed);
}


/* ── 6. BADGES & TAGS ────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.badge--blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--color-blue-soft);
}

.badge--solid {
  background: var(--color-blue-primary);
  color: var(--color-white);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-blue-muted);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}


/* ── 7. FORM FIELDS ──────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  background: var(--color-white);
  color: var(--color-gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Captcha box */
.captcha-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.captcha-question {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-gray-700);
  flex: 1;
}

.captcha-input {
  width: 80px;
  text-align: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  background: var(--color-white);
}

.captcha-status {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  opacity: 0;
  transition: opacity var(--transition);
}

.captcha-status.is-ok { opacity: 1; }

/* Success message */
.form-success {
  background: var(--color-success-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  margin-bottom: var(--space-4);
}

.form-success__title {
  color: var(--color-success-dark);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.form-success__desc {
  color: #15803d;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}


/* ── 8. CTA BAND (blue section dengan tombol) ───────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-blue-primary);
  padding-block: var(--space-20);
  text-align: center;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
}

.cta-band::before {
  top: -80px;
  right: -80px;
  background: rgba(59, 130, 246, 0.3);
}

.cta-band::after {
  bottom: -80px;
  left: -80px;
  background: rgba(30, 58, 138, 0.4);
}

.cta-band__inner {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
}

.cta-band__title {
  color: var(--color-white);
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .cta-band__title { font-size: var(--fs-5xl); }
}

.cta-band__desc {
  color: rgba(191, 219, 254, 0.8);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-10);
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta-band__location {
  margin-top: var(--space-12);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(30, 64, 175, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(4px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-blue-pale);
  font-weight: var(--fw-medium);
}


/* ── 9. CONTACT INFO BAR (dark navy card) ──────────────────── */

.contact-info-bar {
  background: var(--color-navy);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  color: var(--color-white);
}

.contact-info-bar__title {
  color: var(--color-white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-6);
}

.contact-info-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .contact-info-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .contact-info-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-info-item__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.contact-info-item__head svg { color: var(--color-blue-muted); }

.contact-info-item__label {
  color: var(--color-blue-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-bold);
}

.contact-info-item__value {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  white-space: pre-line;
}
/* ── FIX: Dorong header ke bawah saat WP admin bar muncul ──
   Hanya berlaku saat login (body punya class .admin-bar).
   Pengunjung biasa tidak terpengaruh. */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}