/* Homepage — Corporate Head Office (premium map + compact contact rail) */

.head-office {
  padding: clamp(64px, 9vw, 100px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(151, 140, 33, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 100%, rgba(151, 140, 33, 0.05), transparent 50%),
    var(--background);
  transition: background 0.5s ease;
}

.head-office__head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.head-office__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.head-office__eyebrow svg {
  width: 15px;
  height: 15px;
}

.head-office__card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(60, 60, 59, 0.14),
    0 0 0 1px rgba(151, 140, 33, 0.12);
}

html[data-theme="dark"] .head-office__card {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.head-office__card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  min-height: min(480px, 68vh);
  background: #12151a;
}

.head-office__card-inner--solo {
  grid-template-columns: 1fr;
  min-height: 0;
  background: var(--background);
}

/* —— Map (dominant left) —— */
.head-office__map-wrap {
  position: relative;
  min-height: 360px;
  background: #0e1014;
}

.head-office__map-glow {
  position: absolute;
  inset: auto 8% 6% 8%;
  height: 38%;
  background: radial-gradient(circle, rgba(151, 140, 33, 0.28), transparent 72%);
  filter: blur(32px);
  opacity: 0.6;
  pointer-events: none;
}

.head-office__map-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.head-office__map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(1.06) contrast(1.03);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.head-office__card:hover .head-office__map-frame iframe {
  filter: saturate(1.14) contrast(1.05);
}

.head-office__map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 16, 20, 0) 55%,
    rgba(14, 16, 20, 0.35) 78%,
    rgba(14, 16, 20, 0.55) 100%
  );
  pointer-events: none;
}

.head-office__map-badge {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.78);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.head-office__map-badge svg {
  width: 13px;
  height: 13px;
  color: var(--primary-color);
}

/* —— Compact contact rail (narrow right) —— */
.head-office__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.35rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    rgba(18, 21, 26, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

html[data-theme="light"] .head-office__panel {
  background:
    linear-gradient(180deg, rgba(151, 140, 33, 0.06) 0%, transparent 45%),
    #fafaf8;
  border-left-color: rgba(151, 140, 33, 0.12);
  color: var(--primary-color-two);
}

.head-office__panel-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  opacity: 0.9;
}

.head-office__panel-title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.head-office__panel-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.72;
}

/* Quick tap actions */
.head-office__quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.head-office__quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 68px;
  padding: 0.55rem 0.4rem;
  border-radius: 0.85rem;
  text-decoration: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

html[data-theme="light"] .head-office__quick-item {
  background: rgba(151, 140, 33, 0.07);
  border-color: rgba(151, 140, 33, 0.14);
  color: var(--primary-color-two);
}

.head-office__quick-item:hover {
  background: rgba(151, 140, 33, 0.18);
  border-color: rgba(151, 140, 33, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(151, 140, 33, 0.12);
  color: #fff;
}

html[data-theme="light"] .head-office__quick-item:hover {
  color: var(--primary-color-two);
}

.head-office__quick-item--wa:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.35);
}

.head-office__quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(151, 140, 33, 0.2);
  color: var(--primary-color);
}

.head-office__quick-item--wa .head-office__quick-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.head-office__quick-icon svg {
  width: 16px;
  height: 16px;
}

.head-office__quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Compact info list */
.head-office__details {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.head-office__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease;
}

html[data-theme="light"] .head-office__detail {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(151, 140, 33, 0.1);
}

.head-office__card.reveal.visible .head-office__detail {
  opacity: 1;
  transform: translateY(0);
}

.head-office__card.reveal.visible .head-office__detail:nth-child(1) { transition-delay: 0.08s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(2) { transition-delay: 0.14s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(3) { transition-delay: 0.2s; }
.head-office__card.reveal.visible .head-office__detail:nth-child(4) { transition-delay: 0.26s; }

.head-office__detail:hover {
  background: rgba(151, 140, 33, 0.1);
  border-color: rgba(151, 140, 33, 0.22);
}

.head-office__detail-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(151, 140, 33, 0.16);
  color: var(--primary-color);
}

.head-office__detail-icon svg {
  width: 15px;
  height: 15px;
}

.head-office__detail-body {
  min-width: 0;
  flex: 1;
}

.head-office__detail-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.12rem;
}

.head-office__detail-value {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

a.head-office__detail-value:hover {
  color: var(--primary-color);
}

.head-office__detail--address .head-office__detail-value {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.88;
}

/* Footer actions — stacked, full width in narrow rail */
.head-office__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.head-office__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.head-office__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.head-office__btn--primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 22px rgba(151, 140, 33, 0.28);
}

.head-office__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(151, 140, 33, 0.34);
  color: #fff;
}

.head-office__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .head-office__btn--ghost {
  background: transparent;
  border-color: rgba(60, 60, 59, 0.14);
}

.head-office__btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 140, 33, 0.4);
  color: var(--primary-color);
}

@media (min-width: 992px) {
  .head-office__card-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 991.98px) {
  .head-office__card-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .head-office__map-wrap {
    min-height: 280px;
  }

  .head-office__map-frame iframe {
    min-height: 280px;
  }

  .head-office__map-overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 16, 20, 0) 60%,
      rgba(14, 16, 20, 0.4) 100%
    );
  }

  .head-office__panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.25rem 1.15rem 1.4rem;
  }

  html[data-theme="light"] .head-office__panel {
    border-top-color: rgba(151, 140, 33, 0.12);
  }

  .head-office__quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .head-office__quick-item {
    min-height: 62px;
  }

  .head-office__actions {
    flex-direction: row;
  }

  .head-office__btn {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .head-office__head {
    margin-bottom: 1.5rem;
  }

  .head-office__card {
    border-radius: 1.15rem;
  }

  .head-office__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .head-office__actions {
    flex-direction: column;
  }

  .head-office__btn {
    width: 100%;
  }
}
